background image

19

5.5. Alternative methods of content filtering

5.5.1. Scanning email messages using AMaViS

AMaViS (A Mail Virus Scanner) is a tool that interfaces your MTA with several antivirus scanners. 

It  supports  various  MTAs  and  comes  in  three  branches: 

amavis,  amavisd 

and

  amavisd-new

AMaViS cooperates with ESET Mail Security by using 

esets_cli

. Before explaining the AMaViS 

configurations, the impact of the ESET Mail Security functionality method is described.

AMaViS does not allow modification of scanned email messages and denies 

ESETS

 access to 

clean or delete infected email attachments. As a result, the 

ESETS

 footnote with log and status 

dependent  header  fields  will  not  be  written  into  the  email  message.  Also,  AMaViS  does  not 

provide mail sender/recipient information. Thus, user specific configurations are unavailable and 

advanced mail handling features (accept, defer, discard, reject) are limited for 

esets_cli

. Lastly, 

AMaViS only scans files, it cannot use the 

ESETS

 anti-spam engine.

Taking into account these drawbacks, content filtering using AMaViS is recommended only if 

the system administrator does not require the features discussed above.

5.5.1.1. amavis configuration

Configuration  of  amavis  is  performed  during  the  amavis  installation.  After  unpacking  the 

source amavis-0.x.y.tgz, create the file amavis/av/esets_cli with these contents:

   

#

   

# ESET Software ESETS Command Line Interface

   

#

   

if ($esets_cli) {

   

  do_log(2,”Using $esets_cli”);

   

  chop($output = `$esets_cli --subdir $TEMPDIR/parts`);

   

  $errval = retcode($?);

   

  do_log(2,$output);

   

if ($errval == 0) {

   

  $scanner_errors = 0;

   

} elsif ($errval == 1 || $errval == 2 || $errval == 3) {

   

  $scanner_errors = 0;

   

  @virusname = ($output =~ /virus=”([^”]+)”/g);

   

  do_virus();

   

} else {

   

do_log(0,”Virus scanner failure: $esets_cli (error code: $errval)”);

         }

   

}

        

The  script  above  accepts  the  email  message  only  when  it  is  accepted  in 

esets_cli

’s  HOP

 

(Handle Object Policy). The email message is blocked in any other instance. If a virus is found, the 

virus name is extracted from the output.

Next,  if  you  are  using  the  Linux 

RSR

  package,  you  must  update  your  PATH  environment 

variable with this command:

        export PATH=”$PATH:/opt/eset/esets/bin”

To successfully install amavis, you may need to install additional software such as arc, unarj, 

Содержание MAIL SECURITY

Страница 1: ...ESET Mail Security Installation Manual and User Guide we protect digital worlds...

Страница 2: ...Inbound email messages scanning 34 A 3 2 Bi directional email messages scanning 35 A 4 Setting ESETS for MTA Exim version 3 35 A 4 1 Inbound email messages scanning 35 A 4 2 Bi directional email mess...

Страница 3: ...Chapter 1 Introduction...

Страница 4: ...rity The system supports selective configuration specific based on the user or client server Six logging levels can be configured to retrieve information about system activity and infiltrations The ES...

Страница 5: ...Chapter 2 Terminology and abbreviations...

Страница 6: ...ns that the RSR package is installed as an add on application in which the primary installation directory is opt eset esets ESETS daemon The main ESETS system control and scanning daemon esets_daemon...

Страница 7: ...bbreviation SBINDIR will be used for future references to this directory The SBINDIR value for the following Operating Systems is listed below Linux usr sbin Linux RSR opt eset esets sbin FreeBSD usr...

Страница 8: ......

Страница 9: ...Chapter 3 Installation...

Страница 10: ...owing command sh esets i386 ext bin For Linux RSR variations of the product use the command sh esets rsr i386 rpm bin to display the product s User License Acceptance Agreement Once you have confirmed...

Страница 11: ...Chapter 4 Architecture Overview...

Страница 12: ...nd effective management of the system They are responsible for relevant system tasks such as license management quarantine management system setup and update CONFIGURATION Proper configuration is the...

Страница 13: ...n 8 man page and relevant agents man pages ETCDIR certs This directory is used to store the certificates used by ESETS Web Interface for authentication Please see the esets_wwwi man page 8 for details...

