Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Calcom resend SMTP connection timed out #5196

Open
racso-dev opened this issue Feb 21, 2025 · 0 comments
Open

[Bug]: Calcom resend SMTP connection timed out #5196

racso-dev opened this issue Feb 21, 2025 · 0 comments
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@racso-dev
Copy link

racso-dev commented Feb 21, 2025

Error Message and Logs

When deploying Calcom through available services, I use resend smtp configuration (a valid one, I tested it on other apps and it works just fine) and when Calcom tries to send emails the connection to resend's smtp server times out and therefore no email of any kind can be sent.

Here are my env variables set in configuration of the services :

[email protected]
NEXT_PUBLIC_WEBAPP_URL=https://calendar.tendiz.ai
[email protected]
EMAIL_SERVER_HOST=smtp.resend.com
EMAIL_SERVER_PASSWORD=some_secret_env_var
EMAIL_SERVER_PORT=465
EMAIL_SERVER_USER=resend
POSTGRES_DB=calendso
SERVICE_BASE64_CALCOMKEY=some_secret_env_var
SERVICE_BASE64_CALCOMSECRET=some_secret_env_var
SERVICE_FQDN_CALCOM=https://calendar.tendiz.ai
SERVICE_PASSWORD_POSTGRES=some_secret_env_var
ALLOWED_HOSTNAMES=tendiz.ai
SERVICE_USER_POSTGRES=some_secret_env_var

(The domain is verified on resend)

Here are some logs of an attempt to send an email :

2025-02-06T23:08:00.385171783Z @calcom/web:start: sendEmail from: [email protected] <[email protected]> subject: 30 Min Meeting between Oscar Rénier and Oscar Rénier Error: Connection timeout
2025-02-06T23:08:00.385181451Z @calcom/web:start:     at SMTPConnection._formatError (/calcom/node_modules/nodemailer/lib/smtp-connection/index.js:787:19)
2025-02-06T23:08:00.385190068Z @calcom/web:start:     at SMTPConnection._onError (/calcom/node_modules/nodemailer/lib/smtp-connection/index.js:773:20)
2025-02-06T23:08:00.385198624Z @calcom/web:start:     at Timeout.<anonymous> (/calcom/node_modules/nodemailer/lib/smtp-connection/index.js:232:22)
2025-02-06T23:08:00.385207621Z @calcom/web:start:     at listOnTimeout (node:internal/timers:569:17)
2025-02-06T23:08:00.385216036Z @calcom/web:start:     at process.processTimers (node:internal/timers:512:7) {
2025-02-06T23:08:00.385224432Z @calcom/web:start:   code: 'ETIMEDOUT',
2025-02-06T23:08:00.385232697Z @calcom/web:start:   command: 'CONN'
2025-02-06T23:08:00.385240972Z @calcom/web:start: }

Check that little video if you wanna see the problem "live".
Video (I trimed the video because It took around 2 minutes to timeout)

If you have any ideas on how to troubleshoot that issue I'd truly appreciate It.
Thanks in advance for those reading my post hope someone can help.

Steps to Reproduce

  1. Go on resend.com create an account and an api key (it's free)
  2. Deploy Calcom through Coolify services one click deployment configuring SMTP env variables with resend configuration
  3. Trigger a mail by reserving a slot on any event type of your choice

Example Repository URL

No response

Coolify Version

v4.0.0-beta.394

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04

Additional Information

No response

@racso-dev racso-dev added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.
Projects
None yet
Development

No branches or pull requests

1 participant