[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!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!