Hello, When primary antivirus failes, amavis tries to use backup antivirus scanners. They are specified in av_scanners_backup array in amavisd.conf:
@av_scanners_backup = ( ### http://www.clamav.net/ - backs up clamd or Mail::ClamAV ['ClamAV-clamscan', 'clamscan', "--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], qr/:.*\sFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], # always succeeds (uncomment to consider mail clean if all other scanners fail) # ['always-clean', sub {0}], ); So, you should uncomment last line in this section. I see you use AVG anvitirus. Better option for you would be installing freeware clamav as you backup antivirus. Best regards, Aleksandr Tomas Macek wrote: > We use Postfix 2.4 with amavisd-new amavisd-new-2.4.5-1 on RHEL 4 system. We use classical > setup with 2 SMTP servers - Postfix and amavisd-new listening on 10024 and we use AVG > antivirus daemon for checking viruses. > > The problem is, that when antivirus dies for some reason, Postfix's queue is growing, because > amavisd-new says to the log, that antivirus failed. > Is there any way how to setup amavis to avoid using anvivirus, write to the log that > antivirus died and deliver the message without being checked for viruses? > > I found something about it, but all the answers said "use other antivirus, it's buggy" and so > on. > > Does anyone know how to setup amavis to deliver the message even if antivirus is broken? > > Here is my part of /etc/amavisd.conf with antivirus directive: > > ['AVG Anti-Virus', > \&ask_daemon, ["SCAN {}\n", '127.0.0.1:55555'], > qr/^200/, qr/^40[0-9]/, > qr/^40[0-9] .*: (.+)/ ] > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
