zulip / docker-zulip

Container configurations, images, and examples for Zulip.
https://zulip.com/
Apache License 2.0
550 stars 227 forks source link

noreply invite emails sending #425

Open lazyest opened 5 months ago

lazyest commented 5 months ago

Hello. I'm trying to set up current Zulip with docker-zulip:latest image and docker-compose sample I have unexplained for me behavior of email sending

I've added this section in environment for Zulip

  SETTING_EXTERNAL_HOST: ${PROJECT_BASE_URL}
  SETTING_ZULIP_ADMINISTRATOR: ${H_EMAIL}
  SETTING_DEFAULT_FROM_EMAIL: ${H_EMAIL}
  SETTING_NOREPLY_EMAIL_ADDRESS: ${H_EMAIL}
  SETTING_EMAIL_HOST: "smtp.sendgrid.net"
  SETTING_EMAIL_HOST_USER: "apikey"
  SECRETS_email_password: ${apikey}
  SETTING_EMAIL_PORT: "587"

.env have proper values for variables After first run send_test_email shows me

Sending 2 test emails from:

mail@mydomain.com is OK and mails are working this time. second is failing via SendGrid After I'm registering a realm I'm receiving welcome message from mail@mydomain.com but any further invites creating leads to errors in logs from wrong From: and no valid mails sending

So question is: is there a way to leave only one functional From: address? Maybe there is some hidden hack using manage.py?

lazyest commented 5 months ago

ah, its so nice I've answered by myself adding SETTING_ADD_TOKENS_TO_NOREPLY_ADDRESS: "False" making default noreply address apply to all mails it seems. Thanks, can be closed now ;)