~~socialite:icon reddit googleplus stumbleupon twitter~~ ===== Debugging Sendmail Problems ===== 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 in2nix.com Should get back a list of MX records OR nslookup -q=mx in2nix.com You can check a target destination with: sendmail -bt > /map host in2nix.com 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: 192.168.2.1 host1 host1. instead of 192.168.2.1 host1 host1.in2nix.com To check what sendmail thinks the domain is run: sendmail -d0.1 -bt < /dev/null **Still stuck? Maybe we can help.** Contact us [[https://www.upwork.com/o/profiles/users/_~01207a4bc438b48c6e|at Upwork]] Never miss a thing [[http://www.justsomestuff.co.uk/subscribe.php|subscribe to our newsletter]] {{glyphicon>envelope}} or follow us [[http://twitter.com/itsjustsomestuf|on twitter]] {{glyphicon>hand-left}} For more super cool techie stuff [[http://www.justsomestuff.co.uk/theblog|check out our blog!!]] ===Recent Changes=== {{changes>}} ====Contribute to this wiki==== Why not help others by sharing your knowledge? Contribute something to this wiki and [[http://www.justsomestuff.co.uk/hall_of_fame.html|join out hall of fame!]]\\ [[http://www.justsomestuff.co.uk/theblog/contact-page|Contact us]] for a user name and password