• Remote host address is the local host : Linux : Directadmin : Exim

    Scenario : Cannot receive emails.

    Server : Linux : Directadmin : Exim

    Checking the exim error logs /var/log/exim/mainlog showed the error :-

    Remote host address is the local host

    Fix :  Hostname entry was missing in /etc/virtual/domains file.

    Add it and restart exim .

    This solved my issue. There can be other possibilities due to incorrectly setup mail systems. Here is a list of rules that must be followed:

    • The hostname must *not* be in the /etc/virtual/domainowners file.
    • The directory /etc/virtual/hostname must exist.. (eg: /etc/virtual/server.domain.com). It must not contain any files.
    • Any domains that you want to use for email (eg: domain.com) must be in both the /etc/virtual/domains file and the /etc/virtual/domainowners file. The directory /etc/virtual/domain.com must exist and the files /etc/virtual/domain.com/passwd and /etc/virtual/domain.com/aliases exist.