歡迎您光臨本站 註冊首頁

配置好postfix+sasl后telnet沒有回顯!

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

配置好postfix+sasl后telnet沒有回顯!

telnet 0 25
沒有成功提示出: 220信息,什麼反映也沒有
# /usr/sbin/postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
inet_interfaces = all
mail_owner = postfix
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = gaoshi.com
myhostname = mailtest.gaoshi.com
mynetworks = 127.0.0.0/8
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_sasl_authenticated permit_auth_destination reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/virtual-alias-maps.sql
virtual_gid_maps = static:501
virtual_mailbox_base = /mail/gaoshi.com/mailbox/
virtual_mailbox_domains = mysql:/etc/postfix/virtual-mailbox-domains.sql
virtual_mailbox_maps = mysql:/etc/postfix/virtual-mailbox-maps.sql
virtual_uid_maps = static:502
#
《解決方案》

把maillog貼出來 檢查自己的maillog
《解決方案》

建議LZ先使用postconf -a看看你的Postfix是不是已經正常載入了sasl~!再檢查一下你的maillog是不是有如下錯誤提示:
Jul 24 14:58:46 wap postfix/smtpd: warning: unsupported SASL server implementation: cyrus
Jul 24 14:58:46 wap postfix/smtpd: fatal: SASL per-process initialization failed
Jul 24 14:58:47 wap postfix/master: warning: process /usr/libexec/postfix/smtpd pid 15000 exit status 1
Jul 24 14:58:47 wap postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

如果是的話~那估計LZ用的是比較新版本的Postfix,比如2.3或者2.4~那就需要重新編譯你的Postfix,編譯的是需要添加一個參數:-DUSE_CYRUS_SASL

具體內容可以參考如下:

今天把postfix升級到2.3.0 之前2.2.10一直使用很好,當然還是按以前的編譯方式,但卻發現smtp不正常,察看log顯示以下錯誤

Jul 24 14:58:46 wap postfix/smtpd: warning: unsupported SASL server implementation: cyrus
Jul 24 14:58:46 wap postfix/smtpd: fatal: SASL per-process initialization failed
Jul 24 14:58:47 wap postfix/master: warning: process /usr/libexec/postfix/smtpd pid 15000 exit status 1
Jul 24 14:58:47 wap postfix/master: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

好生覺得奇怪,察看2.3.0的Change log ,找到原因,原來編譯的時候必須加一個參數,英文是這麼寫的

The Postfix-with-Cyrus-SASL build procedure has
changed. You now need to specify -DUSE_CYRUS_SASL in addition to
-DUSE_SASL_AUTH or else you end up without any Cyrus SASL support.
The error messages are:

    unsupported SASL server implementation: cyrus
    unsupported SASL client implementation: cyrus

原文地址:http://blog.5ilinux.com/archives/2006/07/

[火星人 ] 配置好postfix+sasl后telnet沒有回顯!已經有623次圍觀

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