puppet: Allow manual configuration of postfix_mailname.

This allows users to configure a mailname for postfix in
/etc/zulip/zulip.conf
This commit is contained in:
Tim Abbott 2018-04-13 13:25:08 -07:00
parent 62b12e0c34
commit a06c7bc247
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ class zulip::postfix_localmail {
if $fqdn == '' {
fail("Your system does not have a fully-qualified domain name defined. See hostname(1).")
}
$postfix_mailname = zulipconf("postfix", "mailname", $fqdn)
package { $postfix_packages:
ensure => "installed",
require => File['/etc/mailname'],

View File

@ -20,7 +20,7 @@ alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
transport_maps = hash:/etc/postfix/transport
myorigin = /etc/mailname
mydestination = localhost, <%= @fqdn %>
mydestination = localhost, <%= @postfix_mailname %>
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0