歡迎您光臨本站 註冊首頁

postfix的smtp的密碼不能通過認證!

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

postfix的smtp的密碼不能通過認證!

第一次裝postfix .安裝過程比較順利.把所有的服務啟動后測試時,pop3 是OK的,但發郵件時卻發現正確輸入密碼后不能通過認證.我的資料庫是mysql 5.0.16的.不知哪位使用mysql 5.0.X與Postfix 實施的.有沒有碰到這個問題.
是不是MYSQL的板本問題呢.在mysql 5.0.下應注意什麼呢?

maillog 中的錯誤提示:
Dec  8 14:20:55 test  postfix/smtpd: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Dec  8 14:20:55 test postfix/smtpd: warning: unknown: SASL LOGIN authentication failed

這是messages中的提示:
Dec  8 14:18:55 test postfix/smtpd: SQL engine 'mysql' not supported
Dec  8 14:18:55 test postfix/smtpd: auxpropfunc error -4
Dec  8 14:20:54 test postfix/smtpd: SQL engine 'mysql' not supported
Dec  8 14:20:54 test postfix/smtpd: auxpropfunc error -4

[ 本帖最後由 jacky_hui 於 2006-12-8 14:51 編輯 ]
《解決方案》

點型 的SASL認證庫未設好!
《解決方案》

原帖由 jacky_hui 於 2006-12-8 14:49 發表
第一次裝postfix .安裝過程比較順利.把所有的服務啟動后測試時,pop3 是OK的,但發郵件時卻發現正確輸入密碼后不能通過認證.我的資料庫是mysql 5.0.16的.不知哪位使用mysql 5.0.X與Postfix 實施的.有沒有碰到這個問 ...
postfix不支持sql吧!重新編譯一下postfix問題就解決了
《解決方案》

smtpd.conf內容是什麼?
《解決方案》

原帖由 scyzxp 於 2006-12-9 16:14 發表

postfix不支持sql吧!重新編譯一下postfix問題就解決了
我裝的是postfix-2.4-20061203.mysql是OK的,pop3調用mysql中的用戶密碼是OK的.有人試過這最新板本的安裝嗎?

主機在公司的,現在看不到.smtpd.conf內容.反下是按論壇上的文檔做上去的.

saslauthd server:是指哪個文件呢?在什麼位置?SASL我是裝了.cyrus-sasl-2.1.20.tar.tar

warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory

[ 本帖最後由 jacky_hui 於 2006-12-11 21:58 編輯 ]
《解決方案》

跟我遇到的問題一樣.我都問了N天了.也沒解決.
《解決方案》

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 www.test.com ESMTP  "smtp is ok"
ehlo test@test.com
250-www.test.com
250-PIPELINING
250-SIZE 14336000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
quit
221 Bye
Connection closed by foreign host.

POP3 test :

#  telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user test@test.com
+OK Password required.
pass aaa
+OK logged in.
quit
+OK Bye-bye.
Connection closed by foreign host.


******************************
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
有這二句出現是不是代表SASL的認證已經生效了.但為什麼用Outlook 發郵件時就是一直提示輸入密碼.輸入正確的密碼也不起作用.但POP3也是通過讀Mysql的用戶數據認證的.是OK的.看了一下maillog :

Dec 12 09:21:07  postfix/smtpd: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Dec 12 09:21:07  postfix/smtpd: warning: unknown: SASL LOGIN authentication failed
Dec 12 09:21:07  postfix/smtpd: lost connection after AUTH from unknown
Dec 12 09:21:07  postfix/smtpd: disconnect from unknown


Dec 11 11:21:04 dbpi postfix/smtpd: warning: SASL authentication problem: unknown password verifier
Dec 11 11:21:04 dbpi postfix/smtpd: warning: unknown: SASL LOGIN authentication failed
Dec 11 11:21:04 dbpi postfix/smtpd: lost connection after AUTH from unknown
Dec 11 11:21:04 dbpi postfix/smtpd: disconnect from unknown
《解決方案》

可否把main.cf 和smtpd.confm內容貼出來共享一下?
《解決方案》

就是置頂中COPY下來的.
main. cf
#=====================BASE=========================
myhostname = www.test.com
mydomain = test.com
myorigin = $mydomain
mydestination = $myhostname localhost localhost.$mydomain
mynetworks = 127.0.0.0/8
inet_interfaces = all

#=====================Vritual Mailbox settings=========================
virtual_mailbox_base = /var/mailbox
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
virtual_transport = maildrop
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1

#====================QUOTA========================
message_size_limit = 14336000
virtual_mailbox_limit = 20971520
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes

#====================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_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner=$myhostname ESMTP "Version not Available"
smtpd_banner=$myhostname ESMTP  "smtp is ok"

***************************************************
smtpd.conf
pwcheck_method:authdaemond
log_level:3
srp_mda:md5
password_format:crypt
mech_list:PLAIN LOGIN
authdaemond_path: /usr/local/var/spool/authdaemon/socket

有沒有高人發表一下意見呀.是哪引起上面的錯誤?
《解決方案》

cat /usr/local/lib/sasl2/smtp.conf

[火星人 ] postfix的smtp的密碼不能通過認證!已經有690次圍觀

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