ClamAV : Différence entre versions
De Wiki NCad
m (Cacheln a déplacé la page Amavis (Clamav) vers ClamAV) |
|||
Ligne 3 : | Ligne 3 : | ||
__TOC__ | __TOC__ | ||
− | == | + | == Intégration dans Postfix == |
− | === | + | === Installation === |
− | + | * Installation : | |
− | + | {{ Box Console | objet=clamsmtp clamav-daemon clamav clamav-freshclam clamav-base}} | |
− | + | * Mise à jour des bases : | |
− | + | {{ Box Console | objet=freshclam}} | |
− | + | * Lancement de ClamAV : | |
− | = | + | {{ Box Console | objet=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 | ||
− | {{Box Console | objet= | + | 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 | ||
+ | |||
+ | {{ Box Console | objet=service postfix restart}} | ||
[[Category:Serveur de Messagerie]] | [[Category:Serveur de Messagerie]] |
Version du 9 février 2014 à 18:34
Suite à la nouvelle version de l'article Postfix, cet article doit être mis à jour. |
Intégration dans Postfix
Installation
- Installation :
|
- Mise à jour des bases :
|
- Lancement de ClamAV :
|
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
|