authentication not enabled | postfix

February 13, 2015 3.7k 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]
1 Answer

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.

Have another answer? Share your knowledge.