smtp_auth_test
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| smtp_auth_test [2009/08/06 04:13] – created k2patel | smtp_auth_test [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== SMTP Auth test using TELNET ====== | ====== SMTP Auth test using TELNET ====== | ||
| This is simple but it is very useful procedure to test email functionality. | This is simple but it is very useful procedure to test email functionality. | ||
| + | |||
| + | you need following information to authenticate your self.\\ | ||
| + | base64 encoded value for username and password.\\ | ||
| + | You can generate it using following command.\\ | ||
| + | <code perl> | ||
| + | perl -MMIME:: | ||
| + | perl -MMIME:: | ||
| + | </ | ||
| + | above will return two values based on your input.\\ | ||
| + | look like below. | ||
| + | <code bash> | ||
| + | aW1mb2BhcnRpc4Rwci5jb69= | ||
| + | bWFybWx3bnY= | ||
| + | </ | ||
| First connect to your server using telnet | First connect to your server using telnet | ||
| Line 21: | Line 35: | ||
| 250 AUTH LOGIN PLAIN CRAM-MD5 | 250 AUTH LOGIN PLAIN CRAM-MD5 | ||
| </ | </ | ||
| + | Now initialize Login. | ||
| + | <code bash> | ||
| + | AUTH LOGIN | ||
| + | </ | ||
| + | which will return values like below.\\ | ||
| + | First enter your username and second your password. | ||
| + | <code bash> | ||
| + | 334 VJBlcm9hbWU4 | ||
| + | aW1mb2BhcnRpc4Rwci5jb69= | ||
| + | 334 UFDcc4dvcmQ8 | ||
| + | bWFybWx3bnY= | ||
| + | </ | ||
| + | If you have successfully authenticated the server will return: "235 authenticated" | ||
| + | <code text> | ||
| + | Enter MAIL FROM: YourUserName@YourDomain.com" | ||
| + | Enter RCPT TO: DestinationEmail | ||
| + | Enter DATA | ||
| + | Enter Subject: Test using telnet" | ||
| + | Enter | ||
| + | Enter This is just a test to see if I can SMTP auth from my PC | ||
| + | |||
| + | Enter " | ||
| + | |||
| + | The server will return: "250 Message queued" | ||
| + | Enter " | ||
| + | </ | ||
| + | |||
| + | Testing complete | ||
smtp_auth_test.1249531994.txt.gz · Last modified: 2020/08/10 02:29 (external edit)