On 15 Dec 2018, at 14:00, Paul Schmehl wrote:

--On December 14, 2018 at 4:09:08 PM -0500 Bill Cole <postfixlists-070...@billmail.scconsult.com> wrote:

On 14 Dec 2018, at 15:32, Bill Cole wrote:

On 14 Dec 2018, at 0:46, Paul Schmehl wrote:

I'm seeing this error in the logs:

warn: Unescaped left brace in regex is deprecated here (and will be
fata))

NOTE: that message should specify the source of the error. If it does
not, something in your logging plumbing is mangling error messages.

I tried increasing the debug level and even added -v to the pipe line in master.cf, but the message was the same. This is the entire line.

Dec 15 18:50:32 mail postfix/pipe[33227]: A3CE22F157E: to=<edi...@stovebolt.com>, relay=filter, delay=13, delays=3.7/0/0/9.7, dsn=2.0.0, status=sent (delivered via filter service (Dec 15 18:50:25.479 [33256] warn: Unescaped left brace in regex is deprecated here (and will be fata))

That's broken... Something between Perl and your log is mangling and truncating the error message. Maybe the Postfix 'pipe' plumbing? That's a secondary issue though, as it is easy to run SA by itself to. find the problem.

Try this:

  spamassassin -D all --lint

That should give you a large amount of debug output including the original error message with a file & line reference.

These are the lines in master.cf that points to the pipe for filter:
[...]

This isn't a Postfix problem except for the incomplete log message. The cause of the warning is what matters.


Also note: there is at least one 3rd-party ruleset (http://sa.zmi.at)
which appears to have had a typo ('.' where a ',' should have been) which
also resulted in this error message in a recent version. See
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7669 for a report of this issue (which is not a bug in SA per se, as the rules with the typo
are an independent distribution.)

I checked for this problem in the SA rules, but didn't find any problems. I'm using the default set, and my research says these have all been fixed. So, the problem must be in an affiliated perl module, but I have no idea how to find it.

And yet, in your later message you say:

The same searches run on SA rules found one possible issue:

# grep -ro "\[,.\]" /usr/local/etc/mail/spamassassin/*
/usr/local/etc/mail/spamassassin/70_sare_specific.cf:[,s

That is NOT part of the default ruleset. For a few years there was a 3rd-party collection of rules files known as SARE which was distributed independently of the SpamAssassin project. It was last updated well over a decade ago. No one should be using those rules with a modern SA to catch modern spam. They are neither safe nor effective. Remove any rules file with 'sare' in its name. It would also be wise to make sure that you are running 'sa-update' regularly (weekly at least, ideally daily) to be sure that you have the current default ruleset.

--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Available For Hire: https://linkedin.com/in/billcole

Reply via email to