I am installing SMTP authentication for Sendmail. I followed the guide in the FreeBSD Handbook. To complete the installation, I want to test, if the authentication works, and confirm, that the username and password are kept secure. Of course, I could dump the packets and inspect them for plain text username and password, but, I thought, I might be able to look in the log also. I set the log level of Sendmail to 13, configure a test client to use SMTPS/465 with authentication - and send a test mail from an untrusted network to a non-hosted relay recipient. The following is written in the log.
The mail does get sent. However, I am not sure, if the log confirms the use of secure authentication?
Code:
xxx sm-mta[52988]: r8EKkC6M052988: from=<xxx>, size=790, class=0, nrcpts=1, msgid=<xxx>, proto=ESMTP, daemon=TLSMTA, relay=xxx [xxx]
xxx sm-mta[53010]: r8EKkC6M052988: to=<xxx>, ctladdr=<xxx> (1003/1003), delay=00:00:05, xdelay=00:00:03, mailer=esmtp, pri=30790, relay=xxx. [xxx], dsn=2.0.0, stat=Sent (Queued!)
# pkg_info | grep cyrus-sasl
Code:
cyrus-sasl-2.1.26_2 RFC 2222 SASL (Simple Authentication and Security Layer)
cyrus-sasl-saslauthd-2.1.26 SASL authentication server for cyrus-sasl2
# ps acx | grep sasl
Code:
66773 ?? Is 0:00.00 saslauthd
# nano -w `hostname`.mc
Code:
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')
The mail does get sent. However, I am not sure, if the log confirms the use of secure authentication?