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

Contents of /rpms/mailman/contribs9/mm_cfg.py

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


Revision 1.1 - (show annotations) (download) (as text)
Fri Aug 21 17:30:01 2015 UTC (9 years, 2 months ago) by stephdl
Branch: MAIN
CVS Tags: mailman-2_1_12-103_el6_sme, mailman-2_1_12-100_el6_sme, mailman-2_1_12-104_el6_sme, mailman-2_1_12-25_el6_sme_sme, mailman-2_1_12-102_el6_sme, mailman-2_1_12-101_el6_sme, HEAD
Content type: text/x-python
Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.1.12
2.1.12-25.sme.sme - Initial release to contribs9

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 #ATTENTION: when you use SELinux, mailman might not
48 #be able to recompile the configuration file
49 #due to policy settings. If this is the case,
50 #please run (as root) the supplied "mailman-update-cfg" script
51
52 ##############################################################
53 # Here's where we override shipped defaults with settings #
54 # suitable for the RPM package. #
55 MAILMAN_UID = pwd.getpwnam('mailman')[2]
56 MAILMAN_GID = grp.getgrnam('mailman')[2]
57
58 ##############################################################
59 # Set URL and email domain names #
60 #
61 # Mailman needs to know about (at least) two fully-qualified domain
62 # names (fqdn)
63 #
64 # 1) the hostname used in your urls (DEFAULT_URL_HOST)
65 # 2) the hostname used in email addresses for your domain (DEFAULT_EMAIL_HOST)
66 #
67 # For example, if people visit your Mailman system with
68 # "http://www.dom.ain/mailman" then your url fqdn is "www.dom.ain",
69 # and if people send mail to your system via "yourlist@dom.ain" then
70 # your email fqdn is "dom.ain". DEFAULT_URL_HOST controls the former,
71 # and DEFAULT_EMAIL_HOST controls the latter. Mailman also needs to
72 # know how to map from one to the other (this is especially important
73 # if you're running with virtual domains). You use
74 # "add_virtualhost(urlfqdn, emailfqdn)" to add new mappings.
75
76 # Default to using the FQDN of machine mailman is running on.
77 # If this is not correct for your installation delete the following 5
78 # lines that acquire the FQDN and manually edit the hosts instead.
79
80 from socket import *
81 try:
82 fqdn = getfqdn()
83 except:
84 fqdn = 'mm_cfg_has_unknown_host_domains'
85
86 DEFAULT_URL_HOST = fqdn
87 DEFAULT_EMAIL_HOST = fqdn
88
89 # Because we've overriden the virtual hosts above add_virtualhost
90 # MUST be called after they have been defined.
91
92 add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
93
94
95 ##############################################################
96 # Put YOUR site-specific configuration below, in mm_cfg.py . #
97 # See Defaults.py for explanations of the values. #
98
99 # Note - if you're looking for something that is imported from mm_cfg, but you
100 # 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