<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Start of antivirus.htm --><!-- delayed after doctype-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="template/css2/netwin.css">
	<script type="text/javascript" src="template/js2/netwin.js"></script>
<!--
	<script type="text/javascript" src="template/js2/dbg.js"></script>
-->

<!--
	<link rel="stylesheet" type="text/css" href="template/css2/netwin.css">

	<link rel="stylesheet" type="text/css" href="template/css2/test.css">
	<link rel="stylesheet" type="text/css" href="template/css2/sw.css">
	<link id ="cnr_css" rel="stylesheet" type="text/css" href="template/css2/cnr4.css">
-->

<!--[if lt IE 7]>
	<link rel="stylesheet" href="template/css2/ie6.css" type="text/css" />
<![endif]-->


<!-- Back to antivirus.htm -->

<!-- #BeginEditable "Headerstuff"-->
<title>Virus Protection.</title>
<META NAME="keywords" CONTENT="">
<META NAME="description" CONTENT="">
<meta http-equiv="Content-Type" content="text/html;">


<!-- #EndEditable -->
</head>
<body class="s_body">


<div id="width_limit_div" class="width_limit" style="padding-bottom:0;">

<!-- HEADER CONTENT -->
<div class="header">
  <div class="search_box"><table valign="center" cellSpacing="0" cellPadding="0" border="0">
	<form id="form1" name="form1" method="GET" action="http://www.google.com/custom">

	  <input type=hidden name=domains id=search_domains value="netwinsite.com">
	  <input type=hidden name=sitesearch id=search_sitesearch value="netwinsite.com">
	  <input type=hidden name=cof VALUE="LW:135;L:http://www.netwinsite.com/img2/logo_med_onwhite.png;LH:44;AH:center;S:http://www.netwinsite.com;AWFID:773914251fd85055;">

	  <tr valign="center">
		<td valign="center" style="padding-right:5px;"><span id="search_description" style="font-family:Verdana,Arial,Helvetica; font-size:9pt; ">Search website:</span>
		</td>
		<td valign="center">
			<input size="15" maxLength="80" name="q" style="font-family: Tahoma, Arial; font-size: 8pt">
		</td>
		<td valign="center">
			<input TYPE="image" src="template/img2/search.gif" alt="Search Netwinsite.com!" Name="I1" style="width:17px;height:17px;margin-left:5px;border:0;">
		</td>
	  </tr>
	</form>
  </table></div>

  <div class="page_logo"><table valign="center" border="0" cellpadding="0" cellspacing="10" >
	  <tr>
		<td style="padding-left:20px;">
		  <a href=""><img border="0" src="template/img2/logo_med_onwhite.png" height="44px" vspace="5" id="main_logo"> </a>
		</td>
		<td>
		  <div style="padding-top:14px;">
			<span class="s_header_text">Advanced Server Software<span>
		  </div>
		</td>
	  </tr>
  </table></div>
</div>

