LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   mail loops back to me (MX problem?) OR did not issue MAIL/EXPN/VRFY/ETRN (http://www.linuxquestions.org/questions/linux-server-73/mail-loops-back-to-me-mx-problem-or-did-not-issue-mail-expn-vrfy-etrn-823774/)

skc 08-03-2010 06:29 AM

mail loops back to me (MX problem?) OR did not issue MAIL/EXPN/VRFY/ETRN
 
Hi all,

If you are receiving "mail loops back to me (MX problem?) Local configuration error" (in client side) or "did not issue MAIL/EXPN/VRFY/ETRN during connection to ..." (server side /var/log/maillog) message while sending email to another email address?

I have found that this is usually causes from the hostname of mail server is set to "localhost.localdomain"

I hope this will work.

fast-reflexes 08-03-2010 10:02 AM

Quote:

Originally Posted by skc (Post 4053728)

did not issue MAIL/EXPN/VRFY/ETRN during connection to ..."

This can mean that the client did not issue any commands. If you login to your smtp server using
Code:

telnet localhost smtp
and then just type quit, then the log will show a message like that.

These types of errors usually occur for me when the client is not correctly configured to deal with the server... can't come up with a good example right now though...

skc 08-04-2010 03:06 AM

The error arises when your server's hostname is set to "localhost" or "localhost.localdomain". Just change the hostname of your email server and check. I think it will work.

alteci 07-08-2011 07:56 PM

Still getting the error...
 
Quote:

Originally Posted by skc (Post 4055099)
The error arises when your server's hostname is set to "localhost" or "localhost.localdomain". Just change the hostname of your email server and check. I think it will work.

Any other ideas? My hostname is set correctly (checked in config file and running "hostname", to make sure it hadn't been changed)....but I'm still getting this error.

Thanks,

John

pafoo 07-08-2011 11:16 PM

check your /etc/mail/sendmail.cf and see how the default mail is set to
verify your /etc/aliases

then lookup your mail server and verify those are correct

Code:

nslookup
set type=mx
$domainname


alteci 07-09-2011 02:06 AM

Quote:

Originally Posted by pafoo (Post 4409445)
check your /etc/mail/sendmail.cf and see how the default mail is set to
verify your /etc/aliases

then lookup your mail server and verify those are correct

Code:

nslookup
set type=mx
$domainname


When I enter $domainname, I get the following error: *** Can't find $domainname: No answer

When I enter my servers domain name instead, I get the same mail exchanger as I do when I enter "host domainname", which is "mail.domainname.com".

*Domainname.com is replaced with the real domain.

pafoo 07-09-2011 10:18 PM

Sorry I didn't specify, it was supposed to be your domain. Did it pull
Up the right mail server?


All times are GMT -5. The time now is 07:32 AM.