CentOS

sendmail auth login

1. Intro

sendmail auth login을 해보자

 

2. Setup sendmail

vi /etc/mail/sendmail.mc ; 주석 해제

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

sendmail restart

service sendmail restart

saslauthd start

/etc/init.d/saslauthd start

 

3. Connection Test

telnet [mail server ip] 25
220 ESMTP Hello! Sendmail

ehlo aaa

250-Hello! Sendmail
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-PIPELINING
250 8BITMIME

auth login

334 VXNlcm5hbWU6    # ID

dXNlcjI=            # ID : Base64 Encoding

334 UGFzc3dvcmQ6    # PW

dXNlcjI=            # PW : Base64 Encoding

235 OK
Back To Top