<!-- MENU CONTENT -->
<div class="bar_padding" onmousemove="stopEvent(event);return false;">
	<div class="bar" style="text-align:center">
		<table id="page_menu" class="t menu" onmousemove="menu_handler(event);" style="margin:auto"><tr>
	<td valign=top><table class="top_item" mid="menu_home"><tr><td class="btn_l"><td class="btn_c"><a href="http://netwinsite.com/index.htm" class="pad">Home</a><td class="btn_r"></table>
	<td valign=top><table class="top_item" mid="menu_products"><tr><td class="btn_l"><td class="btn_c"><a href="http://netwinsite.com/products.htm" class="pad">Products</a><td class="btn_r"></table>
	<td valign=top><table class="top_item" mid="menu_download"><tr><td class="btn_l"><td class="btn_c"><a href="http://netwinsite.com/download.htm" class="pad">Download</a><td class="btn_r"></table>
	<td valign=top><table class="top_item" mid="menu_buy"><tr><td class="btn_l"><td class="btn_c"><a href="http://netwinsite.com/prices.htm" class="pad">Buy&nbsp;Now</a><td class="btn_r"></table>
	<td valign=top><table class="top_item" mid="menu_support"><tr><td class="btn_l"><td class="btn_c"><a href="http://netwinsite.com/support.htm" onmouseup="x()" class="pad">Support</a><td class="btn_r"></table>
	<td valign=top><table class="top_item" mid="menu_company"><tr><td class="btn_l"><td class="btn_c"><a href="http://netwinsite.com/company.htm" onmouseup="x()" class="pad">Company</a><td class="btn_r"></table>
		</table>
	</div>

	<div id="menu_home" class="xmenu hidden" onmouseup="menu_hide_ex(event,'menu_home')" onmouseout="menu_action_mouseout(event,'menu_home')" onmouseover="menu_action_mouseover(event,'menu_home')" style="width:220px; display:none;">
	</div>

	<div id="menu_products" class="xmenu hidden" onmouseup="menu_hide_ex(event,'menu_products')" onmouseout="menu_action_mouseout(event,'menu_products')" onmouseover="menu_action_mouseover(event,'menu_products')" style="width:220px;">
		<a href="http://netwinsite.com/surgemail/" class="menu_row pad2"><div class="menu_icon_surgemail"></div>
			SurgeMail<span class="menu_extra"></span><br><span class="menu_info">Fully featured email server </span></a>
		<a href="http://netwinsite.com/surgeftp/" onmouseup="x()" class="menu_row pad2 divider"><div class="menu_icon_surgeftp"></div>
			SurgeFTP<span class="menu_extra"></span><br><span class="menu_info">High performance FTP server </span></a>
		<a href="http://netwinsite.com/dbabble/index.html" onmouseup="x()" class="menu_row pad2"><div class="menu_icon_dbabble"></div>
			DBabble <span class="menu_extra"></span><br><span class="menu_info">Instant messenging server </span></a>
		<a href="http://netwinsite.com/surgeweb/" onmouseup="x()" class="menu_row pad2 divider"><div class="menu_icon_surgeweb"></div>
			SurgeWeb<br><span class="menu_info">Modern Ajax web email client</span></a>
		<a href="http://netwinsite.com/products.htm" onmouseup="x()" class="menu_row divider">
			All products...</a>
	</div>

	<div id="menu_download" class="xmenu hidden" onmouseup="menu_hide_ex(event,'menu_download')" onmouseout="menu_action_mouseout(event,'menu_download')" onmouseover="menu_action_mouseover(event,'menu_download')" style="width:220px">
		<a href="/cgi-bin/keycgi.exe?cmd=download&product=surgemail&" onmouseup="x()" class="menu_row"><div class="menu_icon_surgemail"></div>
			Surgemail<span class="menu_extra"></span></a>
		<a href="/cgi-bin/keycgi.exe?cmd=download&product=surgeftp&" onmouseup="x()" class="menu_row"><div class="menu_icon_surgeftp"></div>
			SurgeFTP<span class="menu_extra"></span></a>
		<a href="http://netwinsite.com/dbabble/download.htm" onmouseup="x()" class="menu_row"><div class="menu_icon_dbabble"></div>
			DBabble <span class="menu_extra"></span></a>
		<a href="/cgi-bin/keycgi.exe?cmd=download&product=surgemail&" onmouseup="x()" class="menu_row divider"><div class="menu_icon_surgeweb"></div>
			SurgeWeb</a>
		<a href="http://netwinsite.com/surgemail/help/install.htm" onmouseup="x()" class="menu_row">
			Installing Surgemail</a>
		<a href="http://netwinsite.com/download.htm" onmouseup="x()" class="menu_row">
			Download any product...</a>
	</div>

	<div id="menu_buy" class="xmenu hidden" onmouseup="menu_hide_ex(event,'menu_buy')" onmouseout="menu_action_mouseout(event,'menu_buy')" onmouseover="menu_action_mouseover(event,'menu_buy')" style="width:220px">
		<a href="http://netwinsite.com/prices.htm" onmouseup="x()" class="menu_row divider">
			Pricing</a>
		<a href="http://netwinsite.com/https://netwinsite.com/cgi-bin/keycgi.exe?cmd=buy_new&product=surgemail" onmouseup="x()" class="menu_row"><div class="menu_icon_surgemail"></div>
			Surgemail<span class="menu_extra"></span></a>
		<a href="http://netwinsite.com/https://netwinsite.com/cgi-bin/keycgi.exe?cmd=buy_new&product=surgeftp" onmouseup="x()" class="menu_row"><div class="menu_icon_surgeftp"></div>
			SurgeFTP<span class="menu_extra"></span></a>
		<a href="http://netwinsite.com/https://netwinsite.com/cgi-bin/keycgi.exe?cmd=buy_new&product=dbabble" onmouseup="x()" class="menu_row"><div class="menu_icon_dbabble"></div>
			DBabble <span class="menu_extra"></span></a>
		<a href="http://netwinsite.com/https://netwinsite.com/cgi-bin/keycgi.exe?cmd=buy_new&product=surgemail" onmouseup="x()" class="menu_row divider"><div class="menu_icon_surgeweb"></div>
			SurgeWeb</a>
		<a href="http://netwinsite.com/activate.htm" onmouseup="x()" class="menu_row">
			Activation guide</a>
		<a href="http://netwinsite.com/prices.htm" onmouseup="x()" class="menu_row">
			Purchase any product...</a>
	</div>

	<div id="menu_support" class="xmenu hidden" onmouseup="menu_hide_ex(event,'menu_support')" onmouseout="menu_action_mouseout(event,'menu_support')" onmouseover="menu_action_mouseover(event,'menu_support')" style="width:220px">
		<a href="http://netwinsite.com/documentation.htm" onmouseup="x()" class="menu_row divider">
			Online documentation<span class="menu_extra"></span></a>
		<a href="http://netwinsite.com/surgemail/post.htm" onmouseup="x()" class="menu_row">
			Contact support<span class="menu_extra"></span></a>
		<a href="http://netwinsite.com/support.htm#email_list" onmouseup="x()" class="menu_row">
			Standard email support<span class="menu_extra"></span></a>
		<a href="http://netwinsite.com/http://news.netwinsite.com:8119/webnews?group=netwin.surgemail&cmd=list" onmouseup="x()"  class="menu_row divider">
			Community forum <span class="menu_extra"></span></a>
		<a href="http://netwinsite.com/support.htm" onmouseup="x()" class="menu_row">
			Support overview...</a>
	</div>

	<div id="menu_company" class="xmenu hidden" onmouseup="menu_hide_ex(event,'menu_company')" onmouseout="menu_action_mouseout(event,'menu_company')" onmouseover="menu_action_mouseover(event,'menu_company')" style="width:220px">
		<a href="http://netwinsite.com/company.htm" onmouseup="x()" class="menu_row">
			About us<span class="menu_extra"></span></a>
		<a href="http://netwinsite.com/surgemail/customers.htm" onmouseup="x()" class="menu_row">
			Customers<span class="menu_extra"></span></a>
		<a href="http://netwinsite.com/support.htm#sales_questions" onmouseup="x()" class="menu_row divider">
			Contact us</a>
	</div>
	<div style="background:url(template/img2/white_small.png);height:8px;font-size:1px;"></div>
</div>
<!-- Back to antivirus.htm -->

<div class="content_outer">


<!-- Back to antivirus.htm -->
<div class="L2C2_column_left">
<!-- Back to antivirus.htm -->
<div style="width:160px;">
  <div id="floating_index" class="floating_index nav-menu _document_index" style="width:160px;">
	<h2 class="menu_top">Help Index</h2>
	<ul class="level-0">

		<li class="group_hidden"><a href="#" onclick="index_toggle(event)">Getting Started</a><ul class="level-1">
			<li id="idx_surgemail.htm"><a href="surgemail.htm" target="_top">SurgeMail in a nutshell</a><ul class="level-2"></ul></li>
			<li id="idx_startingoff.htm"><a href="startingoff.htm" target="_top">Before you install</a><ul></ul></li>
			<li id="idx_install.htm"><a href="install.htm" target="_top">Installation &amp; Upgrading</a><ul></ul></li>
			<li id="idx_migration.htm"><a href="migration.htm" target="_top">Migration to SurgeMail</a><ul></ul></li>
			<li id="idx_updates.htm"><a href="updates.htm" target="_top">Change history</a><ul></ul></li>
			<li id="idx_postinstall.htm"><a href="postinstall.htm" target="_top">Post Installation</a><ul></ul></li>
			<li id="idx_faq.htm"><a href="faq.htm" target="_top">FAQ</a><ul></ul></li>
			<li id="idx_support.htm"><a href="support.htm" target="_top">Customer Support</a><ul></ul></li>
		</ul></li>

		<li class="group_hidden"><a href="#" onclick="index_toggle(event)">Anti Spam / Virus</a><ul class="level-1">
			<li id="idx_protected.htm"><a href="protected.htm#virusscanner">Virus Protection</a></li>
			<li id="idx_spam.htm"><a href="spam.htm">Spam Prevention</a></li>
			<li id="idx_protected.htm"><a href="protected.htm#mfilter">Mail Filtering</a> </li>
			<li id="idx_protected.htm"><a href="protected.htm#friends">Friendly Relations System</a></li>
			<li id="idx_rbl.htm"><a href="rbl.htm">Realtime Blackhole Lists</a></li>
		</ul></li>

		<li class="group_hidden"><a href="#" onclick="index_toggle(event)">Server Management </a><ul class="level-1">
			<li id="idx_status.htm"><a href="status.htm">Server Status</a></li>
			<li id="idx_log.htm"><a href="log.htm">Searching the log files</a></li>
			<li id="idx_report.htm"><a href="report.htm">Report generation</a></li>
			<li id="idx_accounts.htm"><a href="accounts.htm">Managing accounts</a></li>
			<li id="idx_tellmail.htm"><a href="tellmail.htm">Using the tellmail utility.</a></li>
		</ul></li>
		
		<li class="group_hidden"><a href="#" onclick="index_toggle(event)">SurgeMail Settings</a><ul class="level-1">
			<li id="idx_domain.htm"><a href="domain.htm">Domain specific settings</a></li>
			<li id="idx_global.htm"><a href="global.htm">Global settings</a></li>
			<li id="idx_webmail.htm"><a href="webmail.htm">WebMail settings</a></li>
		</ul></li>

		<li class="group_hidden"><a href="#" onclick="index_toggle(event)">Configuration Guides</a><ul class="level-1">
			<li id="idx_authent.htm"><a href="authent.htm">Authentication  Modules</a></li>
			<li id="idx_domains.htm"><a href="domains.htm">Virtual  Domains</a></li>
			<li id="idx_clustering.htm"><a href="clustering.htm">Clustering</a></li>
			<li id="idx_mirror.htm"><a href="mirror.htm">Mirror the server</a></li>
			<li id="idx_scalable.htm"><a href="scalable.htm">Performance &amp; Scalability</a></li>
			<li id="idx_lookandfeel.htm"><a href="lookandfeel.htm">Custom look and feel</a></li>
			<li id="idx_internal_email.htm"><a href="internal_email.htm">Custom internal emails </a></li>
			<li id="idx_language.htm"><a href="language.htm">Language translation</a></li>
			<li id="idx_redirection.htm"><a href="redirection.htm">Mail Redirection</a></li>
			<li id="idx_surgewall.htm"><a href="surgewall.htm">SurgeWall</a></li>
			<li id="idx_sms.htm"><a href="sms.htm">SMS</a></li>
			<li id="idx_lists.htm"><a href="lists.htm">Mailing lists and bulletins</a></li>
			<li id="idx_secure.htm"><a href="secure.htm">Securing the server</a></li>
			<li id="idx_incoming.htm"><a href="incoming.htm">Incoming MX servers</a></li>
			<li id="idx_load_balance.htm"><a href="load_balance.htm">Load balancing</a></li>
			<li id="idx_ndb.htm"><a href="ndb.htm">NDB NetWin folder format</a></li>
			<li id="idx_domainkeys.htm"><a href="domainkeys.htm">DomainKeys Support</a></li>
			<li id="idx_ipv6.htm"><a href="ipv6.htm">IPV6 Support</a></li>
			<li id="idx_examples.htm"><a href="examples.htm">Example configurations</a></li>
		</ul></li>
	</ul>
  </div>
  &nbsp;	<!-- required to render div -->
