]> WPIA git - infra.git/commitdiff
add: exim config to send mails into the internet
authorFelix Dörre <felix@dogcraft.de>
Wed, 22 Mar 2017 16:58:40 +0000 (12:58 -0400)
committerFelix Dörre <felix@dogcraft.de>
Wed, 22 Mar 2017 17:05:37 +0000 (18:05 +0100)
Change-Id: I34f0ed386c261c043991be8ed9f2a3228c60ede2

environments/production/manifests/site.pp
modules/exim/templates/update-exim4.conf.conf.epp [new file with mode: 0644]

index ad68ec3aca3dcb9801d7b06b6bd8c5b2559a5ab9..4cd8d32793d26e3dd88a4014e47cfbb84c41db94 100644 (file)
@@ -119,5 +119,17 @@ node exim{
 
   package{ 'exim4-daemon-light':
     ensure => 'installed'
+  } ->
+  file{ '/etc/exim4/update-exim4.conf.conf':
+    ensure => 'file',
+    content => epp('exim/update-exim4.conf.conf'),
+    notify => Exec['/usr/sbin/update-exim4.conf']
+  }
+  exec{ '/usr/sbin/update-exim4.conf':
+    refreshonly => 'true',
+    notify => Service['exim4']
+  }
+  service{ 'exim4':
+    ensure => 'running'
   }
 }
diff --git a/modules/exim/templates/update-exim4.conf.conf.epp b/modules/exim/templates/update-exim4.conf.conf.epp
new file mode 100644 (file)
index 0000000..593eeb1
--- /dev/null
@@ -0,0 +1,13 @@
+dc_eximconfig_configtype='internet'
+dc_other_hostnames='exim'
+dc_local_interfaces='127.0.0.1 ; ::1 ; <%=$ips[exim]%>'
+dc_readhost='exim'
+dc_relay_domains=''
+dc_minimaldns='false'
+dc_relay_nets='<%=$ips[gigi]%>/32'
+dc_smarthost=''
+CFILEMODE='644'
+dc_use_split_config='false'
+dc_hide_mailname='true'
+dc_mailname_in_oh='true'
+dc_localdelivery='mail_spool'