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