Enabling DSPAM

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
7524osiris
Advanced member
Advanced member
Posts: 59
Joined: Fri Sep 12, 2014 11:19 pm

Enabling DSPAM

Postby 7524osiris » Fri Feb 29, 2008 3:19 am

What does actually DSPAM do? Is it something I should enable to help prevent spam?
If so, how do I enable it in current versions of zimbra? I followed a guide here on the forum that basicly just said to uncomment $dspam line in /opt/zimbra/conf/amavisd.conf.in and enable the zimbra crontabs for dspam. But when I did that and restarted the services and try to run the dspam bin manually I just get:


cat /var/log/zimbra.log | grep dspam

Feb 29 04:13:18 smtp09 amavis[29596]: No $dspam, not using it

Feb 29 10:01:28 smtp09 dspam[5127]: No such feature 'chained'

Feb 29 10:01:28 smtp09 dspam[5127]: Unable to determine the destination user

Feb 29 10:01:28 smtp09 dspam[5127]: DSPAM agent misconfigured: aborting

Feb 29 10:02:41 smtp09 dspam[5504]: No such feature 'chained'

Feb 29 10:02:41 smtp09 dspam[5504]: Unable to determine the destination user

Feb 29 10:02:41 smtp09 dspam[5504]: DSPAM agent misconfigured: aborting

Feb 29 10:05:26 smtp09 amavis[6320]: No $dspam, not using it

Feb 29 10:11:59 smtp09 amavis[12812]: No $dspam, not using it

Feb 29 10:13:56 smtp09 dspam[13320]: No such feature 'chained'

Feb 29 10:13:56 smtp09 dspam[13320]: Unable to determine the destination user

Feb 29 10:13:56 smtp09 dspam[13320]: DSPAM agent misconfigured: aborting


in /opt/zimbra/conf/amavisd.conf.in I now have:


$dspam = '/opt/zimbra/dspam/bin/dspam';


No new entries with DSPAM mentioned is added to log when reciving e-mails.
Any thaughts?


7524osiris
Advanced member
Advanced member
Posts: 59
Joined: Fri Sep 12, 2014 11:19 pm

Enabling DSPAM

Postby 7524osiris » Sat Mar 01, 2008 7:04 am

Nevermind, after the nightly backup and thus restart of all services it now works it seems, even though my zimbra.log is filled with:
[QUOTE]

Mar 1 04:26:26 smtp09 dspam[30049]: No such feature 'chained'

Mar 1 04:26:31 smtp09 dspam[30057]: No such feature 'chained'

Mar 1 04:44:09 smtp09 dspam[1627]: No such feature 'chained'

[/QUOTE]
Any ideas on why and how to fix? Since its enabled by default in the dspam.conf I guess its probably a good idea to get it sorted..
But things seems to work as they should..


X-DSPAM-Result: Spam

X-DSPAM-Confidence: 0.5306

X-DSPAM-Probability: 0.9916

X-DSPAM-Signature: 47c931273409520942013

X-DSPAM-Factors: 15,

X-Virus-Scanned: amavisd-new at

X-Spam-Flag: YES

X-Spam-Score: 8.758

X-Spam-Level: ********

X-Spam-Status: Yes, score=8.758 tagged_above=-10 required=5

tests=[BAYES_50=0.001, DRUGS_STOCK_MIMEOLE=2, DSPAM_SPAM=1.5,

MID_DEGREES=3.7, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001]

7524osiris
Advanced member
Advanced member
Posts: 59
Joined: Fri Sep 12, 2014 11:19 pm

Enabling DSPAM

Postby 7524osiris » Sat Mar 01, 2008 3:04 pm

Hmm, after enabling DSPAM, mails are not forwarded to spam and ham training accounts anymore. Before when I tested I could mark a mail as spam, and then go to the spam training account and see the mail in the inbox, manually run /opt/zimbra/bin/zmtrainsa and it would say learning tokens for x amount of messages etc. Enabled dspam yesterday and now it seems like even if I mark a mail as junk or not junk, nothing more happends really..
mmorse
Ambassador
Ambassador
Posts: 6036
Joined: Fri Sep 12, 2014 10:24 pm

Enabling DSPAM

Postby mmorse » Sat Mar 01, 2008 3:25 pm

I haven't played with DSPAM in a while, but examine your /opt/zimbra/bin/zmtrainsa and see if you need to replace:



