ClamAV : Différence entre versions

De Wiki NCad
Aller à : navigation, rechercher
(Installation)
Ligne 11 : Ligne 11 :
 
=== Installation ===
 
=== Installation ===
  
* Installation :
+
* Il faut installer le programme de base '''clamav''', avec sa '''base de données''' ''(clamav-base)'' et l'outil de '''mise à jour''' de cette dernière ''(clamav-freshclam)''. Dans le cadre de son exploitation avec '''Postfix''' on installera le daemon '''smtp''' de '''ClamAV''' ''(clamsmtp)''.
  
 
{{ Box Console | objet=clamsmtp clamav-daemon clamav clamav-freshclam clamav-base}}
 
{{ Box Console | objet=clamsmtp clamav-daemon clamav clamav-freshclam clamav-base}}
  
* Mise à jour des bases :
+
* On procède à la mise à jour des signatures de '''ClamAV''' :
  
 
{{ Box Console | objet=freshclam}}
 
{{ Box Console | objet=freshclam}}
  
* Lancement de ClamAV :
+
* Lancement de '''ClamAV''' :
  
 
{{ Box Console | objet=service clamav-daemon restart}}
 
{{ Box Console | objet=service clamav-daemon restart}}

Version du 9 février 2014 à 21:24

.:[ Serveur de Messagerie ]:.

Installation >> Postfix avec MySQL

Anti-Spam SpamAssassin | Anti-Virus Clamav


Plateforme de filtrage Amavis >> Amavis avec MySQL


Ajouter un Disclaimer


Configurer Thundirbird | Configurer Roundcube


Commandes messagerie | DNSBL | MX Backup
ClamAV Logo.png
ICON boxWarning.png

Suite à la nouvelle version de l'article Postfix, cet article doit être mis à jour.
Cette article est un brouillon.


Intégration dans Postfix

Installation

  • Il faut installer le programme de base clamav, avec sa base de données (clamav-base) et l'outil de mise à jour de cette dernière (clamav-freshclam). Dans le cadre de son exploitation avec Postfix on installera le daemon smtp de ClamAV (clamsmtp).
ICON Terminal.png

clamsmtp clamav-daemon clamav clamav-freshclam clamav-base

  • On procède à la mise à jour des signatures de ClamAV :
ICON Terminal.png

freshclam

  • Lancement de ClamAV :
ICON Terminal.png

service clamav-daemon restart

Configuration

  • /etc/postfix/main.cf :
content_filter = scan:127.0.0.1:10026
receive_override_options = no_address_mappings
  • /etc/postfix/master.cf :
clamav      unix  -       -       n       -       16      smtp
       -o smtp_send_xforward_command=yes:q
127.0.0.1:10025 inet  n -       n       -       16      smtpd
       -o content_filter=
       -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
       -o smtpd_helo_restrictions=
       -o smtpd_client_restrictions=
       -o smtpd_sender_restrictions=
       -o smtpd_recipient_restrictions=permit_mynetworks,reject
       -o mynetworks_style=host
       -o smtpd_authorized_xforward_hosts=127.0.0.0/8
ICON Terminal.png

service postfix restart

Validation

  • PJ
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
  • Postfix