Avira ANTIVIR UNIX MAILGATE User Manual

MORE THAN SECURITY
www.avira.com
User Manual
Avira AntiVir
UNIX MailGate

Contents

Chapter 1. About this Manual ........................................................................... 3
1.1 Introduction ............................................................................................................................................... 3
1.2 The Structure of the Manual ..................................................................................................................... 4
1.3 Signs and Symbols...................................................................................................................................... 4
1.4 Abbreviations ............................................................................................................................................. 5
Chapter 2. Product Information ....................................................................... 7
2.1 Features ...................................................................................................................................................... 8
2.2 Modules and Operating Mode of AntiVir MailGate................................................................................. 9
2.3 Licensing Concept .................................................................................................................................... 10
2.4 System Requirements .............................................................................................................................. 11
Chapter 3. Milter Mode ................................................................................... 13
3.1 Overview................................................................................................................................................... 13
3.2 AntiVir MailGate (Milter Mode) Features .............................................................................................. 14
3.3 AntiVir MailGate (Milter Mode) Integration in Sendmail..................................................................... 15
Chapter 4. Installation ................................................................................... 17
4.1 Preparing the Installation Files............................................................................................................... 18
4.2 Licensing................................................................................................................................................... 19
4.3 Installation with the Installation Script "install" ................................................................................... 20
4.4 Further Installation Steps, Depending on the MTA............................................................................... 26
4.5 Testing AntiVir MailGate after Installation ........................................................................................... 32
4.6 Installing MailGate Using the Graphical Installation Routine .............................................................. 33
Chapter 5. Operation ...................................................................................... 43
5.1 Starting and Stopping AntiVir MailGate Manually................................................................................ 43
5.2 Updating AntiVir MailGate Manually..................................................................................................... 45
5.3 Parameters for SMTP and Scanner Daemon .......................................................................................... 46
5.4 Queue Manager avq ................................................................................................................................. 47
5.5 Procedures when Detecting Viruses/Unwanted Programs.................................................................... 50
Chapter 6. Configuration ................................................................................ 51
6.1 MailGate Actions when Detecting Viruses/ Unwanted Programs ........................................................ 52
6.2 Configuring avmailgate.conf ................................................................................................................... 53
6.3 Configuring avmailgate.acl ...................................................................................................................... 67
6.4 Virus Warnings: Configuring avmailgate.warn ...................................................................................... 67
6.5 Configuring Report Templates................................................................................................................ 68
6.6 Regular Updates Configuration............................................................................................................... 70
6.7 Configuring Update Reports.................................................................................................................... 73
6.8 Configuring the Spam Filter .................................................................................................................... 74
Chapter 7. Graphical User Interface (GUI) ....................................................... 77
7.1 Overview................................................................................................................................................... 77
7.2 Operating AntiVir MailGate Using the GUI ........................................................................................... 79
7.3 Configuring AntiVir MailGate Using the GUI ........................................................................................ 83
Chapter 8. Service ........................................................................................ 107
8.1 Support ................................................................................................................................................... 107
8.2 Online Shop............................................................................................................................................ 107
8.3 Contact.................................................................................................................................................... 108
Chapter 9. Appendix ..................................................................................... 109
9.1 Glossary .................................................................................................................................................. 109
9.2 Further Information .............................................................................................................................. 110
9.3 Golden Rules for Protection Against Viruses ....................................................................................... 111
2 AntiVir MailGate Avira GmbH

1About this Manual

In this Chapter you can find an overview of the structure and contents of this manual.
After a short introduction, you can read information about the following issues:
The Structure of the Manual – Page 4
Signs and Symbols – Page 4
Abbreviations – Page 5

1.1 Introduction

We have includeded in this manual all the information you need on AntiVir MailGate and it will guide you step by step through installation, configuration and operation of the software.
The appendix contains a Glossary, which explains the basic terms.
About this Manual
For further information and assistance, please refer to our website, to the Hotline of our Technical Support and to our regular Newsletter (see Service – Page 107).
Your Avira Team
About this Manual

1.2 The Structure of the Manual

