|
|
|
|
| How to make an SMTP transmission manually |
|
Problem: This can be useful for troubleshooting mail servers
|
|
Solution: 1. Telnet to port 25 on the server, you should be greeted by the status code 220 and a short message
2. Send "HELO dude". The word dude can be replaced with just about any string you like, MTAs use this to tell the server what version/software they are.
3. Send "MAIL FROM: from@address.com", obviously replacing the sender address with something sensible. The server should respond with status code 250 and a confirmation.
4. Send "RCPT TO: to@address.com", again replacing the address . Again, the server should respond with status code 250 and a confirmation.
5. Send "DATA". The server should now indicate that it is ready to receive the message itself.
6. Send the message as follows:
to: to@address.com
from: from@address.com
subject: test
test
.
The lone "." signals the end of the message and you should receive a 250 and a confirmation that the message was accepted for delivery. Notice the empty line after subject, this is important as it signals the end of the headers and the beginning of the message body.
You can now send another message, or
6. Send "QUIT" to exit in a polite manner.
|
|
|
|
|
|
This is free technical advice without any warranties.
Use at your own risk. Solutions offered may not apply to your particular problem at all.
Opinions and views expressed in the articles are the authors' personal
and may not necessarily reflect or coincide with those of Ano-Tech Computers.
We take no responsibility if anything bad happens from following any of
the intructions given. If you don't understand and accept this, please
contact us for personal assistance instead.
To read our full disclaimer, go
here.
We welcome anyone who is willing to contribute to this public knowledge base,
contact siteadmin@atc.no
if you have information you would like to share. The idea is not to replace
the commercial support sites, but to publish those hard-to-find
solutions you've found yourself looking for over and over again.
Show all articles