- Install OpenBSD postfix-sasl package, enable postfix and configure it
- Let saslauthd start at boot and add the following to your /etc/rc.local
# SASL2 Authentication Daemon
# This configuration sets saslauthd to use the system password file.
if [ -x /usr/local/sbin/saslauthd ]; then
echo -n ' sasl2';/usr/local/sbin/saslauthd -a getpwent -m /var/spool/postfix/var/run/sasl2/
fi
- Copy smtpdsasl2.conf to /etc/postfix and /usr/local/lib/sasl2/smtpd.conf. Both folders? I recommend to have it also in /etc/postfix for different reasons like backups, reinstallation etc.
- Create the directory /var/spool/postfix/var/run/sasl2
- Uncomment the smtps line in /etc/postfix/master.cf
- Add the following line in /etc/services:
smtps 465/tcp
- Reload postfix with "sudo postfix reload"
- Start saslauthd with
sudo /usr/local/sbin/saslauthd -a getpwent -m /var/spool/postfix/var/run/sasl2/
SSL encrypted SMTP Auth should work now.