</div>
<script>window.do_scroll_menu=false</script>
<!-- Back to antivirus.htm -->
</div>

<!-- Back to antivirus.htm -->

<div class="L2C2_column_content">
<!-- Back to antivirus.htm -->
<!-- #BeginEditable "Body" -->


  <script language="JavaScript"> search_details('Search SurgeMail Manual:','http://netwinsite.com/surgemail/help'); </script>
  <script language="JavaScript"> display_crumbs_doc(['Home','Documentation','SurgeMail Help Index','Virus Protection'],3); </script>
  <script language="JavaScript"> index_select('idx_antivirus.htm'); </script>
  <h1>Virus Protection</h1>

  <p><font face="Arial, Helvetica, sans-serif">SurgeMail has a variety of mechanisms
    for integrating with <a href="#virusscanner">commercial and free products</a>
    .</font></p>
  <ul>
    <li><font face="Arial, Helvetica, sans-serif"><a href="#avast">Integrated
      and efficient Avast scanner</a> (windows / linux only)</font></li>
    <li><font face="Arial, Helvetica, sans-serif"><a href="#external">Efficient
      external scanners</a> </font></li>
    <li><font face="Arial, Helvetica, sans-serif"><a href="#smtp">External SMTP
      scanner</a> (&quot;virus wall&quot;)</font></li>
    <li><a href="#cmd_line"><font face="Arial, Helvetica, sans-serif">Arbitrary
      command line scanne</font></a><font face="Arial, Helvetica, sans-serif">r
      (deleting message or return code)</font></li>
  </ul>
  <p><font face="Arial, Helvetica, sans-serif">Any of these mechanisms can be
    used but it is recommended that Avast is used as this is closely integrated
    with surgemail, is efficient and is less prone to errors under load.</font></p>

  <h2><a name="avast"></a>Integrated and efficient Avast scanner (windows / linux only)</h2>
  <p><font face="Arial, Helvetica, sans-serif">Avast is an integrated, efficient
    and cost effective virus scanner produced </font><font face="Arial, Helvetica, sans-serif">as
    third party product developed and maintained by <a href="http://www.avast.com">ALWIL
    Software</a>. </font></p>
  <p><font face="Arial, Helvetica, sans-serif"><a href="avast.htm">Click here</a>
  to install Avast (there is a free trial license so you can get it going immediately) </font></p>

  <p><font face="Arial, Helvetica, sans-serif">If you wish to continue running Avast an <a href="http://netwinsite.com/surgemail/pricing.htm#avast">avast
    license<a> must be purchased from Netwin (contact : </a></a></font><a><font face="Arial, Helvetica, sans-serif"><a href="mailto:sales@netwinsite.com">sales@netwinsite.com</a>).</font></a></p><a>
  <p><font face="Arial, Helvetica, sans-serif">Under windows avast is integrated
    using a DLL that is loaded if required and on linux avast is integrated using
    a &quot;g_virus_filter&quot; external vpipe scanner. A variety of performance
    and usage statistics are available on the advanced status page / tellmail
    status output.</font></p>

  <h2><a name="external"></a>Efficient external scanners</h2>
  <p><font face="Arial, Helvetica, sans-serif">SurgeMail has a interfaces that
    allows external scanners to be efficiently run (as a daemon / running executable)
    so that surgemail does not have to run an executable for each message processed.
    These require the virus scanner to support the required specialised syntax,
    most commercial scanners do not support this syntax. </font></p>
  <ul>
    <li><font face="Arial, Helvetica, sans-serif"><b>vpipe virus filter</b> (<a href="global.htm#g_virus_filter">g_virus_filter</a>)</font></li>
  </ul>
  <blockquote><font face="Arial, Helvetica, sans-serif">Originally setup as surgemail's
    primary antivirus interface, but is also very useful to integrate custom spam
    prevention tools. This allows you to run one or more virus checkers or filters
    that takes commands on stdin and response on stdout using simple command line
    syntax:</font>
    <blockquote>
      <p> - Surgemail send filter : &quot;nn scan &lt;message file&gt; &lt;envelope
        file&gt; &quot;<br>
      <p>- Filter responds: &quot;nn CLEAN comment &quot; or &quot;nn REJECT comment&quot;
      </p>
      <p>where: nn would be a numeric command identification, message file a file
        containing the email message including all headers and envelope file a
        three line file containing RCPT, MAIL FROM address and sender's IP address
        as follows:</p>
      <p>-- start of file --<br>
        To: &lt;marijn@destdomain.com&gt;<br>
        From: &lt;marijn@sourcedomain.com&gt;<br>
        IP: 127.0.0.1<br>
        --end of file --</p>
      <p>eg.<br>
      d:\surgemail\rav8\bin\ravdmail.exe<br>
      <p>1 scan c:\temp\test.txt c:\temp\test.env<br>
        1 CLEAN c:\temp\test.txt that was a good message<br>
        2 scan c:\temp\test.txt c:\temp\test.env<br>
        3 REJECT c:\temp\test.txt contained a virus</p>
    </blockquote>

  </blockquote>
  <ul>
    <li><font face="Arial, Helvetica, sans-serif"><b>FProt daemon interface</b></font>
    </li>
  </ul>

  <blockquote> <font face="Arial, Helvetica, sans-serif">Surgemail will interface
    directly to the fprot daemon as <a href="global.htm#g_virus_fprot">described</a>.</font>
  </blockquote>

  <h2><a name="smtp"></a>External SMTP scanner</h2>
  <p><font face="Arial, Helvetica, sans-serif">External smtp scanners (sometimes
    called &quot;virus wall&quot; scanners) can be used by surgemail. If this
    kind of scanner is used it is _strongly recommended_ to let surgemail receive
    the mail from the internet, and then have surgemail pass all mail through
    the external virus scanner before delivering this locally. This will allow
    you to make full use of surgemail's spam prevention measures - primarily measures
    such as SPF, RBL etc that use sender's IP address. If mail is passed through
    the external scanner BEFORE it gets to surgemail, surgemail will see the external
    scanners ip address for all inbound mail.</font></p>
  <p><font face="Arial, Helvetica, sans-serif">This is configured using gateway
    rules as follows:</font></p>
  <blockquote>
    <table width="100%" border="0">
      <tr>
        <td width="64%" >
          <p>g_gateway domain=&quot;*&quot; to=&quot;scanner.ip&quot; user=&quot;&quot;
            pass=&quot;&quot; relay=&quot;false&quot; check=&quot;&quot; sms=&quot;&quot;
            local=&quot;TRUE&quot; <br>
            g_gateway_ifnot &quot;scanner.ip&quot; <br>
            g_gateway_ignorewild_ip &quot;scanner.ip&quot; <br>
            g_relay_allow_ip &quot;scanner.ip&quot;
          </td>
        <td width="36%" nowrap=true>
          <p>=&gt; pass all mail to scanner*<br>
            =&gt; deliver local deliveries if from scanner<br>
            =&gt; deliver remote deliveries if from scanner<br>
            =&gt; allow scanner to send outbound scanned messages
          <p>
        </td>
      </tr>
    </table>
    <p>* <b>notes:</b> local=&quot;TRUE&quot; means &quot;only accepts mail for
      local domain if the account exists&quot; and relay=&quot;FALSE&quot; means
      &quot;only accept outbound mail if using smtp authentication or other relay
      enabling setting&quot; - this is called &quot;restricted relay&quot; in
      the web admin interface)
  </blockquote>
  <p><font face="Arial, Helvetica, sans-serif">Mail getting gatewayed to specific
    domains through the use of the standard gateway rules can also be scanned.
    To configure this make sure you have the external smtp scanner setup as described
    above and the wildcard scanner g_gateway rule is before any gatewayed domains
    to make sure gatewayed mail is sent to the scanner before the normal gateway
    rule is matched.</font></p>
  <blockquote>
<p> g_gateway domain=&quot;*&quot; to=&quot;scanner.ip&quot; user=&quot;&quot;
      pass=&quot;&quot; relay=&quot;false&quot; check=&quot;&quot; sms=&quot;&quot;
      local=&quot;TRUE&quot; <br>
      g_gateway domain=&quot;gateway.domain&quot; to=&quot;dest.server&quot; user=&quot;&quot;
      pass=&quot;&quot; relay=&quot;&quot; check=&quot;TRUE&quot; sms=&quot;&quot;
      local=&quot;&quot; </p>
  </blockquote>

  <h2><a name="cmd_line"></a>Arbitrary command line scanner (deleting message or return code)</h2>
  <p><font face="Arial, Helvetica, sans-serif">SurgeMail has the ability to integrate
    with a variety of other external scanners. These are all less efficient as
    a separate external process gets executed for each message that passes through
    the system</font></p>
  <ul>
    <li><font face="Arial, Helvetica, sans-serif"><b>g_virus_cmd</b></font></li>
  </ul>
  <blockquote>
    <p><font face="Arial, Helvetica, sans-serif">If defined the mail server will extract
      MIME parts in a multi part message and run the virus scanner over the extracted
      file. The command line can include $FILE$ which will be replaced with the
      actual file name of the extracted part. An intelligent cache is used so
      mailing lists, etc, will not require running the virus scanner on every
      message sent.</font></p>
    <p><font face="Arial, Helvetica, sans-serif"> If you set this to &quot;do_not_run&quot;
      then SurgeMail will extract the MIME parts but not actually run any program,
      some virus scanners scan all files on the system so the file is deleted
      magically and SurgeMail will notice and bounce the message.</font></p>
    <p><font face="Arial, Helvetica, sans-serif"> If your scanner supports the
      returning of return codes if a virus is found then you should use g_virus_cmd_codes
      with this setting as this is more reliable than having to detect if a file
      is deleted and also means also will work on viruses in archives which a
      lot of scanners won't delete.</font></p>
    </blockquote>
    <ul>

    <li><font face="Arial, Helvetica, sans-serif"><b>g_virus_cmd_codes</b></font></li>
    </ul>

  <blockquote>
    <p><font face="Arial, Helvetica, sans-serif">This lets SurgeMail listen to
      the return codes from g_virus_cmd and if the return code matches one specified
      in this command then it will assume its a virus and reject the message.
      This is often more reliable than detecting only by using g_virus_cmd as
      some virus scanners do things a bit differently. Also a lot of scanners
      won't delete archives containing viruses so this is the best way if your
      scanner supports it.</font></p>

  </blockquote>
  <h2><a name="virusscanner"></a>How do I configure surgemail using &quot;Scanner X&quot;</h2>
  <p><font face="Arial, Helvetica, sans-serif">Many scanners they can be integrated
    in one of several ways dependent on how the scanner is configured. You should
    double check the virus scanning documentation to check the error codes given
    in the examples is still up to date. </font></p>
  
