2 servers running directadmin 1 for mail and 1 for hosting

Cephas

Verified User
Joined
Jun 18, 2021
Messages
15
Hi all,

I need some help because I'm getting 550 Bad HELO errors.

I have 1 domain (microsupplies.nl) that runs on lets say ServerA where I also want to run my email.
I have a second server lets say ServerB that runs the website with wordpress. Everytime I try to send a testemail using WP mail SMTP it fails and says 550 Bad HELO.

I have tried several things but really can't figure it out. Both servers run DirectAdmin.

Things already done and/or tried:
  • MX Records > Use this server to handle my e-mails. If not, change the MX records and uncheck this option. (unchecked). - ServerB
  • Mail DNS records (ipv6 records as well) point to ServerA - ServerB
  • Website DNS Records point to ServerB - ServerA
  • Send mail with authentication trough port 587 (you must use email credentials) - Wordpress environment on ServerB
    I've also tried without SMTPAutoTLS using SSL.
Note: NS records on ServerB are ns1 ns2.domain.com while on ServerA they are ns1 ns2.domain.com

I hope someone can help me out with this problem as I've been struggling for a few days now.
 
Last edited:
Try to send mail with authentication trough port 587 (you must use email credentials)
 
Ok, try to fix the bad HELO thing then, old post of mine:

Found a post that can help other people
------------------------------------------------------
Hi i've faced the same problem, i've solved it by editing exim.conf in the mail server like this

just after #EDIT#16
hostlist relay_hosts = net-lsearch;/etc/virtual/pophost

i've added this line

hostlist allowed_helo = net-lsearch;/etc/virtual/allowed_helo

and changed #EDIT#25 from this

# deny if the HELO pretends to be one of the domains hosted on the server
deny message = HELO_IS_LOCAL_DOMAIN
condition = ${if match_domain{$sender_helo_name}{+local_domains}{true}{false}}
hosts = ! +relay_hosts
accept

to this

# deny if the HELO pretends to be one of the domains hosted on the server
deny message = HELO_IS_LOCAL_DOMAIN
condition = ${if match_domain{$sender_helo_name}{+local_domains}{true}{false}}
hosts = ! +relay_hosts
hosts = ! +allowed_helo
accept

finally i've added the first server ip in /etc/virtual/allowed_helo and restarted exim
 
Back
Top