With multiple objects in a rule, is the condition AND or OR ?

lonea

Active Member
Feb 25, 2020
30
3
28
49
Gone through the filter section in manual but it didn't mention.

If I have multiple objects, is the rule only triggered when all of the objects are met or just one ?

For example,

eg 1) if I'm trying to block outgoing spam.

I add all three What Object Spam Level (4), Spam Level (5), Spam Level (10) into the rule.

Will the filter only be triggered if a mail is flagged by all three object ?

eg 2) If I add an additional To object (Blacklisted email) to eg 1)

Will the filter be trigger if the To of the mail is in the Blacklist, or it will only be trigger when To is in the Blacklist AND it need to be classified as Spam Level (4/5/10) ?
 
Last edited:
I always found that mail rules do not work with multiple what/who condition.
I just create single condition per rules and set priority accordingly.
 
I add all three What Object Spam Level (4), Spam Level (5), Spam Level (10) into the rule.
a Spam Level X What Object matches all mail of level X and above so your example is equivalent to just specifiying Spam Level (4)

else if you add 2 What Objects these are combined with OR

The groups of objects (what and to for example) are combined with AND

Actions of a single rule are all carried out

However I would suggest - to quickly test it out - create a rule - add a To object matching your testing e-mail address and send test-mails - this is quite fast to setup and you get a good understanding of how the mail-filter behaves.

I hope this helps!
 

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!