Regular expressions

vladosubu

New Member
Dec 1, 2022
26
0
1
Good afternoon! After we started specifying domains in the blacklist through regular expressions

Oct 11 11:37:08 mx3.domain.com pmg-smtp-filter[312196]: WARNING: ^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE .cle.co$/ at /usr/share/perl5/PMG/RuleDB/WhoRegex.pm line 103.

For example, we want to block a domain and all its subdomains for example.com

We have specified a regular expression *.example.com

Apparently, that's why there are such errors in the logs. Please tell me, in our case, how to specify correctly?

.*example.com

Or

.*\.example\.com

Or something else? What's the right thing to do?
 
Aah, I see now, thanks.
Another question:
Is it possible somehow to automatically change all domains in the blacklist to regular expressions?
 

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!