[ILUG] SASL with postfix and cyrus
jeroen at unfix.org
Tue Apr 3 15:16:25 IST 2007
Bernhard D Rohrer wrote:
> Hi all
> I am trying to run cyrus and postfix with SASL. so far I have managed to
> connect one or the other to saslauthd, but never both at the same time.
> This is due ro postfix's chroot jail. I have not found a way to link
> (soft or hard) the two directories and i have not found a way to tell
> cyrus to use a different directory for the connecting socket. The
> remaining option appears to be to release postfix from it's CHROOT jail
> which i would prefer to avoid.
> anybody know of a different way?
The trick is to store the REAL socket (of saslauthd) in the
/var/spool/postfix/ directory, and symlinking the directory from
/var/run/saslauthd to /var/spool/postfix/var/run/saslauthd.
This way you don't need to alter anything, the socket just gets dropped
in the symlinked directory. I used that for quite some time and it works
but as dovecot now can do the auth I got rid of all cyrus hackery.
More information about the ILUG