Re: [Mailman-Users] Regexp for blocking addresses

2015-09-29 Thread Mark Sapiro
On 09/29/2015 11:09 AM, Matthew Saltzman wrote: > On Mon, 2015-09-28 at 19:41 -0700, Mark Sapiro wrote: >> You want either the regexp I'm >> using or one of the 'safer' ones in my reply at >> > 4.html>. > > The regexp in the l

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-29 Thread Matthew Saltzman
On Mon, 2015-09-28 at 19:41 -0700, Mark Sapiro wrote: > On 09/28/2015 07:46 AM, Matthew Saltzman wrote: > > > > So I used the ban script from > > http://nigelb.me/2015-08-26-mailman-attacks.html to add regexps of > > the > > form > > > > "^\.*j\.*o\.*e\.*b\.*l\.*o\.*w\.*+.*@gmail

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-29 Thread Matthew Saltzman
On Tue, 2015-09-29 at 09:55 -0700, Mark Sapiro wrote: > On 09/29/2015 08:24 AM, Matthew Saltzman wrote: > > > > Got it, thanks. I will switch to that one. Now would like to figure > > out > > how to delete all my futile attempts from the ban list. Tried > > modifying > > the ban script to remove i

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-29 Thread Mark Sapiro
On 09/29/2015 08:24 AM, Matthew Saltzman wrote: > > Got it, thanks. I will switch to that one. Now would like to figure out > how to delete all my futile attempts from the ban list. Tried modifying > the ban script to remove instead of append, but I'm still doing > something wrong. If the vario

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-29 Thread Matthew Saltzman
On Mon, 2015-09-28 at 19:41 -0700, Mark Sapiro wrote: > On 09/28/2015 07:46 AM, Matthew Saltzman wrote: > > > > So I used the ban script from > > http://nigelb.me/2015-08-26-mailman-attacks.html to add regexps of > > the > > form > > > > "^\.*j\.*o\.*e\.*b\.*l\.*o\.*w\.*+.*@gmail

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-28 Thread Mark Sapiro
On 09/28/2015 08:07 PM, Mark Sapiro wrote: > > I thought I had seen one, possibly in the inkedfur.com domain, which had > some non-digits between the + and the digits, but I don't see it in the > logs. OK, Here's what I now believe is the complete list we've seen at mail.python.org. admins+@ink

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-28 Thread Mark Sapiro
Mark Sapiro wrote: > These > > bustys.arahrae+digits at gmail.com > dam.ofah+digits at gmail.com > ewne.twork2+digits at gmail.com > ewnet.work+digits at gmail.com > hul.exchan+digits at gmail.com > kihuo.tter+digits at gmail.com > kih.uwzl+digits at gmail.com > nky.mtky+digits at gmail.com > nw.p

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-28 Thread Mark Sapiro
On 09/28/2015 10:22 AM, Chris Nulk wrote: > > Would it make sense to define the "bad users" in mm_cfg.py? That way it > would be a bit easier to add/remove/change addresses when needed. Also, > wouldn't updating Mailman replace the modified > /path/to/mailman/Mailman/MailList.py? Yes, making

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-28 Thread Mark Sapiro
On 09/28/2015 07:46 AM, Matthew Saltzman wrote: > > So I used the ban script from > http://nigelb.me/2015-08-26-mailman-attacks.html to add regexps of the > form > > "^\.*j\.*o\.*e\.*b\.*l\.*o\.*w\.*+.*@gmail\.com" > > to the ban list. They show up in the ban_list window looking

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-28 Thread Mark Sapiro
On 09/28/2015 12:04 PM, Matthew Saltzman wrote: > > FIY, the ones I found were: > > * ^nkymtky+.*@gmail\.com > * ^kihuwzl+.*@gmail\.com > * ^kihuotter+.*@gmail\.com > * ^hulexchan+.*@gmail\.com > * ^ewnetwork+.*@gmail\.com > * ^damofah+.*@gmail\.com > * ^bustysarahrae+.*@gmail\.com > * ^v

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-28 Thread Matthew Saltzman
On Thu, 2015-09-24 at 20:57 -0500, Mark Sapiro wrote: > On 9/24/15 1:47 PM, Matthew Saltzman wrote: > > > > I am trying to block variants of certain gmail addresses but I'm > > having > > trouble concocting the right rexexp to accomplish the task. > > > > Gmail addresses can contain embedded peri

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-28 Thread Chris Nulk
On 9/25/2015 9:16 PM, Mark Sapiro wrote: On 09/25/2015 09:01 PM, Mark Sapiro wrote: Here's another idea. Find the following in /path/to/mailman/Mailman/MailList.py def GetBannedPattern(self, email): """Returns matched entry in ban_list if email matches. Otherwise returns

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-28 Thread Matthew Saltzman
On Fri, 2015-09-25 at 17:03 +, Matthew Saltzman wrote: > On Fri, 2015-09-25 at 08:23 -0700, Mark Sapiro wrote: > > On 9/25/15 7:57 AM, Matthew Saltzman wrote: > > > > > > That's still much more aggressive than what I was trying to say. > > > I > > > actually want to ban precisely all variants

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-25 Thread Mark Sapiro
On 09/25/2015 09:01 PM, Mark Sapiro wrote: > > Here's another idea. > > Find the following in /path/to/mailman/Mailman/MailList.py > > def GetBannedPattern(self, email): > """Returns matched entry in ban_list if email matches. > Otherwise returns None. > """ >

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-25 Thread Mark Sapiro
On 9/25/15 7:57 AM, Matthew Saltzman wrote: > > That's still much more aggressive than what I was trying to say. I > actually want to ban precisely all variants of the one address > > joeblow at gmail.com > > (and about a dozen other addresses) that include embedded periods > anywhere and the s

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-25 Thread Matthew Saltzman
On Fri, 2015-09-25 at 08:23 -0700, Mark Sapiro wrote: > On 9/25/15 7:57 AM, Matthew Saltzman wrote: > > > > That's still much more aggressive than what I was trying to say. I > > actually want to ban precisely all variants of the one address > > > > joeb...@gmail.com > > > > (and about a doz

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-25 Thread Mark Sapiro
On 9/25/15 7:57 AM, Matthew Saltzman wrote: > > That's still much more aggressive than what I was trying to say. I > actually want to ban precisely all variants of the one address > > joeb...@gmail.com > > (and about a dozen other addresses) that include embedded periods > anywhere and the s

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-24 Thread Mark Sapiro
On 9/24/15 1:47 PM, Matthew Saltzman wrote: > > I am trying to block variants of ceertain gmail addresses but I'm having > trouble concocting the right rexexp to accomplish the task. > > Gmail addresses can contain embedded periods and can be followed by a > '+' and an arbitrary suffix. So all the

Re: [Mailman-Users] Regexp for blocking addresses

2015-09-24 Thread Mark Sapiro
On 9/24/15 1:47 PM, Matthew Saltzman wrote: > > 1. Could someone show me the right syntax to catch all embedded > dots in the part before the '+'? ^.*\..*\+.*@ for any domain or ^.*\..*\+.*@gmail.com$ for only gmail.com. > 2. Is there a way to script removing all my experi

[Mailman-Users] Regexp for blocking addresses

2015-09-24 Thread Matthew Saltzman
I am trying to block variants of ceertain gmail addresses but I'm having trouble concocting the right rexexp to accomplish the task. Gmail addresses can contain embedded periods and can be followed by a '+' and an arbitrary suffix. So all the following are the same address: * joeb...@gmail.c