[SOLVED] pmg-smtp-filter warn error

shafeeks

Renowned Member
Mar 8, 2013
42
0
71
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:
.*\.{.+}