mail loops back to me (MX problem?) Local configuration error

tom on July 3rd, 2007

Although this is a frequently asked question which has many answers, I thought it should be addressed.

If you are not receiving mail from your server, grep through all the log files in your /var/spool/mail mailboxes.

# grep “MX” root

for example will output if you have had any of these errors reported back to root. (This only applies if root is receiving the mail. replace root with another username).

The solution to this problem is configuring sendmail properly.

For (Sendmail version 8.11 and up):

1. Add the line server.yourdomain.com to /etc/mail/local-host-names
2. Send the Sendmail daemon SIGHUP termination signal:

#kill -HUP `head -1 /var/run/sendmail.pid`

If you use sendmail 8.11 or before you should upgrade, but here is the fix:
1. Add the line server.yourdomain.com to /etc/mail/sendmail.cw
2. Send the Sendmail daemon SIGHUP termination signal as before:

#kill -HUP `head -1 /var/run/sendmail.pid`

If this doesn’t work then make sure the use_cw_file option is on in your config.


Comments are closed.