Last active
January 26, 2016 16:01
-
-
Save hugsbrugs/bf2c28a03d5690ac4c97 to your computer and use it in GitHub Desktop.
How to about linux tenelt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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