Protecting the AXIGEN Messaging Solution with NOD32

Similar documents
AXIGEN Mail Server. Quick Installation and Configuration Guide. Product version: 1.2 Document version: 1.2.2

AXIGEN Features and Supported Platforms

AXIGEN Mail Server System Administrator's Manual

AXIGEN User Manual. Version beta2. Last update on: 6/29/2005 7:41:22 PM Document version: 2.0

Installation & Configuration Guide Version 1.4

FortiMail Gateway Setup and Configuration Technical Note

Synology MailPlus Server Administrator's Guide. Based on MailPlus Server 1.4.0

WorldSecure/Mail Getting Started Guide

Contents. Limitations. Prerequisites. Configuration

Spam Quarantine. Overview of the Spam Quarantine. Local Versus External Spam Quarantine

LifeSize Control Installation Guide

User Manual Version

How Internet Works

Franzes Francisco Manila IBM Domino Server Crash and Messaging

Spam Quarantine. Overview of the Spam Quarantine. Local Versus External Spam Quarantine. This chapter contains the following sections:

Copyright 2004 ESET. ESET reserves the right to change any of the described application modules without prior notice.

Status Node Reference

Microsoft Exchange Server SMTPDiag

CorreLog. SNMP Trap Monitor Software Users Manual

Network Discovery Policies

E mail Setup Guide for Microsoft Outlook 2002, 2003 & 2007

MOVEit Transfer on Azure Marketplace Quickstart Guide. How to deploy and use MOVEit Transfer from Microsoft Azure Marketplace

Fortinet.Certdumps.FCESP.v by.Zocki.81q. Exam Code: FCESP. Exam Name: Fortinet Certified Security Professional

Kerio Connect. Distributed domain. Kerio Technologies

Using Centralized Security Reporting

Small Office Security 2. Mail Anti-Virus

Exchange 2007 Journaling Guide

Applies to: SECURE WEB Version 1.3 and above

Spam Quarantine. Overview of the Spam Quarantine. This chapter contains the following sections:

GWAVA 5. Migration Guide for Netware GWAVA 4 to Linux GWAVA 5

Internet Security Mail Anti-Virus

.-----~ IPSWITCH. IMail Server. Getting Started Guide

Symantec ST Symantec Messaging Gateway Download Full Version :

IceWarp Unified Communications. AntiVirus Reference. Version 10.4

Setting up an Sender

MULTI FACTOR AUTHENTICATION USING THE NETOP PORTAL. 31 January 2017

Client Configuration Guide

Lab 3.4.3: Services and Protocols

ESMTP Support for Cisco IOS Firewall

SMTP Mail. February 14, 2012 Lotus Mail Routing Team IBM Corporation

Employing VisNetic MailServer Security Features

FRISK Software International F-Prot AVES Managed Security Service

Server Admin Guide. Version

General Administration Guide

The information and content in this document is provided for informational purposes only and is provided "as is" with no warranties of any kind,

Installation & Configuration Guide Version 1.6

Kaspersky PURE 2.0. Mail Anti-Virus: security levels

Standard Smtp Error Code Unable To

SPORTZVAULT USER MANUAL- and Web Statistics

CYAN SECURE WEB Installing on Windows

Password Change and Mail Client Configuration Guide for sltnet.lk/slt.lk Mail Server

HUL SOVANNAROTH PANG DA TIP SAROTH

General Administration Guide

Appliance Installation Guide

Dialogic Brooktrout SR140 Fax Software with Microsoft Exchange Server 2010

GFI MailSecurity 2011 for Exchange/SMTP. Administration & Configuration Manual

My The guide.

Administrator Guide. Find out how to set up and use MyKerio to centralize and unify your Kerio software administration.

QUICK CONFIGURATION GUIDE

Test-king q

Sputnik Installation and Configuration Guide

StoneFax provides the Print To Fax feature to any user who is in the same Windows Domain of the StoneFax server.

M-Switch MIXER Evaluation Guide

M-Files and Gmail support There are three ways to save s from Gmail to M-Files:

Configuring, Managing and Troubleshooting Microsoft Exchange Server 2010

