Hello Alexander,
Thank you for your reply.
I made SSH to the remote IP address on port 22, and it succeeded.
-------------------------------------------------------
Trying X.199.124.165...
Connected to X.199.124.165.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.10
^C
Connection closed by foreign host.
-------------------------------------------------------
Then I made the following test, and get the error message once I specified the TO address.
-------------------------------------------------------
Trying X.199.124.165...
Connected to X.199.124.165.
Escape character is '^]'.
220 smtp.mangrovenetworks.com ESMTP Postfix (Radioactive Virtualized Zombie Mudskipper)
helo AAA
250 smtp.domain.com
mail from: user.mohamed@domain.com
250 2.1.0 Ok
rcpt to: user@external-domain.com
454 4.7.1 <user@external-domain.com>: Relay access denied
421 4.4.2 smtp.external-domain.com Error: timeout exceeded
Connection closed by foreign host.
-------------------------------------------------------
Note: I changed the domain names and IP addresses for privacy.