How to Change the Time of the Daily Spam Report

AdminArako

New Member
Jan 17, 2024
1
0
1
Hello,


I am using Proxmox Mail Gateway version 8.2, and I would like to change the time when the daily user spam report is sent. Currently, the report is being delivered shortly after midnight (around 00:01), but I would prefer it to be sent at a later time (e.g., 08:00).


Thank you in advance for your help.
 
cron?

PMG comes with a systemd unit that triggers the sending of the spam reports. it's called pmgspamreport.timer.

I changed the sending time to `7:05am` by adding an override file /etc/systemd/system/pmgspamreport.timer.d/time.conf with the following content:

INI:
[Timer]
OnCalendar=
OnCalendar=07:05

(the first empty OnCalendar= line is to unset the time in the unit that comes with the pmg-api package.)
 
Last edited:
  • Like
Reactions: Hannes Laimer