Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO integrate mailman in dbmail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
gravedigger
n00b
n00b


Joined: 28 Sep 2004
Posts: 7
Location: Schweiz

PostPosted: Wed Feb 23, 2005 11:47 am    Post subject: HOWTO integrate mailman in dbmail Reply with quote

As a dbmail newbie, I had a lot of troubles finding out, how to make mailman work with dbmail, there is no howto on the net! I had to gather information from numerous mailinglists and forums (forae :?: )

First you should have a working dbmail installation, not included in this howto.
Edit /usr/portage/net-mail/mailman/mailman-$ver.ebuild and enter the GID of your dbmail user. dbmail will execute mailman and not the mailman user as in a standard installation described in the Gentoo documentation. I had to enter 501 as GID. Check also the GID of apache, 81 for me.
Code:
# joe /usr/portage/net-mail/mailman/mailman-$ver.ebuild
MAILGID="501"
APACHEGID="81"

Emerge mailman
Code:
# emerge mailman

Edit /usr/local/mailman/Mailman/Defaults.py and enter your standard domain
Code:
# joe /usr/local/mailman/Mailman/Defaults.py
DEFAULT_EMAIL_HOST = 'domain.com'
DEFAULT_URL_HOST = 'www.domain.com'

Edit /usr/local/mailman/Mailman/mm_cfg.py and add the following lines
Code:
MTA = "Postfix"
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['virt-domain.com', 'virt.domain2.com']   
add_virtualhost('www.virt.domain.com', 'virt.domain.com')
add_virtualhost('www.virt.domain2.com', 'virt.domain2.com')

I didn't use virtual domains yet, but this should work as well.

Create the list "mailman". If you don't, mailman will not start
Code:
# su mailman
# cd ~
# bin/newlist mailman
Enter the email of the person running the list: your@email.address
Initial test password:
Hit enter to continue with test owner notification...

Create the cronjob
Code:
# cd cron
# crontab crontab.in
# cd ..

Create the password for the mailman admin
Code:
#bin/mmsitepass


Create the following aliases in the dbmail_aliases table in mysql. Change listname into mailman for your first list. Note the ! for the pipe. | will not work. You will have to create these aliases for every mailinglist.

listname@domain.com -> !/usr/local/mailman/mail/mailman post listname
listname-admin@domain.com -> !/usr/local/mailman/mail/mailman admin listname
listname-bounces@domain.com -> !/usr/local/mailman/mail/mailman bounces listname
listname-confirm@domain.com -> !/usr/local/mailman/mail/mailman confirm listname
listname-join@domain.com -> !/usr/local/mailman/mail/mailman join listname
listname-leave@domain.com -> !/usr/local/mailman/mail/mailman leave listname
listname-owner@domain.com -> !/usr/local/mailman/mail/mailman owner listname
listname-request@domain.com -> !/usr/local/mailman/mail/mailman request listname
listname-subscribe@domain.com -> !/usr/local/mailman/mail/mailman subscribe listname
listname-unsubscribe@domain.com -> !/usr/local/mailman/mail/mailman unsubscribe listname


Now you can start mailman
Code:
# /etc/init.d/mailman start
# rc-update add mailman default


You can reach the mailman Webinterface over http://hostname/mailman/listinfo. There are you will find endless more or less self explaining options for mailman.

I hope this will be of some use. Please tell me, if something is not working.

Vital
_________________
Lebe dein Leben so, dass du dich nicht darüber aufregen musst, wenn es plötzlich vorbei ist.
Back to top
View user's profile Send private message
mihaim
n00b
n00b


Joined: 06 Jun 2005
Posts: 1

PostPosted: Mon Jun 06, 2005 8:26 pm    Post subject: Reply with quote

Quote:
Create the cronjob
Code:
# cd cron
# crontab crontab.in
# cd ..


So, beeing in rush to have up and running mailman with dbmail, I wasn't paying attention do your sintax, and deleted my root crontab :P
No big deal, I was able to restore it, but I post this message to warn anybody in rush, that the above command does not append crontab.in to root's corntab, but replace it.
And about the purpose of the above command, in an usual configuration is better to modify the mailman crontab, tot root.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum