Mailing List Archive

Implementation of SPF for Windows 2000 and later
I have now added a cache to my implementation of SPF for Windows. You can
download version 1.5 the C source and the DLL at www.pamho.net/source.

The cache is using my database engine RamaDB (not Open Source, but included
in RMSPF DLL).

On my 1.6 GHz Pentium it can process about 15000 SPF queries per second
provided that all data is in the cache and the cache file is mapped into
the memory (in the disk cache). For me that is far enough. It could be made
about twice as fast by having the cache only in the memory and using a hash
function.

The changes since version 1.0 are:

New features:
- Support for creating a DLL added.
- New argument 'flags' of SPFInit().
- New function SPFStringToAddr().
- New argument 'helo' of SPFMSQuery().
- The cache implemented.
- You can specify a whitelist policy by calling SPFSetWhiteList().

Changes:
- SPFResults[] is replaced by the macro/function SPFResultString().
- If there are multiple SPF records of the same version, the result is now
'unknown'. (Before it was 'none').
- The functions SPFQuery() and SPFMSQuery() use 'helo' as the sender if
'sender' is NULL or empty.

Fixed bugs:
- Did not work correctly if 'char' is signed.
- SPFGetAddress() did not load DNSAPI.DLL if it was not loaded.
- If the argument 'policy' of SPFQuerey() was given and it contained an
'include', then the routine included the same policy instead of getting
it from the DNS.
- The total number of includes and redirects was not limited to 20.

Roger

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com