Created attachment 206539 [details] Patch to fix problem described in bug description In certain code paths Mail/SPF will fail to parse SPF records correctly due to not importing/requiring Mail::SPF::Mech (which contains class methods required in the parse process). This is a fairly old problem, this bug report with a supposed fix by the author also contained the patch I included here: http://debian.2.n7.nabble.com/Bug-461709-usr-sbin-spamd-spf-lookup-failed-Can-t-locate-object-method-quot-new-quot-via-package-quo-td492057.html I will also report upstream, but as this problem leads to skipping SPF sometimes in mail/spampd (and probably SpamAssassin in general) I felt that pulling this into the ports tree now makes a lot of sense. Symptom: Aug 14 13:06:40 mail spampd[66621]: spf: lookup failed: Can't locate object method "qualifier_pattern" via package "Mail::SPF::Mech" at /usr/local/lib/perl5/site_perl/Mail/SPF/Record.pm line 213.
(In reply to Michael Gmelin from comment #0) Bug report at CPAN: https://rt.cpan.org/Ticket/Display.html?id=130299
A commit references this bug: Author: sunpoet Date: Wed Aug 14 18:02:15 UTC 2019 New revision: 508957 URL: https://svnweb.freebsd.org/changeset/ports/508957 Log: Fix parsing SPF records - Bump PORTREVISION for package change PR: 239855 Submitted by: grembo Reference: http://debian.2.n7.nabble.com/Bug-461709-usr-sbin-spamd-spf-lookup-failed-Can-t-locate-object-method-quot-new-quot-via-package-quo-td492057.html https://rt.cpan.org/Public/Bug/Display.html?id=130299 Changes: head/mail/p5-Mail-SPF/Makefile head/mail/p5-Mail-SPF/files/ head/mail/p5-Mail-SPF/files/patch-lib-Mail-SPF-Record.pm
Committed. Thanks!