> I need to look at setting up a custom rule based on a SPF > result. If mail is sent from domain xyz.com and the SPF > record matches, let it pass as per normal. If on the other > hand the SPF record fails for xyz.com, add +5 to the score. > This has to happen ONLY for domain xyz.com. All others will > be handled by Spamassassin the normal way.
I can't specify the syntax directly for you, but a good method of doing this would be to create a rule to detect the message is from that domain then use a meta rule to score if the message hits both from that domain and SPF_FAIL. Bret