[Mimedefang] action_add_header before SpamAssassin

David F. Skoll dfs at roaringpenguin.com
Sat Mar 13 21:39:07 EST 2004


On Sat, 13 Mar 2004, Michael Faurot wrote:

> I'm doing some experiments with SPF by using Mail::SPF::Query
> inside MIMEDefang.  I've run into a snag and I'm not sure if what I'm
> trying to do is feasible/possible.  In particular, what I'm trying to do
> is use action_add_header(), within filter_begin(), to add a Received-SPF
> header before calling spam_assassin_check().

This won't work.

action_add_header merely makes a note to ask milter to ask sendmail to
add the header.  It doesn't actually alter the message as seen by
SpamAssassin.

> I realize it would be possible to make adjustments to $hits, after
> calling spam_assassin_check() and then incrementing or decrementing as
> appropriate based upon my SPF query.  However, I'd prefer to keep this
> within SA so that any adjustments made based upon SPF get logged in SA's
> report and are listed as tests run by SA.

You will have to examine mimedefang.pl and modify the way the message is
handed off the SA to do this.

Regards,

David.



More information about the MIMEDefang mailing list