[Mailman-Users] umbrella lists
Evilio del Rio
edelrio at icm.csic.es
Thu May 25 09:55:09 CEST 2000
Hello,
I was also looking for a solution like yours and I have been able to trick
a little bit the Mailman code.
The general solution is to allow the "posters" setting of a list to be a
regular expression so that you can allow some lists to receive mail from
an entire domain. Maybe this is not exactly what you are looking for but
it can help.
I put the following settings to all lists:
posters = ['.+ at my.doma.in'] # Any address within domain can post.
acceptable_aliases ="""allstaff at my.doma.in
"""
and then I have modified the Hold.py file
($prefix/Mailman/Handlers/Hold.py). The diffs are (you can use patch
if you want to try):
32a33
> import re
120c121,123
< posters = Utils.List2Dict(map(string.lower, mlist.posters))
---
> isposter = 0
> for poster in mlist.posters:
> isposter = isposter or re.compile(poster,
re.I).match(sender)
122c125
< not Utils.FindMatchingAddresses(sender, posters):
---
> not isposter:
This way, anybody in my domain can post to any of the internal lists but
they are still closed to suscrbers+posters. However this is just a quick
hack and there should be another way to have "cascading closed lists".
HTH,
________________________________________________________________
Evilio Jose del Rio Silvan Institut de Ciencies del Mar
edelrio at icm.csic.es http://members.es.tripod.de/Evilio/
"I knew that I was out of luck the day the music died" - Don McLean
More information about the Mailman-Users
mailing list