If you’re looking for help, please provide information about your environment. If you delete this template and don’t provide any information, your topic will be automatically closed.
If you aren’t running the latest version of Ghost, the first thing we’ll ask you to do is update to the latest version of Ghost.
- What’s your URL? Site not public
- What version of Ghost are you using? 4.41.3
Ghost is running with docker-compose on a Linode VPS, using the following configuration:
ghost-logs: image: ghost:4-alpine volumes: - ghost-log:/var/lib/ghost/content restart: always ports: - 3003:2368 environment: # see https://ghost.org/docs/config/#configuration-options # this url value is just an example, and is likely wrong for your environ> url: "REDACTED" mail__transport: "SMTP" mail__options__service: "Mailgun" mail__options__host: "smtp.eu.mailgun.org" mail__options__port: 587 mail__options__auth__user: "<REDACTED>" mailgun__auth__pass: "<REDACTED>"
0.99.113.2-beta and Safari
OS: Debian 11 bullseye
When trying to log in to a test account I made:
[2022-03-26 11:52:32] INFO Worker for job "update-check" online [2022-03-26 11:52:34] INFO Worker for job update-check sent a message: Ran update check [2022-03-26 11:52:34] INFO Worker for job update-check sent a message: done [2022-03-26 11:52:51] INFO "GET /" 304 100ms [2022-03-26 11:52:51] INFO "GET /members/api/member/" 204 2ms [2022-03-26 11:52:51] INFO "GET /members/api/site/" 200 23ms [2022-03-26 11:54:18] INFO Worker for job "email-analytics-fetch-latest" online [2022-03-26 11:54:20] INFO Worker for job email-analytics-fetch-latest sent a message: Fetched 0 events and aggregated stats for 0 emails in 331ms [2022-03-26 11:54:20] INFO Worker for job email-analytics-fetch-latest sent a message: done [2022-03-26 11:54:32] INFO "POST /members/api/send-magic-link/" 200 60990ms [2022-03-26 11:55:31] ERROR Failed to send email. Reason: Connection timeout. Failed to send email. Reason: Connection timeout. "Please see https://ghost.org/docs/config/#mail for instructions on configuring email." Error ID: a35750a0-acfb-11ec-b7d2-e5202f57ba13 Error Code: ETIMEDOUT ---------------------------------------- Error: Connection timeout at createMailError (/var/lib/ghost/versions/4.32.2/core/server/services/mail/GhostMailer.js:67:12) at SMTPConnection._formatError (/var/lib/ghost/versions/4.32.2/node_modules/nodemailer/lib/smtp-connection/index.js:784:19) at SMTPConnection._onError (/var/lib/ghost/versions/4.32.2/node_modules/nodemailer/lib/smtp-connection/index.js:770:20) at Timeout.<anonymous> (/var/lib/ghost/versions/4.32.2/node_modules/nodemailer/lib/smtp-connection/index.js:229:22) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7)
- Add your Mailgun credentials to docker-compose through environment variables.
- Create testing Member account
- Try to log into that Member account
- Check the console (
docker-compose logs -f)
I have no idea how to even start debugging this. I’ve double-checked my credentials and checked that my mailing ports were open. I also tried using the default SFTP configuration (this is not ideal because of email reputation etc.), but that also resulted in an error (
Failed to send email. Reason: Sending failed.).
Does anyone have any ideas?