RE: Best way to filter against specific domains?

From: Murray S. Kucherawy <>
Date: Wed, 21 Mar 2012 17:36:21 +0000

> -----Original Message-----
> From: [] On Behalf Of Charles Bartels
> Sent: Wednesday, March 21, 2012 9:18 AM
> To:
> Subject: Best way to filter against specific domains?
> Is there an easy way to run dkim checks against a couple specific
> domains, but no others.
> For example if you were getting lots of spam from someone forging mail
> from, how do I dkim check just those mails and allow
> everything else to go through?

Sounds like a job for the Lua hooks, probably the "prescreen" function. You would just write a Lua script that instructs the filter only to verify signatures for messages that meet your criteria, and have OpenDKIM run it for every message before verification begins.

For rejection (since you said "go through"), you could either use the "final" Lua function, or use the LocalADSP feature.

Let me know if you need pointers to the right bits of the documentation.

Received on Wed Mar 21 2012 - 17:36:29 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:38 PST