看了 n 份文件,還是搞不定,
只好上來問了。
安裝環境:Debian Testing
安裝套件:
- 代碼: 選擇全部
postfix postfix-tls ipopd libsasl2-modules sasl2-bin
/etc/default/saslauthd 內容:
- 代碼: 選擇全部
# This needs to be uncommented before saslauthd will be run automatically
START=yes
# You must specify the authentication mechanisms you wish to use.
# This defaults to "pam" for PAM support, but may also include
# "shadow" or "sasldb", like this:
# MECHANISMS="pam shadow"
MECHANISMS="pam"
/etc/postfix/main.cf 內容:(節錄)
- 代碼: 選擇全部
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
/etc/postfix/master.cf 內容:(節錄)
- 代碼: 選擇全部
smtp inet n - n - - smtpd -v
smtp unix - - n - - smtp
/etc/postfix/sasl/smtpd.conf 內容:
- 代碼: 選擇全部
pwcheck_method: saslauthd
重新開機後也有下達:
chown -R postfix:postfix /var/run/saslauthd
但是還是無法使用 SMTP AUTH 寄信。
/var/log/mail.log 內容:(節錄)
- 代碼: 選擇全部
> unknown[192.168.1.11]: 220 mail ESMTP Postfix (Debian/GNU)
connect from unknown[192.168.1.11]
watchdog_pat: 0x8064350
< unknown[192.168.1.11]: EHLO tetralet.com.tw
> unknown[192.168.1.11]: 250-mail
> unknown[192.168.1.11]: 250-PIPELINING
> unknown[192.168.1.11]: 250-SIZE 10240000
> unknown[192.168.1.11]: 250-VRFY
> unknown[192.168.1.11]: 250-ETRN
> unknown[192.168.1.11]: 250-AUTH NTLM LOGIN PLAIN DIGEST-MD5 CRAM-MD5
> unknown[192.168.1.11]: 250-AUTH=NTLM LOGIN PLAIN DIGEST-MD5 CRAM-MD5
> unknown[192.168.1.11]: 250-XVERP
> unknown[192.168.1.11]: 250 8BITMIME
watchdog_pat: 0x8064350
< unknown[192.168.1.11]: AUTH PLAIN AHXXXXXXXXXXXXXXXXXXXX8/
smtpd_sasl_authenticate: sasl_method PLAIN, init_response AHXXXXXXXXXXXXXXXXXXXX8/
smtpd_sasl_authenticate: decoded initial response
warning: SASL authentication failure: Password verification failed
warning: unknown[192.168.1.11]: SASL PLAIN authentication failed
> unknown[192.168.1.11]: 535 Error: authentication failed
watchdog_pat: 0x8064350
Mozilla Mail 的密碼認証視窗一直過不去...
有人可以指點一下嗎?
謝謝!