Package['exim4-daemon-heavy']->Mailalias<| |>
- concat::fragment { 'virtual_domain_template':
- target => '/etc/exim4/virtualdomains',
- content => template('exim/virtualdomains.erb'),
- order => '05',
- }
-
service { 'exim4':
ensure => running,
require => [
@hourly root if [ ! -d /etc/exim4/email-virtualdomains ]; then cd /etc/exim4 && git clone mail-git:email-virtualdomains ; fi && cd /etc/exim4/email-virtualdomains && git pull --quiet --ff-only
| EOF
}
-
+ concat::fragment { 'virtual_domain_template':
+ target => '/etc/exim4/virtualdomains',
+ content => template('exim/virtualdomains-mailrelay.erb'),
+ }
concat { '/etc/exim4/manualroute':
mode => '0444',
--- /dev/null
+debian.org: user=nobody group=Debian directory=/etc/exim4/email-virtualdomains/debian.org
+admin.debian.org: user=mail_admin group=mail_admin directory=/etc/exim4/email-virtualdomains/admin.debian.org
+ftp-master.debian.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/ftp-master.debian.org
+security.debian.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/security.debian.org
+women.debian.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/women.debian.org
+release.debian.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/release.debian.org
+ports-master.debian.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/ports-master.debian.org
+
+debian-ports.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian-ports.org
+
+debconf.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debconf.org
+
+debian.com: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
+debian.net: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
+debian.gr: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
+debian.us: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
+debian.es: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
+debian.eu: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
+debian.nl: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
+debian.org.tw: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
+++ /dev/null
-<% if @is_mailrelay -%>
-debian.org: user=nobody group=Debian directory=/etc/exim4/email-virtualdomains/debian.org
-admin.debian.org: user=mail_admin group=mail_admin directory=/etc/exim4/email-virtualdomains/admin.debian.org
-ftp-master.debian.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/ftp-master.debian.org
-security.debian.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/security.debian.org
-women.debian.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/women.debian.org
-release.debian.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/release.debian.org
-ports-master.debian.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/ports-master.debian.org
-
-debian-ports.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian-ports.org
-
-debconf.org: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debconf.org
-
-debian.com: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
-debian.net: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
-debian.gr: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
-debian.us: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
-debian.es: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
-debian.eu: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
-debian.nl: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
-debian.org.tw: user=nobody group=nogroup directory=/etc/exim4/email-virtualdomains/debian.star
-<% end -%>