歡迎您光臨本站 註冊首頁

小弟 最近學建POSTFIX。請教大俠

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

小弟 最近學建POSTFIX。請教大俠

最近小弟 正在弄 POSTFIX+SASL2+IMAP+MYSQL
看了不少的參考精華。  
現在小弟 有一個問題想請教大家。
我裝完了SASL2  也裝完了 postfix
之後 telnetl localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.xxx.hk ESMTP Postfix
ehlo localhost
250-mail.xxx.hk
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.
並沒有 發現

250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN

這就是 說明  POSTFIX 登錄 沒有驗證       小弟請教 大俠們 我錯在那裡了   我的系統是AS5  

smtp.conf 配置
pwcheck_method: saslauthd
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/run/saslauthd.pid


main.cf 配置
SASL部分
broken_sasl_auth_clients = yes

smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination,permit

smtpd_sasl_auth_enable = yes

smtpd_sasl_local_domain = $myhostname

smtpd_sasl_security_options = noanonymous

smtpd_sasl_application_name = smtpd

smtpd_banner=$myhostname ESMTP "Version not Available"

大俠們 幫忙啊  小弟急啊 !!:em11: :em11:
《解決方案》

看下maillog里是不是有這句話warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in
《解決方案》

原帖由 ricky.jliu 於 2007-9-1 19:03 發表 http://bbs.chinaunix.net/images/common/back.gif
看下maillog里是不是有這句話warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in


沒有      開始弄的時候  有 這個 提示 。

但是 我 從新 編譯了  POSTFIX 之後 已經 沒有了 。
《解決方案》

貼一下log
《解決方案》

Sep  3 16:37:57 mail postfix/error: 2928811B81C8: to=<root@1x.hk>, orig_to=<root>, relay=none, delay=131756, delays=131756/0.03/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Sep  3 16:27:57 mail postfix/qmgr: 336DF11B81F1: from=<root@1x.hk>, size=295, nrcpt=1 (queue active)
Sep  3 16:27:57 mail postfix/qmgr: warning: connect to transport maildrop: Connection refused
Sep  3 16:27:57 mail postfix/error: 336DF11B81F1: to=<test@1x.hk>, relay=none, delay=9046, delays=9046/0.01/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Connection refusedSep  3 16:37:57 mail postfix/qmgr: 5A45411B81D3: from=<root@1x.hk>, size=39018, nrcpt=1 (queue active)
Sep  3 16:37:57 mail postfix/qmgr: warning: connect to transport maildrop: Connection refused
《解決方案》

不要用root用戶測試
《解決方案》

原帖由 atyu30 於 2007-9-3 22:18 發表 http://bbs.chinaunix.net/images/common/back.gif
不要用root用戶測試


謝謝 哥們  我的 已經 搞好了 。  由於 時間 比較急 。  我去掉了maildrop 一切OK 了。
《解決方案》

這是指Postfix不支持SASL認證?還是說需要編譯安裝SASL?回復 2# ricky.jliu


   

[火星人 ] 小弟 最近學建POSTFIX。請教大俠已經有778次圍觀

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