summaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-09-28 22:23:20 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2011-09-28 22:28:12 +0200
commita537ee33121b7f43966661c37e13682524820983 (patch)
treebdf3f0408e9686e3ce3ee532973f835a5ef607e8 /config.py
parent94897110886c6af645260a39c70c244e7e69fce2 (diff)
downloadsites-a537ee33121b7f43966661c37e13682524820983.tar.gz
sites-a537ee33121b7f43966661c37e13682524820983.tar.bz2
sites-a537ee33121b7f43966661c37e13682524820983.zip
added config, externalized util
added external config file (usage from multiple own modules) externalized some functions to seperate module
Diffstat (limited to 'config.py')
-rw-r--r--config.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/config.py b/config.py
new file mode 100644
index 0000000..a35e3bd
--- /dev/null
+++ b/config.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+
+import socket, sys
+
+mailman_path = '/usr/lib/mailman'
+sys.path += [mailman_path]
+
+admin_emails = [
+ 'alex@animux.de',
+ #'mailman-newlists@lists.spline.de',
+ ]
+
+valid_ips = [
+ r'^160\.0?45\.',
+ r'^130\.133\.',
+ r'^87\.77\.',
+ r'^2001:6f8:1c3c:67f0:',
+ r'^127\.0\.',
+ ]
+
+invalid_ips = [
+ ]
+
+try:
+ invalid_ips.append(socket.gethostbyname('squid.fu-berlin.de'))
+except:
+ pass
+
+reserved_names = [
+ r'-admin$',
+ r'-join$',
+ r'-leave$',
+ r'-owner$',
+ r'-request$',
+ r'-bounces$',
+ ]
+
+listadmins_list = 'listadmins'