Has anyone written an SMTP relay?

Just starting out? Need help? Post your questions and find answers here.
pthien
Enthusiast
Enthusiast
Posts: 148
Joined: Sun Jun 29, 2003 9:39 pm

Has anyone written an SMTP relay?

Post by pthien »

I'm interested in deploying an SMTP relay. So a little app that accepts E-Mail from machines at certain IP addresses, and forwards this through another SMTP server.

The reason I'd like this is, I have some utilities that cannot send via a server that requires authentication.

I've used PureBasic to send E-Mail and it works great (obviously).

But I'm wonder about writing the code to ACCEPT E-mail that will be forwarded.

Has anyone written anything like this and wish to share code?
User avatar
HeX0R
Addict
Addict
Posts: 1187
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Has anyone written an SMTP relay?

Post by HeX0R »

Yes, but only unencrypted (no SSL / STARTTLS) and it is running as a web service.
infratec
Always Here
Always Here
Posts: 7577
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Has anyone written an SMTP relay?

Post by infratec »

Why reinveting the wheel?

If you search in the web for smtp proxy you will find many ready solutions.

Examples:

https://linux.die.net/man/8/smtpp
https://docs.nginx.com/nginx/admin-guid ... ail-proxy/

A complete server solution (we run it as VM)
https://www.proxmox.com/en/proxmox-mail-gateway
Post Reply