1. vim /etc/default/saslauthd
PARAMS="-r"
MECHANISMS="rimap -O 192.168.x.x"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
2. vim /etc/postfix/sasl/smtpd.conf
pwcheck_method: auxprop saslauthd
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM
auxprop_plugin: sql
sql_engine: mysql
sql_hostnames: 192.168.x.x
sql_user: xxx
sql_passwd: xxx
sql_database: database mail
sql_select: SELECT password FROM LoginUsers WHERE LoginUser = '%u@%r'
3. Restart service postfix restart, service saslauthd restart
4. Check log mail more detail
vim /etc/postfix/master.cf
smtp inet n - - - - smtpd -v
Ref:
lukasz
No comments:
Post a Comment