Univention Corporate Server. Cyrus mail server

Archiving Service. Exchange server setup (2013) AT&T Secure Gateway Service

How to Make Use of WebMail and Outlook Functionalities

ZL UA Domino Configuration Guide. Version 7.0

Course Outline. Core Solutions of Microsoft Exchange Server 2013 Course 20341A: 5 days Instructor Led

inode Fax Relay Agent Integrated with Windows Fax Services

Kernel Migrator. for SharePoint. Configuration Guide

========================================================================= Symantec Messaging Gateway (formerly Symantec Brightmail Gateway) version

Parallels Plesk Panel

Comodo Dome Antispam Software Version 6.0

Comprehensive Setup Guide for TLS on ESA

Comodo Dome Antispam Software Version 6.0

Vendor: Cisco. Exam Code: Exam Name: ESFE Cisco Security Field Engineer Specialist. Version: Demo

» Installing and configuring postfix Step 1» Assign static IP and hostname and add a host entry for the host name. Assign hostname in /etc/hostname

This Exchange 2003 Guidelines document is a work in progress, and is current as of May 5, 2004.

Installation Manual. and User Guide

What s new in BitDefender Professional Client

SR L09 - Messaging Gateway, Encryption and Data Loss Prevention: Three Great Things Even Better Together Hands-On Lab

The following are the recommended minimum system requirements for modusgate Server:

6.1. Getting Started Guide

provides several new features and enhancements, and resolves several issues reported by WatchGuard customers.

Link Gateway Initial Configuration Manual

What s new in UserLock 5?

The Application Layer: & SMTP

Installation Guide GWAVA 6

Kerio Connect. Step-by-Step. Kerio Technologies

Enterprise Vault.cloud Journaling Guide

Web Server Admin Guide. Version

Chapter 9: Internet

Version SurfControl RiskFilter - Administrator's Guide

Sophos Mobile as a Service

Module Title : Course 20341A: Core Solutions of Microsoft Exchange Server 2013

SMTP Scanner Creation

Configuring, Managing and Troubleshooting Microsoft Exchange Server 2010

COURSE A ADMINISTERING EXCHANGE SERVER 2016

Transcription:

Protecting the AXIGEN Messaging Solution with NOD32 GECAD Technologies 10A Dimitrie Pompei Blvd., BUCHAREST 2, ROMANIA Tel.: +40 21 303 20 80 +40 21 303 20 81 http://www.axigen.com Last modified: 1/29/2007 Copyright 2006 GECAD Technologies S.R.L.

Protecting AXIGEN with NOD32 FAST.RELIABLE.SECURE.MESSAGING Introduction This article focuses on the integration of the AXIGEN Mail Server with ESET s NOD32 antivirus for the purpose of obtaining virus-safe email traffic. Overview The integration of AXIGEN with NOD32 is performed by replacing the AXIGEN listener on port 25 with NOD32 s SMTP service. NOD32 delivers the email, after processing it, to AXIGEN s SMTP listener on a different port (in our example, tcp/2525). The figure below depicts the flow of the messages through NOD32 and AXIGEN. Email messages pass from SMTP through NOD32 s antivirus engine for detection before being delivered to the AXIGEN Mail Server. Prerequisites Software & Licenses: AXIGEN Mail Server (v 1.2) license - for the number of mailboxes you would like to host; NOD 32 for Linux Mail Server (LMS) v 2.51 license for the number of mailboxes you would like to protect; it should be the same number of mailboxes as defined in AXIGEN. Page 2 of 7

