Skip to content

(WIP) Custom SMTP server that adds a non-standard command to define credentials of a target SMTP to deliver messages through.

Notifications You must be signed in to change notification settings

chroder/custom-smtp-deliver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This uses MailsterSMTP to create a SMTP server. A custom SMTP command was created so a client can make messages send through a specific target server.

The purpose was to use this in a SaaS platform where email could be sent through custom customer accounts. I needed a way to facilitate sending emails over SMTP (because that is what the backend software libraries "spoke"), but I needed to allow customers to enter their own SMTP accounts if they wanted to. But a lot of processing needs to happen on messages before they are ultimately sent out (e.g. logging, backups, stats, etc) so we couldn't just use the custom account right away.

So this was an experiment to see if we could wrap up all of the necessary logic in a "real" SMTP server so the client software could essentially queue messages over the SMTP protocol, which would mean we wouldn't need to change the software itself.

Ultimately, we ditched this as a bad idea and moved to a more traditional job queue approach, where an email job is registered in a Redis queue, and a job processor just took care of sending the message with whatever target server the job was configured to use.

About

(WIP) Custom SMTP server that adds a non-standard command to define credentials of a target SMTP to deliver messages through.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages