- 论坛徽章:
- 0
|
本帖最后由 WilliamChan 于 2012-03-15 15:28 编辑
SUSE11 上配置Sendmail,在添加SMTP验证后,在OE客户端上勾选需要验证选项后,发送邮件一直要输入密码,无法通过验证。如果取消改选项,发送接收本域用户邮件无问题。(已经安装cyrus-sasl包)。请各位帮我分析下原因。
我针对SMTP验证所做配置和验证如下:
1./etc/mail/linux.mc文件修改
DAEMON_OPTIONS(`Port=25,Addr=0.0.0.0 Name=MTA')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOG
IN PLAIN')dnl
2./usr/lib/sasl2/下,建立Sendmail.conf文件,里面仅有 pwcheck_method=saslauthd
3./etc/sysconfig/,打开saslauthd,修改为SASLAUTHD_AUTHMECH=shadow
4.用m4重新生成sendmail.cf文件
# m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
验证SMTP配置成功:
# telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 com ESMTP Sendmail 8.14.3/8.14.3/SuSE Linux 0.8; Thu, 15 Mar 2012 15:23:49 +0800
ehlo testsys
250-com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 LOGIN PLAIN
250-DELIVERBY
250 HELP
# sendmail -d0.1 -bv root | grep SASL
NETUNIX NEWDB NIS NISPLUS PIPELINING SASLv2 SCANF SOCKETMAP
看到250-AUTH GSSAPI DIGEST-MD5 LOGIN PLAIN标志,却还是不能使用smtp验证发送邮件 |
|