How to block emails with display name in proxmox?

sanojs

Member
Sep 13, 2019
44
1
13
36
Hi Team,

I would like to block the emails with display name in proxmox.
"
For eg: Need to block e-mail with display name "me.aeServer" ( me.aeServerScanner <info@everlstettv.live> ).

Please note that me.ae is also the domain of the mail server

Thanks
 
I think you wanted to post this in the Proxmox Mailgateway forum, or? :) (moved it)

For that you can add a new "What" object, e.g., let's call it "Blocked Display Names".
There add a "Match Field", this allows to match arbitrary email header with a "Regular Expression".
For example use me\.aeServer.*?[^"'<>\s]+@ to match any occurrence of "me.aeServer" in front of the "real emails" @, it's just a heuristic though, false positives could in theory be matched, but rather unlikely.

Use that What object to create a new Mail Filter rule in Incoming (or In and Out, depending on your needs) direction, maybe take a lower priority than the whitelist so that that is consulted first..

Add the "Block" action and the "Blocked Display Names" What Object you just created and be sure the rule is enabled.
You should be able to simply test it by sending such a mail through your server.
When initial testing this you may want to use the "Quarantine" or a "Notify Admin" action, to avoid problems if something does not works out and be able to do some "dry-run" tests.
 
Last edited:

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!