首页 > 默认 > ZT: SMTP AUTH with sendmail in centos.. 504 5.3.3 AUTH mechanism LOGIN not available

ZT: SMTP AUTH with sendmail in centos.. 504 5.3.3 AUTH mechanism LOGIN not available

2014年12月30日 admin

satyadev75 07-03-2013 03:09 AM

--------------------------------------------------------------------------------

SMTP AUTH with sendmail in centos.. 504 5.3.3 AUTH mechanism LOGIN not available
 
Hello ,
I tried to install sendmail with smtp auth. I followed this steps

#yum install sendmail-cf

Then edited /etc/mail/sendmail.mc

TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

define(`confCACERT_PATH’, `/etc/pki/tls/certs’)dnl
define(`confCACERT’, `/etc/pki/tls/certs/ca-bundle.crt’)dnl
define(`confSERVER_CERT’, `/etc/pki/tls/certs/sendmail.pem’)dnl
define(`confSERVER_KEY’, `/etc/pki/tls/certs/sendmail.pem’)dnl

#make sendmail.pem

# cd /etc/mail
# m4 sendmail.mc > sendmail.cf
# service sendmail restart
# service saslauthd restart

# vi /etc/sysconfig/saslauthd
SOCKETDIR=/var/run/saslauthd
MECH=pam
FLAGS=
# vi /usr/lib/sasl2/Sendmail.conf
#pwcheck_method:saslauthd
pwcheck_method:auxprop

# saslauthd -v

saslauthd 2.1.23
authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap

#saslpasswd2 -c -u sys1.example.com -a smtpauth test

#sasldblistusers2
test@sys1.example.com: userPassword
#telnet localhost 25
ehlo localhost
250-sys1.example.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
AUTH LOGIN
504 5.3.3 AUTH mechanism LOGIN not available.

Please help me to clear this..
I am very new to this. So , anything i missed in the process or any wrong thing.. please tell me..

satyadev75 07-03-2013 06:11 AM

--------------------------------------------------------------------------------

Got it..
but still i have one issue.

installed cyrus..
#yum install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain

#vi /etc/mail/sendmail.mc
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl

#service sendmail restart

#telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 sys1.example.com ESMTP Sendmail 8.14.4/8.14.4; Wed, 3 Jul 2013 15:16:10 +0530
ehlo sys1.example.com
250-sys1.example.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 LOGIN PLAIN
250-DELIVERBY
250 HELP
AUTH LOGIN
334 VXNlcm5hbWU6
root
334 UGFzc3dvcmQ6
pass
501 5.5.4 cannot decode AUTH parameter pass

(try test password)
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP
AUTH LOGIN
334 VXNlcm5hbWU6
dGVzdA== <username:test>
334 UGFzc3dvcmQ6
dGVzdA== <password:test>
535 5.7.0 authentication failed

i used the following command to encode
#perl -MMIME::Base64 -e 'print encode_base64("test");'
dGVzdA==

Please can you show me a way to login..

 

 

关于作者:

昵称:admin
档案信息:商云方 (yunfang.shang@hand-china.com), HAND技术服务中心
联系方式:你可以通过syfvb@hotmail.com联系作者
点击查看admin发表过的所有文章...
本文永久链接: http://blog.retailsolution.cn/archives/3522

 

 

对本文的评价:

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

 

 

分类: 默认 标签:
本文的评论功能被关闭了.