Mark Sapiro wrote:
On 4/8/21 3:18 PM, skenny@scss.tcd.ie wrote:
On the face of it, it looks like Mailman has removed the X-Spam-* headers. This should not be the case. Mailman removes some headers from posts to anonymous lists, but not X-Spam- headers even there. Are you sure you are looking at the raw message headers and not some MUAs rendition of them? I can think of no reason why Mailman would remove those headers.
I think I may have been misreading what's going on. The spam email is first received by Postfix and rinsed by SpamAssassin. In the copy that gets retained as a gzipped file under /var/lib/amavis/virusmails, there's a header present near the top that says "Delivered-To: spam-quarantine" - as well as all the X-Spam-* headers.
So Postfix must consider the message "delivered" in that sense. My guess is that it then hands off the original email - minus all the X-Spam-* and other headers, but with the amended Subject: line (***SPAM*****) - to Mailman. Thus Mailman never sees those spam-related headers in the first place (?)
Stephen