SpamAssassin: Can’t locate Mail/SPF/

If you have SpamAssassin installed and see “Can't locate Mail/SPF/ in @INC...” in your error logs, you need to install Mail::SPF::Query.

SpamAssassin uses SPF to detect header and email-source forgery – very important in determining if e-mail is legitimate or not.

To install Mail::SPF::Query, run these commands as root:

perl -MCPAN -e shell
install Mail::SPF::Query

If you haven’t yet added SPF records to your DNS, you can find out more at the Sender Policy Framework site

By Phil Wiffen

Phil is an IT Professional working in Cambridge, England. He generally blogs about useful solutions that he comes across in his work/play.

Leave a Reply

Your e-mail address will not be published. Required fields are marked *