« | Mailman and Gentoo |
» |
Not my usual wibbling - this might actually be useful to someone for a change! If you are using gentoo on your server and you upgrade mailman across 2.1.9-r2 it will break. Badly.
This is because they've moved the set up out of /usr/local/mailman
and split it between /usr/lib/mailman
and /var/lib/mailman
. To get it working again you will need to do the following, all as root
I would suggest:
- Stop mailman and postfix.
- Copy the contents of the following directories from
/usr/local/mailman
into the corresponding directories in/var/lib/mailman
(use'cp -a'
to preserve the permissions):archives
,lists
,data
,logs
, andqfiles
. You might want to addqfiles
andspam
. - Fix the symlinks in
/var/lib/mailman/archives/public
. I did it like this:~ # cd /var/lib/mailman/archives/public /var/lib/mailman/archives/public # for FILE in * ; do rm $FILE > ln -s /var/lib/mailman/archives/private/$FILE . > done /var/lib/mailman/archives/public #
but feel free to use the bash rune of your choice.
- Manually edit
/var/lib/mailman/data/aliases
replacing all references to/usr/local
with/usr/lib
then runpostmap
on it to re-buildalias.db
- Edit
/etc/postfix/main.cf
which will have a line definingalias_maps
which will includehash:/usr/local/mailman/data/aliases
- you need to change that tohash:/var/lib/mailman/data/aliases
- Take a look at
/etc/apache2/modules.d/50_mailman.conf
which you may need to fix in the same way, replacing/usr/local
with/usr/lib
- Run
'usermod -d /usr/lib/mailman mailman'
to change mailman's home directory. - Cross your fingers. Restart mailman and postfix.
Tags: linux | Written 08/02/08 |
Previous comments about this article:
On
15/02/08
at
4:25pm
Paul
wrote:
Point 3. inserted today - thanks to Denis for pointing out I'd missed this. |
On
26/02/08
at
4:36pm
Martin
wrote:
Thanks you so much!! This saved my evening. ;-) |
On
26/05/08
at
5:53pm
alexander kasper
wrote:
thx, saved my day :) |
« | » |