NAME

Mail::SpamAssassin::Plugin::SPF - perform SPF verification tests

SYNOPSIS

loadplugin     Mail::SpamAssassin::Plugin::SPF

DESCRIPTION

This plugin checks a message against Sender Policy Framework (SPF) records published by the domain owners in DNS to fight email address forgery and make it easier to identify spams.

USER SETTINGS

spf_timeout n (default: 5)

How many seconds to wait for an SPF query to complete, before scanning continues without the SPF result.

whitelist_from_spf add@ress.com

Use this to supplement the whitelist_from addresses with a check against the domain's SPF record. Aside from the name 'whitelist_from_spf', the syntax is exactly the same as the syntax for 'whitelist_from'.

Just like whitelist_from, multiple addresses per line, separated by spaces, are OK. Multiple whitelist_from_spf lines are also OK.

The headers checked for whitelist_from_spf addresses are the same headers used for SPF checks (Envelope-From, Return-Path, X-Envelope-From, etc).

Since this whitelist requires an SPF check to be made network tests must be enabled. It is also required that your trust path be correctly configured. See the section on trusted_networks for more info on trust paths.

e.g.

whitelist_from_spf joe@example.com fred@example.com
whitelist_from_spf *@example.com
def_whitelist_from_spf add@ress.com

Same as whitelist_from_spf, but used for the default whitelist entries in the SpamAssassin distribution. The whitelist score is lower, because these are often targets for spammer spoofing.