On 2025-06-24 at 08:00:04 UTC-0400 (Tue, 24 Jun 2025 14:00:04 +0200)
Benoit Panizzon <benoit.paniz...@imp.ch>
is rumored to have said:
Hi Mark
Thank you, but my question was, how to match the rdns name of the
source IP.
Well i found out the header matcher can also match Received: header
lines.
header IMP_RECV_SHOP Received =~ /\.shop\ /
score IMP_RECV_SHOP 10
describe IMP_RECV_SHOP Received: from shop TLD
This works for me.
Note that there are also subsets of Received headers with fields parsed
out that you can use, see `perldoc Mail::SpamAssassin::PerMsgStatus` for
a discussion of all of the available "pseudo-headers." There are
examples in existing rules.
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo@toad.social and many *@billmail.scconsult.com
addresses)
Not Currently Available For Hire