Hi, I'm having an email issue. It's a bit of a complicated story but I am stumped and wonder if anyone can offer some assistance. Ok - So I recently moved a domain over to a new server. "Domain A" Everything went fine. Then I realized that owner of the website also has another domain hosted on the old server "Domain B" - which had 3 email forwarders set up to go to Domain A. - These forwarders stopped working. I realized this was because the server was routing the mail locally as the account still remained on the old server. I "terminated" the account expecting this to make the server realize that the domain was no longer hosted on it. - But no such luck any email I attempt to send from Domain B to Domain A gets held up in the mail queue clamming "Unrouteable address" So It seems to me that the server still is trying to route the mail locally. The Server is running Cpanel/WHM 11 Exim for the MTA. I've tried restarting bind, and exim, I don't really want to do a full server reboot and I am not sure it would help anyways..Also ping,dig, traceroute all report that the domain is in fact not on the old server. Hope this makes sense. - Anyone know how I might go about fixing this? Thank you, Aaron
Check the MX records for Domain A. They should be pointing to the server that handles the email for Domain A. host -t mx DomainA from a unix prompt will give you the information you seek.
Hi, Thank you for the reply - however I am not sure how the information will help me. From using the "host" command ... the server still appears like it Should be not trying to route the mail locally and send it over to the new server. It might be some lag from the DNS switch .... but strange that all the tools report that the DNS is fully propigated.
If you're having trouble sending mail from Server B hosting Domain B to Server A hosting Domain A, here's how I would handle it. - Check the MX records for DomainA. Make sure it's pointing to ServerA - Make sure ServerB is not configured to accept mail for DomainA for some reason - Simulate an SMTP transaction using telnet from ServerB to ServerA: telnet ServerA 25 helo ServerA mail from: <someone@domainB> rcpt to: <somebody@domainA> data Subject: This is a test Hello world . That should all work. You should get a pretty clear hint as to the problem.
That did work - but the problem persists - I was able to telnet and send the test mail. This is really got me puzzled. Everything "seems" like it is set up correctly and should work. I am just going to get him to move both domains to the new server. That has got to solve this issue. Thank you, Aaron
I'm not sure about exim. but with sendmail you can modified mailertable file to look like this. in old server domain.a smtp:domain.b of if using ip address domain.a smtp:[some.ip.address.ok] all emails to domain.b will be sent firectly to domain.b This is should be working with sendmail, but I'm not sure about exim.