Mittwoch, 26. März 2008

Debian, postfix und sasl

Wenn man sich mit Debian, postfix und sasl rumärgert und dabei folgende Fehlermeldungen erhält

warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
SASL PLAIN authentication failed: generic failure

dann ist die Lösung ganz einfach. In

/usr/share/doc/sasl2-bin/README.Debian

steht, was zu tun ist:

[...]
Using saslauthd with Postfix:

If you run a chrooted server such as Postfix and wish to use saslauthd, you must place the saslauthd socket ("mux") inside the Postfix chroot. You must also set correct overrides for the run directory inside the chroot, using dpkg-statoverride. Finally, you must add the postfix user to the sasl group. These steps ensure that the Debian subsystems know how you want things to be laid out.

To place the saslauthd socket inside the Postfix chroot, edit
/etc/default/saslauthd
and set OPTIONS like this (you may omit -c):
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"

To set the run directory using dpkg-statoverride, run this command as root:
dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd

Finally, to add the postfix user to the sasl group:
adduser postfix sasl
[...]
-- Fabian Fagerholm , Tue, 14 Nov 2006 14:21:50 +0200

Keine Kommentare: