Regex for recipients not containing a domain

stevewilwerding

New Member
Apr 21, 2023
15
1
1
I am trying to write an action to add disclaimers to all outgoing email EXCEPT FOR a particular domain. In order to accomplish this (unless someone has another idea), I need to write a Regex that matches recipient domains that don't contain xyz.com, so that I can then add that Regex to an Action that applies the disclaimer.

Can anyone help with that Regex?
 
* why not just use the rule system for this functionality?
** create a who object with the desired destination-mail addressess
** create a rule with this object as To object and Block as action object
 
I don’t want to block any mail. I want to send all mail out, and I want all outgoing mail to get a disclaimer, EXCEPT email sent to domain xyz.com
 
you could add a rule 'accept' for domain xyz.com and the disclaimer rule with lower priority afterwards
 

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!