PDA

View Full Version : simple filter whitelist


georgef
07-03-2010, 01:10 PM
Is there a way to use simple filters that takes advantage of the white list of addresses used by the spam assassin?

Bruce
07-07-2010, 08:07 PM
SpamAssassin always adds a "X-Spam-Status" header when it has scanned a message. If the sender is in the whitelist, the string "USER_IN_WHITELIST" will appear in that header. You can check for that header with something like this:condredirect somewhereelse@example.com sh -c '822field x-spam-status | fgrep -q USER_IN_WHITELIST'