Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppet: Set /etc/mailname based on postfix.mailname configuration.
Tran Sang3bea65b39cf7
diff --git a/docs/production/deployment.md b/docs/production/deployment.mdindex 6974d4dd741..17939378414 100644--- a/docs/production/deployment.md+++ b/docs/production/deployment.md@@ -721,7 +721,8 @@ more than 3.5GiB of RAM, 4 on hosts with less.#### `mailname`The hostname that [Postfix should be configured to receive mail-at](email-gateway.md#local-delivery-setup).+at](email-gateway.md#local-delivery-setup), as well as identify itself as for+outgoing email.### `[postgresql]`diff --git a/docs/production/email-gateway.md b/docs/production/email-gateway.mdindex 8166cd852b3..cc38fe4e46f 100644--- a/docs/production/email-gateway.md+++ b/docs/production/email-gateway.md@@ -80,9 +80,10 @@ using an [HTTP reverse proxy][reverse-proxy]).mailname = emaildomain.example.com```- This tells postfix to expect to receive emails at addresses ending- with `@emaildomain.example.com`, overriding the default of- `@hostname.example.com`.+ This tells postfix to expect to receive emails at addresses ending with+ `@emaildomain.example.com`, overriding the default of+ `@hostname.example.com`. It will also identify itself as+ `emaildomain.example.com` on any outgoing emails it sends.1. Run `/home/zulip/deployments/current/scripts/zulip-puppet-apply`(and answer `y`) to apply your new `/etc/zulip/zulip.conf`diff --git a/puppet/zulip/manifests/postfix_localmail.pp b/puppet/zulip/manifests/postfix_localmail.ppindex 23dd6893472..3e5a2270dcb 100644--- a/puppet/zulip/manifests/postfix_localmail.pp+++ b/puppet/zulip/manifests/postfix_localmail.pp@@ -21,7 +21,7 @@ class zulip::postfix_localmail {mode => '0644',owner => root,group => root,- content => $fqdn,+ content => $postfix_mailname,}file {'/etc/postfix/main.cf':