[SOLVED] Getting double spam report mails

poetry

Active Member
May 28, 2020
206
63
33
Can someone explain how to do this properly. I just want the spam report emails to be send at 06:00 using yesterday parameter. I want this changes to be persistent after every upgrade.

I have setup the file /etc/systemd/system/pmgspamreport.timer.d/override.conf
[Timer] OnCalendar=06:00 Persistent=true

But this does not seem to be right. Now I am getting two reports one at 00:05 and one at 06:00.

The documentation on this is just not helpful
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#chapter_pmgqm
 
Apologies, misunderstood your question, I thought you wanted a second email.

If I understand this correct you could add the following command to your crontab at 06:00.

Code:
/usr/bin/pmgqm send --timespan yesterday
 
Last edited:
Glad this worked out :)
I highly recommend to put this example or similar into documentation as this configuration is non trivial. Spend many hours trying to configure this and missed in the systemd recommendation.
While I'm usually a fan of pointing to the reference documentation instead of reproducing it - I see that it can be confusing and that many are not too familiar with it - anyways - sent a patch for discussion to the mailing-list:
https://lists.proxmox.com/pipermail/pmg-devel/2022-December/002232.html

So hopefully future users will have it easier

Thanks for the hint!