This article serves as a review of the best practices for achieving a perfect email setup.
The hostname must not match any domain that is being used on the system. We recommend using server.domain.com or web1.domain.com instead. (Taking server1.domain.com as example.)
The hostname must be in the /etc/virtual/domains file.
The hostname must not be in the /etc/virtual/domainowners file.
The directory /etc/virtual/hostname must exist (eg: /etc/virtual/server1.domain.com). It must not contain any files.
Ensure your hostname does not contain any upper case letters.
The hostname must resolve. If not, add the required A records to the dns zone so that it does. Command to check:
dig +short server1.domain.com
- Make sure that your main server IP has a reverse lookup on it. Command to check:
dig -x 184.108.40.206 +short
Configure the following authentication records for each domain on your system:
An SPF record
A DKIM record
A DMARC record
Then, send a test email to https://www.mail-tester.com/open in new window and check your score.