1 (edited by Albux 2011-04-15 21:11:58)

Topic: [Tutorial] Install and enable DCC Antispam on iRedmail/Ubuntu

As there is no repository for DCC for Ubuntu (no apt-get sad ) here is how I've installed DCC on my ubuntu 9.10 x64. It should work no problem on other versions too (10.04, i386, x64, etc.)

NOTE 1: Firewall: Allow outgoing and incoming UDP packets port 6277.
NOTE 2: The following steps assume you already have a compiler installed as gcc (apt-get install gcc)
NOTE 3: I have set a score of 1.5 on spamassassin to be a bit more conservative while we test the service. Of course you can use the value you prefer...

wget http://www.dcc-servers.net/dcc/source/dcc-dccproc.tar.Z
tar xzvf dcc-dccproc.tar.Z
cd dcc-dccproc-1.3.139
./configure --with-uid=amavis
make
make install
chown -R amavis:amavis /var/dcc
ln -s /var/dcc/libexec/dccifd /usr/local/bin/dccifd

vim /etc/spamassassin/local.cf

*** INSERT THESE LINES : ***
#dcc
use_dcc 1
dcc_path /usr/local/bin/dccproc
score DCC_CHECK 1.500
*** SAVE AND QUIT ***

vim /etc/spamassassin/v310.pre
*** UNCOMMENT THIS LINE ***
loadplugin Mail::SpamAssassin::Plugin::DCC
*** SAVE AND QUIT ***

*** check if spamassassin loads the module: ***
spamassassin --lint -D

*** check if you can reach the DCC servers ***
cdcc info

If everything is ok...
/etc/init.d/amavis restart

enjoy smile smile smile

Hope it helps...

Alberto

***
EDIT 1: I confirm I've tested it also on Ubuntu 10.04, both 32 and 64 bits smile
EDIT 2: DCC seems to be pretty good on detecting spam. No false positives... I've upped the spamassassin scoring to 2.5

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [Tutorial] Install and enable DCC Antispam on iRedmail/Ubuntu

Nice one, thanks!

3

Re: [Tutorial] Install and enable DCC Antispam on iRedmail/Ubuntu

Hi
Thanks for your tutorial.
I have install it, but in the spam score i don't view the score about dcc check.

how can I make sure everything works?

Thanks

Enrico

4

Re: [Tutorial] Install and enable DCC Antispam on iRedmail/Ubuntu

Casa.it wrote:

Hi
Thanks for your tutorial.
I have install it, but in the spam score i don't view the score about dcc check.

how can I make sure everything works?

Thanks

Enrico


Ciao Enrico,

have you checked if SpamAssassin loads the module? When you do a spamassassin --lint -D you should see a message like this:

[2430] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC
[2430] dbg: dcc: local tests only, disabling DCC

Of course it's disabled on the local test, but it shows that the module is active.


After, with the 'cdcc info' you should see if you can connect to the remote DCC servers, the answer should be something like this:

# 04/19/11 09:13:42 CEST  /var/dcc/map
# Re-resolve names after 09:57:45  Check RTTs after 09:20:04
# 1423.43 ms threshold, 1363.93 ms average    12 total, 11 working servers

and the list of the servers...


Last but not least, remember that spamassassin writes the scores only when the rule is matched.
If the spam messages you receive are not listed on the DCC servers, you won't see the scoring in the header.
You will see the DCC score ONLY when their servers detect it as spam.

Let me know

Alberto

5

Re: [Tutorial] Install and enable DCC Antispam on iRedmail/Ubuntu

Thanks for your reply,

I think that i have a problem with inbound udp port.

Bye