歡迎您光臨本站 註冊首頁

配置postfix的sasl出現問題

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

配置postfix的sasl出現問題

是這樣的,小弟按照 http://workaround.org/articles/ispmail-etch/#test-imap 這篇帖子配置一個postfix的郵件伺服器,到Step 9: Authenticated SMTP 之前都是沒有問題的,所有的測試都是可以通過的,並且可以收發郵件。但是在繼續配置之後~也就是Step 9: Authenticated SMTP。總是不能通過認證。!!

root@sharepoint:~# telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.zlyzwy.3322.org ESMTP Postfix (Debian/GNU)
ehlo zlyzwy.3322.org
250-mail.zlyzwy.3322.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5
250-AUTH=PLAIN LOGIN DIGEST-MD5 CRAM-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth plain d2lsbGlhbUB6bHl6d3kuMzMyMi5vcmcAd2lsbGlhbUB6bHl6d3kuMzMyMi5vcmcAODE0MzM1
535 5.7.0 Error: authentication failed:

然後我查看了mail.log
Oct 30 11:32:37 sharepoint postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 30 11:32:37 sharepoint postfix/smtpd: connect from sharepoint.zlyzwy.3322.org
Oct 30 11:33:03 sharepoint postfix/smtpd: warning: sharepoint.zlyzwy.3322.org: SASL plain authentication failed:
Oct 30 11:33:10 sharepoint postfix/smtpd: warning: non-SMTP command from sharepoint.zlyzwy.3322.org: root@sharepoint:~# telnet localhost smtp
Oct 30 11:33:10 sharepoint postfix/smtpd: disconnect from sharepoint.zlyzwy.3322.org


再看我的main.cf文件
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
inet_interfaces = all
myhostname = mail.zlyzwy.3322.org
mydomain = zlyzwy.3322.org
mydestination =


virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
#smtpd_use_tls = yes

virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
mynetworks = 192.168.1.0/24


dovecot配置文件, 在附件中!!



請各位幫忙看看~~多謝了~~~
《解決方案》

頂上去一次~~
《解決方案》

Are you using  NIS ?

" NIS lookups disabled " is shown up in log file.
please have a check

[火星人 ] 配置postfix的sasl出現問題已經有464次圍觀

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