While trying to debug a postfix authentication issue in Debian 6, I had to use testsaslauthd to test things out:
testsaslauthd -s smtp -u foo@example.com -p test
only to get the following error:
connect() : No such file or directory 0
This is apparently because a lot of people (and authors) follow the same guide for configuring postfix and saslauthd. One of the steps missing is to symlink and saslauthd directory to a location within postfix. To fix:
- Go to
/var/run
. - Move the saslauthd directory to saslauthd.bak (just as a note):
mv saslauthd saslauthd.bak
- Run the following command to create the symlink:
ln -s /var/spool/postfix/var/run/saslauthd /var/run/saslauthd
- Restart saslauthd for good measure:
/etc/init.d/saslauthd restart
This should fix the error. Good luck!
- Log in to post comments