ClamAV

De Wiki NCad
Révision de 9 février 2014 à 19:25 par Cacheln (discuter | contributions) (Configuration sans anti-spam SpamAssassin)

Aller à : navigation, rechercher
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

  • Installation :
ICON Terminal.png

clamsmtp clamav-daemon clamav clamav-freshclam clamav-base

  • Mise à jour des bases :
ICON Terminal.png

freshclam

  • Lancement de ClamAV :
ICON Terminal.png

service clamav-daemon restart

Configuration sans anti-spam SpamAssassin

  • /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