Incoming Mail Issue: "no host name found" loop

Hello everyone,

I am experiencing an issue receiving emails from a specific cPanel server and I’m stuck in a loop. Hestia Panel’s ip adress is xx.xx.xxx.110 and the cPanel ip address is xx.xx.xxx.111. When I try, I can get emails from all servers including Gmail, Outlook, Yandex etc even random online mail senders can send, but my cPanel server does not send any email to my HestiaCP server. Domains are different, any on both servers everything works fine.

When I check the exim log, I do not get any logs related to my main cPanel ip the only thing is different interface/gateway IP (178.16.54.155) and it says no host name found for ip address 178….
What I tried?
Whitelisting: I added the IP (178.16.54.155) to /etc/exim4/white-blocks.conf and verified hostlist whitelist includes this file.

  1. Modifying Template: I edited /etc/exim4/exim4.conf.template. I commented out the specific drop block under acl_check_mail that contains the delay = 45s and condition = ${lookup dnsdb....

  2. Applying Changes: I ran update-exim4.conf and systemctl restart exim4.

The Problem: Despite commenting out the block in the template and updating the config it’s still the same.

I wonder why my cPanel ip address is different on Hestia’s side and why I still can’t send any e-mails.

Thanks in advance

Hi,

Let’s say the domain in Hestia where you want to receive mails is example.net.

What happens when you run these commands from your CPanel server (replace example.net with the actual domain name)?

dig example.net mx
dig mail.example.net
dig mail.example.net +trace +nodo -4
telnet mail.example.net 25
1 Like

Somehow, I realized the error.

The domain I use in Hestia (for mail hosting) lets say example.net is also being used for web hosting in cPanel. Even though the mx records point HestiaCP, cPanel sends mails to cPanel again because the mail [email protected] was also created in cPanel too. That’s why cPanel was forwarding mails to itself.

Thank you for everything..

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.