Mail::SPF::SenderIPAddrMech - Abstract base class for SPF record mechanisms


Mail-SPF documentation Contained in the Mail-SPF distribution.

Index


Code Index:

NAME

Top

Mail::SPF::SenderIPAddrMech - Abstract base class for SPF record mechanisms that operate on the SMTP sender's IP address

DESCRIPTION

Top

Mail::SPF::SenderIPAddrMech is an abstract base class for SPF record mechanisms that operate on the SMTP sender's IP address. It cannot be instantiated directly. Create an instance of a concrete sub-class instead.

Constructors

See Constructors in Mail::SPF::Mech.

Class methods

See Class methods in Mail::SPF::Mech.

Instance methods

See Instance methods in Mail::SPF::Mech.

SEE ALSO

Top

Mail::SPF, Mail::SPF::Record, Mail::SPF::Mech

Mail::SPF::Mech::IP4, Mail::SPF::Mech::IP6, Mail::SPF::Mech::A, Mail::SPF::Mech::MX, Mail::SPF::Mech::PTR

http://www.ietf.org/rfc/rfc4408.txt

For availability, support, and license information, see the README file included with Mail::SPF.

AUTHORS

Top

Julian Mehnle <julian@mehnle.net>


Mail-SPF documentation Contained in the Mail-SPF distribution.
#
# Mail::SPF::SenderIPAddrMech
# Abstract base class for SPF record mechanisms that operate on the SMTP
# sender's IP address.
#
# (C) 2005-2008 Julian Mehnle <julian@mehnle.net>
# $Id: SenderIPAddrMech.pm 50 2008-08-17 21:28:15Z Julian Mehnle $
#
##############################################################################

package Mail::SPF::SenderIPAddrMech;

use warnings;
use strict;

use base 'Mail::SPF::Mech';

use constant TRUE   => (0 == 0);
use constant FALSE  => not TRUE;

use constant explanation_templates_by_result_code => {
    %{__PACKAGE__->SUPER::explanation_templates_by_result_code},
    pass        => "%{c} is authorized to use '%{s}' in '%{_scope}' identity",
    fail        => "%{c} is not authorized to use '%{s}' in '%{_scope}' identity",
    softfail    => "%{c} is not authorized to use '%{s}' in '%{_scope}' identity, however domain is not currently prepared for false failures",
    neutral     => "Domain does not state whether %{c} is authorized to use '%{s}' in '%{_scope}' identity"
};

TRUE;