mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
puppet: Set /etc/mailname based on postfix.mailname configuration.
The `postfix.mailname` setting in `/etc/zulip.conf` was previously only used for incoming mail, to identify in Postfix configuration which messages were "local." Also set `/etc/mailname`, which is used by Postfix to set how it identifies to other hosts when sending outgoing email. Co-authored-by: Alex Vandiver <alexmv@zulip.com>
This commit is contained in:
@@ -721,7 +721,8 @@ more than 3.5GiB of RAM, 4 on hosts with less.
|
|||||||
#### `mailname`
|
#### `mailname`
|
||||||
|
|
||||||
The hostname that [Postfix should be configured to receive mail
|
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]`
|
### `[postgresql]`
|
||||||
|
|
||||||
|
|||||||
@@ -80,9 +80,10 @@ using an [HTTP reverse proxy][reverse-proxy]).
|
|||||||
mailname = emaildomain.example.com
|
mailname = emaildomain.example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
This tells postfix to expect to receive emails at addresses ending
|
This tells postfix to expect to receive emails at addresses ending with
|
||||||
with `@emaildomain.example.com`, overriding the default of
|
`@emaildomain.example.com`, overriding the default of
|
||||||
`@hostname.example.com`.
|
`@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`
|
1. Run `/home/zulip/deployments/current/scripts/zulip-puppet-apply`
|
||||||
(and answer `y`) to apply your new `/etc/zulip/zulip.conf`
|
(and answer `y`) to apply your new `/etc/zulip/zulip.conf`
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class zulip::postfix_localmail {
|
|||||||
mode => '0644',
|
mode => '0644',
|
||||||
owner => root,
|
owner => root,
|
||||||
group => root,
|
group => root,
|
||||||
content => $fqdn,
|
content => $postfix_mailname,
|
||||||
}
|
}
|
||||||
|
|
||||||
file {'/etc/postfix/main.cf':
|
file {'/etc/postfix/main.cf':
|
||||||
|
|||||||
Reference in New Issue
Block a user