Jason L. Buberel [EMAIL PROTECTED] wrote:
> After reading through the on-line man pages of courierfilter,
> localfilter, and maildrop, I'm left wondering how I would go about
> implementing a mail filter that processes all outbound messages.
>
> The reason for doing so is to implement auto-whitelisting of the 'To:'
> addresses in these messages. Assuming I can validate that the message
> actually originated with one of my users, I should be able to collect
> the 'To/CC' addresses on the message and submit them to the whitelist
> features of the spam engines that I have in place (SpamAssassin, DSPAP,
> CRM).

To keep efforts low, you could use the Perl-based Courier::Filter[1] or
Gordon Messmer's pythonfilter[2] as a framework, and implement a trivial
filter module for whatever framework you choose.

For Courier::Filter, you would write a
Courier::Filter::Module::LogHeaderRecipients module whose match() method
does nothing but checking whether $message->authenticated is true, logging
$message->header('to') || $message->header('cc'), and then returning
without a return value.

References:
 1. http://search.cpan.org/dist/Courier-Filter/
 2.
http://phantom.dragonsdawn.net/~gordon/courier-patches/courier-pythonfilte
r/



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to