Is this the only way for outgoing if SMTP ports are being blocked by provider (Digital Ocean)

Is this the only way of using gmail as outgoing if SMTP ports are being blocked by provider (Digital Ocean) -

https://docs.frappe.io/framework/user/en/guides/app-development/connected-app

is there any other non SMTP way of connecting gmail

the Digital Ocean is blocking all SMTP ports by default

thanks in advance

So, basically no ERPnext on Digital Ocean as they completely blocked the SMTP ports and not unblocking (see the ticket below)


Good day,

Thank you for contacting DigitalOcean Support. My name is ----, and I’ll be assisting you with your request.
I understand your concerns around the SMTP restriction placed on your account.

We understand that you have an application requirement or a business need to enable port 25, 465 and 587. However due to our current policy we are unable to facilitate requests to remove the restriction on this port. We recommend utilizing alternative ports if your application allows, such as port 2525.

You can also use REST API with SendGrid, which allows you to send emails via HTTP requests instead of the traditional SMTP protocol if it is suitable for you or make use of another third-party sending service.

I’m currently using Gmail on a Digital Ocean droplet, with no issues.

Given their policy, I’m not sure why this is actually working. But it is.

Brian, thanks, and very much appreciate your input.
we recognized the DO is not blocking OLD droplets, ours are new, and they don’t waiving restrictions, that applies not only to ERPnext but to any SMTP based libraries. That means that we need to change provider (quite bad as DO was providing very convenient service).

If you are in the US, as we are, could you please advice if you have experience with any DO alternative, current situation

VPS Provider Country (HQ) Blocks SMTP Port 25 Blocks SMTP Port 587
DigitalOcean USA :white_check_mark: Yes :white_check_mark: Yes
Linode (Akamai) USA :white_check_mark: Yes :white_check_mark: Yes
Vultr USA :white_check_mark: Yes :white_check_mark: Yes
OVHcloud France :white_check_mark: Yes :x: No
Hetzner Germany :white_check_mark: Yes :x: No
Contabo Germany :x: No :x: No
UpCloud Finland :white_check_mark: Yes :x: No

So it looks like the European providers are available, but not good option for the US.
thanks in advance

Hi @Dennisd ,

The only other VPS I’ve tried is SSDNodes, but never for anything serious. Reviews are a mixed bag: some people don’t like the performance, others seem okay with it. :man_shrugging:

Were I in your shoes (and I guess I -will- be, the next time I create a droplet that needs SMTP!), I would use an SMTP relay:

  • Keep running ERPNext on Digital Ocean.
  • Email Domain points at relay server IP, using a TCP port that is not blocked by DO.
  • Relay re-transmits my message to mail server using the -correct- port numbers.
2 Likes

I have used cloudfanatic.net for a few years without any complaints. They have decent support, excellent uptime & throughput, and are priced right.

I’ve had a VPS running FreePBX for several years without any downtime and no complaints of call quality, which says a lot for their network.

1 Like