Add score based on Office hours

Feb 8, 2022
4
0
6
37
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 !
 

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!