Bugzilla – Bug 115295
yast2-mail: activation of virus scanner
Last modified: 2005-09-05 16:07:59 UTC
When activating the anti-virus/anti-spam option in the configuration interface there're no checks if a virus scanner is installed. This is what happens: - amavisd-new get's installed (ok) - with the configuration shipped with amavisd-new you need a working virus scanner, otherwise it fails with error code "451" which will cause a temporary delivery error in Postfix Suggested work around: Either display a message to inform the admin that a virus scanner for Amavis has to be installed (remember that the admin does not know about Amavis at this point!!!). Or: simply install clamav. clamd does _not_ need to be started for Amavis to work.
I tried with amavis installed and clamav not installed and sending went fine. But receiving mail fails with host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=11105-01, virus_scan FAILED: virus_scan: NO VIRUS SCANNERS AVAILABLE (in reply to end of DATA command) After installing clamav mailq says host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=10922-02, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="ERROR: Can't initialize the virus database" at (eval 56) line 435. (in reply to end of DATA command) It appears that clamav-db should be installed too. To complicate matters, clamav is not on openSUSE. So I will display a message if it is not in an inatallation source. Otherwise I'll install clamav and clamav-db. If clamav is installed, I do not check for clamav-db because the user may have set up automatic updates of the database. What do you mean by "the admin does not know about Amavis at this point"? He has chosen to enable it.
yast2-mail-2.12.4 submitted.