/[smecontribs]/rpms/mailman/contribs7/mm_cfg.py
ViewVC logotype

Annotation of /rpms/mailman/contribs7/mm_cfg.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download) (as text)
Tue Nov 25 16:20:13 2008 UTC (15 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
Content type: text/x-python
Restore

1 slords 1.1 # -*- python -*-
2    
3     # Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
4     #
5     # This program is free software; you can redistribute it and/or
6     # modify it under the terms of the GNU General Public License
7     # as published by the Free Software Foundation; either version 2
8     # of the License, or (at your option) any later version.
9     #
10     # This program is distributed in the hope that it will be useful,
11     # but WITHOUT ANY WARRANTY; without even the implied warranty of
12     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13     # GNU General Public License for more details.
14     #
15     # You should have received a copy of the GNU General Public License
16     # along with this program; if not, write to the Free Software
17     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18    
19     """This module contains your site-specific settings.
20    
21     From a brand new distribution it should be copied to mm_cfg.py. If you
22     already have an mm_cfg.py, be careful to add in only the new settings you
23     want. Mailman's installation procedure will never overwrite your mm_cfg.py
24     file.
25    
26     The complete set of distributed defaults, with documentation, are in the file
27     Defaults.py. In mm_cfg.py, override only those you want to change, after the
28    
29     from Defaults import *
30    
31     line (see below).
32    
33     Note that these are just default settings; many can be overridden via the
34     administrator and user interfaces on a per-list or per-user basis.
35    
36     """
37    
38     ###############################################
39     # Here's where we get the distributed defaults.
40    
41     from Defaults import *
42     import pwd, grp
43    
44     ##################################################
45     # Put YOUR site-specific settings below this line.
46    
47     ##############################################################
48     # Here's where we override shipped defaults with settings #
49     # suitable for the RPM package. #
50     MAILMAN_UID = pwd.getpwnam('mailman')[2]
51     MAILMAN_GID = grp.getgrnam('mailman')[2]
52    
53     ##############################################################
54     # Set URL and email domain names #
55     #
56     # Mailman needs to know about (at least) two fully-qualified domain
57     # names (fqdn)
58     #
59     # 1) the hostname used in your urls (DEFAULT_URL_HOST)
60     # 2) the hostname used in email addresses for your domain (DEFAULT_EMAIL_HOST)
61     #
62     # For example, if people visit your Mailman system with
63     # "http://www.dom.ain/mailman" then your url fqdn is "www.dom.ain",
64     # and if people send mail to your system via "yourlist@dom.ain" then
65     # your email fqdn is "dom.ain". DEFAULT_URL_HOST controls the former,
66     # and DEFAULT_EMAIL_HOST controls the latter. Mailman also needs to
67     # know how to map from one to the other (this is especially important
68     # if you're running with virtual domains). You use
69     # "add_virtualhost(urlfqdn, emailfqdn)" to add new mappings.
70    
71     # Default to using the FQDN of machine mailman is running on.
72     # If this is not correct for your installation delete the following 5
73     # lines that acquire the FQDN and manually edit the hosts instead.
74    
75     from socket import *
76     try:
77     fqdn = getfqdn()
78     except:
79     fqdn = 'mm_cfg_has_unknown_host_domains'
80    
81     DEFAULT_URL_HOST = fqdn
82     DEFAULT_EMAIL_HOST = fqdn
83    
84     # Because we've overriden the virtual hosts above add_virtualhost
85     # MUST be called after they have been defined.
86    
87     add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
88    
89    
90     ##############################################################
91     # Put YOUR site-specific configuration below, in mm_cfg.py . #
92     # See Defaults.py for explanations of the values. #
93    
94     # Note - if you're looking for something that is imported from mm_cfg, but you
95     # didn't find it above, it's probably in Defaults.py.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed