Alessandro Vesely writes:
Global filters, however, cannot. My initial idea was to use ctlfile records to pass values to --and possibly among-- filters. It's you who said it's simpler to use the message header (there were traces of that argument quoted in my previous message.)
Perhaps, but this was going way over into the other direction.
Yes, that was my initial approach as well. Lists deliver their content as A records in the 127.0.0.0/8 range, but each list has its own encoding. Dnswl.org, for example, encodes the score is the last byte, valued 0-3. After a few attempts at defining a suitable syntax, I realized I was reinventing regular expressions, so I turned to the real thing. Some decisions, e.g. SPFALLOW, ought to be made that early. Would PCRE unduly aggravate tcpd's footprint? And how'd you compare its cpu cost to the time/bandwidth cost of the query itself?
If that's the case, then this is something that better to be dealt with in the global filter itself. The result of the DNSBL lookup would only need to be preserved in the headers, and a global mail filter module would have the necessary domain knowledge to know how to process the results.
Just looking at the results of trying to meta-program the DNSBL lookup logic in couriertcpd, using pcre, doesn't look right to me. PCRE in couriertcpd would be ok, it's just all the rest of it looks overly complicated.
Looking at what dnswl.org is doing, probably the best thing to do there is not to use BLOCK in conjunction with other DNSBLs, and just have a generic setting that records environment variables, and leave it up to a custom global mail filtering module to process all the lookups and figure out what to do with them.
And, looking at what dnswl.org, I have a healthy dose of skepticism about them, anyway.
pgpuq9z4b_h_k.pgp
Description: PGP signature
------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d
_______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users