About pmg queue on filesystem and on dashboard

stefano antonelli

Active Member
Nov 2, 2020
6
1
43
Dear All,

this is my first post; thank you for the PMG which I've found very easy to install and configure even with its "templates" figure.

I've configured a two node cluster and I'm sending some emails to test it. I've made a default action "quarantine all" to test quarantine delivery etc.

I find a number of emails in /var/spool/pmg/cluster/(1,2)/spam/*/* and this number is not the same number of emails I find on PMG dashboard GUI "Administration -> Spam Quarantine".

Why I see this, am I doing anything wrong and how can I deal with these emails (can I use postsuper command to delete them or else)?

Thank you
regards
Stefano
 
I find a number of emails in /var/spool/pmg/cluster/(1,2)/spam/*/* and this number is not the same number of emails I find on PMG dashboard GUI "Administration -> Spam Quarantine".
did you 'delete/accept' some of the mails before comparing numbers?
(the delete/accept action marks the mails as such in the database - the actual removal happens by the spamreport.timer (or by running `pmgqm purge` after the quarantine lifetime has passed)

Deleting those mails is not recommended - you need to make sure that the state in the database reflects the state on disk

I hope this helps
 
did you 'delete/accept' some of the mails before comparing numbers?
Hi Stoiko

do you mean delete/accept from the GUI? Yes maybe, I can't remember; I was testing it and I noticed this after some days so it can be
(the delete/accept action marks the mails as such in the database - the actual removal happens by the spamreport.timer (or by running `pmgqm purge` after the quarantine lifetime has passed)
ok, thank you I've set a lifetime qr of 30 days and at the moment it's not passed; this "mail marking" isn't anything I can see from a `pgmdb dump` as far as I can see, right?
Deleting those mails is not recommended - you need to make sure that the state in the database reflects the state on disk
ok, I'll do nothing on filesystem with postfix commands apart from pgm commands

I hope this helps

thank you
cheers
Stefano
 
ok, I'll do nothing on filesystem with postfix commands apart from pgm commands
that was not my point - (using postsuper should work ok in most situations) - but the quarantined mails are not queued by postfix but by PMG's stack (pmgqm is the tool for this) - my advice was to not delete them (using `rm`, `find`,...) from the filesystem, without making sure the database is in sync.

ok, thank you I've set a lifetime qr of 30 days and at the moment it's not passed; this "mail marking" isn't anything I can see from a `pgmdb dump` as far as I can see, right?
no not in `pmgdb dump`- `pmgqm status` gives some information - you can also use `pmgsh` to get information from the API - or the GUI
 
that was not my point - (using postsuper should work ok in most situations) - but the quarantined mails are not queued by postfix but by PMG's stack (pmgqm is the tool for this) - my advice was to not delete them (using `rm`, `find`,...) from the filesystem, without making sure the database is in sync.

Hi Stoiko,
thank you for your explanation about the stack (yes I didn't mean to use `rm` etc but I misunderstood about postfix commands)

no not in `pmgdb dump`- `pmgqm status` gives some information - you can also use `pmgsh` to get information from the API - or the GUI

ok; I've used pmgqm and I'm learning to use pmgsh

thank you
cheers
Stefano
 
  • Like
Reactions: Stoiko Ivanov
Hello, can I set the queue life time to 30 days, can you give me some information about?