swaks – command line SMTP testing tool

swaks is a command line SMTP testing tool available at


On Debian/Ubuntu, you can install it with

swaks mail testing tool

if you just type swaks, it will ask your email, then sent a mail using MX Record to specified email address.

To send email using specific mail sevrer

Deliver a standard test email, requiring CRAM-MD5 authentication as user [email protected] An “X-Test” header will be added to the email body. The authentication password will be prompted for if it cannot be obtained from your .netrc file.


Leave a Reply

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