---
infra::role: base
+
+
+#####################################################
+# Postfix configuration:
+
+# Global configurations
+postfix::alias_maps: ""
+postfix::inet_interfaces: 'all'
+postfix::manage_mailx: false
+postfix::mastercf_source: 'puppet:///postfix_dir/master-nullclient.cf'
+postfix::myorigin: "%{::fqdn}"
+
+# Main.cf config entries
+infra::profile::postfix::configs:
+ address_verify_map:
+ ensure: 'absent'
+ alias_database:
+ ensure: 'blank'
+ append_dot_mydomain:
+ value: 'no'
+ biff:
+ value: 'no'
+ command_directory:
+ ensure: 'absent'
+ daemon_directory:
+ ensure: 'absent'
+ data_directory:
+ ensure: 'absent'
+ debug_peer_level:
+ ensure: 'absent'
+ debugger_command:
+ ensure: 'absent'
+ default_database_type:
+ value: 'hash'
+ html_directory:
+ ensure: 'absent'
+ inet_protocols:
+ value: 'all'
+ local_recipient_maps:
+ ensure: 'blank'
+ local_transport:
+ value: 'error:5.1.1 Mailbox unavailable'
+ mail_owner:
+ ensure: 'absent'
+ mailbox_size_limit:
+ value: '0'
+ manpage_directory:
+ ensure: 'absent'
+ master_service_disable:
+ value: 'inet'
+ mydestination:
+ ensure: 'blank'
+ mydomain:
+ value: 'pixelpark.com'
+ myhostname:
+ value: "%{::fqdn}"
+ mynetworks:
+ value: "127.0.0.0/8"
+ relayhost:
+ value: '[mx.pixelpark.net]'
+ smtp_generic_maps:
+ value: '${default_database_type}:${config_directory}/generic'
+ smtp_tls_session_cache_database:
+ value: 'btree:${data_directory}/smtp_scache'
+ virtual_alias_maps:
+ value: '${default_database_type}:${config_directory}/virtual'
+
+# All postfix hash databases
+infra::profile::postfix::hashes:
+ '/etc/postfix/generic':
+ ensure: 'present'
+ content: "root root+%{::fqdn}\n"
+ '/etc/postfix/virtual':
+ ensure: 'present'
+ source: 'puppet:///postfix_dir/maps/virtual-nullclient'
+