Enforce mail rules server-side in Exchange 2007

exchangeeximspamspamassassin

I have a client who gets a TON of spam to their public IP.

I have put a Linux box running exim and spamassassin in front of it, and a bunch of Outlook rules to move mail into the Junk Email folder when spamassassin thought it saw spam. This worked well enough.

Now I've migrated them to Exchange 2007, is there a better way to "enforce" these Outlook rules for everyone, at the server side?

(Spamassassin works by inserting headers into incoming email. Here's some details.)

Thanks
Tom

EDIT: Title changed (as sensibly suggested) from "Spamassassin / exim in front of Exchange 2007"

Best Answer

Exchange 2007 offers Message Transport rules to filter messages based on a number of conditions. One of these conditions is the HeaderContains condition which should do what you want.

To get it to send the mail to your Junk folder, you could set-up SCL to send messages over a certain threshold to the junk folder, then get the message transport rule to stamp an SCL value on the message, higher than that threshold, should that header exist.

Details of what filtering Message Transport Rules support is available here.

Details of how to enable Message Transport Rules can be found here.