Package swaks

Command-line SMTP transaction tester

http://www.jetmore.org/john/code/swaks

Swiss Army Knife SMTP: A command line SMTP tester. Swaks can test
various aspects of your SMTP server, including TLS and AUTH.

General Commands
Command Description
swaks Swiss Army Knife SMTP, the all-purpose smtp transaction tester