Debugging SMTP Servers

| September 2nd, 2010

I had to setup some postfix and sendmail servers today and I needed to manually debug them to see if it worked.

If you’re using sendmail, you can use sendmail -v, it gives a nice output of all the raw SMTP communication.

Postfix doesn’t have this unfortunately so I had to test it out manually. This tutorial proved to be useful to test my relayhost using AUTH PLAIN.

I used these two howtos on setting up postfix and sendmail with a mail relay using an AUTH method. For the postfix tutorial, I don’t know if you need to add smtp_always_send_ehlo = yes or smtp_sasl_security_options = noanonymous, but I could be wrong.

Leave a Reply