69 lines
2.5 KiB
Python
69 lines
2.5 KiB
Python
# -*- python -*-
|
|
|
|
# Copyright (C) 1998,1999,2000,2001,2002 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
"""This module contains your site-specific settings.
|
|
|
|
From a brand new 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. Mailman's installation procedure will never overwrite your mm_cfg.py
|
|
file.
|
|
|
|
The complete set of distributed defaults, with documentation, are in the file
|
|
Defaults.py. In mm_cfg.py, 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
|
|
administrator and user interfaces on a per-list or per-user basis.
|
|
|
|
"""
|
|
|
|
###############################################
|
|
# Here's where we get the distributed defaults.
|
|
|
|
from Defaults import *
|
|
import pwd, grp
|
|
|
|
#NOTE: when you use SELinux, you need to restart service to
|
|
# make your changes take effect.
|
|
|
|
##############################################################
|
|
# Here's where we override shipped defaults with settings #
|
|
# suitable for the RPM package. #
|
|
MAILMAN_UID = pwd.getpwnam('mailman')[2]
|
|
MAILMAN_GID = grp.getgrnam('mailman')[2]
|
|
|
|
# Set these values according to your needs.
|
|
DEFAULT_URL_PATTERN = "http://%s/mailman/"
|
|
PRIVATE_ARCHIVE_URL = "/private"
|
|
PUBLIC_ARCHIVE_URL = "http://example.com/archives/search/%(listname)s"
|
|
MAILMAN_SITE_LIST = "mailman"
|
|
DEFAULT_URL_HOST = "mail.example.com"
|
|
DEFAULT_EMAIL_HOST = "example.com"
|
|
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
|
|
|
|
|
|
##############################################################
|
|
# Put YOUR site-specific configuration below, in mm_cfg.py . #
|
|
# See Defaults.py for explanations of the values. #
|
|
|
|
# Note - if you're looking for something that is imported from mm_cfg, but you
|
|
# didn't find it above, it's probably in Defaults.py.
|