# ERROR - execution expired (email)

**URL:** https://meta.discourse.org/t/error-execution-expired-email/356703
**Category:** Support
**Tags:** email
**Created:** [March 10, 2025, 11:00pm UTC](https://meta.discourse.org/t/error-execution-expired-email/356703 "2025-03-10T23:00:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mako-Poisoned](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mako-poisoned/32/491709_2.png) [@Mako-Poisoned](https://meta.discourse.org/u/Mako-Poisoned)
#### Post date: [March 10, 2025, 11:00pm UTC](https://meta.discourse.org/t/error-execution-expired-email/356703/1 "2025-03-10T23:00:10Z")

</div>

In `/admin` I see this prompt for the first time:

`There are 91 email jobs that failed. Check your app.yml and ensure that the mail server settings are correct. See the failed jobs in Sidekiq.`

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

`ERROR - execution expired (email)`

I am using Brevo for SMTP email.

I went ahead and double checked my app.yml to ensure that my settings were correct, and they are. I have rebuilt a few times now, and even shut off the server and turned it back on. Nothing is fixing it.

I have no unofficial plugins installed.

---

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [March 11, 2025, 9:28am UTC](https://meta.discourse.org/t/error-execution-expired-email/356703/3 "2025-03-11T09:28:38Z")

</div>

Checkout `/sidekiq` in your Discourse admin dashboard and inspect the error logs.

---

<div class="post-metadata">

### Author: ![Mako-Poisoned](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mako-poisoned/32/491709_2.png) [@Mako-Poisoned](https://meta.discourse.org/u/Mako-Poisoned)
#### Post date: [March 11, 2025, 8:50pm UTC](https://meta.discourse.org/t/error-execution-expired-email/356703/4 "2025-03-11T20:50:54Z")

</div>

I am unsure what to make of these logs:

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/4/e/34ef80e3f7f1dad4fc6e9848ba992fbf13fa79a7.jpeg)

---

<div class="post-metadata">

### Author: ![Mako-Poisoned](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mako-poisoned/32/491709_2.png) [@Mako-Poisoned](https://meta.discourse.org/u/Mako-Poisoned)
#### Post date: [March 11, 2025, 9:15pm UTC](https://meta.discourse.org/t/error-execution-expired-email/356703/5 "2025-03-11T21:15:46Z")

</div>

Located the issue:

I utilize Digital Ocean for an Ubuntu Server, and Brevo for SMTP email. Digital Ocean blocks port 587, which by default, Brevo suggests. However, Brevo allows you to use port 2525, which is not blocked by Digital Ocean.

I changed the port in my app.yml and rebuilt. I was then able to send an email test, and no longer had email jobs that failed.

[Source](https://docs.digitalocean.com/support/why-is-smtp-blocked/)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 10, 2025, 9:16pm UTC](https://meta.discourse.org/t/error-execution-expired-email/356703/6 "2025-04-10T21:16:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