The manual of your AntiVir software consists of a number of Chapters, providing the following information:
Chapter Contents
1 About this Manual The structure of the manual, signs and symbols
2 Product Information General information on AntiVir MailGate
3 Milter Mode Presenting the Milter function mode in AntiVir
4 Installation Instructions to install AntiVir MailGate on your
5 Operation Manually start, stop and update AntiVir;
software, its modules, features, system requirements and licensing
MailGate
system - using a script or the graphical installation routine.
reactions when viruses and unwanted programs are detected
6 Configuration Directions for optimum settings of AntiVir
7 Graphical User Interface (GUI)
8 Service Avira GmbH Support and Service
9 Appendix Glossary of technical terms and abbreviations

1.3 Signs and Symbols

The manual uses the following signs and symbols:
Symbol Meaning
3
X ... shown before a step you have to perform
MailGate on your system
General information on GUI; operation and configuration of AntiVir MailGate using the GUI
Golden Rules for protection against viruses
... shown before a condition that must be met prior to performing an action
... shown before the result that directly follows the preceding action ... shown before an alert if there is a danger of critical data loss or hardware damage
... shown before a note containing particularly important information, e.g. on the steps to be followed
... shown before a tip that makes it easier to understand and use AntiVir MailGate
4 AntiVir MailGate Avira GmbH
About this Manual
For improved legibility and clear marking, the following types of emphasis are also used in the text:
Emphasis in text Explanation
Ctrl+Alt Key or key combination
/usr/lib/AntiVir/antivir
ls /usr/lib/AntiVir
Choose component Select all
http://www.avira.com URLs
Signs and Symbols – Page 4 Cross-reference within the document

1.4 Abbreviations

The manual uses the following abbreviations:
Abbreviation Meaning
ACL Access Control List
FAQ Frequently Asked Question
FQDN Fully Qualified Domain Name
Path and file name
User entries
Elements of the software interface such as menu items, window titles and buttons in dialog windows
GPL General Public License
GUI Graphical User Interface
MIME Multipurpose Internet Mail Extensions
MTA Mail Transport Agent
PMS Possible Malicious Software
RFC Request For Comment
SMTP Simple Mail Transfer Protocol
VDF Virus Definition File
About this Manual
6 AntiVir MailGate Avira GmbH

2Product Information

Email file transfer is a natural part of modern communication and we can no longer imagine everyday life without it. However, emails frequently also transport viruses or unwanted programs.
Many of these viruses/unwanted programs were conceived especially to attack Windows operating systems. However, it must be considered that there is also a danger for Open Source systems, because UNIX mail servers also transport malware. This offers an easy opportunity for cyber-attackers to penetrate your network. Windows clients can be infected and computers of their messaging partners can also be affected.
Business users increasingly rely on UNIX. However, with free software entering companies and institutes, the alternative operating systems are increasingly targeted by virus programmers. Therefore, virus protection on UNIX will still be needed in the future. This is why we have developed AntiVir MailGate for UNIX.
Product Information
AntiVir MailGate scans all incoming and outgoing emails (including attachments) on your UNIX mail server. The software can operate on a variety of Mail Transport Agents (MTAs), such as Sendmail, Postfix, Exim, Qmail and other programs. It effectively supports common distributions - Red Hat, SuSE, Debian etc..
To start with, two very important tips:
Losing valuable files usually has dramatic consequences. Not even the best antivirus software can fully protect you against data loss.
X
Ensure that you make regular back-ups of your files.
An anti-virus program can only be reliable and effective if kept up to date.
X
Ensure that you keep your AntiVir MailGate up to date using automatic updates. You will learn how to do this in this user guide.
Product Information

2.1 Features

AntiVir MailGate supports a variety of configuration settings to ensure that you have control of the email traffic on your system.
The essential features of AntiVir MailGate are:
realtime scan for viruses and unwanted programs;
scanning of incoming and outgoing emails;
scanning of mailboxes;
isolation of suspicious and infected files;
configurable notification functions for the administrator and for the email sender and recipient;
login to the email server logs;
automatic Internet update for the scan engine and VDFs;
heuristic detection for macro viruses;
recognition of all common archive types (with configurable recursion level for nested archives);
optional: operation and configuration of AntiVir MailGate using the user­friendly interface (GUI).
8 AntiVir MailGate Avira GmbH
Product Information

2.2 Modules and Operating Mode of AntiVir MailGate

