- 论坛徽章:
- 0
|
[root@centos5postfix sasl2]# cat /etc/sysconfig/saslauthd |grep FLAGS
FLAGS="-r"
[root@centos5postfix sasl2]#
http://www.wains.be/index.php/20 ... -postfix-smtp-auth/
===
Edit 15 dec 2006 :
IMPORTANT NOTICE FOR RHEL/CENTOS 4 USERS
I’m currently installing a mail server under CentOS 4.4 while this guide describes the CentOS 3 way
I thought it did not matter but there’s a small difference with saslauthd..
Under CentOS 4.x you need to add the following line in /etc/sysconfig/saslauthd :
FLAGS="-r"
Without the -r flag, saslauthd would query the MySQL database this way :
25 Query SELECT password FROM mailbox WHERE username = 'admin'
Obviously, the whole email address is stored in the database, with the -r flag, it will query correctly :
26 Query SELECT password FROM mailbox WHERE username = 'admin@example.org'
The man page for saslauthd mentions the -r flag under CentOS 4 only..
-r Combine the realm with the login (with an ’@’ sign in between). e.g. login: “foo” realm: “bar” will get passed as login: “foo@bar”. Note that the realm will still be passed, which may lead to unexpected behavior.
=== |
|