Network Troubleshooting

From 5dollarwhitebox.org Media Wiki

Jump to: navigation, search

Generating string for AUTH PLAIN:=

Create a base64 encoded auth string:

[root@linuxbox ~]# python
>>> import base64
>>> base64.encodestring('\000<username>\000<password>')
'AG1p2YucwqdihdZvnTk4OQ==\n'

Grab all but the \n and single-quotes.


Test SMTP:

linuxbox:] telnet mail.domain.com 25

Trying 72.32.19.226...
Connected to mail.domain.com.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250 8BITMIME
AUTH PLAIN
334
<insert base64 encoded auth string>
235 Authentication successful
quit
221 Bye
Connection closed by foreign host.
Personal tools