227 lines
8.3 KiB
Django/Jinja
227 lines
8.3 KiB
Django/Jinja
{{ ansible_header | comment }}
|
|
# -*- python -*-
|
|
|
|
# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc.
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
# 02110-1301 USA
|
|
|
|
|
|
"""This is the module which takes your site-specific settings.
|
|
|
|
From a raw distribution it should be copied to mm_cfg.py. If you
|
|
already have an mm_cfg.py, be careful to add in only the new settings
|
|
you want. The complete set of distributed defaults, with annotation,
|
|
are in ./Defaults. In mm_cfg, override only those you want to
|
|
change, after the
|
|
|
|
from Defaults import *
|
|
|
|
line (see below).
|
|
|
|
Note that these are just default settings - many can be overridden via the
|
|
admin and user interfaces on a per-list or per-user basis.
|
|
|
|
Note also that some of the settings are resolved against the active list
|
|
setting by using the value as a format string against the
|
|
list-instance-object's dictionary - see the distributed value of
|
|
DEFAULT_MSG_FOOTER for an example."""
|
|
|
|
|
|
#######################################################
|
|
# Here's where we get the distributed defaults. #
|
|
|
|
from Defaults import *
|
|
|
|
|
|
#####
|
|
# General system-wide defaults
|
|
#####
|
|
|
|
# Should image logos be used? Set this to 0 to disable image logos from "our
|
|
# sponsors" and just use textual links instead (this will also disable the
|
|
# shortcut "favicon"). Otherwise, this should contain the URL base path to
|
|
# the logo images (and must contain the trailing slash).. If you want to
|
|
# disable Mailman's logo footer altogther, hack
|
|
# Mailman/htmlformat.py:MailmanLogo(), which also contains the hardcoded links
|
|
# and image names.
|
|
IMAGE_LOGOS = '/images/mailman/'
|
|
|
|
#-------------------------------------------------------------
|
|
# The name of the list Mailman uses to send password reminders
|
|
# and similar. Don't change if you want mailman-owner to be
|
|
# a valid local part.
|
|
MAILMAN_SITE_LIST = '{{ mailman.site_list }}'
|
|
|
|
DEFAULT_URL= '{{ mailman.default_url }}'
|
|
DEFAULT_URL_PATTERN = 'https://%s/'
|
|
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
|
|
|
|
#-------------------------------------------------------------
|
|
# Default domain for email addresses of newly created MLs
|
|
DEFAULT_EMAIL_HOST = '{{ mailman.default_host }}'
|
|
#-------------------------------------------------------------
|
|
# Default host for web interface of newly created MLs
|
|
DEFAULT_URL_HOST = '{{ mailman.default_host }}'
|
|
#-------------------------------------------------------------
|
|
# Required when setting any of its arguments.
|
|
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
|
|
|
|
#-------------------------------------------------------------
|
|
# Do we send monthly reminders?
|
|
DEFAULT_SEND_REMINDERS = No
|
|
|
|
# Normally when a site administrator authenticates to a web page with the site
|
|
# password, they get a cookie which authorizes them as the list admin. It
|
|
# makes me nervous to hand out site auth cookies because if this cookie is
|
|
# cracked or intercepted, the intruder will have access to every list on the
|
|
# site. OTOH, it's dang handy to not have to re-authenticate to every list on
|
|
# the site. Set this value to Yes to allow site admin cookies.
|
|
ALLOW_SITE_ADMIN_COOKIES = Yes
|
|
|
|
#####
|
|
# Archive defaults
|
|
#####
|
|
|
|
PUBLIC_ARCHIVE_URL = '{{ mailman.default_url }}archives/%(listname)s'
|
|
|
|
# Are archives on or off by default?
|
|
DEFAULT_ARCHIVE = Off
|
|
|
|
# Are archives public or private by default?
|
|
# 0=public, 1=private
|
|
DEFAULT_ARCHIVE_PRIVATE = 1
|
|
|
|
# Pipermail assumes that messages bodies contain US-ASCII text.
|
|
# Change this option to define a different character set to be used as
|
|
# the default character set for the archive. The term "character set"
|
|
# is used in MIME to refer to a method of converting a sequence of
|
|
# octets into a sequence of characters. If you change the default
|
|
# charset, you might need to add it to VERBATIM_ENCODING below.
|
|
DEFAULT_CHARSET = 'utf-8'
|
|
|
|
# Most character set encodings require special HTML entity characters to be
|
|
# quoted, otherwise they won't look right in the Pipermail archives. However
|
|
# some character sets must not quote these characters so that they can be
|
|
# rendered properly in the browsers. The primary issue is multi-byte
|
|
# encodings where the octet 0x26 does not always represent the & character.
|
|
# This variable contains a list of such characters sets which are not
|
|
# HTML-quoted in the archives.
|
|
VERBATIM_ENCODING = ['utf-8']
|
|
|
|
#####
|
|
# General defaults
|
|
#####
|
|
|
|
# The default language for this server. Whenever we can't figure out the list
|
|
# context or user context, we'll fall back to using this language. See
|
|
# LC_DESCRIPTIONS below for legal values.
|
|
DEFAULT_SERVER_LANGUAGE = '{{ mailman.default_language }}'
|
|
|
|
# How many members to display at a time on the admin cgi to unsubscribe them
|
|
# or change their options?
|
|
DEFAULT_ADMIN_MEMBER_CHUNKSIZE = 50
|
|
|
|
# set this variable to Yes to allow list owners to delete their own mailing
|
|
# lists. You may not want to give them this power, in which case, setting
|
|
# this variable to No instead requires list removal to be done by the site
|
|
# administrator, via the command line script bin/rmlist.
|
|
#OWNERS_CAN_DELETE_THEIR_OWN_LISTS = No
|
|
|
|
# Set this variable to Yes to allow list owners to set the "personalized"
|
|
# flags on their mailing lists. Turning these on tells Mailman to send
|
|
# separate email messages to each user instead of batching them together for
|
|
# delivery to the MTA. This gives each member a more personalized message,
|
|
# but can have a heavy impact on the performance of your system.
|
|
#OWNERS_CAN_ENABLE_PERSONALIZATION = No
|
|
|
|
#####
|
|
# List defaults. NOTE: Changing these values does NOT change the
|
|
# configuration of an existing list. It only defines the default for new
|
|
# lists you subsequently create.
|
|
#####
|
|
|
|
# Should a list, by default be advertised? What is the default maximum number
|
|
# of explicit recipients allowed? What is the default maximum message size
|
|
# allowed?
|
|
DEFAULT_LIST_ADVERTISED = Yes
|
|
|
|
# {header-name: regexp} spam filtering - we include some for example sake.
|
|
DEFAULT_BOUNCE_MATCHING_HEADERS = """
|
|
# Les lignes commencant par # sont des commentairtes.
|
|
#from: .*-owner@yahoogroups.com
|
|
#from: .*@uplinkpro.com
|
|
#from: .*@coolstats.comic.com
|
|
#from: .*@trafficmagnet.com
|
|
#from: .*@hotmail.com
|
|
#X-Reject: 450
|
|
#X-Reject: 554
|
|
"""
|
|
|
|
# Mailman can be configured to strip any existing Reply-To: header, or simply
|
|
# extend any existing Reply-To: with one based on the above setting.
|
|
DEFAULT_FIRST_STRIP_REPLY_TO = Yes
|
|
|
|
# SUBSCRIBE POLICY
|
|
# 0 - open list (only when ALLOW_OPEN_SUBSCRIBE is set to 1) **
|
|
# 1 - confirmation required for subscribes
|
|
# 2 - admin approval required for subscribes
|
|
# 3 - both confirmation and admin approval required
|
|
#
|
|
# ** please do not choose option 0 if you are not allowing open
|
|
# subscribes (next variable)
|
|
DEFAULT_SUBSCRIBE_POLICY = 3
|
|
|
|
# Is the list owner notified of subscribes/unsubscribes?
|
|
DEFAULT_ADMIN_NOTIFY_MCHANGES = Yes
|
|
|
|
# Do we send monthly reminders?
|
|
DEFAULT_SEND_REMINDERS = No
|
|
|
|
# What should happen to non-member posts which do not match explicit
|
|
# non-member actions?
|
|
# 0 = Accept
|
|
# 1 = Hold
|
|
# 2 = Reject
|
|
# 3 = Discard
|
|
DEFAULT_GENERIC_NONMEMBER_ACTION = 1
|
|
|
|
# Use spamassassin automatically
|
|
GLOBAL_PIPELINE.insert(5, '{{ spamassassin }}')
|
|
# Discard messages with score higher than ...
|
|
SPAMASSASSIN_DISCARD_SCORE = 8
|
|
# Hold in moderation messages with score higher than ...
|
|
SPAMASSASSIN_HOLD_SCORE = 2.1
|
|
|
|
# Add SpamAssassin administration interface on gui
|
|
# To make it work, you need to edit Gui/__init__.py
|
|
# with
|
|
# from SpamAssassin import SpamAssassin
|
|
ADMIN_CATEGORIES.append("spamassassin")
|
|
|
|
# Add header to keep
|
|
PLAIN_DIGEST_KEEP_HEADERS.append('X-Spam-Score')
|
|
|
|
# configure MTA
|
|
MTA = 'Postfix'
|
|
SMTPHOST = '{{ smtphost }}'
|
|
SMTP_MAX_RCPTS = 50
|
|
|
|
|
|
POSTFIX_STYLE_VIRTUAL_DOMAINS = ["{{ mailman.default_host }}"]
|
|
|
|
# Note - if you're looking for something that is imported from mm_cfg, but you
|
|
# didn't find it above, it's probably in /usr/lib/mailman/Mailman/Defaults.py.
|