On 2023-02-06 at 12:50:29 UTC-0500 (Mon, 6 Feb 2023 17:50:29 +0000)
Michael Grant via users <mgr...@grant.org>
is rumored to have said:
I’m noticing that check_uridnsbl() seems only to check the message
body. Is there some way to make it check the headers as well?
No. Which is fine, because there are usually no URIs in headers, and
when there are, they are likely to be standard List-* headers, which are
unlikely to be useful.
In 25_uribl.cf, I have:
urirhssub URIBL_BLACK multi.uribl.com. A 2
body URIBL_BLACK eval:check_uridnsbl('URIBL_BLACK')
describe URIBL_BLACK Contains an URL listed in the URIBL
blacklist
tflags URIBL_BLACK net
reuse URIBL_BLACK
First obvious thing I tried was changing ‘body’ to ‘full’ in
the above. It continues to check only the body. In fact, changing it
to ‘header’, it continues to check the body. I then read through
the man page on URIDNSBL and it does clearly state a ‘body’ rule.
Predictable. :)
Is there some clever way to have a URIDNSBL rule check the header of a
message as well? Or is there something else I can use separately that
would look up a domainname in the header section of an email?
Nothing comes to mind.
You can obviously use 'full' or the 'all' pseudo-header and look for
specific domains, but identifying everything in the header that COULD be
a domain and just testing that against a DNSBL designed for domains
found in URIs could have very bad failure modes.
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire