]> git.proxmox.com Git - pmg-api.git/commit
pmgspamreport: purge before sending reports
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 19 Mar 2020 13:02:27 +0000 (14:02 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 20 Mar 2020 16:47:07 +0000 (17:47 +0100)
commit6739c1232fabe65d1c9a4dabf3dee698faf415d5
tree82570b99302ba370fa070f79c8185ae3e7cda7b5
parent7a7e03e6871716a9aadd095c71049a6a258b433f
pmgspamreport: purge before sending reports

By cleaning the quarantine (database and files in spool directory), before
trying to send out mail we can prevent the file-system and database from
filling up because of an unrelated problem in sending out mails.

Originally discovered while analyzing why the quarantine spooldir on a
non-master node fills up, while being limted in size on the master-node:
the call to send out the reports errored out, because the node was not master.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
debian/pmgspamreport.service