Author Topic: AMAVIS , HOW ADD X-Spam-Status header  (Read 2051 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
AMAVIS , HOW ADD X-Spam-Status header
« on: October 05, 2022, 10:55:16 AM »
Hi

is possible add X-Spam-Status header on all messages recived?

for example:

 pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.8 BAYES_50               BODY: Bayes spam probability is 40 to 60%
                             [score: 0.5000]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  0.0 LOTS_OF_MONEY          Huge... sums of money
  1.9 MONEY_NOHTML           Lots of money in plain text

Offline
*
Re: AMAVIS , HOW ADD X-Spam-Status header
« Reply #1 on: October 06, 2022, 05:57:23 PM »
i tried to edit the file:

/etc/mail/spamassassin/local.cf

with:

rewrite_header Subject *****SPAM*****
required_score 5.0
use_bayes 1
bayes_auto_learn 1
bayes_ignore_header X-Bogosity
bayes_ignore_header X-Spam-Flag
bayes_ignore_header X-Spam-Status
# include /usr/share/spamassassin/

but any options I enter don't seem to have real effect


this is my header


X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on srv1.domain.com
X-Spam-Level:
X-Spam-Status: No, score=0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
   DKIM_VALID_AU,FORGED_SPF_HELO,FREEMAIL_FROM,HTML_MESSAGE,SPF_HELO_PASS
   autolearn=no autolearn_force=no version=3.4.0

Offline
*
Re: AMAVIS , HOW ADD X-Spam-Status header
« Reply #2 on: October 06, 2022, 07:28:55 PM »
and this the log file

Thu Oct  6 21:26:21 2022 [26147] info: spamd: connection from localhost [127.0.0.1]:56548 to port 783, fd 5
Thu Oct  6 21:26:21 2022 [26147] info: spamd: setuid to nobody succeeded
Thu Oct  6 21:26:21 2022 [26147] info: spamd: creating default_prefs: //.spamassassin/user_prefs
Thu Oct  6 21:26:21 2022 [26147] warn: config: can not determine default prefs path
Thu Oct  6 21:26:21 2022 [26147] info: spamd: failed to create readable default_prefs: //.spamassassin/user_prefs