aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/postfix/manifests/init.pp14
-rw-r--r--modules/postfix/templates/main.cf1
2 files changed, 15 insertions, 0 deletions
diff --git a/modules/postfix/manifests/init.pp b/modules/postfix/manifests/init.pp
index 70dfe119..3f74a5e6 100644
--- a/modules/postfix/manifests/init.pp
+++ b/modules/postfix/manifests/init.pp
@@ -71,8 +71,22 @@ class postfix {
mode => 644,
content => template("postfix/ldap_aliases.conf"),
}
+
+ file { '/etc/postfix/virtual_aliases':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ content => template("postfix/virtual_aliases"),
+ }
+
+ exec { "postmap /etc/postfix/virtual_aliases":
+ refreshonly => true,
+ subscribe => File['/etc/postfix/virtual_aliases'],
+ }
}
+
class secondary_smtp inherits smtp_server {
}
diff --git a/modules/postfix/templates/main.cf b/modules/postfix/templates/main.cf
index 29491611..6d9dd222 100644
--- a/modules/postfix/templates/main.cf
+++ b/modules/postfix/templates/main.cf
@@ -53,6 +53,7 @@ fallback_transport_maps = regexp:/etc/postfix/transport_regexp
alias_maps = hash:/etc/postfix/aliases
virtual_alias_maps = ldap:/etc/postfix/ldap_aliases.conf
+ hash:/etc/postfix/virtual_aliases
<%- end -%>