Re: Postfix + SASL + MySQL...What did I miss?

看板FreeBSD作者時間21年前 (2004/08/02 20:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
It works very well now. I can send and receive mails with Mozilla-Thunderbird(MUA) on Windows XP. I have add these configs: # cat /usr/local/lib/sasl2/smtpd.conf pwcheck_method: saslauthd mech_list: plain login # cat /usr/local/etc/imapd.conf sasl_auxprop_plugin: sql sasl_sql_engine: mysql sasl_sql_hostnames: localhost sasl_sql_user: mail sasl_sql_passwd: ***** sasl_sql_database: mail sasl_sql_statement: select PASSWORD from user where USERNAME = '%u' sasl_sql_verbose: true # cat /etc/pam.d/smtp auth required pam_mysql.so user=mail passwd=***** host=localhost db=mail table=user usercolumn=USERNAME passwdcolumn=PASSWORD crypt=0 sqllog=0 account sufficient pam_mysql.so user=mail passwd=***** host=localhost db=mail table=user usercolumn=USERNAME passwdcolumn=PASSWORD crypt=0 sqllog=0 By the way, there is no accounst/passwords in /usr/local/etc/sasldb2, but MySQL does. And I add a new account, it can send and receive mails with Mozilla-ThunderBird on Windows XP. So HAYYP now,,I have been fighting with it for almost two months!! Many thanks for the helps!!
文章代碼(AID): #113Yq400 (FreeBSD)
文章代碼(AID): #113Yq400 (FreeBSD)