I've been getting an error on running the spamassassin sa-learn script on emails to learn spam:
(Note the curly bracket followed by a square bracket syntax error): "won.you.{1,10]gbp"
I don't have WHM access on this server, but I've checked the /etc/mail/spamassassin/KAM.cf file, and the syntax there is also incorrect:
I've spoken with the support team for this particular server, but they seem nonplussed by this problem. How do I explain how to update this KAM.cf to a version without this syntax error?
Thanks.
Edit: Yes, I do mean "/etc/mail/spamassassin/KAM.cf" (not /usr/local/cpanel/etc/mail/spamassassin/KAM.cf)
Code:
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(?is)spam title here claim.{1,10}your.gbp|won.you.{ <-- HERE 1,10]gbp)/ at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/Mail/SpamAssassin/Conf/Parser.pm line 1403.
I don't have WHM access on this server, but I've checked the /etc/mail/spamassassin/KAM.cf file, and the syntax there is also incorrect:
Code:
find / -iname kam.cf
/etc/mail/spamassassin/KAM.cf
Code:
grep "1,10]gbp" /etc/mail/spamassassin/KAM.cf
body __KAM_LOTTO5 /spam title here claim.{1,10}your.gbp|won.you.{1,10]gbp)/is
Thanks.
Edit: Yes, I do mean "/etc/mail/spamassassin/KAM.cf" (not /usr/local/cpanel/etc/mail/spamassassin/KAM.cf)
Last edited by a moderator: