Amavis, Spamassasin und Clamav mit Postfix unter Ubuntu Dapper einrichten

Pakete installieren

aptitude install postfix amavisd-new clamav clamav-daemon spamassassin arj zoo unrar lzop lha 

Postfix einrichten

/etc/postfix/master.cf ergänzen

# AMAVIS
smtp-amavis unix -      -       n     -       2  smtp
  -o smtp_data_done_timeout=1200
  -o smtp_send_xforward_command=yes
  -o disable_dns_lookups=yes

# return from amavis
localhost:10025 inet    n       -       n       -       -       smtpd -o content_filter= 

Korektur der Gruppenzugehörigkeit

clamav in Gruppe amavis hinzufügen

vim /etc/group 

amavis:x:108:clamav 

amavis (und Clamav ? )neu starten

/etc/init.d/amavis restart
/etc/init.d/clamav-daemon restart 

Amavis Filter in Postfix hinzufügen

in /etc/postfix/main.cf ergänzen:

# AMAVIS
content_filter = smtp-amavis:[127.0.0.1]:10024 

postfix neu starten

/etc/init.d/postfix restart 

testen und fein-tunen

in /etc/amavis/15-content_filter_mode 4 Zeilen auskommentieren

@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); 

AmavisDapper (last edited 2007-08-07 21:09:22 by blfd-4db511c2)