Protecting AXIGEN with NOD32 FAST.RELIABLE.SECURE.MESSAGING Common available platforms: Linux, the following distributions: o Fedora Core 1, 2, 3, 4, 5 o Mandrake 10.2 o Mandriva 2006.2 o SuSE 9.0, 9.3, 10.0, 10.1 o Debian 3.1 o Ubuntu 5.04, Server 5.10, Server 6.06 Installation The AXIGEN mail server must be installed on the machine and configured as per your needs. If you need information on performing a normal AXIGEN installation, please see the product manual. Follow the procedure from the manual for installing the NOD32 antivirus. Remember to copy your license file to the /etc/opt/eset/nod32/license/ directory before actually installing the NOD32 rpm. Please note that if you do not copy the license before installing the rpm, nod32d will not be automatically started by the installer. After the installation the nod32d service is automatically started but the nod32smtp is not. Start it with the following command: # /etc/init.d/nod32smtp start In order to verify that NOD32 was successfully installed, run a telnet on port 2526 (the default SMTP port for NOD32). The connection should be established and then be closed immediately (due to the fact that NOD32 cannot yet connect to the mail server). [root@localhost ~]# telnet localhost 2526 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 421 nod32smtp: server connect error, closing connection Connection closed by foreign host. If the connection is rejected before being established or a different error is reported, please consult the troubleshooting section of the NOD32 manual. Interconnecting AXIGEN and NOD32 Now that both AXIGEN and NOD32 are installed, some configuration steps must be taken to ensure the appropriate email flow. 1. Reconfigure AXIGEN s SMTP listener. Login to the web administration interface (typically located at http://localhost:9000, if you re running the browser from the same machine); Go to the SMTP-In section; Click on the Listeners property tab; Configure one listener with address : 127.0.0.1:2525. Make sure no other listeners exist; Set the enable option to yes ; Set the maxintervalconnections parameter to 0 (Unlimited); Set the peermaxconnections parameter to 200 ; Page 3 of 7

FAST.RELIABLE.SECURE.MESSAGING Protecting AXIGEN with NOD32 Set the peermaxintervalconnections parameter to 0 (Unlimited); Click Update, the Commit ; Make sure you save the configuration by going to the Commands administration section and, when located there, clicking Save Config. Below is a screenshot of the listener configuration, as described above: 2. Reconfigure NOD32 s SMTP service Using a text editor, open the /etc/opt/eset/nod32/nod32.cfg file In the [smtp] section, modify the listen_addr option from localhost to 0.0.0.0. This will configure NOD32 to bind on all network addresses. In the same section, modify the listen_port option from 2526 to 25. This way, NOD32 receives all incoming SMTP traffic. Restart the NOD32 services by running: # /etc/init.d/nod32d restart # /etc/init.d/nod32smtp restart 3. Verify the connection Run a telnet, on the local machine, on port 25. The connection should be established, and the AXIGEN SMTP banner should appear: # telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 localhost.localdomain AXIGEN SMTP ready Page 4 of 7

