[Postfixbuch-users] Virenscanner in Postfix einbindenohne Amavis

R. Wilhelm postfix at online-webservice24.de
Fr Sep 28 14:17:26 CEST 2007

danke für die infos ...

mein problem ist aber immer noch

log eintrag amavis.log: ClamAV-clamd: Can't connect to UNIX socket
/var/run/amavis/clamd.ctl: Datei oder Verzeichnis nicht gefunden, retrying


use strict;

## AV Scanners (Debian version)

@av_scanners = (

#   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],
    \&ask_daemon, ["CONTSCAN {}\n", "/var/run/amavis/clamd.ctl"],
    qr/\bOK$/, qr/\bFOUND$/,
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],


1;  # insure a defined return


@av_scanners = (
 ### http://www.clamav.net/
   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/amavis/clamd.ctl"],
   qr/\bOK$/, qr/\bFOUND$/,
   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
# NOTE: remember to add the clamav user to the amavis group, and
# to properly set clamd to init supplementary groups
# When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"],

# If no virus scanners from the @av_scanners list produce 'clean' nor
# 'infected' status (i.e. they all fail to run or the list is empty),
# then _all_ scanners from the @av_scanners_backup list are tried
# (again, subject to $first_infected_stops_scan). When there are both
# daemonized and equivalent or similar command-line scanners available,
# it is customary to place slower command-line scanners in the
# @av_scanners_backup list. The default choice is somewhat arbitrary,
# move entries from one list to another as desired, keeping main scanners
# in the primary list to avoid warnings.

@av_scanners_backup = (

  ### http://www.clamav.net/   - backs up clamd or Mail::ClamAV
  ['ClamAV-clamscan', 'clamscan',
    "--stdout --no-summary -r --tempdir=$TEMPBASE {}",
    [0], qr/:.*\sFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],



#Automatically Generated by clamav-base postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-base
#Please read /usr/share/doc/clamav-base/README.Debian.gz for details
LocalSocket /var/run/amavis/clamd
User amavis
ArchiveMaxRecursion 5
ArchiveMaxFiles 1000
ArchiveMaxFileSize 10M
ArchiveMaxCompressionRatio 250
ReadTimeout 250
MaxThreads 15
MaxConnectionQueueLength 15
LogFile /var/log/clamav/clamav.log
LogFileMaxSize 500
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/lib/clamav
SelfCheck 3600

Rachte für /var/run/amavis/clamd = amavis:amvis
/var/run/clamav/clamd.pid = amavis:amvis
/var/lib/clamav = amavis:amvis

villeicht habt ihr noch nen gedanken ...


Mehr Informationen über die Mailingliste Postfixbuch-users