I need to disable proxmox e-mail spam daily report to user.

sanojs

Member
Sep 13, 2019
44
1
13
36
Hello,

I need to disable the proxmox e-mail spam daily report to user emails. Kindly provide the steps to disable the email notification.
 

Attachments

  • Proxmos.jpeg
    Proxmos.jpeg
    25.2 KB · Views: 74
That should work via GUI: 'Configuration'->'Spam Detector'->'Quarantine'->'Report Style'->'User Spamreport Style'-> select No Reports

I hope this helps!
 
HI

I cannot view this option in my server (Mail Gateway 6.1-3)

Regards
 

Attachments

  • screenshot.png
    screenshot.png
    46.5 KB · Views: 70
yes, it is there: 'User Spamreport Style'
 
Oh... YES !!

Sorry.

One another question. My server is not sending spam reports every day. Where can I Double check it ?
 
it only sends span reports when there were spams delivered to the quarantine on the day before
 
Hi,

I had the same issue and did set GUI > Configuration > Spam Detector > Quarantine > User Spamreport Style to "No Reports" yesterday, but I still did get a spam report tonight at 0:05.

The output of "systemctl cat pmgspamreport.timer" is

Code:
# /lib/systemd/system/pmgspamreport.timer
[Unit]
Description=Send Daily Spam Report Mails

[Timer]
OnCalendar=00:05
Persistent=true

[Install]
WantedBy=timers.target

Any idea why the setting in the GUI does not work?

LostInTranslation
 
I had the same issue and did set GUI > Configuration > Spam Detector > Quarantine > User Spamreport Style to "No Reports" yesterday, but I still did get a spam report tonight at 0:05.
* could you please post the journal around that time?
* additionally could you please post your /etc/pmg/pmg.conf (at least the `spamquar` section) - anonymize anything you consider sensitive)
 
Hi Stoiko,

sure: here is the journal:

Code:
Jun 22 00:01:15 mypmg pmg-smtp-filter[4746]: starting database maintenance
Jun 22 00:01:15 mypmg pmg-smtp-filter[4746]: end database maintenance (5 ms)
Jun 22 00:02:12 mypmg pmgpolicy[382]: starting policy database maintenance (greylist, rbl)
Jun 22 00:02:12 mypmg pmgpolicy[382]: end policy database maintenance (11 ms, 2 ms)
Jun 22 00:03:15 mypmg pmg-smtp-filter[4746]: starting database maintenance
Jun 22 00:03:15 mypmg pmg-smtp-filter[4746]: end database maintenance (5 ms)
Jun 22 00:04:22 mypmg pmgpolicy[382]: starting policy database maintenance (greylist, rbl)
Jun 22 00:04:22 mypmg pmgpolicy[382]: end policy database maintenance (11 ms, 1 ms)
Jun 22 00:05:00 mypmg systemd[1]: Starting Send Daily Spam Report Mails...
Jun 22 00:05:01 mypmg pmgqm[13388]: purging database
Jun 22 00:05:02 mypmg systemd[1]: pmgspamreport.service: Succeeded.
Jun 22 00:05:02 mypmg systemd[1]: Finished Send Daily Spam Report Mails.
Jun 22 00:05:02 mypmg systemd[1]: pmgspamreport.service: Consumed 1.544s CPU time.
Jun 22 00:05:16 mypmg pmg-smtp-filter[4746]: starting database maintenance
Jun 22 00:05:16 mypmg pmg-smtp-filter[4746]: end database maintenance (5 ms)
Jun 22 00:06:32 mypmg pmgpolicy[382]: starting policy database maintenance (greylist, rbl)
Jun 22 00:06:32 mypmg pmgpolicy[382]: end policy database maintenance (10 ms, 1 ms)
Jun 22 00:07:16 mypmg pmg-smtp-filter[4746]: starting database maintenance
Jun 22 00:07:16 mypmg pmg-smtp-filter[4746]: end database maintenance (5 ms)
Jun 22 00:08:42 mypmg pmgpolicy[382]: starting policy database maintenance (greylist, rbl)
Jun 22 00:08:42 mypmg pmgpolicy[382]: end policy database maintenance (11 ms, 2 ms)
Jun 22 00:09:16 mypmg pmg-smtp-filter[4746]: starting database maintenance
Jun 22 00:09:16 mypmg pmg-smtp-filter[4746]: end database maintenance (5 ms)

And my complete /etc/pmg/pmg.conf (server names etc. renamed):

Code:
section: admin
        dkim_selector DKIM2
        dkim_sign 0
        dkim_sign_all_mail 0
        email me@my-mail.com

section: mail
        banner my.server.com
        relay <some ip address>
        relaynomx 1
        smarthost <my tmp smarthost>
        smarthostport 25
        spf 0

section: spamquar
        reportstyle none

I would be happy about any suggestion!

Thanks a lot in advance!
 
Jun 22 00:05:00 mypmg systemd[1]: Starting Send Daily Spam Report Mails...
un 22 00:05:02 mypmg systemd[1]: Finished Send Daily Spam Report Mails.


if the mails were sent out by the spamreport.service you would see the postfix invocations actually sending them out between the 2 lines?

I'd check the headers of those mails - maybe it's a misconfiguration somewhere else?
 
Hi Stoiko,

here is an example header from yesterday:

Code:
Return-Path: <>
Received: from <my.server.com> ([unix socket])
     by server (Cyrus v2.4.12-Debian-2.4.12-2) with LMTPA;
     Tue, 21 Jun 2022 00:05:02 +0200
X-Sieve: CMU Sieve 2.4
Received: from localhost (localhost.localdomain [127.0.0.1])
    by <my.server.com> (Postfix) with ESMTP id 9002E4114AA
    for <me@mydomain.com>; Tue, 21 Jun 2022 00:05:02 +0200 (CEST)
Received: from <my.server.com> ([127.0.0.1])
    by localhost (<my.server.com> [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id pMjjYIZOTTOH for <me@mydomain.com>;
    Tue, 21 Jun 2022 00:05:02 +0200 (CEST)
Received: from <my.server.com> (<PMG_hostname> [10.32.1.16])
    by <my.server.com> (Postfix) with ESMTP id 78A764114A7
    for <me@mydomain.com>; Tue, 21 Jun 2022 00:05:02 +0200 (CEST)
Received: from <PMG_hostname>.<server.com> (localhost [127.0.0.1])
    by <PMG_hostname>.<server.com> (Proxmox) with ESMTP id 65F65CFF8
    for <me@mydomain.com>; Tue, 21 Jun 2022 00:05:02 +0200 (CEST)
Content-Type: multipart/related; boundary="----------=_1655762702-2701-2"
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
To: <me@mydomain.com>
From: Proxmox Mail Gateway <postmaster@<PMG_hostname>.<server.com>>
Subject: Daily Spam Report for '<me@mydomain.com>' - 2022-06-20
Message-Id: <20220620220502.65F65CFF8@<PMG_hostname>.<server.com>
Date: Tue, 21 Jun 2022 00:05:02 +0200 (CEST)

This is a multi-part message in MIME format...

------------=_1655762702-2701-2
Content-Type: text/html
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
 
here is an example header from yesterday:
Subject: Daily Spam Report for '<me@mydomain.com>' - 2022-06-20
the mail is from Monday - early in the morning?

maybe there's a delivery issue and it's been queued on PMG?

check the complete journal of PMG as said - if the mails are sent out by the spamreport timer you'd see the postfix entries between the 2 lines:
Jun 22 00:05:00 mypmg systemd[1]: Starting Send Daily Spam Report Mails...
....here are the postfix lines
Jun 22 00:05:02 mypmg systemd[1]: Finished Send Daily Spam Report Mails.

I hope this helps!