Run a binary in the server

First of all, thanks for this fantastic project.

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.

So, is this okay? Will it create any problems?

Thanks

For some reason, this idea seems to come up occasionally …

  1. Your change will probably break every time MIAB is updated. Not a disaster but you might have to reinstall your mods after every update.

  2. Why bother? There is already a perfectly good interface to email - SMTP. Almost every language will have a library that can sent email via SMTP.

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. :expressionless:

Currently, I don’t have any better idea.

Find a better provider than Digital Ocean comes to mind.

1 Like

Yes. I told them that after they refused to open the ports. And guess what? They took one more day to review again and opened the ports. :joy:

1 Like

Could you explain how did you accomplish this. I have a MIAB setup on another provider with port 25 block. Currently I use a relay.
Thanks