Spam tagging problem
Hello everyone, my server seems not to be processing email for spam correctly. In my zimbra.log I get this message three times:
Nov 30 21:59:33 blazer amavis: (07063-01) lookup_ldap_attr(amavisspamtag2level) (WARN: no such attribute in LDAP entry), "firstname.lastname@example.org" result=undef
There isn't an other error messages. The message is then clamed to be clean by amavis. The applicable email header that passes through this looks as the following:
X-Virus-Scanned: amavisd-new at
X-Spam-Status: No, hits=0 tagged_above=-10 required=2 autolearn=no
I have Anti-spam and Anti-Virus enabled in global settings. In addition there should be a dspam header in there too which does not show up. The dspam header is defined in salocal.conf. I have M2 installed. It was a fresh install, not an upgrade. Other then this everything seems to working great. If anyone has any ideas that would be great.
Dspam is not installed with zimbra, so it won't be used.
THe missing attribute is nothing to worry about - we don't support per-user spam attributes, so it uses the global values.
Amavis is passing this message, but it's not using any of the tests - this could be for several reasons.
You can do this:
su - zimbra
edit conf/amavisd.conf.in - uncomment sa_debug = 1
then restart amavisd in debug mode (basically, run the start line from the zmamavisdctl script, with "-d" at the end of it) - and you'll get lots of debugging output, which may show you why it's not running any tests.
Also - if you google for spam tests, you may find a string that will always be marked as spam, that you can send through.