troubleshooting Question

mail loops back to me (MX problem?) - no, it's not.

Avatar of frymaster
frymaster asked on
Email Servers
8 Comments1 Solution3796 ViewsLast Modified:
i have two boxes: both are stock installs of rhel es 3. both have sendmail. one works, the other doesn't. the broken server spits "mail loops back to me (MX problem?)" errors out whenever i try to send mail to our company mailserver...

when sending mail to our company mailserver the broken rhel box always logs lines that look like this:

Feb 10 17:38:48 lnsgame sendmail[26563]: i1AHcmxm026563: from=<root@localhost.localdomain>, size=344, class=0, nrcpts=1, msgid=<200402101738.i1AHclj2026561@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=lnsgame [127.0.0.1]
Feb 10 17:38:48 lnsgame sendmail[26561]: i1AHclj2026561: to=foo@bar.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30040, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1AHcmxm026563 Message accepted for delivery)
Feb 10 17:39:19 lnsgame sendmail[26565]: i1AHcmxm026563: SYSERR(root): mail.bar.com. config error: mail loops back to me (MX problem?)
Feb 10 17:39:19 lnsgame sendmail[26565]: i1AHcmxm026563: to=<foo@bar.com>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:31, xdelay=00:00:31, mailer=esmtp, pri=30344, relay=mail.bar.com. [65.220.55.132], dsn=5.3.5, stat=Local configuration error

on the working server, sending the same email logs this:

Feb 10 17:38:55 lnsskd sendmail[25867]: i1AHcsLj025867: from=<root@lnssdk>, size=296, class=0, nrcpts=1, msgid=<200402101738.i1AHcs7i025865@lnssdk>, proto=ESMTP, daemon=MTA, relay=lnsskd [127.0.0.1]
Feb 10 17:38:55 lnsskd sendmail[25865]: i1AHcs7i025865: to=foo@bar.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30037, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1AHcsLj025867 Message accepted for delivery)

the thing i notice is that the broken server always has as the "from" address "root@localhost.localdomain" while the working server has "root@lnssdk".  this looks suspisciously like the problem - but i can't seem to fix it.

notes:
hostname returns the correct hostname for both servers.
i have added the hostnames to 'local-host-names'
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros