Skip to content

Instantly share code, notes, and snippets.

@hugsbrugs
Last active January 26, 2016 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugsbrugs/bf2c28a03d5690ac4c97 to your computer and use it in GitHub Desktop.
Save hugsbrugs/bf2c28a03d5690ac4c97 to your computer and use it in GitHub Desktop.
How to about linux tenelt
# AUTH LOGIN
# PREPARE YOUR USERNAME / PASSWORD Base64 encoded (@ must be escaped : \@)
$ perl -MMIME::Base64 -e 'print encode_base64("YOUR_USERNAME")'
YOUR_ENCODED_USERNAME
$ perl -MMIME::Base64 -e 'print encode_base64("YOUR_PASSWORD")'
YOUR_ENCODED_PASSWORD
# AUTH PLAIN
$ perl -MMIME::Base64 -e 'print encode_base64("\0YOUR_USERNAME\0YOUR_PASSWORD")'
YOUR_ENCODED_USERNAME_PASSWORD
# TEST
$ telnet mail.domain.com 25
Trying XXX.XXX.XXX.XXX...
Connected to mail.domain.com.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix (Debian/GNU)
ehlo laposte.net
250-mail.domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH LOGIN
334 abcdefghijkl
YOUR_ENCODED_USERNAME
334 abcdefghijkl
YOUR_ENCODED_PASSWORD
# - OR -
AUTH PLAIN
YOUR_ENCODED_USERNAME_PASSWORD
235 2.7.0 Authentication successful
mail from: <contact@domain.com>
250 2.1.0 Ok
rcpt to: <test@laposte.net>
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: Hello you
Life is beautifull
.
250 2.0.0 Ok: queued as 7CDACA0923
quit
221 2.0.0 Bye
Connection closed by foreign host.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment