Installazione DCC (antispam) su CentOS

Scaricare DCC: wget http://www.rhyolite.com/dcc/source/dcc.tar.Z
Scompattare il file: tar -zxvf dcc.tar.Z
Entrare nella directory: cd dcc-1.3.105/
Compilare DCC con i comandi:

./configure
make
make install

Editare il file di configurazione di DCC: vi /var/dcc/dcc_conf
Modificare il valore:

da –> DCCD_ENABLE=off
a   –> DCCD_ENABLE=on

e

da –> DCCIFD_ENABLE=off
a   –> DCCIFD_ENABLE=on

Successivamente configurare SpamAssassin in modo tale che utilizzi DCC.
Editare il file v310_pre di SpamAssassin: vi /etc/mail/spamassassin/v310.pre …
e “scommentare” (eliminare il “#”) dalla riga contenente: loadplugin Mail::SpamAssassin::Plugin::DCC

da:
# DCC – perform DCC message checks.
#
# DCC is disabled here because it is not open source.  See the DCC
# license for more details.
#
#loadplugin Mail::SpamAssassin::Plugin::DCC

a:
# DCC – perform DCC message checks.
#
# DCC is disabled here because it is not open source.  See the DCC
# license for more details.
#
loadplugin Mail::SpamAssassin::Plugin::DCC

Editare il file local.cf di SpamAssassin con il comando: vi /etc/mail/spamassassin/local.cf
ed inserire le seguenti informazioni:

use_dcc 1
# lancia DCC ogni volta che riceve una mail
#dcc_path /usr/local/bin/dccproc
# lancia DCC come demone
dccifd_path /var/dcc/libexec/dccifd
dcc_home /var/dcc
dcc_options -Rw whiteclnt
add_header all DCC _DCCB_: _DCCR_

Per fare partire DCC come demone digitare il comand: /var/dcc/libexec/start-dccifd
(Inserire il comando in /etc/rc.local se si desidera – ed è sicuramente opportuno – fare partire il demone DCC all’avvio del server)

Riferimenti bibliografici:
Uso di DCC client come plugin di SpamAssassin: http://www.garr.it/WG/sec-mail/documenti/DCC-Client-v11.pdf

  1. No trackbacks yet.

Lascia un Commento

Fill in your details below or click an icon to log in:

Gravatar
Logo WordPress.com

You are commenting using your WordPress.com account. Log Out / Modifica )

Foto Twitter

You are commenting using your Twitter account. Log Out / Modifica )

Foto di Facebook

You are commenting using your Facebook account. Log Out / Modifica )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 32 other followers