Hi Viktor,

Thanks for the help!

Postfix is from Ubuntu apt official repo, version is 2.11.

# postconf -d | grep mail_version
mail_version = 2.11.0

I have just tried adding multiple symlinks, restarted postfix and saslauthd but the same error persists,

# ls -lah /usr/lib/sasl2/smtpd.conf
lrwxrwxrwx 1 root root 28 Feb 9 10:35 /usr/lib/sasl2/smtpd.conf -> /etc/postfix/sasl/smtpd.conf

# ls -lah /etc/sasl2/smtpd.conf
lrwxrwxrwx 1 root root 28 Feb 9 10:40 /etc/sasl2/smtpd.conf -> /etc/postfix/sasl/smtpd.conf

# ls -lah /var/lib/sasl2/smtpd.conf
lrwxrwxrwx 1 root root 28 Feb 9 10:41 /var/lib/sasl2/smtpd.conf -> /etc/postfix/sasl/smtpd.conf

Im running chroot'ed postfix:

root@server:~# grep smtp /etc/postfix/master.cf
smtp      inet  n       -       -       -       -       smtpd
#smtp      inet  n       -       -       -       1       postscreen
#smtpd     pass  -       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -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
#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
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=
#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
bsmtp     unix  -       n       n       -       -       pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient


saslauthd option is configured with the chroot'ed path.

root@server:~# cat /etc/default/saslauthd
START=yes
NAME=saslauthd
MECHANISMS="rimap"
#imap server address
MECH_OPTIONS="localhost"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"

# ls -lah /var/spool/postfix/var/run/saslauthd
total 976K
drwx--x--- 2 root sasl 4.0K Feb  9 10:41 .
drwxr-xr-x 3 root root 4.0K Feb  8 23:46 ..
-rw------- 1 root root    0 Feb  9 10:41 cache.flock
-rw------- 1 root root 963K Feb  9 10:41 cache.mmap
srwxrwxrwx 1 root root    0 Feb  9 10:41 mux
-rw------- 1 root root    0 Feb  9 10:41 mux.accept
-rw------- 1 root root    6 Feb  9 10:41 saslauthd.pid

Not sure if Im missing anything.

Thank you so much guys!

Viktor Dukhovni wrote:
On Thu, Feb 09, 2017 at 12:05:08PM -0300, Nick wrote:

Hi Chris,

Thank you for the prompt reply, package its already installed.

What Postfix version?  Is Postfix from the Debian package, or
your own build?

Upthread you mention /etc/postfix/sasl/smtpd.conf, that would not
be used if your Postfix is not modified (e.g. by the Debian release
maintainers) to do that (or perhaps a symlink is expected from
the default location to /etc/postfix/sasl/):

SASL_README:

  * Cyrus SASL version 2.x searches for the configuration file in /usr/lib/
    sasl2/.

  * Cyrus SASL version 2.1.22 and newer additionally search in /etc/sasl2/.

  * Some Postfix distributions are modified and look for the Cyrus SASL
    configuration file in /etc/postfix/sasl/, /var/lib/sasl2/ etc. See the
    distribution-specific documentation to determine the expected location.

    Note

    Cyrus SASL searches /usr/lib/sasl2/ first. If it finds the specified
    configuration file there, it will not examine other locations.

And of course you need to make sure that any chroot settings in
master.cf are compatible with the saslauthd mux socket location.

Reply via email to