configure mailman; group mailman tasks together
[ansible.git] / roles / email / templates / mm_cfg.py
1 # -*- python -*-
2
3 # Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc.
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 # 02110-1301 USA
19
20
21 """This is the module which takes your site-specific settings.
22
23 From a raw distribution it should be copied to mm_cfg.py.  If you
24 already have an mm_cfg.py, be careful to add in only the new settings
25 you want.  The complete set of distributed defaults, with annotation,
26 are in ./Defaults.  In mm_cfg, override only those you want to
27 change, after the
28
29   from Defaults import *
30
31 line (see below).
32
33 Note that these are just default settings - many can be overridden via the
34 admin and user interfaces on a per-list or per-user basis.
35
36 Note also that some of the settings are resolved against the active list
37 setting by using the value as a format string against the
38 list-instance-object's dictionary - see the distributed value of
39 DEFAULT_MSG_FOOTER for an example."""
40
41
42 #######################################################
43 #    Here's where we get the distributed defaults.    #
44
45 from Defaults import *
46
47 ##############################################################
48 # Put YOUR site-specific configuration below, in mm_cfg.py . #
49 # See Defaults.py for explanations of the values.            #
50
51 #-------------------------------------------------------------
52 # The name of the list Mailman uses to send password reminders
53 # and similar. Don't change if you want mailman-owner to be
54 # a valid local part.
55 MAILMAN_SITE_LIST = 'mailman'
56
57 #-------------------------------------------------------------
58 # If you change these, you have to configure your http server
59 # accordingly (Alias and ScriptAlias directives in most httpds)
60 DEFAULT_URL_PATTERN = 'https://%s/'
61 IMAGE_LOGOS         = '/images/mailman/'
62 PUBLIC_ARCHIVE_URL = 'https://%(hostname)s/pipermail/%(listname)s/'
63
64 #-------------------------------------------------------------
65 # Default domain for email addresses of newly created MLs
66 DEFAULT_EMAIL_HOST = '{{postfix.mailman.default_host}}'
67 #-------------------------------------------------------------
68 # Default host for web interface of newly created MLs
69 DEFAULT_URL_HOST   = '{{postfix.mailman.default_host}}'
70 #-------------------------------------------------------------
71 # Required when setting any of its arguments.
72 add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
73
74 #-------------------------------------------------------------
75 # The default language for this server.
76 DEFAULT_SERVER_LANGUAGE = '{{postfix.mailman.default_lang}}'
77
78 #-------------------------------------------------------------
79 # Iirc this was used in pre 2.1, leave it for now
80 USE_ENVELOPE_SENDER    = 0              # Still used?
81
82 #-------------------------------------------------------------
83 # Unset send_reminders on newly created lists
84 DEFAULT_SEND_REMINDERS = 0
85
86 #-------------------------------------------------------------
87 # Uncomment this if you configured your MTA such that it
88 # automatically recognizes newly created lists.
89 # (see /usr/share/doc/mailman/README.Exim4.Debian or
90 # /usr/share/mailman/postfix-to-mailman.py)
91 # MTA=None   # Misnomer, suppresses alias output on newlist
92
93 #-------------------------------------------------------------
94 # Uncomment if you use Postfix virtual domains (but not
95 # postfix-to-mailman.py), but be sure to see
96 # /usr/share/doc/mailman/README.Debian first.
97 MTA='Postfix'
98
99 POSTFIX_STYLE_VIRTUAL_DOMAINS = [
100 {% for item in postfix.mailman.domains %}
101     '{{item}}',
102 {% endfor %}
103 ]
104
105 DEB_LISTMASTER = '{{postfix.postmaster}}'
106
107 #-------------------------------------------------------------
108 # Uncomment if you want to filter mail with SpamAssassin. For
109 # more information please visit this website:
110 # http://www.jamesh.id.au/articles/mailman-spamassassin/
111 # GLOBAL_PIPELINE.insert(1, 'SpamAssassin')
112
113 # Note - if you're looking for something that is imported from mm_cfg, but you
114 # didn't find it above, it's probably in /usr/lib/mailman/Mailman/Defaults.py.
115
116
117 #-------------------------------------------------------------
118 # other, custom configuration
119
120 DEFAULT_ARCHIVE = Off
121 DEFAULT_MAX_MESSAGE_SIZE = 1024           # KB
122 DEFAULT_ADMIN_MEMBER_CHUNKSIZE = 100
123
124 # footer
125 DEFAULT_MSG_FOOTER = """{{postfix.mailman.default_footer}}"""
126 DEFAULT_DIGEST_FOOTER = DEFAULT_MSG_FOOTER
127
128 # DMARC, DKIM-compatibility
129 REMOVE_DKIM_HEADERS = 1 # remove DKIM headers for lists where From: is changed
130 DEFAULT_DMARC_MODERATION_ACTION = 1 # Munge From