docker-zulip
docker-zulip copied to clipboard
Mails are beeing sent with wrong subdomain
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]
NOREPLY_EMAIL_ADDRESS: "[email protected]" replace to SETTING_NOREPLY_EMAIL_ADDRESS: "[email protected]"
life saver for me :)
thanks dude
That worked. Thank you!
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