[BlueOnyx:02520] Re: Help with Mailman
Michael Stauber
mstauber at blueonyx.it
Wed Sep 30 04:24:37 -05 2009
Hi Chris,
> If anybody has any input on this for me, I'd sure appreciate it. I've
> been at it off and on for a few days with no joy. I'm sure it's
> something little I'm missing.
Here is what I did to set up Mailman on blueonyx.it:
http://article.gmane.org/gmane.linux.devices.blueonyx.user/342/match=blueonyx+00342
You already got that far I presume.
After majordomo had been removed, I simply installed Mailman through Yum:
#> yum install mailman
Next a minor adjustment to /etc/httpd/conf.d/mailman.conf was needed. The
complete file now looks like this:
------------------------------------------------------------------------------------------
#
# httpd configuration settings for use with mailman.
#
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
<Directory /usr/lib/mailman/cgi-bin/>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /pipermail/ /var/lib/mailman/archives/public/
<Directory /var/lib/mailman/archives/public>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Uncomment the following line, replacing www.example.com with your server's
# name, to redirect queries to /mailman to the listinfo page (recommended).
RedirectMatch ^/mailman[/]*$ http://www.blueonyx.it/mailman/listinfo
------------------------------------------------------------------------------------------
There are two lines in /etc/mail/sendmail.cf that need to be changed to this:
------------------------------------------------------------------------------------------
Kvirtuser hash -o /etc/mail/virtusertable.db,
/etc/mail/virtusertable.mailman.db
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
O AliasFile=/etc/mail/aliases, /etc/mail/aliases.mailman
------------------------------------------------------------------------------------------
Next step was to set up some mailing lists first and then to create the
following files ...
/etc/mail/virtusertable.mailman
/etc/mail/virtusertable.mailman.db
... and ...
/etc/mail/aliases.mailman
/etc/mail/aliases.mailman.db
But we setup a mailing list first:
#> cd /usr/lib/mailman/
#> bin/newlist blueonyx
That will guide you through the setup of the list. It will also show you the
aliasses onscreen that you need to put into your
/etc/mail/virtusertable.mailman
Mine looks like this:
-------------- /etc/mail/aliases.mailman ------------------------------
## mailman mailing list
## mailman mailing list (mailman at blueonyx.it)
mailman: "|/usr/lib/mailman/mail/mailman post mailman"
mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman"
mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman"
mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman"
mailman-join: "|/usr/lib/mailman/mail/mailman join mailman"
mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman"
mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman"
mailman-request: "|/usr/lib/mailman/mail/mailman request mailman"
mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman"
## users mailing list (blueonyx at blueonyx.it)
blueonyx: "|/usr/lib/mailman/mail/mailman post blueonyx"
blueonyx-admin: "|/usr/lib/mailman/mail/mailman admin blueonyx"
blueonyx-bounces: "|/usr/lib/mailman/mail/mailman bounces blueonyx"
blueonyx-confirm: "|/usr/lib/mailman/mail/mailman confirm blueonyx"
blueonyx-join: "|/usr/lib/mailman/mail/mailman join blueonyx"
blueonyx-leave: "|/usr/lib/mailman/mail/mailman leave blueonyx"
blueonyx-owner: "|/usr/lib/mailman/mail/mailman owner blueonyx"
blueonyx-request: "|/usr/lib/mailman/mail/mailman request blueonyx"
blueonyx-subscribe: "|/usr/lib/mailman/mail/mailman subscribe blueonyx"
blueonyx-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe blueonyx"
---------------------------------------------------------------------------------
Hash it to generate the /etc/mail/aliases.mailman.db:
#> makemap hash /etc/mail/aliases.mailman.db < /etc/mail/aliases.mailman
Now we also need /etc/mail/virtusertable.mailman, which contains all the
virtual email account mappings. When I created mine I was lazy and did it the
quick and dirty way. I needed to cover both user at www.blueonyx.it and
user at blueonyx.it. A rewrite or alias rule could have solved that, but I just
copied the relevant sections and did a search and replace, so it now looks
like this:
-------------- /etc/mail/virtusertable.mailman ------------------------------
mailman at www.blueonyx.it mailman
mailman-admin at www.blueonyx.it mailman-admin
mailman-bounces at www.blueonyx.it mailman-bounces
mailman-confirm at www.blueonyx.it mailman-confirm
mailman-join at www.blueonyx.it mailman-join
mailman-leave at www.blueonyx.it mailman-leave
mailman-owner at www.blueonyx.it mailman-owner
mailman-request at www.blueonyx.it mailman-request
mailman-subscribe at www.blueonyx.it mailman-subscribe
mailman-unsubscribe at www.blueonyx.it mailman-unsubscribe
blueonyx at www.blueonyx.it blueonyx
blueonyx-admin at www.blueonyx.it blueonyx-admin
blueonyx-bounces at www.blueonyx.it blueonyx-bounces
blueonyx-confirm at www.blueonyx.it blueonyx-confirm
blueonyx-join at www.blueonyx.it blueonyx-join
blueonyx-leave at www.blueonyx.it blueonyx-leave
blueonyx-owner at www.blueonyx.it blueonyx-owner
blueonyx-request at www.blueonyx.it blueonyx-request
blueonyx-subscribe at www.blueonyx.it blueonyx-subscribe
blueonyx-unsubscribe at www.blueonyx.it blueonyx-unsubscribe
mailman at blueonyx.it mailman
mailman-admin at blueonyx.it mailman-admin
mailman-bounces at blueonyx.it mailman-bounces
mailman-confirm at blueonyx.it mailman-confirm
mailman-join at blueonyx.it mailman-join
mailman-leave at blueonyx.it mailman-leave
mailman-owner at blueonyx.it mailman-owner
mailman-request at blueonyx.it mailman-request
mailman-subscribe at blueonyx.it mailman-subscribe
mailman-unsubscribe at blueonyx.it mailman-unsubscribe
blueonyx at blueonyx.it blueonyx
blueonyx-admin at blueonyx.it blueonyx-admin
blueonyx-bounces at blueonyx.it blueonyx-bounces
blueonyx-confirm at blueonyx.it blueonyx-confirm
blueonyx-join at blueonyx.it blueonyx-join
blueonyx-leave at blueonyx.it blueonyx-leave
blueonyx-owner at blueonyx.it blueonyx-owner
blueonyx-request at blueonyx.it blueonyx-request
blueonyx-subscribe at blueonyx.it blueonyx-subscribe
blueonyx-unsubscribe at blueonyx.it blueonyx-unsubscribe
---------------------------------------------------------------------------------
This also needs to be hashed:
#> makemap hash /etc/mail/virtusertable.mailman.db <
/etc/mail/virtusertable.mailman
Afterwards Sendmail needed a restart and it was good to go:
#> /etc/init.d/sendmail restart
That's it from memory, which may be a bit fogged as I did this roughly a year
ago.
Things to check:
You should also check if the cronjob /etc/cron.d/mailman is present. It should
be created on installation of the Mailman RPM.
Likewise, the Sendmail restricted shell symbolic link for Mailman should be
present in /etc/smrsh/:
#> ls -la /etc/smrsh/
total 16
drwxr-xr-x 2 root root 4096 Mar 29 2009 .
drwxr-xr-x 76 root root 12288 Sep 30 05:20 ..
lrwxrwxrwx 1 root mailman 29 Jan 1 2009 mailman ->
/usr/lib/mailman/mail/mailman
lrwxrwxrwx 1 root root 27 Mar 29 2009 vacation.pl ->
/usr/local/sbin/vacation.pl
If that all is the case, then it should work. Took me a few hours to sort it
out back then, as I wasn't entirely aware that I needed
/etc/mail/virtusertable.mailman, too. The docs that I used for my install back
then didn't mention that small fact.
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list