# Main.cf config entries
infra::profile::postfix::configs:
- alias_database:
- value: 'hash:/etc/postfix/maps/aliases'
+# alias_database:
+# value: 'hash:/etc/postfix/maps/aliases'
masquerade_domains:
value: 'hash:/etc/postfix/maps/masquerade_domains'
-# mynetworks:
-# value: 'cidr:/etc/postfix/maps/my-networks'
recipient_canonical_maps:
value: 'hash:/etc/postfix/maps/canonical-recipients ldap:/etc/postfix/ldap/mailroutingaddress.cf'
relay_domains:
value: 'hash:/etc/postfix/maps/relay_domains'
smtpd_relay_restrictions:
value: "check_client_access hash:/etc/postfix/maps/access_client, check_recipient_access hash:/etc/postfix/maps/access_recipient, check_sender_access hash:/etc/postfix/maps/access_sender, reject_non_fqdn_recipient, reject_non_fqdn_sender, reject_invalid_helo_hostname, permit_mynetworks, permit_sasl_authenticated, permit_tls_clientcerts, reject_unauth_destination, reject_unauth_destination, reject_unverified_recipient, permit"
-# transport_maps:
-# value: 'hash:/etc/postfix/maps/discarded_domains hash:/etc/postfix/maps/transport ldap:/etc/postfix/ldap/mailhost.cf'
-# virtual_alias_maps:
-# value: 'pcre:/etc/postfix/maps/virtual-regex hash:/etc/postfix/maps/virtual-aliases'
# All postfix hash databases
infra::profile::postfix::hashes:
'/etc/postfix/maps/access_sender':
ensure: 'present'
source: 'puppet:///postfix_dir/maps/access_sender'
-# '/etc/postfix/maps/discarded_domains':
-# ensure: 'present'
-# source: 'puppet:///postfix_dir/maps/discarded_domains'
'/etc/postfix/maps/masquerade_domains':
ensure: 'present'
source: 'puppet:///postfix_dir/maps/masquerade_domains'
'/etc/postfix/maps/smtp-tls-peers':
ensure: 'present'
source: 'puppet:///postfix_dir/maps/smtp-tls-peers'
-# '/etc/postfix/maps/transport':
-# ensure: 'present'
-# source: 'puppet:///postfix_dir/maps/transport'
'/etc/postfix/maps/canonical-recipients':
ensure: 'present'
source: 'puppet:///postfix_dir/maps/canonical-recipients'
-# '/etc/postfix/maps/virtual-aliases':
-# ensure: 'present'
-# source: 'puppet:///postfix_dir/maps/virtual-aliases'
# All other postfix configuration files
infra::profile::postfix::conffiles:
-# my-networks:
-# ensure: 'present'
-# path: '/etc/postfix/maps/my-networks'
-# source: 'puppet:///postfix_dir/maps/my-networks'
-# virtual-regex:
-# ensure: 'present'
-# path: '/etc/postfix/maps/virtual-regex'
-# source: 'puppet:///postfix_dir/maps/virtual-regex'
- ldap-alias:
- ensure: 'present'
- path: '/etc/postfix/ldap/alias.cf'
- options:
- server_host: "%{hiera('ldap_server')}"
- server_port: "%{hiera('ldap_port')}"
- timeout: "%{hiera('ldap_timeout')}"
- search_base: "%{hiera('ldap_search_base')}"
- query_filter: '(mailAlternateAddress=%u@pixelpark.com)'
- result_attribute: 'mail'
- bind: 'yes'
- bind_dn: "%{hiera('ldap_bind_dn')}"
- bind_pw: "%{hiera('ldap_bind_pw')}"
-# ldap-mailhost:
+# ldap-alias:
# ensure: 'present'
-# path: '/etc/postfix/ldap/mailhost.cf'
+# path: '/etc/postfix/ldap/alias.cf'
# options:
# server_host: "%{hiera('ldap_server')}"
# server_port: "%{hiera('ldap_port')}"
# timeout: "%{hiera('ldap_timeout')}"
# search_base: "%{hiera('ldap_search_base')}"
-# query_filter: '(&(objectclass=inetLocalMailRecipient)(|(mail=%s)(mailAlternateAddress=%s)(mailEquivalentAddress=%s))(|(inetMailGroupStatus=active)(mailUserStatus=active)(mailUserStatus=hold)))'
-# result_attribute: 'mailhost'
-# result_format: 'smtp:[%s]'
+# query_filter: '(mailAlternateAddress=%u@pixelpark.com)'
+# result_attribute: 'mail'
# bind: 'yes'
# bind_dn: "%{hiera('ldap_bind_dn')}"
# bind_pw: "%{hiera('ldap_bind_pw')}"