I've started working on a content filter, based loosely on the content filter example that comes with Postfix.

It's two parts: dbmail-query, which is a perl script to look up a dbmail username based on the receipient address, and dbmail-filter, which will take the message from postfix and run it through spamassassin using that particular dbmail user's preferences.

NOTE: Both these scripts are not debugged. dbmail-filter is incomplete.

The way it will all tie together is like this:

Postfix receives messages via smtp, passes them through dbmail-filter (which will be a procmail pipe transport), which then reinserts them into Postfix via the 'sendmail' command. Only mail arriving via smtp will be run through the content filter.

I have attached both scripts to this message. Comments welcomed. I will continue to work on these over the weekend, but I wanted to get them out for others to look at before I spend all weekend working on a dumb idea ;)

Please let me know what you think.

Chris Hilts
[EMAIL PROTECTED]

Attachment: dbmail-query
Description: application/java-applet

Attachment: dbmail-filter
Description: application/java-applet

Reply via email to