Paul J Stevens wrote:
Aaron Stone wrote:
On Mon, Nov 5, 2007, Jorge Bastos <[EMAIL PROTECTED]> said:
I need to setup a mailling list, how can I do that? Is this supported?
I put this on the wiki two years ago:
http://dbmail.org/dokuwiki/doku.php?id=mailman
However, I remember seeing a much better way to do this on the mailing
list more recently. Something about mailman domains. I don't recall the
details. Let's update the wiki with whatever the best-practice is.
That was me talking about the mailman transport in postfix. All documented in
the mailman mta integration docs.
/etc/postfix/transport:
lists.mydomain.com mailman:
/etc/postfix/master.cf:
mailman unix - n n - - pipe flags=FR user=list
argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${mailbox}
The mentioned python script (postfix-to-mailman.py) contains the above setup
documentation as well.
After setting this up, all you need to do is create lists (newlist listname),
and you're all set. No need to manage aliases.
The approach above makes it cumbersome to use anything other than the
list addresses and the administrative addresses postfix-to-mailman.py
knows about (currently postmaster@, abuse@, mailer-daemon@). In my case
I wanted to add admin@ and webmaster@, for which I'd have to edit said
python script which seemed messy. Then I realized that mailman has
automatic alias management for quite some time now. The relevant option
in the config is
MTA = 'Postfix'
which will result in the file /var/lib/mailman/data/aliases populated
with pipes to the correct binaries, automatically kept up-to-date by
internal mailman hooks, and a postalias-ed result in aliases.db. Then
all you have to do is populate the postfix recipient list as you would
do otherwise:
# use system-level aliases + automatically generated alias lists
alias_maps = hash:/etc/postfix_promo/admin_aliases
hash:/var/lib/mailman/data/aliases
# there is nothing that can be updated by newaliases
alias_database =
# we only accept mail to existing lists and admin addresses
local_recipient_maps = $alias_maps
No transport trickery and very straightforward.
On a side note mailman scales extremely bad when you reach 50k+
subscribers. I am planning to migrate to sympa[1], but have not had the
time to make the necessary research. Anyone using this software?
[1] http://www.sympa.org/
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail