Index Micro HowTos
index of all micro how-tos System Administration |
|
Wednesday, 07 March 2007 |
| | | | | SMTP test | | | | | | | | | | | | | | To test SMTP from the command line: - telnet host-to-test 25 (connect to port 25 on mail server)
- HELO sending-host
- MAIL FROM:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
- RCPT TO:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
- DATA
(enter one blank line after DATA) - Subject: test
To: to-user From: from-user (enter one blank line after From:) test text for email . (enter a single period by itself on the last line) - QUIT
To test SMTP with SMTP AUTH (no TLS/SSL) from the command line: First, use a perl script to compute the Base64 encoded user ID and password needed to authenticate to the mail server. This requires the MIME::Base64 module. perl -MMIME::Base64 -e 'print encode_base64("\000userid\000password")' The output looks something like this: AHVzZXJpZABwYXNzd29yZA== Copy the output string so it can be pasted into the AUTH step below. - telnet host-to-test 25 (connect to port 25 on mail server)
- HELO sending-host
- AUTH PLAIN Base64-encoded ID/password
- MAIL FROM:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
- RCPT TO:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
- DATA
(enter one blank line after DATA) - Subject: test
To: to-user From: from-user (enter one blank line after From:) test text for email . (enter a single period by itself on the last line) - QUIT
| | | | | | | | | | | | | | |
|