I want to run a go binary to add a way to send mail by using REST Api.
I am planning to create a system service and then start it and use nginx reverse proxy in 8080 port. I have checked that this port is not used by mail in a box.
The problem is that DigitalOcean disabled outbound SMTP traffic & all standard mail ports.
So, I can’t use any standard mail port to send mail from those servers. I have contacted them about this. They said it’s their security policy!
Then, this idea came into my mind.
And I have tried after posting here. It works like a charm. I have also created a script for this. So I need to run this script every time I update MIAB.