ERROR - execution expired

AI-generated summary

A user, crazzybat, encountered an ‘ERROR - execution expired (email)’ while trying to send test emails via MailGun on DigitalOcean, which blocks standard SMTP ports (25, 465, 587) to prevent abuse. They sought guidance on resolving the issue, referencing a meta.discourse.org thread and DigitalOcean’s recommendation to use SendGrid. Jagster suggested trying port 2525. crazzybat asked for step-by-step instructions to change the port, as they had SSH access but limited knowledge. NateDhaliwal provided clear directions: edit the app.yml file using nano in /var/discourse, update the SMTP port to 2525, then run ./launcher destroy app followed by ./launcher start app to apply changes. crazzybat confirmed the fix worked and thanked NateDhaliwal, who replied graciously. The issue was resolved by switching to an allowed port (2525) and restarting the Discourse container.

I sent a test email, and I was greeted with:

‘ERROR - execution expired (email)’
I am using MailGun for SMTP emails. Port 587

First i don’t know how to fix, so can please help me with this?

Second I read this

and we hosting on digital ocean, in their official guide mentioned about SMTP ports 25, 465, and 587 are blocked on Droplets to prevent spam and other abuses of our platform. Source

To send mail from DigitalOcean, we recommend using SendGrid via the SendGrid Marketplace 1-Click App.

So can you please provide me guide from here to fix the problem?
Thank you :wink: :blush: for reading…

Try port 2525

thanks, I have ssh access and little knowledge. But how to change port i don’t know. If you please guide that help a lot?

I believe you will need to edit your app.yml file and change the port:

sudo -s
cd /var/discourse
nano containers/app.yml

You can then edit the file, and then do this:

./launcher destroy app
./launcher start app

To make your changes take effect.

@NateDhaliwal Thanks a lots :heart_decoration: . It working now, I did changed as you provide.

No problem, happy to help!