klaus thorn wrote:
can I configure spamassassin to not do SPF check for certain
domains?

Sort of, but it involves overriding some of the default rules in local.cf.

Basically you need to do the following:
1. Copy the SPF eval rules to a new set of non-scored rules.
2. Create a header rule that checks for the domains you want to skip.
3. Create a set of meta rules with the original names of the SPF rules.

Here's the code we use to ignore SPF_SOFTFAIL on a couple of domains:

header __REAL_SPF_SOFTFAIL  eval:check_for_spf_softfail()
header __FROM_SKIP_SPF      From =~ /\@(?:domain1\.com|domain2\.net)\b/i
meta SPF_SOFTFAIL           (__REAL_SPF_SOFTFAIL && !__FROM_SKIP_SPF)

You should be able to do the same with the other SPF rules.

Note that SpamAssassin still does the SPF check, it just doesn't score it if it matches one of those domains.

--
Kelson Vibber
SpeedGate Communications <www.speed.net>

Reply via email to