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