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

SMTP server configuration only working/used when running on Laptop, but not virtual host #341

Open
schihei opened this issue Mar 19, 2024 · 1 comment

Comments

@schihei
Copy link

schihei commented Mar 19, 2024

The SMTP configuration only works when I run the Docker container on my laptop, but when I move the same configuration to my virtual host, the IP address 127.0.1.1 is used as SMTP server.

The error I am receiving is the following:

calcom-docker-calcom-1 | @calcom/web:start: 22:38:46:302 WARNorgDomains.ts Match of WEBAPP_URL with ALLOWED_HOSTNAME failed {
calcom-docker-calcom-1 | @calcom/web:start: WEBAPP_URL: 'https://cal.XXXX.de',
calcom-docker-calcom-1 | @calcom/web:start: ALLOWED_HOSTNAMES: [
calcom-docker-calcom-1 | @calcom/web:start: 'cal.XXXX.de'
calcom-docker-calcom-1 | @calcom/web:start: ]
calcom-docker-calcom-1 | @calcom/web:start: }
calcom-docker-calcom-1 | @calcom/web:start: 22:38:59:465 WARN[[SyncServiceManager] updateWebUser:noUser {"user":null}
calcom-docker-calcom-1 | @calcom/web:start: 22:39:00:275 WARNEventManager No destination Calendar found, falling back to first connected calendar {"calendarCredentials":[]}
calcom-docker-calcom-1 | @calcom/web:start: SEND_BOOKING_CONFIRMATION_ERROR Error: connect ECONNREFUSED 127.0.1.1:465
calcom-docker-calcom-1 | @calcom/web:start: at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
calcom-docker-calcom-1 | @calcom/web:start: at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
calcom-docker-calcom-1 | @calcom/web:start: errno: -111,
calcom-docker-calcom-1 | @calcom/web:start: code: 'ESOCKET',
calcom-docker-calcom-1 | @calcom/web:start: syscall: 'connect',
calcom-docker-calcom-1 | @calcom/web:start: address: '127.0.1.1',
calcom-docker-calcom-1 | @calcom/web:start: port: 465,
calcom-docker-calcom-1 | @calcom/web:start: command: 'CONN'
calcom-docker-calcom-1 | @calcom/web:start: }
calcom-docker-calcom-1 | @calcom/web:start: sendEmail from: Cal.com [email protected] subject: 30 Min Meeting between Heiko Joerg Schick and t Error: connect ECONNREFUSED 127.0.1.1:465
calcom-docker-calcom-1 | @calcom/web:start: at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
calcom-docker-calcom-1 | @calcom/web:start: at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
calcom-docker-calcom-1 | @calcom/web:start: errno: -111,
calcom-docker-calcom-1 | @calcom/web:start: code: 'ESOCKET',
calcom-docker-calcom-1 | @calcom/web:start: syscall: 'connect',
calcom-docker-calcom-1 | @calcom/web:start: address: '127.0.1.1',
calcom-docker-calcom-1 | @calcom/web:start: port: 465,
calcom-docker-calcom-1 | @calcom/web:start: command: 'CONN'
calcom-docker-calcom-1 | @calcom/web:start: }

My configuration is:
EMAIL_SERVER_HOST=XXXX.de
EMAIL_SERVER_PORT=465
EMAIL_SERVER_USER=[email protected]
EMAIL_SERVER_PASSWORD=XXXXXXXXXXXXXX

It seems the configuration is used to verify the SSL certificate of the SMTP server but not for sending.

Thank you very much for your help.

@schihei schihei changed the title SMTP server configuration only working/used when running on Laptop, but not vortual host SMTP server configuration only working/used when running on Laptop, but not virtual host Mar 19, 2024
@pramodith
Copy link

I'm facing the same issue @schihei were you able to figure this out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants