Hello
Is there a SpamAssassin (zimbra default) DNSEval plugin ?
Thanks.
SpamAssassin
- JDunphy
- Outstanding Member
- Posts: 899
- Joined: Fri Sep 12, 2014 11:18 pm
- Location: Victoria, BC
- ZCS/ZD Version: 9.0.0_P39 NETWORK Edition
Re: SpamAssassin
Code: Select all
relay3:SpamAssassin/Plugin:44> pwd
/opt/zimbra/common/lib/perl5/Mail/SpamAssassin/Plugin
relay3:SpamAssassin/Plugin:43> ls DNSEval.pm
DNSEval.pm
Re: SpamAssassin
very thanks...
I wrote an RBL control as follows. But it does not work. What can be the problem ?
# vi /opt/zimbra/conf/salocal.cf.in
Thanks.
I wrote an RBL control as follows. But it does not work. What can be the problem ?
# vi /opt/zimbra/conf/salocal.cf.in
Code: Select all
skip_rbl_checks 0
##{ RCVD_IN_RBLM_SPAMIP ifplugin Mail::SpamAssassin::Plugin::DNSEval
ifplugin Mail::SpamAssassin::Plugin::DNSEval
header RCVD_IN_RBLM_SPAMIP eval:check_rbl('rbl-lastexternal','b.barracudacentral.org','cbl.abuseat.org')
describe RCVD_IN_RBLM_SPAMIP OB RBL KONTROL
tflags RCVD_IN_RBLM_SPAMIP net noautolearn
endif
Thanks.
- JDunphy
- Outstanding Member
- Posts: 899
- Joined: Fri Sep 12, 2014 11:18 pm
- Location: Victoria, BC
- ZCS/ZD Version: 9.0.0_P39 NETWORK Edition
Re: SpamAssassin
Make sure your modifying /opt/zimbra/data/spamassassin/localrules/sauser.cf and then do a zmantispamctl restart
Re: SpamAssassin
Hello
A file with that name does not appear.
A file with that name does not appear.
Code: Select all
-rw-r--r-- 1 zimbra zimbra 1289 Dec 19 2015 init.pre
-rw-r--r-- 1 zimbra zimbra 2379 Dec 19 2015 local.cf
drwx------ 2 zimbra zimbra 4096 Jan 11 00:45 sa-update-keys
-rw-r----- 1 zimbra zimbra 300704 Dec 13 19:06 sakam.cf
-r--r----- 1 zimbra zimbra 5820 Jan 11 03:34 salocal.cf
-rw-r--r-- 1 zimbra zimbra 2523 Dec 19 2015 v310.pre
-rw-r--r-- 1 zimbra zimbra 1194 Dec 19 2015 v312.pre
-rw-r--r-- 1 zimbra zimbra 2414 Dec 19 2015 v320.pre
-rw-r--r-- 1 zimbra zimbra 1237 Dec 19 2015 v330.pre
-rw-r--r-- 1 zimbra zimbra 1020 Dec 19 2015 v340.pre
-rw-r--r-- 1 zimbra zimbra 1309 Dec 19 2015 v341.pre
Code: Select all
[zimbra@mail ~]$ zmcontrol -v
Release 8.7.0_GA_1659.RHEL7_64_20160628202714 RHEL7_64 FOSS edition.
- JDunphy
- Outstanding Member
- Posts: 899
- Joined: Fri Sep 12, 2014 11:18 pm
- Location: Victoria, BC
- ZCS/ZD Version: 9.0.0_P39 NETWORK Edition
Re: SpamAssassin
And there you have it.zgokan wrote:Hello
A file with that name does not appear.
You can test your environment like this before putting rules into production.
copy spam or mail into a file... say /tmp/j.mail then do this.
Code: Select all
su - zimbra
spamassassin -D < /tmp/j.mail > /dev/null 2> /tmp/3.output
If you don't need to do network lookups (ie. rbl's), then add the -L option to the command above. If you just want to verify your syntax do:
Code: Select all
su - zimbra
/opt/zimbra/common/bin/spamassassin --lint
0) write rules
1) lint
2) debug
3) zmantispamctl restart only after you have your rules working