FAST.RELIABLE.SECURE.MESSAGING Protecting AXIGEN with NOD32 Enter the quit command in order to close the connection. 4. Send a mail through Using an SMTP email client (Outlook, Mozilla) already configured to use the AXIGEN mail server, send an email to a valid recipient; The email must reach the destination mailbox and it must contain the NOD32 header: X-Virus-Scanner. Configuring the NOD32 Behavior This section describes the behavior of your newly configured solution when a virus/spam is detected. At this point the AXIGEN integration with NOD32 is operational. Default settings: By default, NOD32 will attempt to disinfect the attachments and deliver them. If disinfection fails, NOD32 will remove the attachment from the message and add a footnote to it informing the recipient. Furthermore, if an attachment cannot be scanned, it will be removed from the message. Changing the default settings: The behavior of NOD32 can be altered by modifying the configuration file ( /etc/opt/eset/nod32/nod32.cfg ), mainly through the following configuration options: action_on_infected action_on_uncleanable action_on_notscanned quarantine For information on how to configure NOD32 to obtain the desired functionality, please consult the product s manual. Tweaking 1. By default, NOD32 advertises all the ESMTP extensions AXIGEN supports. However, some of them are not supported and must be disabled; otherwise, in some cases, mail delivery may fail. Login to the AXIGEN web administration interface (typically http://localhost:9000); Go to the SMTP-in section, then to the Clients tab; Add a new client with priority 501 ; Set the patternin and patternout options to * in order for this client to replace the default; Set to no the following options: o allowstarttls o allowbinarydata Make sure the other options ( maxrcptcount, maxdatasize, etc) are set correctly according to your desired configuration, since this will be the default client; Save the configuration; Page 5 of 7

Protecting AXIGEN with NOD32 FAST.RELIABLE.SECURE.MESSAGING Note: if you have previously added a client thus replacing the default functionality, modify the settings of that client, without adding a new one. Make sure the allowstarttls and allowbinarydata options are set to no for all the clients defined in your SMTP-in module configuration. 2. Normally, since outside SMTP clients no longer connect directly to AXIGEN, connections cannot be directly managed. However, the NOD32 SMTP connection manager immediately closes the connection if AXIGEN does so. This way, one can manage the maximum number of simultaneous connections and the connection rate directly from AXIGEN. Login to the AXIGEN web administration interface (typically http://localhost:9000); Go to the SMTP-in section, then to the Listeners tab; Edit the listener; Configure, as desired, the following parameters: - maxconnections - maxintervalconnections - timeinterval Do not modify the peer-related options since they no longer make sense in this set-up. 3. Optimize the number of parallel threads By default, NOD32 limits the number of parallel scanning threads. It is recommended to increase this value, depending on your traffic level. A typical setting suitable for most users would be 10 threads. A good rule of thumb would be to have the number of threads parameter set to half the peak number of simultaneous SMTP connections you expect. (e.g. if you expect to have a peak of 20 parallel SMTP connections, set the number of threads to 10). Using a text editor, open the /etc/opt/eset/nod32/nod32.cfg file; In the [global] section, change the num_thrd option from 2 to 10. This will configure NOD32 to use 10 parallel threads for email scanning. Remember to remove the comment mark semicolon (;) from the beginning of the line; Restart the NOD32 services by running: # /etc/init.d/nod32d restart # /etc/init.d/nod32smtp restart Caveats Although the configuration guidelines provided in this article cover the needs of most users, there are some aspects that one must keep in mind when using the Axige/NOD32 combination: 1. NOD32 does not support TLS. AXIGEN must not advertise TLS in the EHLO phase (see the Tweaking section) otherwise, any attempt to establish a TLS session will fail and messages will not be delivered. 2. Emails going into the AXIGEN mail server through channels other than SMTP (e.g. webmail) will not pass through NOD32 thus will not be scanned for antivirus or antispam. Page 6 of 7

FAST.RELIABLE.SECURE.MESSAGING Protecting AXIGEN with NOD32 3. Since all SMTP connections AXIGEN receives are from NOD32, hence originate from the 127.0.0.1 IP, configuring IP-based rules in the Clients section of the SMTP-In module no longer makes sense. 4. As previously said, all the SMTP connections received by AXIGEN originate from the 127.0.0.1 IP. When running the AXIGEN Configuration Wizard, the following code will be added in the SMTP Policy File, in the onehlo event definition: if ( iprange (remotesmtpip, "127.0.0.0/255.0.0.0") ) { set(remotedelivery, "all"); } This means that all connections from 127.0.0.1 will allow open relaying which is a crucial security flaw. To correct it, you should remove the specified code lines. 5. For the same reason as described above, setting the peermaxintervalconnections parameter for the SMTP-in listener to a value different than 0 is of no use. Use the maxintervalconnections parameter instead. 6. NOD32 does not support the BINARYMIME ESMTP extension, therefore if it is not disabled from AXIGEN (see the Tweaking section), emails sent with the BINARYMIME extensions will not be scanned. AXIGEN Copyright 2006 GeCAD Technologies SRL [AXIGEN]. All rights reserved. This material or parts of the information contained herein cannot be reproduced in any form or by any means without the prior written permission of AXIGEN. The product and the documentation that comes with the product are protected by AXIGEN copyright. AXIGEN reserves the right to revise and modify its products and documentation according to its own necessities, as well as this document content. This material describes a status, as it was in the moment this material was written and may not correctly describe the latest developments. For this reason, we recommend you to periodically check our website, /. AXIGEN cannot be held responsible for any special, collateral or accidental damages, related in any way to the use of this document. AXIGEN does not guarantee either implicitly or explicitly the suitability of this material for your specific needs. This material is provided on an "as-is" basis. Page 7 of 7