當telnet localhost 25
ehlo localhost 后顯示如下:
telnet 0 25
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
220 server xxxxxx ESMTP Postfix
ehlo localhost
250-xxxxxxxx
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
[color=red]250-AUTH LOGIN PLAIN OTP
250-AUTH=LOGIN PLAIN OTP [/color]
250-XVERP
250 8BITMIME
[color=red]250-AUTH LOGIN PLAIN OTP
250-AUTH=LOGIN PLAIN OTP [/color]
當有這個時.這是表示你的smtpd認證可以了..
我的/usr/local/sasl2/smtpd.conf 如下:
pwcheck_method: pam
我的/etc/pam.d/smtp 如下:
auth sufficient pam_mysql.so user=postfix passwd=liubinw host=localhost db=mail table=virtual_users usercolumn=id passwdcolumn=password crypt=1
account required pam_mysql.so user=postfix passwd=liubinw host=localhost db=mail table=virtual_users usercolumn=id passwdcolumn=password crypt=1
在/etc/postfix/main.cf下加入以下:
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated permit_auth_destination reject
#smtpd_sasl_local_domain = $mydomain
smtpd_client_restrictions = permit_sasl_authenticated
可是當我在outlook里選擇了"我的外寄伺候器(smtp)需要認證" 時
我的用戶發送郵件就會失敗,總是提示輸入用戶密碼!!!! 也就是說smtpd認證失敗!!
當我不選擇時就可以了解!!!!
請問我要怎麼做才行了??? 請教各位??
毛天吹 回复于:2003-10-24 07:48:35
請問我要怎麼做才行了??? 請教各位??
毛天吹 回复于:2003-10-24 08:43:16
我用sasapasswd -c username 加了一個用戶后.在outlook里選擇了"我的外寄伺候器(smtp)需要認證" 時.用戶發送郵件ok! 這是不是表示我的postfix smtpd認證!不是用的mysql用戶而是用的是sasldb.里的.. 這是怎麼回事了!! 還有為什麼我在outlook里不選擇"我的外寄伺候器(smtp)需要認證" 它也可發郵件..真奇怪!!!
毛天吹 回复于:2003-10-24 17:20:16
哞!!! 我還沒有搞定了!!
毛天吹 回复于:2003-10-27 08:34:53
我搞定了..好高興了. 看來還是要靠自已...
bsdunix 回复于:2003-10-28 17:56:29
怎么搞定的,老大?
毛天吹 回复于:2003-11-01 08:13:59
我用的是系統自有的.cyrus-sasl了就可以..
安裝二進包不行了..
anstan 回复于:2004-07-23 14:09:22
telnet 127.0.0.1 25
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
220 server xxxxxx ESMTP Postfix
为什么我配置完了,telenet后,到这里就不行了?
能写一篇详细一点的文章吗?
skyzt 回复于:2006-06-02 14:34:17
请问老大,我用的是postfix,认证也没有问题(我用的sasl ,有测试可以验证成功),但是用outlook总是提示imap认证密码错误
Aryang 回复于:2006-07-22 02:31:47
引用:原帖由 anstan 于 2004-7-23 14:09 发表
telnet 127.0.0.1 25
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
220 server xxxxxx ESMTP Postfix
为什么我配置完了,telenet后,到这里就不行了?
能写一篇详细一点的文章吗?
看看日志,如果你启用了sasl认证,在这里出问题估计是sasl相关配置的问题,日志里应该有相关的出错信息
|