What hostname should be set if the server is behind NAT?

Created:

2017-02-09 11:06:48 UTC

Modified:

2017-08-08 13:41:58 UTC

0

Was this article helpful?


Have more questions?

Submit a request

What hostname should be set if the server is behind NAT?

Applicable to:

  • Plesk for Linux

Question

What hostname should be set if the server is behind NAT, public FQDN or private FQDN?

Answer

It is recommended to use public FQDN. However, if for some reason this is not possible (due to some network/virtualization configurations), this is safe to have private FQDN as Plesk server hostname, in most cases it will work without issues.

The only issue could occur while sending mail. As a default, the hostname is being used by SMTP server. Some antispam tools on recepient side could try to verify the hostname and if it is not possible, reject mail message.

For this case, create A, PTR record for public FQDN on registrar's side to make the server accessible through some public FQDN. Specify this public FQDN as a value for myhostname parameter in /etc/postfix/main.cf configuration file.

Have more questions? Submit a request
Please sign in to leave a comment.