QUOTE | On Sun, 30 May 2004, Davide Libenzi wrote:
> On Sun, 30 May 2004, Michael Luke wrote: > > > Hi everybody. > > > > I've just started using Xmail 1.18 and am impressed by how well it runs. > > > > Does Xmail contain features that I can use to verify Sender Policy > > Framework rules? http://spf.pobox.com/intro.html > > This sounds like a perfect candidate for the new pre-data SMTP filters. > Any takers?
Me me:
http://www.xmailserver.org/xm-spf.pl
It is a mostly a cut&paste from their example, plus XMail parsing (if we want to call it in that way) logic for spool files. It works from the command line and it works when passed a spool file (both SMTP and final spool - they have different header line). It supports tons of options (many of them I do not even know the meaning , but at the basic:
$ xm-spf.pl --ip IP --sender SENDER --debug 1
It supports setting the fail/pass exit codes with --pcode and --fcode. The default fail code is 19, that is ok for SMTP filters. When called from a filter:
xm-spf.pl --file @@FILE
You obviously need this to have it working:
http://spf.pobox.com/Mail-SPF-Query-1.997.tar.gz
Note, it's a first cut, so YMMV ...
- Davide
|
Closer infos about SPF: http://spf.pobox.com/
|