On 2023-01-20 at 17:39:29 UTC-0500 (Fri, 20 Jan 2023 16:39:29 -0600)
Scott Techlist <techlis...@s2ca.us>
is rumored to have said:
Noel:
[...]
I don't see any Received: headers. Something in your system removed
those. The Received: headers will include the client IP and possibly
hostname that could be used in a check_client_access map.
No idea what's stripping them. I use amavisd and spamassassin, the
later I expect.
Nope. ASF SpamAssassin does not manipulate existing headers in any way
except for pre-existing X-Spam-* headers that it is specifically
configured to remove. When used via amavisd or MIMEDefang or any other
milter that loads the SA modules instead of using the spamd daemon, SA
does not modify messages at all.
What is likely happening here is that when a milter sees a message, it
does not have the current Received header, because it has yet to be
fully received. If you are extracting this message from that stage
rather than after final delivery, Postfix has not yet added the Received
header. Milters work around this by adding a synthetic Received header
when passing the message to SA, but if you save a message out of the
milter, you won't get that.
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire