Setting up AMaViS on Openexchange Server

Support knowledgebase (rsimai_slox_amavis)
Applies to

Openexchange Server: Version 4

Concern

Installation of AMaViS with Antivir (or another supported virus scanner) on Openexchange Server.

Requirements

First, install all available updates, e.g. with YaST Online Update (YOU).

Procedure

  1. Package Installation

    Install the package amavisd-postfix from the Openexchange Server CD with YaST. Dependencies should be resolved automatically. If this is not the case, the following packages must be installed manually:


  2. Configuration of the Virus Scanner

    First, start the amavisd service with the command
    rcamavis start
    
    Log in to the web frontend as the user cyrus and change to the dialog "Mail" --> "Postfix". In this menu, activate the virus scanner and click Save. The Postfix service will read and activate the change.
  3. Automatic Start-up of the Daemon

    Use the command
    insserv -d -f /etc/init.d/amavis
    
    to insert the link needed for starting AMaViS in the runlevels 3 and 5.
    This can also be done in the YaST runlevel editor.

Configuration for Other Scanners

If you have followed these instructions, your server has been configured to use the virus scanner antivir. To replace antivir with a different scanner, edit the file /etc/amavis.conf as follows: Change the entry
# H+BEDV AntiVir
$antivir = "/usr/bin/antivir";
to
# H+BEDV AntiVir
$antivir = "";
and enter the path of the program you want to use. Please refer to the documentation of the respective program.

Testing the Installation

Test the operation of the virus scanner with a test pattern such as eicar.com. Attention: You conduct this test at your own risk. Refer to the URL below for more information.
  1. Open a text file.
  2. Insert the following line in the file:
    X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
    
  3. Save the file as eicar.com.
  4. Send this file as an attachment to any user in the system.
  5. The mail administrator should now receive an e-mail message warning against a possible virus. This is not a real virus, but only a test that can be performed on most virus scanners. Nevertheless, you should never send this test file to external mail servers! More information about this test is available at http://www.eicar.org/anti_virus_test_file.htm.

See also:
o Setting Up the Virus Scanner AVMailGate on Openexchange Server

Keywords: SLOX, OPENEXCHANGE, VIRUS, AMAVIS, ANTIVIR

Categories: SuSE Linux IMAP Server

SDB-rsimai_slox_amavis, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 19. Nov 2002
SuSE Linux AG - Last generated: 30. Jul 2003 by glazzar (sdb_gen 1.40.0)