ccdd61
# -*- python -*-
ccdd61
ccdd61
# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
ccdd61
#
ccdd61
# This program is free software; you can redistribute it and/or
ccdd61
# modify it under the terms of the GNU General Public License
ccdd61
# as published by the Free Software Foundation; either version 2
ccdd61
# of the License, or (at your option) any later version.
ccdd61
# 
ccdd61
# This program is distributed in the hope that it will be useful,
ccdd61
# but WITHOUT ANY WARRANTY; without even the implied warranty of
ccdd61
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ccdd61
# GNU General Public License for more details.
ccdd61
# 
ccdd61
# You should have received a copy of the GNU General Public License
ccdd61
# along with this program; if not, write to the Free Software 
ccdd61
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
ccdd61
ccdd61
"""This module contains your site-specific settings.
ccdd61
ccdd61
From a brand new distribution it should be copied to mm_cfg.py.  If you
ccdd61
already have an mm_cfg.py, be careful to add in only the new settings you
ccdd61
want.  Mailman's installation procedure will never overwrite your mm_cfg.py
ccdd61
file.
ccdd61
ccdd61
The complete set of distributed defaults, with documentation, are in the file
ccdd61
Defaults.py.  In mm_cfg.py, override only those you want to change, after the
ccdd61
ccdd61
  from Defaults import *
ccdd61
ccdd61
line (see below).
ccdd61
ccdd61
Note that these are just default settings; many can be overridden via the
ccdd61
administrator and user interfaces on a per-list or per-user basis.
ccdd61
ccdd61
"""
ccdd61
ccdd61
###############################################
ccdd61
# Here's where we get the distributed defaults.
ccdd61
ccdd61
from Defaults import *
ccdd61
import pwd, grp
ccdd61
ccdd61
##################################################
ccdd61
# Put YOUR site-specific settings below this line.
ccdd61
ccdd61
#ATTENTION: when you use SELinux, mailman might not
ccdd61
#be able to recompile the configuration file 
ccdd61
#due to policy settings. If this is the case,
ccdd61
#please run (as root) the supplied "mailman-update-cfg" script
ccdd61
ccdd61
##############################################################
ccdd61
#    Here's where we override shipped defaults with settings #
ccdd61
#    suitable for the RPM package.                           #
ccdd61
MAILMAN_UID = pwd.getpwnam('mailman')[2]
ccdd61
MAILMAN_GID = grp.getgrnam('mailman')[2]
ccdd61
ccdd61
##############################################################
ccdd61
#    Set URL and email domain names                          #
ccdd61
# 
ccdd61
# Mailman needs to know about (at least) two fully-qualified domain
ccdd61
# names (fqdn)
ccdd61
#
ccdd61
# 1) the hostname used in your urls (DEFAULT_URL_HOST)
ccdd61
# 2) the hostname used in email addresses for your domain (DEFAULT_EMAIL_HOST)
ccdd61
#
ccdd61
# For example, if people visit your Mailman system with
ccdd61
# "http://www.dom.ain/mailman" then your url fqdn is "www.dom.ain",
ccdd61
# and if people send mail to your system via "yourlist@dom.ain" then
ccdd61
# your email fqdn is "dom.ain".  DEFAULT_URL_HOST controls the former,
ccdd61
# and DEFAULT_EMAIL_HOST controls the latter.  Mailman also needs to
ccdd61
# know how to map from one to the other (this is especially important
ccdd61
# if you're running with virtual domains).  You use
ccdd61
# "add_virtualhost(urlfqdn, emailfqdn)" to add new mappings.
ccdd61
ccdd61
# Default to using the FQDN of machine mailman is running on.
ccdd61
# If this is not correct for your installation delete the following 5
ccdd61
# lines that acquire the FQDN and manually edit the hosts instead.
ccdd61
ccdd61
from socket import *
ccdd61
try:
ccdd61
    fqdn = getfqdn()
ccdd61
except:
ccdd61
    fqdn = 'mm_cfg_has_unknown_host_domains'
ccdd61
ccdd61
DEFAULT_URL_HOST   = fqdn
ccdd61
DEFAULT_EMAIL_HOST = fqdn
ccdd61
ccdd61
# Because we've overriden the virtual hosts above add_virtualhost
ccdd61
# MUST be called after they have been defined.
ccdd61
ccdd61
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
ccdd61
ccdd61
ccdd61
##############################################################
ccdd61
# Put YOUR site-specific configuration below, in mm_cfg.py . #
ccdd61
# See Defaults.py for explanations of the values.	     #
ccdd61
ccdd61
# Note - if you're looking for something that is imported from mm_cfg, but you
ccdd61
# didn't find it above, it's probably in Defaults.py.