LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail mail loops back to me (MX problem?) (https://www.linuxquestions.org/questions/linux-server-73/sendmail-mail-loops-back-to-me-mx-problem-4175547519/)

alan.belizario 07-08-2015 11:21 AM

Sendmail mail loops back to me (MX problem?)
 
Hi Guys

Any help will be appreciated,suddenly my sendmail relay stopped working. It's saying Sendmail mail loops back to me (MX problem?) and DSN: Local configuration error. Can't seem to find the issue on sendmail.

Thanks in advance

smallpond 07-08-2015 03:59 PM

Check any internal and external DNS involved. Make sure any mail servers have a correctly configured, valid FQDN. Are the failures for locally generated mail or mail delivered from remote systems?

alan.belizario 07-08-2015 09:53 PM

thanks for the reply smallpond. From what I see the emails are being sent locally on the server. but it is not being relyed to gmail's smtp which is weird since it was working for the past 2 Months. I suspect that my DNS has an issue.


Here is the error

Jul 9 10:58:21 localhost sendmail[11619]: t692wA8P011619: from=root@localhost.localdomain, size=138, class=0, nrcpts=1, msgid=<201507090258.t692wA8P011619@localhost.localdomain>, relay=root@localhost
Jul 9 10:58:37 localhost sm-mta[11752]: t692wLa5011752: from=<root@localhost.localdomain>, size=411, class=0, nrcpts=1, msgid=<201507090258.t692wA8P011619@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Jul 9 10:58:37 localhost sendmail[11619]: t692wA8P011619: to=<xxxxxxx@domain.com>, ctladdr=root@localhost.localdomain (0/0), delay=00:00:27, xdelay=00:00:16, mailer=relay, pri=30138, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t692wLa5011752 Message accepted for delivery)
Jul 9 10:58:54 localhost sm-mta[11987]: t692wLa5011752: SYSERR(root): smtp-relay.gmail.com. config error: mail loops back to me (MX problem?)
Jul 9 10:58:54 localhost sm-mta[11987]: t692wLa5011752: to=<xxxxxxx@domain.com>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:17, xdelay=00:00:17, mailer=relay, pri=120411, relay=smtp-relay.gmail.com. [74.125.203.28], dsn=5.3.5, stat=Local configuration error
Jul 9 10:58:54 localhost sm-mta[11987]: t692wLa5011752: t692wsa5011987: DSN: Local configuration error
Jul 9 10:58:54 localhost sm-mta[11987]: t692wsa5011987: to=<root@localhost.localdomain>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent

alan.belizario 07-09-2015 03:52 AM

Just an update, was able to sort things out. Seems like the relay was blocking the server to gain access, same goes with Postfix. But Postfix has a more detailed information on the error encountered.

Here is the logs.

relay=smtp-relay.gmail.com[64.233.188.28]:25, delay=22, delays=0.02/0.03/22/0.24, dsn=5.7.0, status=bounced (host smtp-relay.gmail.com[64.233.188.28] said: 550-5.7.0 Mail relay denied [203.177.154.2]. Email is being sent from a domain 550-5.7.0 or IP address which isn't registered in Google Apps account. Please 550-5.7.0 login to your Google Apps account and verify that your sending device 550-5.7.0 IP address has been registered within 550-5.7.0 Google Apps SMTP Relay Settings. For more information, please visit 550 5.7.0 https://support.google.com/a/answer/6140680#maildenied t4sm940085pds.4 - gsmtp (in reply to MAIL FROM command))

I just removed sendmail and used postfix to get SMTP working again and removed the username/password defined.

Everything is working fine now. :)


All times are GMT -5. The time now is 09:40 AM.