Hi guys, I am trying to send automated command line mail via mutt but keep on getting "SASL Authentication" failures. I have tried a LOT of different suggestions on google and combinations of it.
I have Postfix setup (on Debian) as a local MTA (using gmail) which is working fine. However, whenever I try sending mail from mutt (from a laptop connected to my local lan) I get this error. Here is a snippet from my log file: fever.havannah.local is where Postfix is running 10.0.0.0 is my local lan ################################################################################################################################################## Nov 19 15:03:11 fever postfix/master[11168]: daemon started -- version 2.11.3, configuration /etc/postfix Nov 19 15:03:16 fever postfix/smtpd[11189]: warning: No server certs available. TLS won't be enabled Nov 19 15:03:16 fever postfix/smtpd[11189]: connect from unknown[10.0.0.41] Nov 19 15:03:16 fever postfix/smtpd[11189]: warning: SASL authentication failure: unable to canonify user and get auxprops Nov 19 15:03:16 fever postfix/smtpd[11189]: warning: unknown[10.0.0.41]: SASL DIGEST-MD5 authentication failed: authentication failure Nov 19 15:03:17 fever postfix/smtpd[11189]: lost connection after AUTH from unknown[10.0.0.41] Nov 19 15:03:17 fever postfix/smtpd[11189]: disconnect from unknown[10.0.0.41] Nov 19 16:02:01 fever postfix/pickup[11185]: A8E732A0032: uid=0 from=<root> Nov 19 16:02:01 fever postfix/cleanup[12126]: A8E732A0032: message-id=<20161119140201.A8E732A0032@fever.havannah.local> Nov 19 16:02:01 fever postfix/qmgr[11186]: A8E732A0032: from=<mynixm...@gmail.com>, size=726, nrcpt=1 (queue active) Nov 19 16:02:01 fever postfix/local[12128]: A8E732A0032: to=<root@fever.havannah.local>, orig_to=<root>, relay=local, delay=0.17, delays=0.12/0.01/0/0.05, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -a "$DOMAIN") Nov 19 16:02:01 fever postfix/qmgr[11186]: A8E732A0032: removed Nov 19 16:14:07 fever postfix/master[11168]: terminating on signal 15 Nov 19 16:14:12 fever postfix/master[12594]: daemon started -- version 2.11.3, configuration /etc/postfix Nov 19 16:14:16 fever postfix/smtpd[12615]: warning: No server certs available. TLS won't be enabled Nov 19 16:14:16 fever postfix/smtpd[12615]: connect from unknown[10.0.0.41] Nov 19 16:14:16 fever postfix/smtpd[12615]: warning: SASL authentication failure: unable to canonify user and get auxprops Nov 19 16:14:16 fever postfix/smtpd[12615]: warning: unknown[10.0.0.41]: SASL DIGEST-MD5 authentication failed: authentication failure Nov 19 16:14:17 fever postfix/smtpd[12615]: lost connection after AUTH from unknown[10.0.0.41] Nov 19 16:14:17 fever postfix/smtpd[12615]: disconnect from unknown[10.0.0.41] Nov 19 16:16:59 fever postfix/smtpd[12663]: warning: No server certs available. TLS won't be enabled Nov 19 16:16:59 fever postfix/smtpd[12663]: connect from fever.havannah.local[10.0.0.5] Nov 19 16:17:49 fever postfix/smtpd[12663]: warning: fever.havannah.local[10.0.0.5]: SASL PLAIN authentication failed: bad protocol / cancel Nov 19 16:18:35 fever postfix/smtpd[12663]: warning: SASL authentication failure: Password verification failed Nov 19 16:18:35 fever postfix/smtpd[12663]: warning: fever.havannah.local[10.0.0.5]: SASL PLAIN authentication failed: authentication failure Nov 19 16:19:40 fever postfix/smtpd[12663]: lost connection after AUTH from fever.havannah.local[10.0.0.5] Nov 19 16:19:40 fever postfix/smtpd[12663]: disconnect from fever.havannah.local[10.0.0.5] ################################################################################################################################################# Here is my main.cf: ################################################################################################################################################# # See /usr/share/postfix/main.cf.dist for a commented, more complete version smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no inet_interfaces = 10.0.0.5,127.0.0.1 # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h alias_maps = hash:/etc/postfix/aliases alias_database = hash:/etc/postfix/aliases.db smtp_generic_maps = hash:/etc/postfix/generic smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd canonical_maps = hash:/etc/postfix/canonical virtual_alias_maps = hash:/etc/postfix/virtual myorigin = /etc/mailname mydestination = fever.havannah.local, localhost.local, localhost mynetworks = 127.0.0.0/8 10.0.0.0/24 mailbox_command = /usr/bin/procmail -a "$DOMAIN" mailbox_size_limit = 0 recipient_delimiter = + #smtp_sasl_mechanism_filter = login relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes ;;;I added this smtpd_sasl_auth_enable = yes ;;;and this smtp_sasl_security_options = noanonymous ;;;and this smtpd_sasl_security_options = noanonymous ;;;and this smtp_use_tls = yes ;;;and this smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt smtpd_tls_security_level = smtp_sasl_mechanism_filter = plain, login ;;;and this #smtp_tls_mandatory_protocols = TLSv1 #smtp_tls_mandatory_ciphers = high #smtp_tls_secure_cert_match = nexthop smtpd_enforce_tls = no disable_dns_lookups = no #notify_classes = bounce, 2bounce, delay, policy, protocal, resource, software #always_bcc = root@fever.havannah.local delay_warning_time = 1m #bouncing bounce_queue_lifetime = 1d #mailbox size message_size_limit = 20480000 smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination permit_sasl_authenticated smtpd_relay_restrictions = permit_mynetworks reject_unauth_destination permit_sasl_authenticated broken_sasl_auth_clients = yes ;;;and this ############################################################################################################################################# And in mutt I have this: ############################################################################################################################################# set smtp_url="smtp://username@10.0.0.5:25" set smtp_pass="password" set ssl_starttls=no ############################################################################################################################################# Any pointers? Thank you Danny