On Fri, 2015-03-13 at 13:12 -0700, Gordon Messmer wrote:
> 2: Using regex to deal with addresses is kinda gross.
> 
> 3: Patch doesn't support IPv6.  Which reminds me that I need to write 
> some code to fix other IPv6 handling deficiencies with smtpaccess.

I can use courier.control.getSendersIP() to fetch the IP address w.o.
the rest of the getSendersMta() string.  This has the advantage that it
returns either the v4 or v6 address, whichever is present.  But FWIW
this method also uses regex and does pretty much the same thing as the
code in the patch, extracting the full IP address from the return from
getSendersMta().

I don't get any IPv6 spam here, so before I can set up block aware rate
limiting for IPv6 I'm going to have to find out what's the most common
equivalent group size for IPv6 of the round-robin variation among
addresses in a /24 group commonly used by spammers in v4 addresses to
defeat rate limiting.  I would guess that it's a /64 address group, but
that's only a guess.

-- 
Lindsay Haisley       | "UNIX is user-friendly, it just
FMP Computer Services |       chooses its friends."
512-259-1190          |          -- Andreas Bogk
http://www.fmp.com    |


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to