spfqtool(1) command-line SPF query tool


spfqtool [-b 0,1] [-d x] [-e 0,1] [-h host] [-i addr] [-s email] [-t 0,1] [-v]


This manual page documents briefly the spfqtool command.

This manual page was written for the Debian distribution because the original program does not have a manual page.

The spfqtool can be used to test SPF ("Sender Policy Framework") policies. It takes a sender and a recipient email, a source IP address and an SMTP HELO name. Using the SPF policy announced by the sender's email address domain, the tool shows whether an email with the two correspondents would be allowed to originate from the given IP address.


This program follows the usual GNU command line syntax. A summary of options is included below.

-b 0,1
Enable Best Guess support (True (0) or False (1)).
-d x
DEBUG where x is a number between 1 and 255.
-e 0,1
Enable SPF explanation (True (0) or False (1)).
-h host
HELO hostname to test with.
-i addr
IP Address where the fake connection will come from.
-s email
What email address to test with.
-t 0,1
Enable Trusted Forwarder support (True (0) or False (1)).
Display version string.


Minimum required arguments are 'i', and 's'.

Example: spfqtool -i -s [email protected] -h spftools.net


This manual page was written by Mattias Nordstrom [email protected] for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.