Re: Greylisting algorithms after end of DATA

Magnus Holmgren <[email protected]> Sat, 20 Jan 2007 23:04:10 +0100
Newsgroups gmane.mail.exim.spamassassin
Organization Lysator ACS
Message-ID <[email protected]>
On Saturday 13 January 2007 14:37, Magnus Holmgren wrote:
> So, what I suggest for a future SA-Exim version (and to anyone implementing
> something similar using only Exim ACLs is this): For each host (or /24 or
> /64 network), store a list of records representing messages that host has
> tried to deliver. A record contains a timestamp and a key, which could be a
> hash of $rh_From:, $rh_Subject:, $recipients (but see below) etc. When a
> message matches an existing record, check the timestamp, and if enough time
> has passed, replace the whole list with "whitelisted" (if not, do nothing).
> (Most of the time, just one message arrives before the host gets
> whitelisted.)
>
> One question to be solved is about $recipients. The envelope recipients
> have to be checked since a spammer can send the same spam to many addresses
> but with the same From: field. Most often there is only one recipient, and
> even otherwise, normally the list is the same from delivery attempt to
> delivery attempt, but it could change if one or more recipients were
> temporarily rejected on one occasion but not the other. Furthermore, it
> can't be demanded that MTAs give the list in the same order each time.
>
> When storing the list of attempted deliveries in a file I'd prefer if the
> file didn't have to be rewritten, only appended to. Maybe it can be deemed
> enough if one recipient is found in the list of recipients of the first
> delivery attempt.

No comments (on this list) so far. One more question: Does anyone use the 
Whitelisted count and Query count lines in the tuple files for anything 
(debugging, statistics, ...)?

-- 
Magnus Holmgren        [email protected]
                       (No Cc of list mail needed, thanks)

  "Exim is better at being younger, whereas sendmail is better for 
   Scrabble (50 point bonus for clearing your rack)" -- Dave Evans

_______________________________________________
SA-Exim mailing list
[email protected]
http://lists.merlins.org/lists/listinfo/sa-exim
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBFspHmk7mRNn1h4+YRAtDRAKDHIVHPUKfVwtmXsA1FwQfC7RSbMgCfXtwk
c5MfhMfpNYPttKKfxGVWcC8=
=zcoW
-----END PGP SIGNATURE-----