From: Felix Dörre Date: Wed, 22 Mar 2017 16:58:40 +0000 (-0400) Subject: add: exim config to send mails into the internet X-Git-Url: https://code.wpia.club/?a=commitdiff_plain;ds=sidebyside;h=b40c49a55b6669eba8858828fc8d5441b8d358c2;p=infra.git add: exim config to send mails into the internet Change-Id: I34f0ed386c261c043991be8ed9f2a3228c60ede2 --- diff --git a/environments/production/manifests/site.pp b/environments/production/manifests/site.pp index ad68ec3..4cd8d32 100644 --- a/environments/production/manifests/site.pp +++ b/environments/production/manifests/site.pp @@ -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 index 0000000..593eeb1 --- /dev/null +++ b/modules/exim/templates/update-exim4.conf.conf.epp @@ -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'