diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-19 20:19:01 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-19 20:19:01 +0000 |
commit | 40d4203c0e8361f03380283c0d1a0e0bfe72bd53 (patch) | |
tree | 089e1c7b3bc11f517dbcc23f693d3fc370fb317b /modules/postfix/templates/main.cf | |
parent | 5c04066bbab3d4b1a6aadf98cd213dd5df6c16f8 (diff) | |
download | puppet-40d4203c0e8361f03380283c0d1a0e0bfe72bd53.tar puppet-40d4203c0e8361f03380283c0d1a0e0bfe72bd53.tar.gz puppet-40d4203c0e8361f03380283c0d1a0e0bfe72bd53.tar.bz2 puppet-40d4203c0e8361f03380283c0d1a0e0bfe72bd53.tar.xz puppet-40d4203c0e8361f03380283c0d1a0e0bfe72bd53.zip |
- use all_tags instead of classes because of some obscure puppet issues,
basically, classes correspond to the classes when the ressource is
declared, not to the one of the node ( which is given by
all_tags )
- remove empty line ( with <%- )
Diffstat (limited to 'modules/postfix/templates/main.cf')
-rw-r--r-- | modules/postfix/templates/main.cf | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/modules/postfix/templates/main.cf b/modules/postfix/templates/main.cf index 80e2b316..e4a29ea7 100644 --- a/modules/postfix/templates/main.cf +++ b/modules/postfix/templates/main.cf @@ -23,7 +23,7 @@ mail_owner = postfix # User configurable parameters -<% if classes.include?('postfix::simple_relay') %> +<% if all_tags.include?('postfix::simple_relay') %> inet_interfaces = localhost <% else %> inet_interfaces = all @@ -35,19 +35,19 @@ myhostname = <%= fqdn %> mydomain = <%= domain %> mydestination = <%= fqdn %> myorigin = $mydomain -<%- if classes.include?('postfix::smtp_server') -%> +<%- if all_tags.include?('postfix::smtp_server') -%> relay_domains = $mydestination, ml.<%= domain %>, -<%- if classes.include?('postfix::primary_smtp') -%> +<%- if all_tags.include?('postfix::primary_smtp') -%> <%= domain %> <%- end -%> transport_maps = regexp:/etc/postfix/transport_regexp <%- end -%> -<% if classes.include?('sympa') %> +<%- if classes.include?('sympa') -%> sympa_destination_recipient_limit = 1 sympabounce_destination_recipient_limit = 1 -<% end %> +<%- end -%> #delay_warning_time = 4h smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux) @@ -59,7 +59,7 @@ smtpd_tls_cert_file = /etc/pki/tls/certs/postfix.pem smtpd_tls_key_file = /etc/pki/tls/private/postfix.pem smtpd_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt -<% if classes.include?('postfix::smtp_server') %> +<%- if all_tags.include?('postfix::smtp_server') -%> smtpd_etrn_restrictions = reject smtpd_helo_required = yes @@ -67,18 +67,17 @@ smtpd_helo_required = yes smtpd_data_restrictions = reject_unauth_pipelining reject_multi_recipient_bounce -smtpd_recipient_restrictions = -# not done yet -# permit_sasl_authenticated - reject_non_fqdn_recipient +smtpd_recipient_restrictions = reject_non_fqdn_recipient reject_non_fqdn_sender +# not done yet, not sure if we need to offer this kind of service +# permit_sasl_authenticated permit_mynetworks reject_unauth_destination reject_non_fqdn_helo_hostname reject_unknown_sender_domain reject_unknown_client - <% if classes.include?('postgrey') %> + <%- if classes.include?('postgrey') -%> check_policy_service unix:extern/postgrey/socket - <% end %> -<% end %> + <%- end -%> +<%- end -%> |