AntiVir MailGate is an SMTP scanner, which scans all incoming and outgoing emails, including attachments, on your UNIX mail server for viruses/unwanted programs (see figure below). The program achieves high scanning speed and is easy to configure.
Apart from SMTP, AntiVir MailGate supports the Sendmail Milter interface.
This store and forward agent divides the work between two programs:
SMTP daemon
The SMTP daemon receives the emails and stores them in the spool directory. This program can run as an independent server using port 25 (SMTP) or it can be started by the Internet superdaemons inetd or xinetd.
Scanner and
Forwarder
daemon
The forwarder daemon reads the emails stored in the spool directory, decodes any attachments and then starts scanning for viruses and unwanted programs.
Depending on the result of the scanning process, clean emails are forwarded, while infected emails are blocked in the spool directory (rejected).
According to the configuration made in avmailgate.conf, the program also blocks suspicious emails, such as password-protected archives and fragmented emails, in the same directory.
You can scan the queue on-demand using the Queue Manager avq (for scanning the spool directory, see Queue Manager avq – Page 47).
Product Information
Warnings
The postmaster receives an email containing detailed alerts when viruses, unwanted programs or suspicious files are detected. The alerts can also be sent to the sender and recipient of the email. The program contains alert message templates that you can adjust and use. Apart from these, status reports are registered in syslog.
GUI
The graphical user interface assists you in operating and configuring AntiVir MailGate and graphically displays the monitoring process. However, AntiVir MailGate is fully configurable and functional even without a GUI.
You require Java 1.4.0 or higher in order to use the GUI.

2.3 Licensing Concept

