authentication not enabled | postfix

February 13, 2015 5.8k views

When sending a test mail from my wordpress newsletter plugin i get the error
AUTH command failed: 503 5.5.1 Error: authentication not enabled
My system has Ubuntu and postfix

When i try the command it outputs :

/etc/postfix$ postconf | grep smtpd_sasl_auth_enable
smtpd_sasl_auth_enable = no

But when looking at my master.cf
i see

# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#smtp      inet  n       -       -       -       1       postscreen
#smtpd     pass  -       -       -       -       -       smtpd
#dnsblog   unix  -       -       -       -       0       dnsblog
#tlsproxy  unix  -       -       -       -       0       tlsproxy
submission inet n       -       -       -       -       smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_wrappermode=no
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=
#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o syslog_name=postfix/smtps
#  -o smtpd_tls_wrappermode=yes
   -o smtpd_sasl_auth_enable=yes
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions

Already tried a reload
Also in the var/log/mail.log i am seeing:

Feb 13 07:06:45 cheapmailing postfix/smtpd[13646]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Feb 13 07:06:45 cheapmailing postfix/smtpd[13646]: connect from unknown[my.dropplets.ip.address]
Feb 13 07:06:45 cheapmailing postfix/smtpd[13646]: disconnect from unknown[my.dropplets.ip.address]
2 Answers

This is odd. The postconf tool can also be used to configure settings in addition to just viewing them. I would try the following to attempt to change the setting:

sudo postconf -e 'smtpd_sasl_auth_enable = yes'
sudo service postfix reload

and then check if the configuration variable has changed.

This didn't work for me.

I am having the worst trouble trying to setup postfix/dovecot behind a Comcast residential gateway (SMTP port 25 block).

503 5.5.1 Error: authentication not enabled

Here's some of the "/etc/postfix/master.cf":

smtp inet n - - - 1 postscreen smtpd pass - - - - - smtpd dnsblog unix - - - - 0 dnsblog tlsproxy unix - - - - 0 tlsproxy submission inet n - - - - smtpd

-o syslogname=postfix/submission
-o smtpd
tlssecuritylevel=encrypt
-o smtpdsaslauth_enable=yes

-o smtpdrejectunlisted_recipient=no -o smtpdclientrestrictions=$muaclientrestrictions -o smtpdhelorestrictions=$muahelorestrictions -o smtpdsenderrestrictions=$muasenderrestrictions -o smtpdrecipientrestrictions=

-o smtpdrelayrestrictions=permitsaslauthenticated,reject

-o miltermacrodaemon_name=ORIGINATING

587 inet n - - - - smtpd
-o syslog_name=postfix/smtps

-o smtpdtlswrappermode=yes

-o smtpdsaslauth_enable=yes

-o smtpdrejectunlisted_recipient=no -o smtpdclientrestrictions=$muaclientrestrictions -o smtpdhelorestrictions=$muahelorestrictions -o smtpdsenderrestrictions=$muasenderrestrictions

---- Here's some of the "/etc/postfix/main.cf" modifications made following this article (https://samhobbs.co.uk/2013/12/raspberry-pi-email-server-part-2-dovecot):

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailboxsizelimit = 0
recipientdelimiter = +
inet
interfaces = all
inet_protocols = ipv4

homemailbox = Maildir/
mailbox
command =

smtpdrecipientrestrictions =
permitsaslauthenticated,
permitmynetworks,
reject
unauth_destination

smtpdhelorequired = yes
smtpdhelorestrictions =
permitmynetworks,
permit
saslauthenticated,
reject
invalidhelohostname,
rejectnonfqdnhelohostname,
rejectunknownhelohostname
check
heloaccess hash:/etc/postfix/heloaccess

smtpdsasltype = dovecot
smtpdsaslpath = private/auth
smtpdsaslauth_enable = yes

-- Comcast SMTP Relay

relayhost = [smtp.comcast.net]:587
smtpsaslauthenable = yes
smtp
saslpasswordmaps =
hash:/etc/postfix/smtppasswd
smtp
saslsecurityoptions = noanonymous
smtpsasltlssecurityoptions = noanonymous


I have had the AUTH PLAIN, IMAP, and relay host working today already, but something has broken it.

Also, the messages accepted in the relay never delivered, but they were accepted by a 3rd party, Comcast, relay, which would have delivered the message even if my networking wasn't correct, I'd assume, no?

Please advise for what you need to assist in troubleshooting.

Thanks!

Have another answer? Share your knowledge.