[Mailman-Users] Question about ban_list Regular Expression
Barry Finkel
b19141 at anl.gov
Fri Nov 21 17:39:21 CET 2008
I have a question about the ban_list regex. In a reply on
Tue, 24 Apr 2007 07:59:28 Mark Sapiro wrote
> So set Privacy options...->Sender filters->generic_nonmember_action
> to Accept so anyone can post and set Privacy options...->Subscription
> rules->ban_list to a regex that matches all addresses not in your
> domain. E.g.,
>
> ^.*@(?!example\.com)$
>
> or if you want to allow sub-domains within your domain
>
> ^.*@(.*\.)?(?!example\.com)$
If I want subdomains of example.com and anl.gov to be able to
subscribe (and to ban other domains), is this the correct regex for
ban_list?
^(regex|regex)
i.e.,
^(.*@(.*\.)?(?!example\.com)$|.*@(.*\.)?(?!anl\.gov)$)
Thanks.
----------------------------------------------------------------------
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory Phone: +1 (630) 252-7277
9700 South Cass Avenue Facsimile:+1 (630) 252-4601
Building 222, Room D209 Internet: BSFinkel at anl.gov
Argonne, IL 60439-4828 IBMMAIL: I1004994
More information about the Mailman-Users
mailing list