1.使用下面的方法或者用户名和密码的机密字符串
[root@mail postfix]# perl -e 'use MIME::Base64; print encode_base64("user1")'
dXNlcjE=

[root@mail postfix]# perl -e 'use MIME::Base64; print encode_base64("123")'
MTIz
2.telnet localhost 25
[root@mail sasl2]# telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.goalgoal.cn ESMTP Postfix
ehlo localhost
250-mail.goalgoal.cn
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth login
334 VXNlcm5hbWU6
dXNlcjE=
334 UGFzc3dvcmQ6
MTIz
235 2.0.0 Authentication successful
mail from:[email protected]
250 2.1.0 Ok
rcpt to:[email protected]
250 2.1.5 Ok
data
354 End data with .
test
.
250 2.0.0 Ok: queued as 8344F280252
quit
221 2.0.0 Bye
Connection closed by foreign host.