Страница 14: ......

Страница 15: ...Chapter 5 Integration with Email Messaging System...

Страница 16: ...ilboxes MUA Mail User Agent A program e g Microsoft Outlook Mozilla Mail Eudora etc that provides access to and management of email messages such as reading composing printing etc MAILBOX A file or fi...

Страница 17: ...ith a variety of supported messaging systems 5 1 Bi directional email message scanning in MTA Bi directional email message scanning mode allows the user to scan inbound email messages as well as outbo...

Страница 18: ...ts_setup Select the SMTP install option This will set the esets_smtp module to listen on a predefined port and redirect applicable IP packets Check the newly added firewall rule to see if any changes...

Страница 19: ...m engine Taking into account these drawbacks content filtering using AMaViS is recommended only if the system administrator does not require the features discussed above 5 5 1 1 amavis configuration C...

Страница 20: ...th amavisd new unpack and install the source amavisd new 2 x y tgz in your installation directory Next configure the product with the newly installed amavisd new To do this delete the clause for ESET...

Страница 21: ...Chapter 6 Important ESET Mail Security mechanisms...

Страница 22: ...object If an accept action has been taken as a result of these three action options the object is accepted Otherwise the object is blocked Note that an object is scanned for spam only if the configur...

Страница 23: ...will be stored In the example below we create a reference to the special configuration file esets_smtp_spec cfg which is located in the ESETS configuration directory See below smtp agent_enabled yes...

Страница 24: ...is self explanatory The character is placed in front of the header name of the special section for the sender address and is not placed there for the recipient address For information regarding the s...

Страница 25: ...OTHER PURPOSE In order to activate the Samples Submission System the samples submission system cache must be initialized This can be achieved by enabling the samples_enabled option in the global sect...

Страница 26: ...global section of the ESETS configuration file If an ERA Console password has been established the racl_password parameter must be defined All ERA Client variables are listed in the esets_ daemon 8 ma...

Страница 27: ...Chapter 7 Updating ESET Mail Security...

Страница 28: ...two stages First the precompiled update modules are downloaded from the ESET server If the option av_mirror_enabled is present in the global section of the ESETS configuration file copies or mirror o...

Страница 29: ...Chapter 8 Let us know...

Страница 30: ...owever our goal is to continually improve the quality and effectiveness of our documentation If you feel that any sections in this Guide are unclear or incomplete please let us know by contacting Cust...

Страница 31: ...Appendix A ESETS setup and configuration...

Страница 32: ...mon Then replace the path to the current Postfix MDA with esets_ mda path and add recipient RECIPIENT sender SENDER to the arguments as in the following example mailbox_command BINDIR esets_mda d USER...

Страница 33: ...installation is not compatible with SELinux Either disable SELinux or proceed to the next section The objective of this installation is to insert esets_mda before Sendmail s original MDA NOTE On Free...

Страница 34: ...efer the message to the queue and attempt to pass it through later However this may lead to continuous deferral of the same messages To avoid this problem the timeouts should be set properly You can e...

Страница 35: ...mail queue using these commands mv var qmail bin qmail queue var qmail bin qmail queue esets ln s BINDIR esets_mda var qmail bin qmail queue Restarting Qmail is unnecessary All messages enqueued from...

Страница 36: ...g ESETS for MTA Exim version 4 A 5 1 Inbound email message scanning The goal of this installation is to create an Exim transport from esets_mda for local users In the mda section of the ESETS configur...

Страница 37: ...clause of scheduler conf replace your current delivery command with command sm c channel esets and append this line to sm conf replace your hostname com with your FQDN esets sSPfn BINDIR esets_mda es...

Страница 38: ...sive checking from esets_smtp because those connections are local By using your own firewall rules make sure you do not create an open relay i e allow someone from the outside to connect to esets_smtp...

Страница 39: ...network interface named if0 Then restart the ESETS daemon The next step is to redirect all IMAP requests to esets_imap If IP filtering is being performed by the ipchains administration tool an appropr...

Страница 40: ......

Страница 41: ...Appendix B PHP License...

Страница 42: ...be given a distinguishing version number Once covered code has been published under a particular version of the license you may always continue to use it under the terms of that version You may also...

Отзывы: