Thursday, March 6, 2008

What do I do if my server is returning emails with the error: unrouteable mail domain for any valid mail-routable domain?

Server is returning emails with the error: "unrouteable mail domain" for any valid mail-routable domain
From shell, type: (yahoo.com as example) exim -bt info@yahoo.com
Ifthis returns unrouteable mail domain "yahoo.com", then the problem iswith the local config of the server itself. Check to make sure that thehostname has an A record, is resolvable globally, and that MX recordsdo indeed exist. (A record and MX record entries should ALWAYS existfor the hostname of the server.)
If this returns you a list of the domain's mail servers, do a:

cat /var/log/exim_mainlog grep "failed to expand condition"
If you see this error persistantly in exim_mainlog: "failedto expand condition" "${perl{checkspam}}" for lookuphost router: Gid XXis not permitted to relay mail at /etc/exim.pl line 365.
Make sure that you have WHM > Change System Mail Preferences > nobody's mail set to a valid email address. Also,uncheck "Track the origin of messages sent though the mail server byadding the X-Source headers (exim 4.34+ required)" in WHM.
If you see this error in exim_mainlog: "failedto expand condition "${perl{checkspam}}" for literal router: Domaincableforum.co.uk has exceeded the max emails per hour. Messagediscarded."
The domain has exceeded their max emails per hour set within WHM > tweak settings > Max emails per hour.
Ifthe domain is hosted on the server, check and make sure that the domainresolves, has a correct MX record, and exists in /etc/localdomains.

No comments: