[Mailman-Users] configuration problem
Russell L. Carter
rcarter at pinyon.org
Thu Jan 27 02:35:20 CET 2011
Installing on debian testing, all packages up to date.
Ok, it complicated maintenance a bit too much in my net to dedicate an
IP address to lists.domain, so I thought I would try the exact
approach as detailed in the install manual with postfix, namely using
alias_maps and virtual_alias_domains, etc., leading to a postfix
main.cf containing:
-----------------------------------------------------------------
# http://www.postfix.org/ADDRESS_REWRITING_README.html#masquerade
masquerade_domains = lists.pinyon.org pinyon.org
# http://www.postfix.org/virtual.5.html
virtual_alias_domains = lists.pinyon.org
virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman
alias_maps = hash:/etc/aliases hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases
------------------------------------------------------------------
And that worked great! Using the suggested initial 'mailman' list
I was able to add subscribers and send/receive, etc. Perfect.
I ran into a permissions problem with apache and the private archives,
so I thought I would stop at that point, purge the installation, and
carefully recreate the configuration from scratch so that I could
document the exact steps for mailman installation on my site properly.
So I do (leaving the postfix previously working main.cf untouched):
$ apt-get remove --purge mailman
$ /bin/rm -rf /var/lib/mailman /usr/lib/mailman
$ cp [my-saved-working-copy-of-mm_cfg.py] /etc/mailman
$ newlist mailman
[exact same stuff as before]
$ /etc/init.d/mailman start
$ /var/lib/mailman/bin/genaliases
$ /var/lib/mailman/bin/check_perms -f
and I notice that:
$ ls -lt /var/lib/mailman/data
total 36
-rw-rw---- 1 root list 1132 Jan 26 18:06 aliases
-rw-r----- 1 root list 12288 Jan 26 18:06 aliases.db
-rw-rw-r-- 1 root list 10 Jan 26 18:04 last_mailman_version
-rw-r--r-- 1 root list 14100 Oct 21 22:40 sitelist.cfg
Ok, first problem. Where's virtual-mailman (and virtual-mailman.db)?
I go to the web interface http://lists.pinyon.org, but there is
no 'mailman' list. I try to create the 'mailman' list in the web
interface, and I get:
Error: List already exists: mailman
So... what should I do?
Many thanks,
Russell
--- mm_cfg.py 2011-01-26 18:30:08.000000000 -0700
+++ mm_cfg.py.works 2011-01-26 18:30:28.000000000 -0700
@@ -57,16 +57,16 @@
#-------------------------------------------------------------
# If you change these, you have to configure your http server
# accordingly (Alias and ScriptAlias directives in most httpds)
-DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman/'
+DEFAULT_URL_PATTERN = 'http://%s/'
PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private'
IMAGE_LOGOS = '/images/mailman/'
#-------------------------------------------------------------
# Default domain for email addresses of newly created MLs
-DEFAULT_EMAIL_HOST = 'quine.gb.Pinyon.ORG'
+DEFAULT_EMAIL_HOST = 'lists.Pinyon.ORG'
#-------------------------------------------------------------
# Default host for web interface of newly created MLs
-DEFAULT_URL_HOST = 'quine.gb.Pinyon.ORG'
+DEFAULT_URL_HOST = 'lists.Pinyon.ORG'
#-------------------------------------------------------------
# Required when setting any of its arguments.
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
@@ -94,8 +94,10 @@
# Uncomment if you use Postfix virtual domains (but not
# postfix-to-mailman.py), but be sure to see
# /usr/share/doc/mailman/README.Debian first.
-# MTA='Postfix'
-
+# RLC: follows /etc/mailman/postfix-to-mailman.py exactly:
+MTA='Postfix'
+POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.pinyon.org']
+DEB_LISTMASTER = 'postmaster at pinyon.org'
#-------------------------------------------------------------
# Uncomment if you want to filter mail with SpamAssassin. For
# more information please visit this website:
More information about the Mailman-Users
mailing list