Courier::Filter::Module::SPFout(3pm) | User Contributed Perl Documentation | Courier::Filter::Module::SPFout(3pm) |
Courier::Filter::Module::SPFout - Outbound SPF filter module for the Courier::Filter framework
use Courier::Filter::Module::SPFout; my $module = Courier::Filter::Module::SPFout->new( match_on => ['fail', 'permerror', 'temperror'], default_response => $default_response_text, force_response => $force_response_text, outbound_ip_addresses => ['129.257.16.1', '2001:6ag:10e1::1'], 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 for use with Courier::Filter. It matches a message if any of the receiving (local) machine's outbound IP addresses are not authorized to send mail from the envelope sender's (MAIL FROM) domain according to that domain's DNS SPF (Sender Policy Framework) record. This is outbound SPF checking.
The point of inbound SPF checking is for message submission agents (MSAs, smarthosts) to protect others against forged envelope sender addresses in messages submitted by the MSA's users.
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 (except for the trusting option) 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::SPF, Courier::Filter::Module, Courier::Filter::Overview, Mail::SPF.
For AVAILABILITY, SUPPORT, and LICENSE information, see Courier::Filter::Overview.
Julian Mehnle <julian@mehnle.net>
2022-10-21 | perl v5.34.0 |