docker-zulip icon indicating copy to clipboard operation
docker-zulip copied to clipboard

Mails are beeing sent with wrong subdomain

Open bguenthner opened this issue 8 months ago • 3 comments

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: "[email protected]"
  SETTING_EMAIL_HOST: "mail.server.domain" 
  SETTING_EMAIL_HOST_USER: "[email protected]"
  SETTING_EMAIL_PORT: "587"
  NOREPLY_EMAIL_ADDRESS: "[email protected]"
  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 <[email protected]>: Sender address rejected: not owned by user [email protected]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<xxxxxxx>

So the [email protected] 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 [email protected] and not the [email protected]

bguenthner avatar Dec 06 '23 21:12 bguenthner

NOREPLY_EMAIL_ADDRESS: "[email protected]" replace to SETTING_NOREPLY_EMAIL_ADDRESS: "[email protected]"

life saver for me :)

thanks dude

zbajor1 avatar Dec 11 '23 19:12 zbajor1

That worked. Thank you!

bguenthner avatar Dec 11 '23 20:12 bguenthner

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 = '[email protected]' EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = 'apikey' EMAIL_PORT = 587 EMAIL_USE_TLS = True EXTERNAL_HOST = 'real_hostname' NOREPLY_EMAIL_ADDRESS = '[email protected]' ZULIP_ADMINISTRATOR = '[email protected]'

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

lazyest avatar Dec 20 '23 08:12 lazyest