You must have a license to use AntiVir MailGate and accept the license terms (see http://www.avira.com/documents/general/pdf/en/avira_eula_en.pdf).
There are different license models for using the various functions of AntiVir MailGate:
demo version
evaluation version
full version
Convenience Package
Demo Version
Evaluation
Ver sion
Full Version
The license depends on the number of users in the network who are to be protected by AntiVir MailGate.
The license is contained in a license file named hbedv.key . You will receive it by email from Avira GmbH. It contains certain data such as the programs you will use and the period of your license. The same license file may refer to more than one Avira product.
Without a license file, AntiVir MailGate runs as a demo version. An Avira banner is inserted in every email. The automatic update function is not available, so that you will have to download new virus definitions and scan engine versions manually from our website.
30-day test license for AntiVir UNIX MailGate.
Details of the evaluation version can be found on our website: http://www.avira.com.
The range of full version features includes:
z AntiVir MailGate versions available by Internet download
z license file by email, to convert the demo version into a full version
z complete installation instructions (digital)
z PDF manuals available for Internet download
z Four weeks installation support, starting from acquisition date
10 AntiVir MailGate Avira GmbH
z Newsletter service (per email)
z Internet update service for program files and VDF
Product Information
Convenience
Package
In addition to the full version license, the Convenience Package includes:
z every three months: free delivery of a boot CD-ROM with the AntiVir Rescue
System and all updated AntiVir products
z complete installation manual (printed) on first delivery
z license file on a floppy disk with the first delivery
z Newsletter service (printed, regular mail delivery)

2.4 System Requirements

For reasons of efficiency, AntiVir MailGate makes the following minimum requirements of your server (additional memory may be required, depending on the email traffic, number and size of attachments etc):
The versions for UNIX Server, UNIX Workstation, FreeBSD, OpenBSD and Sun Sparc Solaris have similar installation and operating procedures (in general, only some file names may differ, depending on the target operating system).
z Computer i386
z 8 MB free hard disk space for product installation
z 20 MB temporary disk space
z 32 MB free memory space (64 MB recommended)
z Linux with GLIBC or LIBC5; FreeBSD (Intel); OpenBSD (Intel) or Sun Sparc
Solaris
If you want to use the GUI:
z Java 1.4.0 or higher
Avira GmbH AntiVir MailGate 11
Product Information
12 AntiVir MailGate Avira GmbH

3Milter Mode

3.1 Overview

AntiVir Milter has been a stand-alone product up to now. The product has been available only for Sendmail, using the Sendmail Milter interface. Now, the Milter functionality is integrated in MailGate.
In order to start MailGate in Milter mode, the option ListenAddress in
avmailgate.conf requires the following syntax:
inet:port@{hostname|ip-address}
Example: inet:3333@localhost
– OR –
Milter Mode
{unix|local}:/path/to/file
Example: unix:/path/to/file
local:/path/to/file
If necessary, the ForwardTo entry has to be set to the Sendmail binary. If the default value is correct, the option has to remain unchanged:
ForwardTo /usr/lib/sendmail -oem -oi
AntiVir MailGate will no longer use the avmilter.* files for Milter mode. They have to be renamed avmailgate.*
To migrate from an older Milter installation to the current AntiVir MailGate (Milter mode), the file directory of the product kit.
It is recommended to adjust the file avmailgate.conf instead of renaming the file
avmilter.conf
MILTER_MIGRATION must be used. It is located in the doc
Avira GmbH AntiVir MailGate 13
Milter Mode

3.2 AntiVir MailGate (Milter Mode) Features

AntiVir MailGate (Milter mode) is a plug-in for Sendmail, from version 8.11, and communicates through Sendmail’s libmilter interface.
It scans all incoming and outgoing emails. Infected emails are not forwarded. A status notification is shown in syslog. It can notify senders, recipients and administrators of infections.
Functions
Most of these features also apply to MailGate, even when it is not running in Milter mode.
z All Sendmail features remain available.
Example: SMTP authentication, anti-relaying and anti-spam
z Simple installation and integration in Sendmail
z Hourly or daily Internet update for scan engine and VDF
z Scanning of incoming and outgoing emails
z Reliable on-access detection of viruses and malware
z Configurable reaction when viruses or malware are detected
z Isolation of infected or suspicious files in a quarantine directory
z Logfile used as email traffic log
z Immediate activation of new VDF
z Heuristic macrovirus detection
z Configurable templates for alerts
z Archive scanning
(the supported archive formats are displayed with antivir --info)
14 AntiVir MailGate Avira GmbH

3.3 AntiVir MailGate (Milter Mode) Integration in Sendmail

3.3.1 Requirement

Sendmail version 8.11 or newer with libmilter interface is required.
Otherwise:
X
Read the README file in libmilter directory of the Sendmail kit (http://www.sendmail.org).
X
Compile the new version of Sendmail with libmilter interface.
When you want to check, if Sendmail with libmilter interface has been compiled:
sendmail -d0.10 < /dev/null | grep MILTER

3.3.2 Integration

Milter Mode
There are two ways of adding AntiVir MailGate (Milter mode) to Sendmail’s configuration file sendmail.cf:
z Directly modify sendmail.cf
– OR –
z generate sendmail.cf
Directly modify sendmail.cf
X
Insert the following two lines in the configuration file sendmail.cf:
Xavmilter, S=inet:3333@localhost, F=R, T=S:2m;R:2m;E:10m
O InputMailFilters=avmilter
Value meaning
z F: determines what should happen if the filter is not available:
– T: emails are temporarily not accepted (error 4XX)
– R: emails are not accepted (error 5XX)
z T: sets the following timeouts:
– C: timeout to set up the connection to filter
– S: timeout while sending information to filter
– R: timeout while reading an answer from filter
– E: timeout between sending the "End of message" and the response from the
filter
Avira GmbH AntiVir MailGate 15
Milter Mode
Change these values if the log displays a notification like the one below:
Milter (avmilter): timeout before data read
Generate sendmail.cf
X
Insert the corresponding lines in the file sendmail.mc (commands beginning with INPUT must be written in one line):
for sendmail 8.11.x:
define(`_FFR_MILTER´, `true´)
INPUT_MAIL_FILTER(`avmilter´,`S=inet:3333@localhost, F=R, T=S:2m;R:2m;E:10m´)
for sendmail 8.12.x:
INPUT_MAIL_FILTER(`avmilter´,`S=inet:3333@localhost, F=R, T=S:2m;R:2m;E:10m´)
X
Generate the file sendmail.cf Example:
m4 sendmail.mc > /etc/mail/sendmail.cf
16 AntiVir MailGate Avira GmbH

4 Installation

You can find the current version of AntiVir MailGate on the Internet or, if you have the Convenience Package, you can install the files from the AntiVir CD-ROM.
AntiVir is supplied as a packed archive.
You can install the program on your system using the install script.
Installation
Requirements
You have to be logged in as root in order to install AntiVir MailGate. You also need an MTA (Sendmail, Postfix, Exim, Qmail etc.) available on your system. We cannot provide support for problems that do not directly concern AntiVir MailGate.
This section describes an example installation of a standard Sendmail configuration on a SuSE distribution. If you want to integrate the program with another MTA or, for example, with Lotus Domino, you can find further information in the related files (INSTALL.sendmail, INSTALL.exim, INSTALL.qmail,
INSTALL.postfix etc.).
This Chapter contains the following sections:
z Preparing the Installation Files – Page 18
z Licensing – Page 19
z Installation with the Installation Script "install" – Page 20
z Further Installation Steps, Depending on the MTA – Page 26
z Testing AntiVir MailGate after Installation – Page 32
z Installing MailGate Using the Graphical Installation Routine – Page 33
Avira GmbH AntiVir MailGate 17
Installation

4.1 Preparing the Installation Files

Downloading program files from the Internet
X
Download the current files from our website http://www.avira.com to your local computer. The file name is
antivir-mailgate-prof-<version>.tar.gz (without graphical installation routine) or antivir-mailgate-linux-gui_installer.tar.gz (with graphical installation routine).
X
Copy the file to a directory of your choice on the computer on which you want to install MailGate. For example, in /tmp.
Downloading program files from the CD-ROM
X
On the CD-ROM, open
/EN/PRODUCTS/UNIX/MAILGATE/ or /EN/PRODUCTS/UNIX/GUI_INSTALLERS/
X
Copy the file antivir-mailgate-prof-<version>.tar.gz or
antivir-mailgate-linux-gui_installer.tar.gz to a directory of your choice on the
computer on which you want to install MailGate. For example, in /tmp.
Unpacking program files
We will describe the unpacking of the files without the graphical installation routine.
X
Go to the temporary directory:
cd /tmp
X
Unpack the archive for the AntiVir kit:
tar xzvf antivir-mailgate-prof-<version>.tar.gz
The directory antivir-mailgate-prof-<version> will be created in the temporary
directory.
18 AntiVir MailGate Avira GmbH

4.2 Licensing

You need a license for AntiVir MailGate in order to use all its features (see
Licensing Concept – Page 10). The license file hbedv.key is delivered on a floppy disk
or by email. It contains information on the scope and period of the license. Without a license, AntiVir MailGate runs only as a demo version, with restricted functionality.
Acquiring the license
X
Contact us by telephone or by email (info@avira.de) to obtain a valid license file.
You will receive the license file by email.
X
You can also purchase AntiVir through our Online Shop (for more details, please visit http://www.avira.com).
Copying the license file
Installation
X
Copy the license file hbedv.key to your installation directory
/tmp/antivir-mailgate-prof-<version>.
You can first install the product even without the license file but it only will run as a demo version.
You can copy the license file later to the program directory /usr/lib/AntiVir/
Avira GmbH AntiVir MailGate 19
Installation

4.3 Installation with the Installation Script "install"

The install script performs the installation of AntiVir MailGate automatically.
It performs the following tasks:
z checks the integrity of the installation files
z checks for the required authorizations for installation
z checks for an existing version of AntiVir MailGate on the computer
z copies the program files (and overwrites existing, obsolete ones)
z copies configuration files (and keeps existing configuration files)
z optional: installs Internet Updater
z optional: installs the graphical user interface (GUI)
Preparing installation
3 The program files have been downloaded from Internet or CD-ROM and
unpacked.
X
Login as root. Otherwise you do not have the required authorization for installation and the script returns an error message:
You must be root, to execute this script.
X
Go to the directory where you unpacked AntiVir MailGate kit. For example:
cd /tmp/antivir-mailgate-prof-<version>
20 AntiVir MailGate Avira GmbH
Installing AntiVir MailGate
If the required files and directories are found on your system, the following message appears during installation:
... Found existing /etc/avmailgate.conf. Skipping. ...
X
Type:
./install
The installation script starts.
X
You must read the license agreement and agree with it for the installation to continue.
X
Quit the license agreement file with q.
The following question appears:
Installation
Do you agree to the license terms? [n]
X
Type y and confirm with Enter.
The question about the license file appears:
Enter the path to your key file []
X
Type the path to the license file and press Enter
– OR –
if you want to install MailGate initially as a demo version without a license file:
X
click Enter. The next question asks if you want to install the automatic Internet Updater:
An internet update daemon is available with version <version> of AntiVir MailGate. This is a program that will run in the background and automatically check for updates (internet access is required). Instead of installing the internet update daemon, you may also manually check for updates using:
antivir --update
Please read the README file for more information about updating and which method best suits you.
Would you like to install the internet update daemon? [n]
Avira GmbH AntiVir MailGate 21
Installation
You do not need the Internet Updater in order to obtain the updates. You can start a manual update with AntiVir at any time via the Internet. For more details, see Updating
AntiVir MailGate Manually – Page 45.
For initial installation, however, it is recommended to install the Internet Updater. You can deactivate it later in the configuration.
If you want to install the Internet Updater (recommended):
X
Type y and press Enter. The Internet Updater is installed in /usr/lib/AntiVir. Then you are asked if the
Internet Updater should start automatically:
Would you like the internet update daemon to start automatically? [y]
X
Confirm with Enter. You can deactivate this option later.
X
Then you have to provide the path for the manual pages:
Enter the path where the manual pages will be located [/usr/share/man]
X
Confirm the default path with Enter or type another one.
The following question appears:
Enter the hosts and/or domains that are local: [<hostname>]:
X
Change the host name, if necessary, and press Enter.
The next question is:
Enter the hosts and networks that are allowed to relay: [127.0.0.1/8 192.168.0.0/16]:
X
Change the settings if necessary and press Enter.
Then you are asked whether a link should be created in /usr/sbin for the start
script:
Would you like to create a link in /usr/sbin for avmailgate? [y}
22 AntiVir MailGate Avira GmbH
Installation
X
Confirm with Enter or click n.
Then you are asked whether AntiVir MailGate should start automatically:
Would you like AvMailGate to start automatically? [y]
X
Type n and click Enter. You can change this option later
– OR – confirm the default setting with Enter. The next question (only on Linux systems) asks whether you want to install
MailGate with the graphical user interface (GUI):
Would you like to install the GUI (+ SMC support)? [y]
AntiVir MailGate includes a GUI, which enables it to monitor on-access activities, to display log entries and to configure the product. However, MailGate is also fully functional without the GUI.
If you want to install the GUI:
3 you require Sun Java 1.4.0 or newer on your computer.
X
Press Enter when asked about GUI installation.
The GUI program files are copied.
Then you are asked if you want to configure AntiVir Updater:
Would you like to configure the AntiVir updater now? [y]
X
Confirm the default with Enter.
Here you can supply important information for the Updater (proxy settings,
logs etc.)
Then you have to state whether you want to receive notifications of updates:
Would you like email notification about updates? [n]
X
Confirm the default with Enter.
The next step asks whether the Updater information should be written in a
logfile:
Would you like the updater to log to a custom file? [y]
X
Click Enter.
The script asks for the path and file name:
What will be the log file name with absolute path (it must begin with ’/’)? [/ var/log/avupdater.log]
Avira GmbH AntiVir MailGate 23
Installation
X
Confirm the default with Enter or type another path and file name.
The following question appears:
Does this machine use a HTTP proxy server? [n]
X
Confirm the default with Enter.
A configuration overview appears and the question about saving the settings:
Save configuration settings? [y]
X
Click Enter.
The following message appears:
* SUCCESS *
Configuration successfully saved to. /etc/avupdater.conf
Press <ENTER> to continue.
X
Click Enter to continue.
If you want to install the GUI:
3 you require Sun Java 1.4.0 or newer on your computer.
X
click Enter when asked about GUI installation.
The GUI program files are copied.
AntiVir MailGate is installed. You will see the following message:
Installation of the following features complete: AntiVir Engine AntiVir MailGate AntiVir GUI
X
Depending on your MTA, proceed with the installation as described in Further
Installation Steps, Depending on the MTA – Page 26.
X
Finally, you can start AntiVir MailGate:
/usr/lib/AntiVir/avmailgate start
24 AntiVir MailGate Avira GmbH
Reinstalling AntiVir MailGate
You can re-launch the install script at any time. There are several possible situations:
z Install a new version (upgrade). The installation script checks the previous
version and installs the necessary new components. The configuration settings already made are not overwritten, but inherited (see
Configuration – Page 51).
z Activation or deactivation of the automatic start-up of Internet Updater.
The steps are the same in all cases:
X
Open the directory where you unpacked AntiVir MailGate. For example,
cd /tmp/antivir-mailgate-prof-<version>/
X
Type:
./install
Installation
The installation script runs as described above.
X
Make the changes you need during installation procedure.
AntiVir MailGate is installed with the required settings.
Avira GmbH AntiVir MailGate 25
Installation

4.4 Further Installation Steps, Depending on the MTA

After installing AntiVir MailGate as described above, you have to make some manual settings, depending on your MTA.
The following part describes Sendmail, Exim, Qmail and Postfix specifics.
Configuring Sendmail
If you are working with Sendmail, we recommend that you use AntiVir MailGate in Milter mode (see Chapter Milter Mode – Page 13). It guarantees full SMTP functionality in Sendmail (such as SMTP authentication).
Configuring Exim
AntiVir MailGate runs with Exim version 3.0 or newer.
Content Filter
To detect your Exim version:
X
Type:
exim -bV
There are two ways of integrating AntiVir MailGate with Exim:
z Integrate AntiVir MailGate as a content filter in Exim (recommended)
z Proxy mode
AntiVir MailGate configuration:
X
Modify (or add) the following entries in avmailgate.conf:
ListenAddress 127.0.0.1 port 10024
ForwardTo SMTP: 127.0.0.1 port 10025
X
Restart AntiVir MailGate.
Exim configuration:
X
Modify (or add) the following entries in exim.conf:
# Listen on all interfaces on port 25
# and on 127.0.0.1 port 10025
local_interfaces = 0.0.0.0.25 : 127.0.0.1.10025
Add router entry:
X
Search for the entry begin router in exim.conf and add the following entries:
# Router for AntiVir MailGate
antivir_mailgate:
debug_print = "R: AntiVir MailGate for
26 AntiVir MailGate Avira GmbH
Installation
$local_part@$domain"
driver = manualroute
transport = antivir_mailgate_transport
route_list = "* localhost byname"
self = send
# do not call this router in the second instance of Exim
condition = ${if !eq {$interface_port}{10025}{1}{0}}
Add transport entry:
X
Search for begin transports in exim.conf and add the following lines:
# Transport for AntiVir MailGate
antivir_mailgate_transport:
driver = smtp
Proxy Mode
# connect to port 10024
port = 10024
allow_localhost
X
Restart Exim.
AntiVir MailGate configuration:
X
Modify (or add) the following entries in avmailgate.conf:
ListenAddress 0.0.0.0 port 25
ForwardTo SMTP: 127.0.0.1 port 825
X
Restart AntiVir MailGate.
Exim configuration:
X
Modify (or add) the following entries in exim.conf:
daemon_smtp_port = 825
X
Restart Exim.
Avira GmbH AntiVir MailGate 27
Installation
Configuring Qmail
There are two ways to integrate AntiVir MailGate with Qmail:
z Sendmail wrapper
z Backdoor mechanism
Replace SMTP with SMTP-Backdoor only in the run file. All the other parameters are examples only.
Sendmail
wrapper
Backdoor
mechanism
You can use Sendmail wrapper, which was supplied with Qmail, to deliver emails (default). First, go to the Qmail installation folder and activate the wrapper.
X
Activate the Sendmail wrapper in Qmail:
ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
X
Establish the email forwarding mode. Refer to the file /etc/avmailgate.conf for the following line:
# Select how mail should be forwarded.
X
Change these entries as below:
# Send mail by piping it thru sendmail (this is the de­fault)
ForwardTo /usr/sbin/sendmail -oem -oi
# Or if you want the mail to be sent by SMTP
# ForwardTo SMTP: localhost port smtp-backdoor
The second possibility sets email delivery on port 825, on which Qmail should be active. This is done, for example, with inetd.conf (see Qmail installation package).
X
Insert the following line in /etc/services:
smtp-backdoor 825/tcp
X
Establish the email forwarding mode. Look into the file /etc/avmailgate.conf for:
# Select how mail should be forwarded.
X
Change these entries as below:
# ForwardTo /usr/sbin/sendmail -oem -oi
# Or if you want the mail to be sent by SMTP
ForwardTo SMTP: localhost port smtp-backdoor
28 AntiVir MailGate Avira GmbH
Loading...
+ 84 hidden pages