作者fxsh70133 (小峰)
看板FreeBSD
标题Re: [问题] sasl问题
时间Fri Jun 13 13:46:42 2008
※ 引述《chiouss (Heart-shaped chant)》之铭言:
: ※ 引述《fxsh70133 (小峰)》之铭言:
: : Jun 13 03:15:40 harry2 postfix/smtpd[30188]: warning: SASL authentication
: : failure: Could not open db
: 你的 db 没有建阿...
: http://www.postfix.org/SASL_README.html#server_cyrus
我做了以下sasl的设定:
在 /usr/local/etc/postfix/main.cf 下加入
#enable SASL support in the Postfix SMTP server:
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_path = smtpd
smtpd_sasl_local_domain = $myhostname
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
#In order to allow mail relaying by authenticated remote SMTP clients
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,
reject_unauth_destination
#To report SASL login names in Received: message headers
smtpd_sasl_authenticated_header = yes
在 /usr/local/lib/sasl2/smtpd.conf下加入
#To authenticate against Cyrus SASL's own password database:
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: PLAIN LOGIN
#CRAM-MD5 DIGEST-MD5
接下来输入
saslpasswd2 -c -u 140.113.0.0/16 fxsh70133 输入密码後
在用这个指令判断是否建立 sasldblistusers2
[email protected]/16: userPassword
但是我的database还是开不起来,我不确定他这边建的database的位置在哪边,还有
在这个指令auxprop_plugin: sasldb,它是用哪个位置的database??
以下是我的/var/log/maillog
Jun 13 05:00:05 harry2 postfix/smtpd[30786]: connect from
jack.Dorm9.NCTU.edu.tw
[140.113.95.40]
Jun 13 05:00:05 harry2 postfix/smtpd[30786]: setting up TLS connection from
jack.Dorm9.NCTU.edu.tw[140.113.95.40]
Jun 13 05:00:05 harry2 postfix/smtpd[30786]: TLS connection established from
jack.Dorm9.NCTU.edu.tw[140.113.95.40]: TLSv1 with cipher RC4-MD5 (128/128
bits)
Jun 13 05:00:05 harry2 postfix/smtpd[30786]: warning: SASL authentication
failure: Could not open db
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.95.40
※ 编辑: fxsh70133 来自: 140.113.95.40 (06/13 15:45)
※ 编辑: fxsh70133 来自: 140.113.95.40 (06/13 15:47)