Whitelist / User Whitelist not working

Items_GmbH

New Member
Mar 8, 2022
24
2
3
36
Hi there
I have a problem with the mail filter settings.
I created a rule for filtering .doc & .xls files as spam, this is workling flawlessly

But here is the problem:
I receive a mail with .doc file from a sender which is in the user whitelist.

In my settings, the Whitelist rule has a much higher priority than "block .doc files" but the mail is blocked.

What to do?
 
Thanks for your reply
Is it possible to add the "user whitelist" to a "who object" and add it as group to a rule?
 
OK, thank you for this.
Different approach:
Is it possible to make a custom spam score for a mail containing .doc and .xls files?
 
Any ideas here?
A custom rule for increasing the spam score if an attachment is a .doc or .xls file would help me a lot
 
I think i solved this

I installed and activated this Plugin for Spamassassin:
https://github.com/mxguardian/Mail-SpamAssassin-Plugin-AttachmentDetail

After that i edited my custom.cf with:
Code:
attachment BLOCK_XLS_RULE      type  == application/vnd.ms-excel
score BLOCK_XLS_RULE 5

attachment BLOCK_DOC_RULE      type  == application/msword
score BLOCK_DOC_RULE 5

Result:
Mail containing a .doc and/or .xls file as attachment -> +5 Spam Score

And as Stoiko said: "...user-whitelist (it only affects the Spamscoring of a mail)"
 

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!