http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5812
Summary: Poor man's SPF
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Rules (Eval Tests)
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
I needed a rule, companion to whitelist_from_rcvd, to check the MailFrom
address against a domain in a handover Received header, for purposes
quite similar to SPF_PASS (in the absence of a published SPF record),
namely to offer some indication on the trustworthiness of the sender
address. Scoring of the rule is of secondary importance, a presence
of a hit on a rule can aid in reduction of bounces and in enabling
abuse reports.
$ svn -m 'new eval rule "check_mailfrom_matches_rcvd": check if domain name
of an envelope sender address matches a domain name of the first untrusted
relay (if any), or any trusted relay otherwise' ci
Sending lib/Mail/SpamAssassin/Plugin/WLBLEval.pm
Committed revision 619221.
header SENDER_AS_RCVD eval:check_mailfrom_matches_rcvd()
describe SENDER_AS_RCVD Envelope sender address matches rcvd relay
tflags SENDER_AS_RCVD nice noautolearn
score SENDER_AS_RCVD -0.2
I'm opening a PR entry just in case someone wants to comment on it.
The code is placed in WLBLEval.pm because of its close relationship
with whitelist_from_rcvd, although perhaps there is a better place.
Also I don't know whether the above SENDER_AS_RCVD rule should be
placed somewhere (and where). Are scores these days assigned manually
or automatically?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.