NAME Validate::SPF - Validates SPF text string VERSION version 0.001 SYNOPSIS use Validate::SPF qw( validate ); my $spf_text = 'v=spf1 +a/24 mx mx:mailer.example.com ip4:192.168.0.1/16 -all'; print $spf_text . "\n"; print ( validate( $spf_text ) ? 'valid' : 'NOT valid' ) . "\n"; DESCRIPTION This module implements basic SPF validation. This is ALPHA quality software. The API may change without notification! EXPORTS TODO FUNCTIONS validate Parse and validate SPF string.. check_extra Checks extra parameters for mechanisms and modifiers. PRIVATE FUNCTIONS _validate_a Additional checks for A mechanism. _validate_mx Additional checks for MX mechanism. _validate_ip4 Additional checks for IP4 mechanism. _validate_ip6 Additional checks for IP6 mechanism. _validate_ptr Additional checks for PTR mechanism. _validate_exists Additional checks for EXISTS mechanism. _validate_include Additional checks for INCLUDE mechanism. _validate_redirect Additional checks for REDIRECT modifier. _validate_exp Additional checks for EXP modifier. SEE ALSO RFC 7208 Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1. AUTHOR Anton Gerasimov COPYRIGHT AND LICENSE This software is copyright (c) 2014 by Anton Gerasimov. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.