Courier::Filter::Module::SPF(3pm) | User Contributed Perl Documentation | Courier::Filter::Module::SPF(3pm) |
Courier::Filter::Module::SPF - SPF filter module for the Courier::Filter framework
use Courier::Filter::Module::SPF; my $module = Courier::Filter::Module::SPF->new( scope => 'mfrom' || 'helo', match_on => ['fail', 'permerror', 'temperror'], default_response => $default_response_text, spf_options => { # any Mail::SPF::Server options }, logger => $logger, inverse => 0, trusting => 0, testing => 0, debugging => 0 ); my $filter = Courier::Filter->new( ... modules => [ $module ], ... );
This class is a filter module class for use with Courier::Filter. By default, it matches a message if the sending machine's IP address is not authorized to send mail from the envelope sender's (MAIL FROM) domain according to that domain's SPF (Sender Policy Framework) DNS record. This is classic inbound SPF checking.
The point of inbound SPF checking is for receivers to protect themselves against forged envelope sender addresses in messages sent by others.
The following constructor is provided:
%options is a list of key/value pairs representing any of the following options:
Note: With early SPF specification drafts as well as the obsolete Mail::SPF::Query module, the "permerror" and "temperror" result codes were known as "unknown" and "error", respectively; the old codes are now deprecated but still supported for the time being.
SPF macro substitution is performed on the default response, just like on explanations provided by domain owners. If undef, Mail::SPF's default explanation will be used. Defaults to undef.
All options of the Courier::Filter::Module constructor are also supported. Please see "new" in Courier::Filter::Module for their descriptions.
See "Instance methods" in Courier::Filter::Module for a description of the provided instance methods.
Courier::Filter::Module, Courier::Filter::Overview, Mail::SPF.
For AVAILABILITY, SUPPORT, and LICENSE information, see Courier::Filter::Overview.
Julian Mehnle <julian@mehnle.net>
2015-11-28 | perl v5.20.2 |