Thanks Matt and Theo for your helpful replies. I have now disabled the auto expiry, so it won't happen during the scanning of a message. I can then trigger it to do this at a time during the night when it doesn't matter so much.
I have also sorted out my trusted path, and now where ever the emails come from, the correct servers are trusted. It seems to have made the SA checks quite a bit faster, probably because lookups are not done on trusted ips. Now that I have got my trusted networks sorted out, may I ask this question again? ================================================= Secondly it appears that even when it has all the information to do the spf check, it can't find the module. I thought i had installed it, and when i go to f:\perl\bin and run "ppm install Mail-SPF-Query" it says: ======================== F:\Perl\bin>ppm install Mail-SPF-Query Version 1.6 of 'Mail-SPF-Query' is already installed. Remove it, or use 'verify --upgrade Mail-SPF-Query' ======================== In the debug log it says: ======================== debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x25f02ac) ======================== Here is the part where it says it can't load the module: ======================== debug: X-Envelope-From header found after 1 or more Received lines, cannot trust envelope-from debug: Return-Path header found after 1 or more Received lines, cannot trust envelope-from debug: Running tests for priority: 0 debug: running header regexp tests; score so far=0 debug: registering glue method for check_for_spf_fail (Mail::SpamAssassin::Plugin::SPF=HASH(0x25f019c)) debug: SPF: relayed through one or more trusted relays, cannot use header-based Envelope-From, skipping debug: registering glue method for check_for_spf_pass (Mail::SpamAssassin::Plugin::SPF=HASH(0x25f019c)) debug: all '*From' addrs: [EMAIL PROTECTED] debug: all '*To' addrs: [EMAIL PROTECTED] debug: registering glue method for check_hashcash_value (Mail::SpamAssassin::Plugin::Hashcash=HASH(0x25df0c8)) debug: registering glue method for check_for_spf_helo_fail (Mail::SpamAssassin::Plugin::SPF=HASH(0x25f019c)) debug: SPF: checking HELO (helo=tcfcu.com, ip=82.237.116.13) debug: SPF: trimmed HELO down to 'tcfcu.com' debug: SPF: cannot load or create Mail::SPF::Query module debug: registering glue method for check_for_spf_helo_pass (Mail::SpamAssassin::Plugin::SPF=HASH(0x25f019c)) debug: registering glue method for check_hashcash_double_spend (Mail::SpamAssassin::Plugin::Hashcash=HASH(0x25df0c8)) debug: registering glue method for check_for_spf_softfail (Mail::SpamAssassin::Plugin::SPF=HASH(0x25f019c)) debug: registering glue method for check_for_spf_helo_softfail (Mail::SpamAssassin::Plugin::SPF=HASH(0x25f019c)) ======================= Should the SPF module work on a windows system? It seems to claim it is installed. Having ranted on about how to get SPF working, how do i disable SPF if i don't get it working, so it doesn't do the unnecessary preparation work? Thanks for your help, Ben