Here's a few tricks to help debug sendmail problems: Finding the sendmail version:

sendmail -d0.1 -bt < /dev/null

Checking for valid MX records:

sendmail -bt > /mx

Should get back a list of MX records OR

nslookup -q=mx

You can check a target destination with:

sendmail -bt > /map host

Error messages are usually logged in the messages/syslog file, e.g. /var/adm/ messages on Solaris. However, this is dependent on the configuration of syslog

A common sendmail error is unknown host mailhost 550 . This can be caused by sendmail not recognising the DNS domain. e.g. if the host is improperly defined in /etc/hosts: host1 host1.

instead of host1

To check what sendmail thinks the domain is run:

sendmail -d0.1 -bt < /dev/null

Recent Changes

Contribute to this wiki

Why not help others by sharing your knowledge? Contribute something to this wiki and join out hall of fame!
Contact us for a user name and password