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!

Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!