Error: Host impersonating domain name

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license, use promo code PACKETS to get 15% off your first invoice!)

Your customers might be reporting the error "Host impersonating domain name" when trying to send email through your DirectAdmin server. This happens when the server they are connecting from, even if authenticating over SMTP, has a hostname that matches a local domain on the DirectAdmin server. To fix this, you'll need to redo this anytime you rebuild exim config or upgrade exim. However, it is very simple to do.

Step 1: Open /etc/exim.conf

Step 2: Search for "HELO_IS_LOCAL_DOMAIN" in the file

Step 3: Comment out all of this by adding "#" before each line, just as shown below:

#    deny message = HELO_IS_LOCAL_DOMAIN
#        condition = ${if match_domain{$sender_helo_name}{+local_domains}{true}{false}}
#        hosts = ! +relay_hosts

Step 4: Restart exim with:

systemctl restart exim

  • directadmin, exim
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install DirectAdmin

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license,...

Webmail Subdomain for DirectAdmin Users

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license,...

Add Rainloop to your DirectAdmin Server

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license,...

Emails taking a long time to send from DirectAdmin server

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license,...

Add SFTP option for remote backups

(We sell DirectAdmin licenses for a great price! Purchase a server with us and grab a license,...