Postfix chroot + SASL authentication (saslauthd)


**Scenario : **

You run Postfix non-chrooted with SMTP auth though SASL authentication (using saslauthd)

The issue :

When chrooted, Postfix needs access to saslauthd sock file, which is not in the chroot area

The fix :

We consider Postfix chroot is under /var/spool/postfix

mkdir -p /var/spool/postfix/var/run mv /var/run/saslauthd /var/spool/postfix/var/run/ ln -s /var/spool/postfix/var/run/saslauthd /var/run

Configure Postfix to run chrooted (script available here :

Thanks for reading this post!

If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!