0

I'm extending the core of lamson server because I need it. What I need is to test it whether I've do it right or wrong by sending the SMTP and ESTMP commands to it such as HELO, EHLO and others and retrieving a reply from it. It's hosted on localhost. In the documentation it doesn't say how to do that and I can't figure out how to do it.

Any pointers?

Incerteza
  • 32,326
  • 47
  • 154
  • 261

1 Answers1

1

You can manually connect to the server instance using telnet. Assuming it's connected to local port 25, from a *nix machine it may look similar to this:

telnet 127.0.0.1 25

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 ...banner from server...

ehlo localhost

250-...server... welcomes localhost
250-...other ehlo responses...
250 OK

quit

221 Bye

Windows command line works similarly.

RFC 5321 covers the protocol. There are also a few sample transactions in the appendix.

Once you have the server running well you can use a UI email client for more advanced testing. Sometimes I use Thunderbird and configure it to deliver to 127.0.0.1. This keeps my regular email client unmodified.

Community
  • 1
  • 1
MCToon
  • 638
  • 5
  • 10
  • The question is rather how to run the server locally. – Incerteza Mar 28 '15 at 02:25
  • You said "What I need is to test it whether I've do it right or wrong by sending the SMTP and ESTMP commands to it such as HELO, EHLO..." Did I misunderstand your question? – MCToon Mar 28 '15 at 23:05
  • @AlexanderSupertramp, in your question you are not asking how to **launch** it, you are asking how to **test** it. This implies you are already launching it. Please adjust your question to ask how to **launch** it. Or, maybe accept my answer on how to **test** and ask a new question on how to **launch** it. – MCToon Apr 07 '15 at 14:14
  • **Collect geolocated Twitter dataset using Python**, huh? – Incerteza Apr 08 '15 at 12:15