OS Manuals

/usr/bin/spfquery

From libspf2-tools 1.2.11-r6 (os), captured 2026-11-05 by running spfquery --help (exit 255). permalink

Usage:

spfquery [control options | data options] ...

Valid data options are:
    -file <filename>           read spf data from a file.  Use '-'
                               to read from stdin.

    -ip <IP address>           The IP address that is sending email
    -sender <email address>    The email address used as the
                               envelope-from.  If no username (local
                               part) is given, 'postmaster' will be
                               assumed.
    -helo <domain name>        The domain name given on the SMTP HELO
                               command.  This is only needed if the
                               -sender option is not given.
    -rcpt-to <email addresses> A comma separated lists of email addresses
                               that will have email from their secondary
                               MXes automatically allowed.

The data options are required.  The -file option conflicts with all
the other data options.  The -helo and -rcpt-to are optional.


Valid control options are:
    -debug [debug level]       debug level.
    -local <SPF mechanisms>    Local policy for whitelisting.
    -trusted <0|1>             Should trusted-forwarder.org be checked?
    -guess <SPF mechanisms>    Default checks if no SPF record is found.
    -default-explanation <str> Default explanation string to use.
    -max-lookup <number>       Maximum number of DNS lookups to allow
    -sanitize <0|1>            Clean up invalid characters in output?
    -name <domain name>        The name of the system doing the SPF
                               checking
    -override <...>            Override SPF records for domains
    -fallback <...>            Fallback SPF records for domains

    -keep-comments             Print comments found when reading
                               from a file.
    -version                   Print version of spfquery.
    -help                      Print out these options.

Examples:

spfquery -ip=11.22.33.44 -sender=user@aol.com -helo=spammer.tld
spfquery -f test_data
echo "127.0.0.1 myname@mydomain.com helohost.com" | spfquery -f -
Options (16)
OptionDescriptionSource
-file filenameread spf data from a file.help
-ip IPThe IP address that is sending emailhelp
-sender emailThe email address used as the envelope-from.help
-helo domainThe domain name given on the SMTP HELO command.help
-debug debugdebug level.help
-local SPFLocal policy for whitelisting.help
-trusted 0|1Should trusted-forwarder.org be checked?help
-guess SPFDefault checks if no SPF record is found.help
-max-lookup numberMaximum number of DNS lookups to allowhelp
-sanitize 0|1Clean up invalid characters in output?help
-name domainThe name of the system doing the SPF checkinghelp
-override ...Override SPF records for domainshelp
-fallback ...Fallback SPF records for domainshelp
-keep-commentsPrint comments found when reading from a file.help
-versionPrint version of spfquery.help
-helpPrint out these options.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.