Use zmamavisdctl to stop amavis
Then run:
/opt/zimbra/amavisd/sbin/amavisd -c /opt/zimbra/conf/amavisd.conf debug
Send an email through to one of your zimbra accounts. Scroll a way up and it will show all the tests being run and the score being tallied up. There are a quite of errors because amavis looks for a number of tests that aren't installed they are as follows:
Code:
rules: failed to run HABEAS_USER RBL test, skipping:
(Can't locate object method "check_rbl_swe" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2647, line 86.
)
rules: failed to run HABEAS_INFRINGER RBL test, skipping:
(Can't locate object method "check_rbl_swe" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2647, line 86.
)
rules: failed to run HEAD_LONG test, skipping:
(Can't locate object method "check_for_long_header" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2581, line 86.
)
rules: failed to run __HABEAS_SWE test, skipping:
(Can't locate object method "message_is_habeas_swe" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2581, line 86.
)
rules: failed to run UNWANTED_LANGUAGE_BODY test, skipping:
(Can't locate object method "check_language" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2581.
)
rules: failed to run RAZOR2_CF_RANGE_51_100 test, skipping:
(Can't locate object method "check_razor2_range" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2581.
)
rules: failed to run BODY_8BITS test, skipping:
(Can't locate object method "check_for_body_8bits" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2581.
)
rules: failed to run RAZOR2_CHECK test, skipping:
(Can't locate object method "check_razor2" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2581.
)
rules: failed to run PYZOR_CHECK test, skipping:
(Can't locate object method "check_pyzor" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2581.
)
rules: failed to run DCC_CHECK test, skipping:
(Can't locate object method "check_dcc" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2581.
)
rules: failed to run AWL test, skipping:
(Can't locate object method "check_from_in_auto_whitelist" via package "Mail::SpamAssassin::PerMsgStatus" at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/PerMsgStatus.pm line 2581.
) Edit: Why is AWL not installed in M2 as it was in M1? At least its not in the FC4 release.
Thats normal behavour. Also these errors are normal:
Code:
Dec 3 21:54:19 blazer /opt/zimbra/amavisd/sbin/amavisd[28865]: (28865-01) lookup_ldap_attr(amavisspamkilllevel) (WARN: no such attribute in LDAP entry), "unilogic@changeddomain.com" result=undef
You may be not just sending spammy enough spam emails for it to catch it. I'm catching spam with Bayes pretty well now. It took a little training to get it to start showing the test. I also am using dspam to run checks. An exmaple of one of my headers:
Code:
X-DSPAM-Result: Innocent
X-DSPAM-Processed: Sat Dec 3 21:47:43 2005
X-DSPAM-Confidence: 0.5790
X-DSPAM-Probability: 0.0000
X-DSPAM-Signature: 439258cf282349475511296
X-DSPAM-Factors: 27,
X-Virus-Scanned: amavisd-new at
X-Spam-Status: No, hits=-0.451 tagged_above=-10 required=2 autolearn=no
tests=[BAYES_20=-1.951, DSPAM_HAM=-0.1, NO_DNS_FOR_FROM=1.6]
X-Spam-Level:
The dspam install guide is here:
Configuring and using DSPAM
If you want to use it, you need to train dspam also. Look on the last pages and you'll see my two ways of training Dspam. Also all the decoders not loaded are due to not having certain archivers installed. Just install the appropriate ones like unrar and such and those error will go away. As far as other patches I'm pretty sure I havn't made any. You have enabled antispam, and antivirus in Global Settings of the Web Admin UI? Other then this, I think you should have everything working.
-Ben
Edit: Also the autolearn is the header I beleive correct me if I'm wrong, just tell you if that spam was used to teach SA Bayes, it doesn't mean if its enabled or not. It is by default. It doesn't use every message. It just uses messages that are interesting to it. IE, deffinatly spam or deffinatly ham and nothing like that messages has been databased yet.
-Ben
Edit2: For the version mismatch someone should actually figure out how to fix that properly. My fix only makes SA ignore that the config files are from a different version.
-Ben