birmingham@ic.fbi.gov , phoenix@ic.fbi.gov , fbise@leo.gov
NickSoft Linux Cookbook Index NickSoft Linux Cookbook
Quick howto's, Real live examples.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


saslauthd+SQL auth using Dovecot on redhat based distros

 
Post new topic   Reply to topic    NickSoft Linux Cookbook Index -> IMAP/POP3 servers
View previous topic :: View next topic  
Author Message
NickSoft
Site Admin


Joined: 13 Nov 2006
Posts: 22

PostPosted: Sun Apr 29, 2007 2:46 pm    Post subject: saslauthd+SQL auth using Dovecot on redhat based distros Reply with quote

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>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NickSoft Linux Cookbook Index -> IMAP/POP3 servers All times are GMT
Page 1 of 1

 
Jump to:  
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




MLDb.org Magic Eight Ball Croler Web Search Croler Web Directory Bianca Ryan MyBestMatch.net Microlab.info Digger Services Sofia

Powered by 220V

AbuseIPDB Contributor Badge