From b40c49a55b6669eba8858828fc8d5441b8d358c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Wed, 22 Mar 2017 12:58:40 -0400 Subject: [PATCH] add: exim config to send mails into the internet Change-Id: I34f0ed386c261c043991be8ed9f2a3228c60ede2 --- environments/production/manifests/site.pp | 12 ++++++++++++ modules/exim/templates/update-exim4.conf.conf.epp | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 modules/exim/templates/update-exim4.conf.conf.epp 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' -- 2.39.2