From 90441dda16b1d62589e160f8a9aae2b3d37f9ee0 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 29 May 2010 19:39:38 -0300 Subject: Using postfix instead of postfix::mta --- manifests/mail.pp | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'manifests/mail.pp') 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' } -- cgit v1.2.3