How to test sendmail from the terminal

Sendmail is an open source smtp server. Many different languages and frameworks interface with sendmail, and when debugging it’s good to be able to quickly test whether or not sendmail is working.

The following is a quick way to verify that sendmail is working.

echo "Subject: test" | /usr/lib/sendmail -v [email protected]

Also published on Medium.

Leave a Reply

Your email address will not be published. Required fields are marked *