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?