Posted: Sun Apr 29, 2007 2:46 pm Post subject: saslauthd+SQL auth using Dovecot on redhat based distros
Many people have installed cyrus-sasl and cyrus-sasl-sql packages and they can't make make saslauthd to use SQL auth. A workaround is to use Dovecot's SQL authentication.
First edit /etc/sysconfig/saslauthd and change MECH to this:
Code:
# Mechanism to use when checking passwords. Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled to use.
#MECH=shadow
MECH="rimap -O 127.0.0.1"
# Additional flags to pass to saslauthd on the command line. See saslauthd(8)
# for the list of accepted flags.
FLAGS=-r
Some redhat issues. Init script for redhat has this test around line 31:
Code:
if test -x ${path}.${MECH} ; then
path=/usr/sbin/saslauthd.$MECH
fi
This way you will see an bash error when you invoke this script. To fix this put quotes like this:
Code:
if test -x "${path}.${MECH}" ; then
path=/usr/sbin/saslauthd.$MECH
fi
For non redhat distros just change your auth to rimap:
saslauthd -a rimap -O 127.0.0.1 -r <other options>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum