作者fxsh70133 (小峰)
看板FreeBSD
标题Re: [问题] sasl问题
时间Fri Jun 13 23:40:48 2008
※ 引述《fxsh70133 (小峰)》之铭言:
: ※ 引述《chiouss (Heart-shaped chant)》之铭言:
: : 你的 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
> > 在用这个指令判断是否建立 sasldblistusers2
> > [email protected]/16: userPassword
> > 但是我的database还是开不起来,我不确定他这边建的database的位置在哪边,还有
> > 在这个指令auxprop_plugin: sasldb,它是用哪个位置的database??
> 1. 你是要开放谁可以从外面寄信?
> 2. 你确实搞清楚那上设定档上的每个选项了吗?
在 /usr/local/lib/sasl2/smtpd.conf下加入
pwcheck_method: auxprop
auxprop_plugin: sasldb2
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
然後输入 saslpasswd2 -c -u jack.dorm9.nctu.edu.tw fxsh70133
这是指如果在jack.dorm9.nctu.edu.tw这个domain寄信的使用者
帐号是fxsh70133密码是刚刚输入的话,就能够登入寄信
但我用outlook寄信以後,已经可以查到databse了,但还是无法验证通过
Jun 13 08:26:08 harry2 postfix/master[32322]: daemon started -- version
2.4.6, configuration /usr/local/etc/postfix
Jun 13 08:26:08 harry2 postfix/smtpd[32325]: connect from jack.Dorm9.NCTU.edu.
tw
[140.113.95.40]
Jun 13 08:26:08 harry2 postfix/smtpd[32325]: setting up TLS connection from
jack.Dorm9.NCTU.edu.tw[140.113.95.40]
Jun 13 08:26:08 harry2 postfix/smtpd[32325]: TLS connection established from
jack.Dorm9.NCTU.edu.tw[140.113.95.40]: TLSv1 with cipher RC4-MD5 (128/128 bits
)
Jun 13 08:26:08 harry2 postfix/smtpd[32325]: warning:
jack.Dorm9.NCTU.edu.tw[140
.113.95.40]: SASL LOGIN authentication failed: authentication failure
Jun 13 08:26:08 harry2 postfix/smtpd[32325]: lost connection after AUTH from
jack.Dorm9.NCTU.edu.tw[140.113.95.40]
Jun 13 08:26:08 harry2 postfix/smtpd[32325]: disconnect from jack.Dorm9.NCTU.e
du.tw[140.113.95.40]
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.95.40