[Mailman-Users] configuration problem

Mark Sapiro mark at msapiro.net
Thu Jan 27 03:21:43 CET 2011


Russell L. Carter wrote:

>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,


You didn't need to dedicate an IP address. All you needed was to
replace your

lists.pinyon.org CNAME quine.pinyon.org.

with

lists.pinyon.org MX 10 quine.pinyon.org.



>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


There seems to be something missing here.


>$ 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)?


How did you re-install Mailman. apt-get? Source install? ???

In order to get a virtual-mailman, you first need an mm_cfg.py in the
place Mailman is looking for it. This is only /etc/mailman in Debian
and certain other packages, not a source install.


>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?


The list exists, but it's not in the lists.pinyon.org domain. This
means that DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST are not
'lists.pinyon.org', at least not in the mm_cfg.py that Mailman is
looking at. This could also explain why no virtual-mailman assuming
there is

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.pinyon.org']

in mm_cfg.py.


Which of the following are you using. The changes in mm_cfg.py.works
look OK except the domains in
DEFAULT_EMAIL_HOST = 'lists.Pinyon.ORG'
and
DEFAULT_URL_HOST   = 'lists.Pinyon.ORG'
should be all lower case.

And, I have no idea what lines 74-93 are.

Also, see the FAQ at <http://wiki.list.org/x/lYA9>.


>--- 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:


-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list