
Configuration
Avira GmbH Avira AntiVir MailGate 65
For 64-bit machines you should make sure that the ODBC connector is a 32-bit
shared object. For details about how to set up database support in Avira AntiVir
MailGate on a 64-bit machine, see the file README.db-support-SLES10-SP2-64bit.
This file contains an example setup for ODBC on SuSE Linux Enterprise 10 SP2.
1. Set up the database
If you haven't already set up a user with access rights to the database, you should
set one up now.
Please consult your database's manual for information on how to add a user to your
database and grant the user access.
See the file /usr/lib/AntiVir/mailgate/create-db.sql for details on the database
layout. The database layout is the script to create a MySQL database.
You can use this script to create the database (example for MySQL, with the server
running on the specified host):
# mysql -u <db user> -p -h <your sql server host name>
< create-db.sql
Enter password.
In order to have the latest layout for the Avira AntiVir MailGate database you can
upgrade the database by using the following script:
/usr/lib/AntiVir/mailgate/upgrade-db.sql
Columns added by the use of this script will not be available until MailGate has
been restarted.
2. Install iODBC
You should choose a thread safe library. Please consult the distribution manual to check
if your ODBC library was built with thread support.
# apt-get install libiodbc2
3. Install the corresponding database driver for your database
You should choose a thread safe driver. Please consult the distribution manual to check if
your ODBC driver is thread safe.
Example for MySQL ODBC driver:
# apt-get install libmyodbc
4. Set up odbc.ini (see 5. for an example odbc.ini)
There are different ways to perform the setup:
• Create and/or edit /etc/odbc.ini
or
• Copy /etc/avira/avmailgate-odbc.ini to /etc/odbc.ini and edit it
or
• Edit /etc/avira/avmailgate-odbc.ini and set the configuration option
"DBodbcIni" in /etc/avira/avmailgate.conf to "/etc/avira/avmailgate-odbc.ini"
Kommentare zu diesen Handbüchern