ClamAV : Différence entre versions

De Wiki NCad
Aller à : navigation, rechercher
(Configuration sans anti-spam SpamAssassin)
Ligne 23 : Ligne 23 :
 
* '''/etc/postfix/main.cf''' :
 
* '''/etc/postfix/main.cf''' :
  
content_filter = scan:127.0.0.1:10026
+
content_filter = scan:127.0.0.1:10026
receive_override_options = no_address_mappings
+
receive_override_options = no_address_mappings
  
 
* '''/etc/postfix/master.cf''' :
 
* '''/etc/postfix/master.cf''' :
  
clamav      unix  -      -      n      -      16      smtp
+
clamav      unix  -      -      n      -      16      smtp
 
         -o smtp_send_xforward_command=yes:q
 
         -o smtp_send_xforward_command=yes:q
  
127.0.0.1:10025 inet  n -      n      -      16      smtpd
+
127.0.0.1:10025 inet  n -      n      -      16      smtpd
 
         -o content_filter=
 
         -o content_filter=
 
         -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
 
         -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks

Version du 9 février 2014 à 18:34

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