OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Getting SMTP AUTH to work with SASL2

From: Alexander Skwar (lists.ASkwaremail-server.info)
Date: Sat Apr 05 2003 - 07:25:56 CST


Markus Schabel wrote:

> There are some possibilities: If you run smtpd in chroot
> (debian-default) you should first try to get SASL-AUTH working without
> chroot. I think postfix tries to access the file "mux" which is

Yep, that's correct. The mux file is located in /var/run/saslauthd/.
I've moved this directory to /var/spool/postfix/var/run, so that it is
in the chroot. Next I modified the startup script to put the file in
this directory and replaced the directory /var/run/saslauthd/ with a
link to /var/spool/postfix/var/run/saslauthd/, so that cyrus still
works. And as far as I can tell, cyrus does indeed still work, because
I'm able to login to Cyrus IMAPd which uses SASL.

rootemail-server:/etc/postfix# ls -la /var/run/saslauthd
/var/spool/postfix/var/run/saslauthd/
lrwxrwxrwx 1 root sasl 36 2003-04-04 18:49
/var/run/saslauthd -> /var/spool/postfix/var/run/saslauthd

/var/spool/postfix/var/run/saslauthd/:
insgesamt 12
drwx--x--- 2 cyrus mail 4096 2003-04-04 18:50 .
drwxr-xr-x 4 root root 4096 2003-04-04 18:49 ..
srwxrwxrwx 1 root root 0 2003-04-04 18:50 mux
-rw------- 1 root root 0 2003-04-02 23:27 mux.accept
-rw------- 1 root root 6 2003-04-04 18:50 mux.pid

Alexander Skwar
--
#ifdef STUPIDLY_TRUST_BROKEN_PCMD_ENA_BIT
        2.4.0-test2 /usr/src/linux/drivers/ide/cmd640.c