Posted in Howto Linux Postfix Security

Postfix chroot + SASL authentication (saslauthd)

November 18, 2006 - 1 comment

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 : http://www.wains.be/pub/postfix-chroot

Comments

Benji

July 7, 2008 - 3:03

Was exactly what i was looking for! thanks. :)

Leave Comment

Please consider visiting the partners below if you enjoyed this article :

If this post saved you time and money, please consider checking my Amazon wishlist.

Before submitting, some rules :
- Is your comment related to the article ?
- You're having a problem ? Have you checked Google, other howtos, docs, manpages ?
- You're still having the problem ? Have you raised log verbosity, checked traces, ran tcpdump ?
- Have you checked your configuratoin for typo ?
Unless your comment is providing additional info or respect the rules above, DON'T comment.
If you don't understand what you are doing, I urge you to read the documentation, I'm not your free Level 1 helpdesk guy.