aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/mail.pp22
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' }