Weekly Spam Report - spanreport-verbose.tt

Jun 17, 2022
30
1
8
Hi,
in the /var/lib/pmg/templates/spanreport-verbose.tt is a switch for daily and weekly reports
Code:
[%- IF timespan == 'week' -%]
[%- SET title : “Weeky Spam Report for '${pmail}' - ${date}'" -%]
[%- ELSE %]
[%- SET title : “Daily Spam Report for '${pmail}' - $   {date}" -%]
[%- END -%]
how can i change the system from daily to weekly reports?
 
thanks, both files are commented with #

systemctl edit pmgspamreport.service

What should i change, only one new entry in line 4?
Code:
ExecStart=/usr/bin/pmgqm send --timespan week

systemctl edit pmgspamreport.timer

Here is the setting # OnCalender=00:05

This time is okay but the reports should be send only on monday morning at 00:05

Is the [/icode]--timespan week[/icode] correct to report the lastweek from monday 00:00:00 to sunday 23:59:59?
 

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!