spfquery1
Verifies smtp sender ip, hello and address
Usage
spfquery [-v]
[{-file
<file> | VERIFY
OPTIONS}]
Overview
spfquery queries the SPF records for a DNS domain. It then compares the arguments as specified in the optional commandline arguments or as read from standard input. sqfquery will print the result of this comparison to standard output and exit with the appropriate error code.
For further details on SPF please visit http://spf.pobox.com/
Commandline switches
-v Display a brief help message and exit.
- -file <file>
-
Read input from file.
Options
-
-ipv4=[IP_ADDRESS] -
The SMTP senders ipv4 IP address.
-
-sender=[EMAIL_ADDRESS] -
The envelope from address.
-
-helo=[HELO_HOST] -
The helo host specified by the SMTP sender.
Output
pass-
The specified client is a designated mailer for the senders domain.
error-
Temporary failure while resolving designated mailer status for the senders domain.
unknown-
Senders domain does not designate permitted mailers.
fail-
The specified client is not a designated mailer for the senders domain.
softfail-
The specified client is not a designated mailer for the senders domain, however, the senders domain is still in the process of transitioning to SPF.
Examples
spfquery -ipv4=127.0.0.1 [email protected] -help=mail.example.com
echo "127.0.0.1 [email protected] mail.example.com" | spfquery -file -
Exit code
|
fail |
|---|---|
|
softfail |
|
unknown |
|
error |
|
pass |