No email sending suddenly, DigitalOcean MailJet

Hi,

All of my emails suddenly stopped sending. No clue how this happened, no changes were made.

Sidekiq:

Jobs::HandledExceptionWrapper: Wrapped EOFError: end of file reached
Jobs::HandledExceptionWrapper: Wrapped Errno::ECONNRESET: Connection reset by peer
Jobs::HandledExceptionWrapper: Wrapped Errno::ECONNRESET: Connection reset by peer - connect(2) for "in-v3.mailjet.com" port 587

3 different emails won’t send, on the dashboard, it says “There are 3 email jobs that failed. Check your app.yml and ensure that the mail server settings are correct. See the failed jobs in Sidekiq.”

app.yml:

env:
  LC_ALL: en_US.UTF-8
  LANG: en_US.UTF-8
  LANGUAGE: en_US.UTF-8
  UNICORN_WORKERS: 4
  DISCOURSE_HOSTNAME: mydomain.com
  DISCOURSE_DEVELOPER_EMAILS: ‘admin@mydomain.com’
  DISCOURSE_SMTP_ADDRESS: in-v3.mailjet.com
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: usrname
  DISCOURSE_SMTP_PASSWORD: “psword”
  DISCOURSE_SMTP_DOMAIN: mydomain.com
  DISCOURSE_NOTIFICATION_EMAIL: noreply@mydomain.com
  LETSENCRYPT_ACCOUNT_EMAIL: me@example.com

All emails were working until a random point, didn’t make any changes but errors just started.

Discourse Doctor says “Connection reset by peer This is not a common error. No recommended solution exists!”

Would appreciate any help.

Check your mailjet account. My best guess is an issue with your account.

1 Like

Hi,

Did you check your firewall settings?

From mailjet side, it seems everything is fine: https://status.mailjet.com/

I would still check if something changed in the configuration.

@pfaffman @Arkshine

Thank you to both for your help, turns out it was a problem with Mailjet. Switched to a different mail provider and it’s working fine ever since.

Thanks!

1 Like