Package: mailman
Severity: wishlist
Tags: patch
Hi,
We're running one mailman installation for mailing lists of several different
domains. And we don't want mail sent to <listA>@<domain1> to be accepted
when <listA> is set up for <domain2>.
Attached patch makes it possible to configure postfix-to-mailman.py in a way
that it only accepts mails when they are send to the right ___domain.
I've called the configure parameter DEB_PUREVIRTUAL, to reflect the fact that
this results in a pure virtual ___domain setting. And it obviously defaults to
off.
Sjoerd
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-rc4-powerpc
Locale: LANG=C, LC_CTYPE=nl_NL@euro (charmap=ISO-8859-15)
Subject: Re: [Pkg-mailman-hackers] Bug#345051: Please have postfix-to-mailman.py handle virtual domains
Date: Wed, 28 Dec 2005 22:33:40 +0100
On Wed, Dec 28, 2005 at 07:13:02PM +0100, Sjoerd Simons wrote:
> We're running one mailman installation for mailing lists of
> several different domains. And we don't want mail sent to
> <listA>@<domain1> to be accepted when <listA> is set up for
> <domain2>.
> Attached patch makes it possible to configure postfix-to-mailman.py in a way
> that it only accepts mails when they are send to the right ___domain.
I run a similar setup in Exim. You have to take care of _one_ thing:
The "mailman" list must be accepted on _all_ virtual domains that have
lists. Mailman sends email out with sender set to
mailman@${VIRTUAL_DOMAIN}. You probably want to modify your patch to
do that.
> I've called the configure parameter DEB_PUREVIRTUAL, to reflect
> the fact that this results in a pure virtual ___domain setting. And
> it obviously defaults to off.
I see no reason for this not to be the only behaviour.
--
Lionel
On Wed, Dec 28, 2005 at 10:33:40PM +0100, Lionel Elie Mamane wrote:
> On Wed, Dec 28, 2005 at 07:13:02PM +0100, Sjoerd Simons wrote:
>
> > We're running one mailman installation for mailing lists of
> > several different domains. And we don't want mail sent to
> > <listA>@<domain1> to be accepted when <listA> is set up for
> > <domain2>.
>
> > Attached patch makes it possible to configure postfix-to-mailman.py in a way
> > that it only accepts mails when they are send to the right ___domain.
>
> I run a similar setup in Exim. You have to take care of _one_ thing:
> The "mailman" list must be accepted on _all_ virtual domains that have
> lists. Mailman sends email out with sender set to
> mailman@${VIRTUAL_DOMAIN}. You probably want to modify your patch to
> do that.
Good point. I've adapted the patch to accept mails send to
mm_cfg.MAILMAN_SITE_LIST on all virtual domains. New patch attached.
> > I've called the configure parameter DEB_PUREVIRTUAL, to reflect
> > the fact that this results in a pure virtual ___domain setting. And
> > it obviously defaults to off.
>
> I see no reason for this not to be the only behaviour.
Well, it's a change in behaviour, so imho one should be very carefull when
introducing it in the mailman package.
Apart from that it causes a small performance hit, for each mail the mailing
list configdb has to be parsed to check the ___domain. When one is not using
virtual domains, this is just wasted time.
Sjoerd
--
Quark! Quark! Beware the quantum duck!
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.