for f in ${spamdir}/*; do

test -f ${f} && ${zimbra_home}/dspam/bin/dspam_corpus --addspam zimbra ${f}

done

for f in ${hamdir}/*; do

test -f ${f} && ${zimbra_home}/dspam/bin/dspam_corpus zimbra ${f}

done

With:



${zimbra_home}/dspam/bin/dspam_train zimbra ${spamdir} ${hamdir}


---
Edit, 5.0.11+ we now use an zmlocalconfig attribute:
 if [ x"$amavis_dspam_enabled" = "xtrue" ]; then

timestampit "Starting dspam $MODE training for $USER using folder $FOLDER"

if [ $MODE == "ham" ]; then

MODE="innocent"

fi
${zimbra_home}/dspam/bin/dspam --user zimbra --class=${MODE} --source=corpus --mode=teft

--feature=chained,noise --stdout
${zimbra_home}/dspam/bin/dspam_clean -p0 $USER

timestampit "Finished dspam $MODE training for $USER using folder $FOLDER"

fi
/bin/rm -rf ${tempdir}
}
7524osiris
Advanced member
Advanced member
Posts: 59
Joined: Fri Sep 12, 2014 11:19 pm

Enabling DSPAM

Postby 7524osiris » Sat Mar 01, 2008 3:44 pm

Yeah, it was confed as your first lines so I changed that to the 1 line you pasted. But still, it seems like what I experience now is an issue before this.. As mentioned before when I hit the Junk button for a mail I could right away see that mail in the systems spam train accounts inbox, also could see the movement of the mail from user -> spamtrianing account in zimbra.log, now that doesnt happend anymore.. Tried now also just to mark an e-mail as spam, and then run the /opt/zimbra/bin/zmtrainsa, doesnt check any new mails as I have seen before


20080301224111 Starting spam/ham extraction from system accounts.

[] INFO: Total messages processed: 0

[] INFO: Total messages processed: 0

20080301224115 Finished extracting spam/ham from system accounts.

20080301224115 Starting spamassassin training.

netset: cannot include 127.0.0.0/8 as it has already been included

Learned tokens from 0 message(s) (0 message(s) examined)

netset: cannot include 127.0.0.0/8 as it has already been included

Learned tokens from 0 message(s) (0 message(s) examined)

netset: cannot include 127.0.0.0/8 as it has already been included

20080301224135 Finished spamassassin training.

jholder
Zimbra Employee
Zimbra Employee
Posts: 4686
Joined: Fri Sep 12, 2014 10:00 pm

Enabling DSPAM

Postby jholder » Sat Mar 01, 2008 10:05 pm

Can you file a bug on this? I vaguely recall this issue cropping up in the past, but I thought we fixed it. It might have re-emerged.
wfweaver
Posts: 49
Joined: Fri Sep 12, 2014 10:14 pm

Enabling DSPAM

Postby wfweaver » Tue Mar 04, 2008 10:52 pm

Even though I followed the steps described here, dspam was NOT running! When I tried to run it, I got a permission denied. It seems that dspam was owned by root:root and needed to be owned by zimbra;zimbra before it would actually work!
Also, has ANYONE found the answer to the whole "No Such feature 'chained'" message in the log? What is that about and how do you fix it or get rid of it?
7524osiris
Advanced member
Advanced member
Posts: 59
Joined: Fri Sep 12, 2014 11:19 pm

Enabling DSPAM

Postby 7524osiris » Wed Mar 05, 2008 12:13 am

Does your spam/ham training work after enabling DSPAM?
phoenix
Ambassador
Ambassador
Posts: 26417
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Enabling DSPAM

Postby phoenix » Wed Mar 05, 2008 2:36 am

[quote user="wfweaver"]Even though I followed the steps described here, dspam was NOT running! When I tried to run it, I got a permission denied. It seems that dspam was owned by root:root and needed to be owned by zimbra;zimbra before it would actually work![/QUOTE]If you've ever run zmfixperms on your system it will set the incorrect ownership for the DSPAM directories.
[quote user="wfweaver"]Also, has ANYONE found the answer to the whole "No Such feature 'chained'" message in the log? What is that about and how do you fix it or get rid of it?[/QUOTE]A search of the DSPAM mailing list would have found the answer for you. ;)
You should search our bugzilla for both of the above problems, the answer to those problems is there and you should also vote on either or both of those bug reports.
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
phoenix
Ambassador
Ambassador
Posts: 26417
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Enabling DSPAM

Postby phoenix » Wed Mar 05, 2008 2:42 am

[quote user="7524osiris"]Does your spam/ham training work after enabling DSPAM?[/QUOTE]Yes, it does.
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168

Return to “Administrators”

Who is online

Users browsing this forum: Google [Bot] and 13 guests