<table class="plain_table">
  <tr> 
    <th width="19%" height="22"><font face="Arial, Helvetica, sans-serif">Virus 
      Scanner</font> 
    <th width="27%" height="22"><font face="Arial, Helvetica, sans-serif">Platform</font> 
    <th width="54%" height="22"><font face="Arial, Helvetica, sans-serif">Scanner 
      (surgemail.ini entry)</font> 
  </tr>
  <tr> 
    <td rowspan="3"> 
      <p><a href="http://www.asw.cz"><font face="Arial, Helvetica, sans-serif">Avast</font></a></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif"><b>Recommeded!</b></font></p>
    </td>
    <td width="27%"><font face="Arial, Helvetica, sans-serif">Windows</font></td>
    <td width="54%"><font face="Arial, Helvetica, sans-serif">Use web admin tool 
      to enable</font></td>
  </tr>
  <tr> 
    <td width="27%"><font face="Arial, Helvetica, sans-serif">Unix</font></td>
    <td width="54%"><font face="Arial, Helvetica, sans-serif">Available on Linux 
      only </font></td>
  </tr>
  <tr> 
    <td colspan="2"> 
      <p><font face="Arial, Helvetica, sans-serif">Comments: Highly recommended, 
        fully integrated for ease of installation and performance. Note: &quot;Avast! 
        for SurgeMail&quot; based on <a href="http://www.avast.com">ALWIL Software</a> 
        antivirus technology.</font></p>
      <p><font face="Arial, Helvetica, sans-serif">To enable go to the Avast section 
        of the web admin tool (<a href="avast.htm">see details</a>), but first 
        purchase the 'Avast' license option from NetWin and re-activate your registration. 
        </font></p>
    </td>
  </tr>
  <tr> 
    <td rowspan="2" width="19%"><a href="http://www.clamav.net/"><font face="Arial, Helvetica, sans-serif">ClamAV 
      </font></a></td>
    <td width="27%" height="64"><font face="Arial, Helvetica, sans-serif">Unix</font></td>
    <td width="54%"> 
      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Note: 
        we recommend avast for any serious load, it is more efficient and more 
        reliable</b></font></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">The best 
        way to run ClamAV with SurgeMail is to use the scripts provided by one 
        of our users. Instructions and downloads can be found here for the scripts 
        (SCAVS) <a href="http://www.inoc.net/~dev/surgemail/scavs/">http://www.inoc.net/~dev/surgemail/scavs/</a></font></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Or you can 
        use the following lines but on busy systems you could run into problems 
        with too many channels being tied up waiting for ClamAV to finish. </font></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Check the 
        path below using 'whereis clamdscan' it may be /usr/bin/clamdscan</font></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Next in /etc/clamd.conf 
        set clamd to run as user 'mail' and then restart clamd, you will need 
        to set the ownership of the clamd directories to 'mail' too, e.g.</font></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">chown -R 
        mail /var/clamav<br>
        (do this for all the paths in clamd.conf)<br>
        cd /etc/init.d<br>
        ./clamd stop<br>
        ./calmd start</font></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">g_virus_cmd 
        "/usr/local/bin/clamdscan --stdout --no-summary --remove $FILE$" <br>
        </font><font face="Verdana, Arial, Helvetica, sans-serif" size="2">or<br>
        </font><font face="Verdana, Arial, Helvetica, sans-serif" size="2">g_virus_cmd 
        "/usr/bin/clamdscan --stdout --no-summary --remove $FILE$" <br>
        </font></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">g_virus_cmd_codes 
        &quot;1&quot; </font></p>
    </td>
  </tr>
  <tr> 
    <td height="23" colspan="2"> 
      <p><font face="Arial, Helvetica, sans-serif">Comments: Free!, opensource,supports 
        many UNIX platforms Set up the daemon (read clamav instructions) </font></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif">If you have a ramdisk 
        then clamd will go faster if you make it use the ramdisk for it's temporary 
        directory.</font></p>
      <p><strong><font face="Arial, Helvetica, sans-serif">YOU MUST SETUP THE 
        DAEMON FIRST, or it will still run but be very slow and cause problems 
        for SurgeMail. </font></strong></p>
    </td>
  </tr>
  <tr> 
    <td rowspan="3" width="19%"><a href="http://www.commandsoftware.com/"><font face="Arial, Helvetica, sans-serif">Command 
      Antivirus</font></a></td>
    <td width="27%"><font face="Arial, Helvetica, sans-serif">Windows</font></td>
    <td width="54%"><font face="Arial, Helvetica, sans-serif">*</font></td>
  </tr>
  <tr> 
    <td width="27%"><font face="Arial, Helvetica, sans-serif">Unix</font></td>
    <td width="54%"><font face="Arial, Helvetica, sans-serif">g_virus_cmd &quot;/usr/bin/csav 
      -delete $FILE$&quot;</font></td>
  </tr>
  <tr> 
    <td height="23" colspan="2"><font face="Arial, Helvetica, sans-serif">Comments: 
      </font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>We 
      recommend avast for any serious load, it is more efficient and more reliable</b></font></td>
  <tr> 
    <td rowspan="3" width="19%"><a href="http://www.f-prot.com/products/"><font face="Arial, Helvetica, sans-serif">F-Prot</font></a> 
      <br>
      (daemon scanning)</td>
    <td width="27%" height="27"><font face="Arial, Helvetica, sans-serif">Windows</font></td>
    <td width="54%" height="27"><font face="Arial, Helvetica, sans-serif">N/A</font></td>
  </tr>
  <tr> 
    <td width="27%" height="64"><font face="Arial, Helvetica, sans-serif">Unix 
      (Daemon Mode, not available for Windows)</font></td>
    <td width="54%"> 
      <p><font face="Arial, Helvetica, sans-serif">g_virus_fprot &quot;11200&quot;</font></p>
    </td>
  </tr>
  <tr> 
    <td height="23" colspan="2"><font face="Arial, Helvetica, sans-serif">Comments: 
      Full daemon support, very fast, the setting is the port the daemon runs 
      on. You must also install the daemon for this to work, see <a href="global.htm#g_virus_fprot">g_virus_fprot</a></font></td>
  </tr>
  <tr> 
    <td rowspan="2" width="19%"><a href="http://www.f-prot.com/products/"><font face="Arial, Helvetica, sans-serif">F-Prot</font></a> 
      <br>
      (command line scanning) </td>
    <td width="27%" height="27"><font face="Arial, Helvetica, sans-serif">Windows</font></td>
    <td width="54%" height="27"> 
      <p><span class="style1">g_virus_cmd &quot;c:\progra~1\fsi\f-prot\fpcmd.exe 
        $FILE$ /auto /delete /archive /silent&quot;<br>
        g_virus_cmd_codes &quot;3,6,8&quot;</span> <br>
      </p>
    </td>
  </tr>
  <tr> 
    <td height="23" colspan="2"><font face="Arial, Helvetica, sans-serif">Comments: 
      Command line scanning, </font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>We 
      recommend avast for any serious load, it is more efficient and more reliable</b></font></td>
  </tr>
  <tr> 
    <td rowspan="2" width="19%"><a href="http://www.mcafee.com/"><font face="Arial, Helvetica, sans-serif">McAfee 
      </font></a></td>
    <td width="27%" height="64"><font face="Arial, Helvetica, sans-serif">Unix</font></td>
    <td width="54%"> 
      <p><font face="Arial, Helvetica, sans-serif"> g_virus_cmd "/usr/local/uvscan/uvscan&nbsp; 
        --analyze&nbsp; --mailbox --mime --program&nbsp; --secure --unzip --noboot 
        --delete $FILE$" <br>
        g_virus_cmd_codes &quot;12,13&quot; </font></p>
    </td>
  </tr>
  <tr> 
    <td height="23" colspan="2"><font face="Arial, Helvetica, sans-serif">Comments: 
      instructions from a user, </font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>We 
      recommend avast for any serious load, it is more efficient and more reliable</b></font></td>
  </tr>
  <tr> 
    <td rowspan="3" width="19%"><a href="http://www.symantec.com"><font face="Arial, Helvetica, sans-serif">Norton 
      Antivirus</font></a></td>
    <td width="27%" height="61"><font face="Arial, Helvetica, sans-serif">(demand 
      mode) </font></td>
    <td width="54%" height="61"> 
      <p><font face="Arial, Helvetica, sans-serif">g_virus_cmd &quot;c:\program 
        files\navnt\navwnt.exe /noresults $FILE$&quot;<br>
        g_virus_cmd_sleep &quot;3000&quot; <br>
        </font></p>
    </td>
  </tr>
  <tr> 
    <td><font face="Arial, Helvetica, sans-serif"> (always scanning) <br>
      real time scanning <br>
      </font></td>
    <td><font face="Arial, Helvetica, sans-serif">g_virus_cmd &quot;do_not_run&quot;<br>
      g_virus_cmd_sleep &quot;3000&quot; </font></td>
  </tr>
  <tr> 
    <td colspan="2"> 
      <p><font face="Arial, Helvetica, sans-serif">If you have Norton's setup 
        already and it scans files as you access them then use the real time scanning 
        option otherwise use demand mode. </font></p>
      <p><font face="Arial, Helvetica, sans-serif">Norton is best avoided for 
        mail servers!</font></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>We recommend 
        avast for any serious load, it is more efficient and more reliable</b></font></p>
    </td>
  </tr>
  <tr> 
    <td rowspan="3" width="19%"><a href="http://www.sophos.com"><font face="Arial, Helvetica, sans-serif">Sophos</font></a></td>
    <td width="27%"><font face="Arial, Helvetica, sans-serif">Windows</font></td>
    <td width="54%"> 
      <p class="style1" wrap="">g_virus_cmd "c:\programs\Sophos SWEEP for NT\sav32cli 
        -s -nc -remove -archive $FILE$"<br>
        g_virus_cmd_codes &quot;3&quot;</p>
    </td>
  </tr>
  <tr> 
    <td width="27%"><font face="Arial, Helvetica, sans-serif">Unix</font></td>
    <td width="54%"><font face="Arial, Helvetica, sans-serif">g_virus_cmd &quot;/usr/local/bin/sweep 
      -s -nc -remove -archive $FILE$&quot;<br>
      g_virus_cmd_codes &quot;3&quot; </font></td>
  </tr>
  <tr> 
    <td colspan="2"> 
      <p><font face="Arial, Helvetica, sans-serif">Comments: A very well known 
        and respected virus checker that is available for a wide variety of platforms, 
        is well suited for SurgeMail with its on demand scanning utility - Sweep.</font></p>
      <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>We recommend 
        avast for any serious load, it is more efficient and more reliable</b></font></p>
    </td>
  </tr>
  <td rowspan="2" width="19%"> 
    <p><a href="http://www.trendmicro.com"><font face="Arial, Helvetica, sans-serif">TrendMicro</font></a></p>
    <p>&nbsp;</p>
  </td>
  <td width="27%"><font face="Arial, Helvetica, sans-serif">Windows</font></td>
  <td width="54%"><span class="style1"> g_virus_cmd "c:\sysclean\vscantm.bin /nbpm 
    /D /Q /NM /NB $FILE$" <br>
    g_virus_cmd_codes "1" </span></td>
  </tr>
  <tr> 
    <td colspan="2"> 
      <p><font face="Arial, Helvetica, sans-serif">Instuctions:<br>
        Use this link to find out how to setup Trend for command line scanning. 
        </font></p>
      <p class="style1"><a href="http://kb.trendmicro.com/solutions/search/main/search/solutionDetail.asp?solutionID=17058">http://kb.trendmicro.com/solutions/search/main/search/solutionDetail.asp?solutionID=17058</a></p>
    </td>
  </tr>
  <tr> 
    <td rowspan="3" width="19%"><a href="http://www.nod32.com/"><font face="Arial, Helvetica, sans-serif">NOD32 
      </font></a></td>
    <td width="27%"><font face="Arial, Helvetica, sans-serif">Windows</font></td>
    <td width="54%"> 
      <p> g_virus_cmd &quot;c:\Program Files\ESET\ESET NOD32 Antivirus\ecls.exe 
        /no-log-console /clean-mode=delete $FILE$&quot;</p>
    </td>
  </tr>
  <tr> 
    <td width="27%">&nbsp;</td>
    <td width="54%">&nbsp;</td>
  </tr>
  <tr> 
    <td colspan="2"><font face="Arial, Helvetica, sans-serif">Comments: </font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>We 
      recommend avast for any serious load, it is more efficient and more reliable</b></font></td>
  </tr>
  <tr> 
    <td rowspan="3" width="19%"><font face="Arial, Helvetica, sans-serif"><a href="http://www.ravantivirus.com/pages/isp.php">RAV 
      antivirus</a> for DMAIL</font></td>
    <td width="27%"
	  > 
      <p><font face="Arial, Helvetica, sans-serif">Windows</font></p>
    </td>
    <td width="54%" height="26"><font face="Arial, Helvetica, sans-serif">g_virus_filter 
      cmd=&quot;c:\surgemail\rav8\bin\ravdmail.exe&quot;</font></td>
  </tr>
  <tr> 
    <td width="27%"><font face="Arial, Helvetica, sans-serif">Unix</font></td>
    <td width="54%"><font face="Arial, Helvetica, sans-serif">g_virus_filter cmd=&quot;/opt/rav/bin/ravdmail&quot; 
      type=&quot;&quot; </font></td>
  </tr>
  <tr> 
    <td colspan="2" ><font face="Arial, Helvetica, sans-serif">Comments: RAV is 
      no longer being sold as a product (this is here for the benefit of existing 
      RAV users)</font></td>
  </tr>
