26 Feb 2006 19:39:26 UTC
- Distribution: Mail-SPF-Query
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (175 / 788 / 1)
- KwaliteeBus factor: 0
- 34.82% Coverage
- License: unknown
- Download (54.04KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
spfd - simple forking daemon to provide SPF query services
spfd --port port [--set-user uid|username] [--set-group gid|groupname]
spfd --socket filename [--socket-user uid|username] [--socket-group gid|groupname] [--socket-perms octal-perms] [--set-user uid|username] [--set-group gid|groupname]
spfd is a simple forking Sender Policy Framework (SPF) query proxy server. spfd receives and answers SPF query requests on a TCP/IP or UNIX domain socket.
The --port form listens on a TCP/IP socket on the specified port. The default port is 5970.
The --socket form listens on a UNIX domain socket that is created with the specified filename. The socket can be assigned specific user and group ownership with the --socket-user and --socket-group options, and specific filesystem permissions with the --socket-perms option.
Generally, spfd can be instructed with the --set-user and --set-group options to drop root privileges and change to another user and group before it starts listening for requests.
The --help form prints usage information for spfd.
A request consists of a series of lines delimited by \x0A (LF) characters (or whatever your system considers a newline). Each line must be of the form key=value, where the following keys are required:
The sender IP address.
The envelope sender address (from the SMTP
The envelope sender hostname (from the SMTP
spfd responds to query requests with similar series of lines of the form key=value. The most important response keys are:
The result of the SPF query:
The specified IP address is an authorized mailer for the sender domain/address.
The specified IP address is not an authorized mailer for the sender domain/address.
The specified IP address is not an authorized mailer for the sender domain/address, however the domain is still in the process of transitioning to SPF.
The sender domain makes no assertion about the status of the IP address.
The sender domain has a syntax error in its SPF record.
A temporary DNS error occurred while resolving the sender policy. Try again later.
There is no SPF record for the sender domain.
The text that should be included in the receiver's SMTP response.
The text that should be included as a comment in the message's
The SPF record of the envelope sender domain.
For the description of other response keys see Mail::SPF::Query.
For more information on SPF see http://www.openspf.org.
A running spfd could be tested using the
netcatutility like this:
$ echo -e "ip=184.108.40.206\email@example.com\nhelo=spammer.example.net\n" | nc localhost 5970 result=neutral smtp_comment=Please see http://spf.pobox.com/why.html?sender=user%40pobox.com&ip=220.127.116.11&receiver=localhost header_comment=localhost: 18.104.22.168 is neither permitted nor denied by domain of firstname.lastname@example.org guess=neutral smtp_guess= header_guess= guess_tf=neutral smtp_tf= header_tf= spf_record=v=spf1 ?all
This version of spfd was written by Meng Weng Wong <email@example.com>. Improved argument parsing was added by Julian Mehnle <firstname.lastname@example.org>.
This man-page was written by Julian Mehnle <email@example.com>.
Module Install Instructions
To install Mail::SPF::Query, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Mail::SPF::Query
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|