>>>> Patrick Larkin Jr writes:
>
> I can't find this in the FAQ:
>
> I know I can set 'closed', 'auto', or 'open' as the policy....
> What I WANT to do is be able to set that by domain.
> for example:
>
> *my-domain.com = auto # We trust ourselves fully
> *friend.org = open # you can join, if no shenanigans
> *irs.gov = drop # Yeah right - ignore their requests
> * = closed # By approval only
>
> How would one do this with Majordomo? (the 'drop' is not required,
> but would be nice). Thanks,
We did make a patch to 1.93 to do something like this sort of.
We had a patch to the subscribe routines that looked in a file called
reject and if the user matched the entry there, it would reject the
subscription with a note saying they were not allowed to join
the list.
The rejection list looked something like:
###########################################################################
# Rejection List
###########################################################################
#
# This is a list of addresses to reject. If an address begins with an
# * then it is a substring. Hence if *anonymous is in the file, any
# address with anonymous in it will be rejected.
#
# Lines that begin with # are comments and not used.
#
###########################################################################
*anonymous
*anonymous-remailer@shell.portal.com
*mailbot.com
*crls.hall.public.lib.ga.us
*pmair@albany.isoa.com
*surfer27@usa.pipeline.com
###########################################################################
# End of List
###########################################################################
The initial purpose of this was to come up with a way for an open list to
specifically deny a domain or domains to the open subscription of a mailing
list.
We have several Autobot (mailbots) that were attacked earlier in the year
by some kind individual who subscribed them to a couple Majordomo mailing
lists (about 130 of them). It shut them down for about 2 months as we had
to contact each Majordomo administrator to turn them off. We were unable
to get a unsubscribe to work on many of them.
The last address was a bit of a funny one:-) We have several political
mailing lists and all of them were open. This person (surfer27) was
a member of an opposition political party that subscribed to the lists
and did a who of the list to get the names.
He then did a mailing just before the elections last November that caused
quite a stir... Personally I thought it was a bit clever :-) but the
owners of those lists were not very amused.
We ended up removing who access to everyone and placing this guy on the
rejection list.
We just upgraded to 1.94 recently and like the new open+confirm abilities
of Majordomo as well as who restrictions.
I had thought that the code I wrote for the domain exclusion was readily
available at hand so that I could pass it on, but I see that is is elsewhere
in my various source code directories and will have to dig it out.
I can pass it on if you are interested. It is not list specific but could
be done that way by adding a configuration variable in the config files and
having it pickup on that. Then it could look up the listname.reject file
and use that on a list by list basis.
The code is very basic and not suitable for inclusion as a patch to the
regular distribution of the code. I'm not that good at Perl coding...
but it did get the job done...
Let me know if you are interested...
Follow-Ups:
References:
|
|