</table>
  <p>* This configuration has not been explicitly tested. If you have experience
    with a virus scanner that is not listed here please let us know so we can
    help others in their server configuration efforts.</p>
  <p>&nbsp;</p>

</a>
<!-- #EndEditable -->
<!-- CONTENT END -->
</div>

<!-- Back to antivirus.htm -->
</div>

<!-- Back to antivirus.htm -->

<div class="prefooter">&nbsp;</div>
<div id="footer" class="footer">
 <table align="center" CELLPADDING="0" CELLSPACING="0" WIDTH="900" HEIGHT="100" BORDER="0" >
  <tr>
    <td HEIGHT="100%" >
      <p align="center" style="margin-top: 8pt; margin-bottom: 2pt; margin-left: 8pt">
  	  <a href="http://netwinsite.com/sitemap.htm" class="footer_link">Site Map</a><span class="style2"> | </span>
  	      <a href="http://netwinsite.com/index.htm" class="footer_link">Home</a><span class="style2"> | </span>
	      <a href="http://netwinsite.com/products.htm" class="footer_link">Products</a><span class="style2"> | </span>
	      <a href="http://netwinsite.com/surgemail/post.htm" class="footer_link">Contact Netwin</a><span class="style2"> | </span>
	      <a href="http://netwinsite.com/company.htm" class="footer_link">Company</a><span class="style2"> | </span>
	      <a href="http://netwinsite.com/license_all.htm" class="footer_link">Licensing</a><span class="style2"> | </span>
	      <a href="http://netwinsite.com/links.htm" class="footer_link">Links</a><span class="style2">  </span>
        <table align=center width="370" border="0" style="margin-bottom: 2pt">
        <tr>
          <td width="32"><img src="template/img2/logo_small_ongray.png" height="25" hspace="1" vspace="1" align="bottom"></td>
          <td width="350"><p class="smaller" style="margin-top: 14pt;">Copyright &copy; 2009 Netwin Ltd. All rights reserved.
		  </td>
        </tr>
      </table>
	</td>
  </tr>
</table>
</div>
</div>

<br><br>
</body>

<!-- Back to antivirus.htm -->

</body>
</html>

<!-- End of antivirus.htm -->
