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

Mails are beeing sent with wrong subdomain #418

Open
bguenthner opened this issue Dec 6, 2023 · 3 comments
Open

Mails are beeing sent with wrong subdomain #418

bguenthner opened this issue Dec 6, 2023 · 3 comments

Comments

@bguenthner
Copy link

bguenthner commented Dec 6, 2023

Hey there,

I have an issue with sending mails with the docker compose setup. My values are as following:

  SETTING_EXTERNAL_HOST: "chat-test.server.domain"
  SETTING_ZULIP_ADMINISTRATOR: "admin@server.domain"
  SETTING_EMAIL_HOST: "mail.server.domain" 
  SETTING_EMAIL_HOST_USER: "chat@server.domain"
  SETTING_EMAIL_PORT: "587"
  NOREPLY_EMAIL_ADDRESS: "chat@server.domain"
  SETTING_EMAIL_USE_SSL: "False"
  SETTING_EMAIL_USE_TLS: "True"

The sending of mails apparently works, but my mail server won't let the mail pass through because of this:

NOQUEUE: reject: RCPT from unknown[X.X.X.X]: 553 5.7.1 <noreply@chat-test.server.domain>: Sender address rejected: not owned by user chat@server.domain; from=<noreply@chat-test.server.domain> to=<newuser@gmail.com> proto=ESMTP helo=<xxxxxxx>

So the chat@server.domain is not used as sender, but Zulip somehow creates a new user to send the mails from, that does not exist on the mail server. And ofc the mail server blocks this.

Did I miss a environment setting here? I just want Zulip to send all mails als chat@server.domain and not the noreply@chat-test.server.domain

@zbajor1
Copy link

zbajor1 commented Dec 11, 2023

NOREPLY_EMAIL_ADDRESS: "chat@server.domain" replace to SETTING_NOREPLY_EMAIL_ADDRESS: "chat@server.domain"

life saver for me :)

thanks dude

@bguenthner
Copy link
Author

That worked. Thank you!

@lazyest
Copy link

lazyest commented Dec 20, 2023

Have similar issue, after registration of organization mails from: seems to change from ZULIP_ADMINISTRATOR to some other one and for me sendgrid sending is breaking. Is there any way to lock mails From: field to some value independent from organization?

I have this
DEFAULT_FROM_EMAIL = 'mail@hossted.com'
EMAIL_HOST = 'smtp.sendgrid.net'
EMAIL_HOST_USER = 'apikey'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EXTERNAL_HOST = 'real_hostname'
NOREPLY_EMAIL_ADDRESS = 'mail@hossted.com'
ZULIP_ADMINISTRATOR = 'mail@hossted.com'

but based on logs it seems its sending mails from some other from: mail address after successful registration of organization

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

3 participants