Le 04/01/2011 16:53, Phil Howard a écrit :
> [snip] So I'm thinking about an alternative where I do a
> routine prepend of some very bizarre text (since it now inside the
> message body), that would be very unlikely to ever be in any message,
> and follow that with an external filter by inserting my own code
> between Postfix and Amavis (unless there is some means inside Amavis
> to hook in to do this) to store the message to a temporary file while
> looking for that bizarre text, and if found add the header when the
> message is sent on to Amavis (which later sends it back to Postfix).
> 

with amavis, setup a spamassassin rule that matches your bizarre text.
fopr instance

body FOO_BAR_RULE /SomeExpression/i
score FOO_BAR_RULE 0.1
(0.1 is small enough to not alter spam status).

then "FOO_BAR_RULE" will appear in the X-Spam-Status, which your
sieve/whatever script can catch.

if you want more, then you can probably create a before_send hook in amavis.

Reply via email to