Instalar e configurar spamassassin, amavisd e clamaV

sudo apt-get install spamassassin amavisd-new

nano /etc/mailname

e colocar nele

antonini.psc.br

editar o arquivo:

nano /etc/default/spamassassin

mudar ENABLE=0 para ENABLE=1 e CRON=0 para CRON=1

/etc/init.d/spamassassin start

Configurar SSL

cd /etc/ssl/citadel
mkdir backup
mv citadel* backup

openssl req -new -nodes -newkey rsa:4096 -days 365 -keyout citadel.key -out citadel.csr

Preencher o certificado:

BR
Parana
Curitiba
Antonini
Website
ns1.antonini.psc.br
antonini@antonini.psc.br

chmod 600 citadel.key

openssl x509 -req -days 1000 -in citadel.csr -signkey citadel.key -out citadel.cer

cp -a citadel* /etc/ssl/webcit/

/etc/init.d/citadel restart

/etc/init.d/webcit start

Instalar ClamaV

apt-get install clamav

freschclam

service clamav-freshclam start

systemctl enable clamav-freshclam

ou

/etc/init.d/clamav-freshclam start

/etc/init.d/clamav-freshclam enable

Caso retorne esta mensagem de erro: ERROR: /var/log/clamav/freshclam.log is locked by another process

sudo service clamav-freshclam stop

sudo service clamav-freshclam start

e digite novamente freschclam

 

[Voltar]