[SOLVED] pmg-smtp-filter warn error

shafeeks

Well-Known Member
Mar 8, 2013
42
0
46
Hello,

Since a couple of weeks, we are having the below warning message in the syslog file

pmg-smtp-filter[29988]: WARNING: Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^.*\.{ <-- HERE .+}$/ at /usr/share/perl5/PMG/RuleDB/MatchFilename.pm line 91

Any idea?
Thanks

Shafeek
 
Thanks Dietmar for the hint.

But I can't find any wrong regex syntax but I removed all lines with type regular expression in Mail Proxy -> Whitelist and in Mail Filter -> Who Objects -> Blacklist & whitelist.

All services have been restarted.

Still I got the warning message.

Shafeek
 
the error is in a 'What' object because filenames are only configured there
the message says you need to escape the curly brackets like this:
Code:
.*\.\{.+\}
instead of
Code:
.*\.{.+}
 
Great that cleared the problem.
Thanks
 

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!