/[adm]/puppet/modules/postfix/templates/main.cf
ViewVC logotype

Annotation of /puppet/modules/postfix/templates/main.cf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 329 - (hide annotations) (download)
Fri Nov 19 20:19:01 2010 UTC (13 years, 4 months ago) by misc
File size: 2678 byte(s)
- 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 <%- )
1 misc 33 # Please be sure to read the /usr/share/doc/postfix/README.MDK file
2     # to learn about differences from stock postfix to Mandriva package.
3     # This file contains only the parameters changed from a default install
4     # see /etc/postfix/main.cf.dist for a commented, fuller version of this file.
5    
6 misc 37 <%
7     path_daemon_directory = "/usr/lib" + ( architecture == "x86_64" ? '64' : '') + "/postfix/"
8     %>
9    
10 misc 33 # These are changed by postfix install script
11     readme_directory = /usr/share/doc/postfix/README_FILES
12     html_directory = /usr/share/doc/postfix/html
13     sendmail_path = /usr/sbin/sendmail.postfix
14     setgid_group = postdrop
15     command_directory = /usr/sbin
16     manpage_directory = /usr/share/man
17     daemon_directory = <%= path_daemon_directory %>
18     data_directory = /var/lib/postfix
19     newaliases_path = /usr/bin/newaliases
20     mailq_path = /usr/bin/mailq
21     queue_directory = /var/spool/postfix
22     mail_owner = postfix
23    
24     # User configurable parameters
25    
26 misc 329 <% if all_tags.include?('postfix::simple_relay') %>
27 misc 33 inet_interfaces = localhost
28 misc 294 <% else %>
29     inet_interfaces = all
30     <% end %>
31    
32 misc 33 inet_protocols = all
33     mynetworks_style = host
34 boklm 275 myhostname = <%= fqdn %>
35     mydomain = <%= domain %>
36     mydestination = <%= fqdn %>
37     myorigin = $mydomain
38 misc 329 <%- if all_tags.include?('postfix::smtp_server') -%>
39 misc 287 relay_domains = $mydestination,
40     ml.<%= domain %>,
41 misc 329 <%- if all_tags.include?('postfix::primary_smtp') -%>
42 misc 287 <%= domain %>
43     <%- end -%>
44     transport_maps = regexp:/etc/postfix/transport_regexp
45 misc 327 <%- end -%>
46 misc 326
47 misc 329 <%- if classes.include?('sympa') -%>
48 misc 287 sympa_destination_recipient_limit = 1
49     sympabounce_destination_recipient_limit = 1
50 misc 329 <%- end -%>
51 misc 326
52 misc 33 #delay_warning_time = 4h
53     smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
54     unknown_local_recipient_reject_code = 450
55     smtp-filter_destination_concurrency_limit = 2
56     lmtp-filter_destination_concurrency_limit = 2
57     smtpd_use_tls = yes
58     smtpd_tls_cert_file = /etc/pki/tls/certs/postfix.pem
59     smtpd_tls_key_file = /etc/pki/tls/private/postfix.pem
60     smtpd_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
61 misc 294
62 misc 329 <%- if all_tags.include?('postfix::smtp_server') -%>
63 misc 326 smtpd_etrn_restrictions = reject
64    
65     smtpd_helo_required = yes
66    
67     smtpd_data_restrictions = reject_unauth_pipelining
68     reject_multi_recipient_bounce
69    
70 misc 329 smtpd_recipient_restrictions = reject_non_fqdn_recipient
71     reject_non_fqdn_sender
72     # not done yet, not sure if we need to offer this kind of service
73 misc 294 # permit_sasl_authenticated
74     permit_mynetworks
75     reject_unauth_destination
76 misc 326 reject_non_fqdn_helo_hostname
77 misc 294 reject_unknown_sender_domain
78     reject_unknown_client
79 misc 329 <%- if classes.include?('postgrey') -%>
80 misc 294 check_policy_service unix:extern/postgrey/socket
81 misc 329 <%- end -%>
82     <%- end -%>
83 misc 294

  ViewVC Help
Powered by ViewVC 1.1.30