Make Postfix use /etc/hosts

To make Postfix use /etc/hosts file to find IP address of the SMTP server before it contacts any DNS servers, add two lines to the /etc/postfix/main.cf file:

  • lmtp_host_lookup = native
  • smtp_host_lookup = native

Validate your domain information

You may want to check if all the information available online in regard of your domain is complete and correct.

In such a case you can go to intodns.com and enter the address of your domain to verify the settings.

One thing you will often see failing is “Reverse MX A records (PTR)” for your mail server, and this is a good way to find out if everything is all right or not.


Validate SPF record online

If you are setting up the SPF record for your domain, you can test its validity online.