有人用過cyrus-sasl-sql這個插件嗎?

火星人 @ 2014-03-04 , reply:0


有人用過cyrus-sasl-sql這個插件嗎?

有人用過cyrus-sasl-sql這個插件嗎?
該怎麼設置啊!我都弄了一個星期了!

vi /etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
allowplaintext: 1
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
#sasl_pwcheck_method: auxprop
#auxprop_pugin: sasldb
#
sasl_pwcheck_method: auxprop
auxprop_pugin: sql
sasl_mech_list: PLAIN LOGIN
sasl_sql_engine: mysql
sasl_sql_user: mail
sasl_sql_passwd: secret
sasl_sql_hostname: localhost
sasl_sql_database: mail
sasl_sql_select: SELECT password FROM accountuser WHERE username = '%u@%r' OR (username = '%u' AND domain_name = '')
unixhierarchysep: yes
altnamespace: yes
#
tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
virtdomains: 1
defaultdomain: mail.dalian.com


vi /usr/lib/sasl2/smtpd.conf
#pwcheck_method: saslauthd
#mech_list: plain login
pwcheck_method: auxprop
#auxprop_pugin: sasldb
auxprop_pugin: sql
sql_engine: mysql
sql_user: mail
sql_passwd: secret
sql_hostnames: localhost
sql_database: mail
sql_select: SELECT password FROM accountuser WHERE username = '%u@%r'' OR (username = '%u' AND domain_name = '')
#
mech_list: plain login cram-md5 digest-md5




在線等!~
《解決方案》

不明白在說什麼。路過



[火星人 via ] 有人用過cyrus-sasl-sql這個插件嗎?已經有66次圍觀

http://www.coctec.com/docs/service/show-post-29107.html