/usr/local/directadmin/custombuild

./build update
./build exim
./build eximconf
./build roundcube
./build rewrite_confs

Source: https://forum.directadmin.com/threads/i-cant-receive-emails-or-send.63079/

Server side

  1. 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.)

  2. The hostname must be in the /etc/virtual/domains file.

  3. The hostname must not be in the /etc/virtual/domainowners file.

  4. The directory /etc/virtual/hostname must exist (eg: /etc/virtual/server1.domain.com). It must not contain any files.

  5. Ensure your hostname does not contain any upper case letters.

  6. 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
  1. Make sure that your main server IP has a reverse lookup on it. Command to check:
dig -x 12.34.56.78 +short