diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-05-29 19:39:38 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-05-29 19:39:38 -0300 |
commit | 90441dda16b1d62589e160f8a9aae2b3d37f9ee0 (patch) | |
tree | 9f53a00c2b429be4a1ba93c29c463ba7a8f5a089 /manifests/mail.pp | |
parent | 2bb7d5fad87d95c58d0418da84bf2d0c9677c59e (diff) | |
download | puppet-nodo-90441dda16b1d62589e160f8a9aae2b3d37f9ee0.tar.gz puppet-nodo-90441dda16b1d62589e160f8a9aae2b3d37f9ee0.tar.bz2 |
Using postfix instead of postfix::mta
Diffstat (limited to 'manifests/mail.pp')
-rw-r--r-- | manifests/mail.pp | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/manifests/mail.pp b/manifests/mail.pp index 089ae0f..1771f57 100644 --- a/manifests/mail.pp +++ b/manifests/mail.pp @@ -1,12 +1,11 @@ class nodo::mail { # Class for mail nodes $mail_delivery = "postfix" - $postfix_relayhost = "$domain" $postfix_smtp_listen = "$ipaddress" $postfix_mydestination = '$myhostname, $mydomain, localhost.$mydomain, localhost' include nodo::vserver - include postfix::mta + include postfix include database include ssl::mail @@ -33,8 +32,23 @@ class nodo::mail { } # Postfix configuration - postfix::config { "myhostname": value => "$fqdn" } - postfix::config { "mailbox_command": value => '/usr/bin/maildrop -d ${USER}' } + postfix::config { + "mydomain": value => "$domain"; + "myhostname": value => "$fqdn"; + "mydestination": value => $postfix_mydestination; + "mynetworks": value => "127.0.0.0/8"; + "virtual_alias_maps": value => "hash:/etc/postfix/virtual"; + "transport_maps": value => "hash:/etc/postfix/transport"; + "mailbox_command": value => '/usr/bin/maildrop -d ${USER}'; + } + + postfix::hash { "/etc/postfix/virtual": + ensure => present, + } + + postfix::hash { "/etc/postfix/transport": + ensure => present, + } # SASL postfix::config { "smtpd_sasl_auth_enable": value => 'yes' } |