class mail::base { # Postfix configuration postfix::config { "mydomain": value => "$domain"; "myhostname": value => "$fqdn"; "mydestination": value => "$postfix_mydestination"; "mynetworks": value => "$postfix_mynetworks"; "relay_domains": value => '$mydestination'; "transport_maps": value => "hash:/etc/postfix/transport, regexp:/etc/postfix/transport_regexp"; "mailbox_command": value => '/usr/bin/maildrop -d ${USER}'; "virtual_mailbox_base": value => '/var/mail/virtual'; "virtual_uid_maps": value => 'static:5000'; "virtual_gid_maps": value => 'static:5000'; "recipient_delimiter": value => '+'; } # Recipient restrictions postfix::config { "smtpd_recipient_restrictions": value => 'permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client psbl.surriel.com, check_policy_service inet:127.0.0.1:60000' } postfix::hash { "/etc/postfix/virtual": ensure => present, } postfix::hash { "/etc/postfix/transport": ensure => present, } }