- 论坛徽章:
- 0
|
當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
250-AUTH LOGIN PLAIN OTP
250-AUTH=LOGIN PLAIN OTP
250-XVERP
250 8BITMIME
250-AUTH LOGIN PLAIN OTP
250-AUTH=LOGIN PLAIN OTP
當有這個時.這是表示你的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認證失敗!!
當我不選擇時就可以了解!!!!
請問我要怎麼做才行了??? 請教各位?? |
|