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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 333 - (show annotations) (download)
Fri Nov 19 20:19:09 2010 UTC (13 years, 5 months ago) by misc
File size: 3018 byte(s)
- fix template
1 # 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 <%
7 path_daemon_directory = "/usr/lib" + ( architecture == "x86_64" ? '64' : '') + "/postfix/"
8 %>
9
10 # 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 <% if all_tags.include?('postfix::simple_relay') %>
27 inet_interfaces = localhost
28 <% else %>
29 inet_interfaces = all
30 <% end %>
31
32 inet_protocols = all
33 mynetworks_style = host
34 myhostname = <%= fqdn %>
35 mydomain = <%= domain %>
36 mydestination = <%= fqdn %>
37 myorigin = $mydomain
38 <%- if all_tags.include?('postfix::secondary_smtp') -%>
39 relay_domains = <%= domain %>, ml.<%= domain %>
40 <%- end -%>
41
42 mydestination = <%= fqdn %>
43 <%- if all_tags.include?('postfix::primary_smtp') -%>
44 <%= domain %>,
45 <%- if classes.include?('sympa') -%>
46 ml.<%= domain %>
47 <%- end -%>
48
49 alias_maps = hash:/etc/aliases
50 # uncomment if we want to enable ldap based alias
51 # and create the file
52 #ldap:/etc/postfix/ldap_aliases.conf
53 <%- end -%>
54
55
56 <%- if all_tags.include?('postfix::smtp_server') -%>
57 transport_maps = regexp:/etc/postfix/transport_regexp
58 <%- end -%>
59
60 <%- if classes.include?('sympa') -%>
61 sympa_destination_recipient_limit = 1
62 sympabounce_destination_recipient_limit = 1
63 <%- end -%>
64
65 #delay_warning_time = 4h
66 smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
67 unknown_local_recipient_reject_code = 450
68 smtp-filter_destination_concurrency_limit = 2
69 lmtp-filter_destination_concurrency_limit = 2
70 smtpd_use_tls = yes
71 smtpd_tls_cert_file = /etc/pki/tls/certs/postfix.pem
72 smtpd_tls_key_file = /etc/pki/tls/private/postfix.pem
73 smtpd_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
74
75 <%- if all_tags.include?('postfix::smtp_server') -%>
76 smtpd_etrn_restrictions = reject
77
78 smtpd_helo_required = yes
79
80 smtpd_data_restrictions = reject_unauth_pipelining
81 reject_multi_recipient_bounce
82
83 smtpd_recipient_restrictions = reject_non_fqdn_recipient
84 reject_non_fqdn_sender
85 # not done yet, not sure if we need to offer this kind of service
86 # permit_sasl_authenticated
87 permit_mynetworks
88 reject_unauth_destination
89 reject_non_fqdn_helo_hostname
90 reject_unknown_sender_domain
91 reject_unknown_client
92 <%- if classes.include?('postgrey') -%>
93 check_policy_service unix:extern/postgrey/socket
94 <%- end -%>
95 <%- end -%>
96

  ViewVC Help
Powered by ViewVC 1.1.30