diff options
author | Michael Scherer <misc@mageia.org> | 2011-03-22 15:17:58 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-03-22 15:17:58 +0000 |
commit | d09633a8bb68778d64ac5799a60b4f5e912d1892 (patch) | |
tree | c7211300f4d8bb097de8deaa78b31683fa1c9f5b /modules/postfix | |
parent | 5086281539f67e317ffd8bf833fb5f847beb662a (diff) | |
download | puppet-d09633a8bb68778d64ac5799a60b4f5e912d1892.tar puppet-d09633a8bb68778d64ac5799a60b4f5e912d1892.tar.gz puppet-d09633a8bb68778d64ac5799a60b4f5e912d1892.tar.bz2 puppet-d09633a8bb68778d64ac5799a60b4f5e912d1892.tar.xz puppet-d09633a8bb68778d64ac5799a60b4f5e912d1892.zip |
add aliases for the board, and for root
Diffstat (limited to 'modules/postfix')
-rw-r--r-- | modules/postfix/manifests/init.pp | 14 | ||||
-rw-r--r-- | modules/postfix/templates/main.cf | 1 |
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 -%> |