• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

sned spam to spam folder: no headers?

Sven L.

Regular Pleskian
EDIT: title should read "SEND" ;)

Hello,

when configuring spam settngs to "mark spam with ****SPAM**** each email marked as spam gets some nice headers like the ones I post here.
when configuring spam settings to "send spam to spam folder" it does work properly, but the emails do NOT get those headers.

is there any way to have the "send spam to spam folder" setting but still get the headers in each mail?


example:
X-Spam-Report:
* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
* trust
* [209.85.223.178 listed in list.dnswl.org]
* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
* (zandadoum[at]gmail.com)
* -0.0 SPF_PASS SPF: sender matches SPF record
* 1000 GTUBE BODY: Generic Test for Unsolicited Bulk Email
* 2.0 BAYES_80 BODY: Bayes spam probability is 80 to 95%
* [score: 0.9413]
* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
* domain
* 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
* valid
* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 
Last edited:
My understanding is that it's the anti-spam system such as spamassassin or any other you are running that writes headers to mails regarding it's findings ...(I could be wrong on this ...)

So if mail is being pushed to SPAM folder without the SPAM headers, then could be that there's another rule or system that detects SPAM, sends it to spam folder before these others check ...

Or better is, once mail is detected as SPAM and pushing it to the spam folder flag is enabled, then no need of writing the headers ..If there is such a functionality then it's with postfix it self, so you might want to check the postfix config file /etc/postfix/main.cf for any possibilities ..
 
this are the headers of a mail moved to spam folder (correctly) and as you see, there are no spam headers whatsoever except the SPF related stuff (and my SPF is set to only log, not filter)


Return-Path: <MAILER-DAEMON>
X-Original-To: [email protected]
Delivered-To: [email protected]
X-No-Auth: unauthenticated sender
Received-SPF: none (no valid SPF record)
X-No-Relay: not in my network
Received: from 94.245.164.152 (unknown [94.245.164.152])
by private.myserver (Postfix) with SMTP id 5DA5A4FCB5
for <[email protected]>; Wed, 11 Sep 2013 18:59:38 +0200 (CEST)
Received: from unknown (HELO localhost) ([email protected]@98.191.70.233)
by 94.245.164.152 with ESMTPA; Thu, 12 Sep 2013 03:03:13 +0900
X-Originating-IP: 98.191.70.233
From: [email protected]
To: [email protected]
Subject: My Number One Profit Stock
Date: Thu, 12 Sep 2013 02:57:51 +0900
 
Back
Top