mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		@@ -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'],
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user