Add score based on Office hours

Feb 8, 2022
6
0
6
38
Hello,

I know that it is rather SpamAssasin oriented configuration, but has a user managed to create a rule assigning a negative score if an email is received outside working hours? Typically, at night.
I am in the French (France) time zone.
Thanks :)
Regards,
Philippe
 
Hey,

sure, you can use a When-Object[1], by default there is on called "Office Hours". Then create a rule[2] which uses the When-Object and matches if "None matches", as an action you can increase the Spam-Level. Alternatively you can create your own When-Object for the hours you want to match, and create a rule using that and "All match", the action would be the same.

[1] https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmg_mailfilter_when
[2] https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#chapter_mailfilter
 
Thanks, but sorry ;) how I can increase the spam level on PMG GUI? I create a new Header attribute like this ? :

Field : CUSTOM_RULE_HOURS
Value : -2

Is this correct?
Im' sorry, I don't really understand how I can manage Spam Level in GUI, just make action on Spam level computed by SpamAssassin in PMG..
But if I can create rule directly in PMG, it's amazing :)
Thanks !