I recently set up a new mail server, and I wanted to make sure that SMTP authentication was working as I expected. The msmtp command (from http://msmtp.sourceforge.net/) turned out to be just what I needed.
msmtp is an SMTP client that can use by as an "SMTP plugin" for mutt or other Mail User Agents (MUAs), and it supports authenticated SMTP with various methods (PLAIN, LOGIN and CRAM-MD5) and TLS encrypted connections, and can be configured on the command line or with configuration files.