/[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 1359 - (hide annotations) (download)
Tue Mar 22 21:25:53 2011 UTC (13 years, 1 month ago) by misc
File size: 3433 byte(s)
- add back the domain for mailling list, this was not needed before as
the domain was not a virtual one

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 misc 33 # These are changed by postfix install script
8     readme_directory = /usr/share/doc/postfix/README_FILES
9     html_directory = /usr/share/doc/postfix/html
10     sendmail_path = /usr/sbin/sendmail.postfix
11     setgid_group = postdrop
12     command_directory = /usr/sbin
13     manpage_directory = /usr/share/man
14 misc 340 daemon_directory = <%= lib_dir %>/postfix/
15 misc 33 data_directory = /var/lib/postfix
16     newaliases_path = /usr/bin/newaliases
17     mailq_path = /usr/bin/mailq
18     queue_directory = /var/spool/postfix
19     mail_owner = postfix
20    
21     # User configurable parameters
22    
23 misc 329 <% if all_tags.include?('postfix::simple_relay') %>
24 misc 33 inet_interfaces = localhost
25 misc 294 <% else %>
26     inet_interfaces = all
27     <% end %>
28    
29 misc 33 inet_protocols = all
30     mynetworks_style = host
31 boklm 275 myhostname = <%= fqdn %>
32     mydomain = <%= domain %>
33     mydestination = <%= fqdn %>
34     myorigin = $mydomain
35 misc 330 <%- if all_tags.include?('postfix::secondary_smtp') -%>
36     relay_domains = <%= domain %>, ml.<%= domain %>
37     <%- end -%>
38    
39     mydestination = <%= fqdn %>
40 misc 1359 <%- if classes.include?('sympa::server') -%>
41     ml.<%= domain %>
42     <%- end -%>
43    
44 misc 329 <%- if all_tags.include?('postfix::primary_smtp') -%>
45 misc 332
46 misc 1346 virtual_mailbox_domains = <%= domain %>
47    
48 misc 1080 # local_recipient_maps is disabled, as we need to route all
49     # non local email to ryu as long as mageia ml are hosted
50     # there. Hence the use of fallback_transport , but this is
51     # taken in account only of local_recipient_maps is empty
52     local_recipient_maps =
53     # route ml to ryu ( ml being mageia-*@mageia )
54 misc 1302 fallback_transport_maps = regexp:/etc/postfix/transport_regexp
55 misc 1080
56    
57 misc 463 alias_maps = hash:/etc/postfix/aliases
58 misc 1346
59     virtual_alias_maps = ldap:/etc/postfix/ldap_aliases.conf
60 misc 1347 hash:/etc/postfix/virtual_aliases
61 misc 287 <%- end -%>
62 misc 332
63 misc 333
64     <%- if all_tags.include?('postfix::smtp_server') -%>
65 misc 287 transport_maps = regexp:/etc/postfix/transport_regexp
66 misc 472 content_filter = smtp-filter:[127.0.0.1]:10025
67 misc 327 <%- end -%>
68 misc 326
69 misc 552 <%- if classes.include?('sympa::server') -%>
70 misc 287 sympa_destination_recipient_limit = 1
71     sympabounce_destination_recipient_limit = 1
72 misc 329 <%- end -%>
73 misc 326
74 misc 33 #delay_warning_time = 4h
75     smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
76     unknown_local_recipient_reject_code = 450
77     smtp-filter_destination_concurrency_limit = 2
78     lmtp-filter_destination_concurrency_limit = 2
79 misc 653 # disabled for the time being, as the certificate do not exist
80     # FIXME create the cert in puppet
81     smtpd_use_tls = no
82     #smtpd_tls_cert_file = /etc/pki/tls/certs/postfix.pem
83     #smtpd_tls_key_file = /etc/pki/tls/private/postfix.pem
84     #smtpd_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
85 misc 294
86 misc 329 <%- if all_tags.include?('postfix::smtp_server') -%>
87 misc 326 smtpd_etrn_restrictions = reject
88    
89     smtpd_helo_required = yes
90    
91     smtpd_data_restrictions = reject_unauth_pipelining
92     reject_multi_recipient_bounce
93    
94 misc 329 smtpd_recipient_restrictions = reject_non_fqdn_recipient
95     reject_non_fqdn_sender
96     # not done yet, not sure if we need to offer this kind of service
97 misc 294 # permit_sasl_authenticated
98     permit_mynetworks
99     reject_unauth_destination
100 misc 326 reject_non_fqdn_helo_hostname
101 misc 294 reject_unknown_sender_domain
102     reject_unknown_client
103 misc 329 <%- if classes.include?('postgrey') -%>
104 misc 294 check_policy_service unix:extern/postgrey/socket
105 misc 329 <%- end -%>
106     <%- end -%>
107 misc 294

  ViewVC Help
Powered by ViewVC 1.1.30