« Amavis » : différence entre les versions

De NCad Wiki
Aller à la navigation Aller à la recherche
(Page créée avec « {{ Box Console | objet=sudo apt-get install amavisd-new}} * '''/etc/amavis/conf.d/15-av_scanners''' : ['ClamAV-clamd', \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clam... »)
 
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
== Installation ==
{{ Box Console | objet=sudo apt-get install amavisd-new}}
{{ Box Console | objet=sudo apt-get install amavisd-new}}
== Configuration ==
=== Amavis ===


* '''/etc/amavis/conf.d/15-av_scanners''' :
* '''/etc/amavis/conf.d/15-av_scanners''' :
Ligne 15 : Ligne 21 :
  @bypass_spam_checks_maps = (
  @bypass_spam_checks_maps = (
   \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
   \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
* '''/etc/amavis/conf.d/05-node_id ''' :
$myhostname = "mail.glx";
{{ Box Console | objet=service amavisd restart}}
=== Postfix ===
* '''/etc/postfix/main.cf''' :
content_filter = scan:127.0.0.1:10024
* '''/etc/postfix/master.cf''' :
scan      unix  -      -      n      -      16      smtp
        -o smtp_data_done_timeout=1200
        -o disable_dns_lookups=yes
127.0.0.1:10025 inet n - y - - smtpd
  -o content_filter=
  -o local_recipient_maps=
  -o relay_recipient_maps=
  -o smtpd_restriction_classes=
  -o smtpd_client_restrictions=
  -o smtpd_helo_restrictions=
  -o smtpd_sender_restrictions=
  -o smtpd_recipient_restrictions=permit_mynetworks,reject
  -o mynetworks=127.0.0.0/8
  -o strict_rfc821_envelopes=yes
{{ Box Console | objet=service postfix restart}}

Version du 10 février 2014 à 02:19

Installation

sudo apt-get install amavisd-new

Configuration

Amavis

  • /etc/amavis/conf.d/15-av_scanners :
['ClamAV-clamd',
  \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],
  qr/\bOK$/m, qr/\bFOUND$/m,
  qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
  • /etc/amavis/conf.d/15-content_filter_mode :
@bypass_virus_checks_maps = (
  \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);
@bypass_spam_checks_maps = (
  \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
  • /etc/amavis/conf.d/05-node_id  :
$myhostname = "mail.glx";

service amavisd restart

Postfix

  • /etc/postfix/main.cf :

content_filter = scan:127.0.0.1:10024

  • /etc/postfix/master.cf :
scan      unix  -       -       n       -       16      smtp
        -o smtp_data_done_timeout=1200
        -o disable_dns_lookups=yes
127.0.0.1:10025 inet n - y - - smtpd
 -o content_filter=
 -o local_recipient_maps=
 -o relay_recipient_maps=
 -o smtpd_restriction_classes=
 -o smtpd_client_restrictions=
 -o smtpd_helo_restrictions=
 -o smtpd_sender_restrictions=
 -o smtpd_recipient_restrictions=permit_mynetworks,reject
 -o mynetworks=127.0.0.0/8
 -o strict_rfc821_envelopes=yes

service postfix restart