Re: cannot connect to saslauthd server : no such file or dir?

From: benjamin thielsen (no email)
Date: Sun Jan 02 2005 - 21:09:29 EST

  • Next message: Charles Read: "Re: cannot connect to saslauthd server : no such file or dir?"

    On Jan 02, 2005, at 20.55, Charles Read wrote:

    > Hey everybody!
    >
    > Im thrashing with a Debian sarge postfix install, trying to rig
    > postfix to use 'saslauthd -a pam', when I do 'testsaslauthd -u xxx -p
    > xxx' it returns success. When I connect via an MUA it rejects my
    > passwords and when I check the logs it shows:
    >
    > Jan 2 20:43:33 ip-207-145-0-9 postfix/master[5690]: daemon started --
    > version 2.1.4
    > Jan 2 20:44:03 ip-207-145-0-9 postfix/smtpd[5693]: connect from
    > unknown[24.99.204.76]
    > Jan 2 20:44:03 ip-207-145-0-9 postfix/smtpd[5693]: warning: SASL
    > authentication failure: cannot connect to saslauthd server: No such
    > file or directory
    > Jan 2 20:44:03 ip-207-145-0-9 postfix/smtpd[5693]: warning: SASL
    > authentication failure: Password verification failed
    > Jan 2 20:44:03 ip-207-145-0-9 postfix/smtpd[5693]: warning:
    > unknown[24.99.204.76]: SASL PLAIN authentication failed
    > Jan 2 20:44:04 ip-207-145-0-9 postfix/smtpd[5693]: lost connection
    > after AUTH from unknown[24.99.204.76]
    > Jan 2 20:44:04 ip-207-145-0-9 postfix/smtpd[5693]: disconnect from
    > unknown[24.99.204.76]
    >
    > I am aware the debian postfix runs chrooted and copied over my
    > smtpd.conf to every possible location
    > (/var/spool/postfix/usr/local/lib/sasl2 etc.) which reads:
    >
    > pwcheck_method: sasauthd
    >
    > which I think is working b/c postfix knows to use saslauthd but cant
    > reach it, I have confirmed that saslauthd is running and tested it
    > like said above.
    >
    > Any help appreciated, you guys and gals are great!
    >
    > Thanks!
    >
    > Charles Read

    the postfix smtpd daemon cannot talk to saslauthd because postfix is
    jailed. i had to edit /etc/init.d/saslauthd to include:

    PARAMS="-m /var/spool/postfix/var/run/saslauthd"

    keep in mind i'm not using sasl for anything other than postfix. this
    might not be where you want things if sasl is used by other processes..

    and of course setup the necessary directories to accommodate the above:

    mkdir /var/spool/postfix/var/
    mkdir /var/spool/postfix/var/run/
    mkdir /var/spool/postfix/var/run/saslauthd
    chown -R root:sasl /var/spool/postfix/var/

    you might have to add postfix to the sasl group as well - i'm sure
    someone will chime in if this is not necessary.
    adduser postfix sasl

    once things are working, you should see some *mux* files in
    /var/spool/postfix/var/run/saslauthd/

    i hope this helps.

    -ben


  • Next message: Charles Read: "Re: cannot connect to saslauthd server : no such file or dir?"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD