phpnode.jsemailsmtpexim

How to simulate an SMTP server?


I am trying to simulate an SMTP server, to execute some scripts when sending an email via SMTP relay.

I have been using exim, but could not find a way to use my own code. I believe it is possible to simulate an SMTP server using Node JS but could not find any resource.

So I need some sort of code that listens to the port 25, 465 or 587 or any other, and execute my code everytime a user connects to my smtp server. Is it possible?

I would appreciate any help.

Best regards


Solution

  • I could accomplish this task using smtp-server on node.js, working perfectly!