Regex not working in PMG but work elsewhere

sunlie71

New Member
May 9, 2024
1
0
1
Hi, I write a regex in PMG to negate certain email domain, it looks like this:

(?!.*@negatethis\.com)

I've try this regex on a few regex testing site (https://regex101.com and https://regexr.com) and it works just fine, but on PMG I got error.

Is the PMG regex different from others? Kindly help.
 
Hi,

I think the regex in your case should look as the following:
Code:
^(?!.*@negatethis\.com$).*
 

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!