<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Start of faq.htm --><!-- delayed after doctype-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../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 faq.htm -->

<!-- #BeginEditable "Headerstuff"-->
<title>FAQ - Frequently Asked Questions</title>
<META NAME="keywords" CONTENT="">
<META NAME="description" CONTENT="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


<!-- #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 faq.htm -->
<div class="content_outer">


<!-- Back to faq.htm -->
<div class="L2C2_column_left">
<!-- Back to faq.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_webdav.htm"><a href="webdav.htm">WebDav</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_amazon-ses.htm"><a href="amazon-ses.htm">Amazon-SES gateway</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 faq.htm -->
</div>

<!-- Back to faq.htm -->
<div class="L2C2_column_content">
<!-- Back to faq.htm -->
<!-- #BeginEditable "Body" --> 
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
<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','FAQ'],3); </script>
<script language="JavaScript"> index_select('idx_faq.htm'); </script>
<h1>FAQ - Frequently Asked Questions</h1>
<ul>
  <li><a href="faq.htm#restart">How do I restart the server?</a></li>
  <li><a href="faq.htm#gettoweb"> How do I get to the web manager?</a></li>
  <li><a href="faq.htm#setpass">How do I set the web manager password?</a></li>
  <li><a href="faq.htm#setkey">How do I enter my registration key?</a></li>
  <li><a href="faq.htm#slownetscape">Why is the manager sluggish on Netscape &amp; 
    Win 2000?</a></li>
  <li><a href="faq.htm#stopswatch">How do I stop swatch (SurgeMail Monitor)?</a></li>
  <li><a href="faq.htm#userlimit">Concurrent user limits.</a></li>
  <li><a href="#slow">Slow performance / virus scanner installed</a> </li>
  <li><a href="#quota">How do I tailor the quota message</a></li>
  <li><a href="#pine">How do I use SurgeMail with Pine / Mutt</a></li>
  <li><a href="#config">Where are the SurgeMail configuration files</a></li>
  <li><a href="webmail.htm">Why doesn't my WebMail auto-login work?</a> </li>
  <li><a href="webmail.htm#passid">What does &quot;Failed to create Pass ID&quot; 
    mean?</a></li>
  <li><a href="#enable_inbox_transfer">How do I get WebMail to allow me to move 
    files back to the inbox?</a></li>
  <li><a href="#failed_detect_host">Why do I get the error &quot;Failed to detect 
    host&quot; in WebMail?</a></li>
  <li><a href="#manual_pdf">Where can I download / get a printed version of the 
    manual?</a></li>
  <li><a href="#sendmail_stub">How can I use &quot;sendmail&quot; style command 
    line syntax to send mail?</a></li>
  <li><a href="#dns">How do I fix &quot;DNS lookup failed&quot; errors?</a></li>
  <li><a href="#dns_lockup">How do I fix DNS &quot;lookup_name&quot; lockups?</a></li>
  <li><a href="#cmd_line_auth">How do I add users on the command line?</a></li>
  <li><a href="#doc">Is there a printed version of the documentation?</a></li>
  <li><a href="#firewall_ports">What ports do I need to open on my firewall?</a></li>
  <li><a href="#numbering">What does the SurgeMail version numbering mean?</a></li>
  <li><a href="#webcon">WebMail fails to connect why?</a></li>
  <li><a href="#webmail_seperate">Can I run WebMail on a seperate machine?</a> 
  </li>
  <li><a href="#uninstall_avast">How do I (manually) install/uninstall Avast antivirus?</a> 
  </li>
  <li><a href="#bind">I have more than one IP but only want SurgeMail to listen 
    on one, how? </a></li>
  <li><a href="#virus">How do I check my virus scanner is running?</a></li>
  <li><a href="#outgoing_bind">How do I make SurgeMail bind to one ip for outgoing 
    messages? </a></li>
  <li><a href="#moving_surgemail">How do I move SurgeMail to a new machine? </a></li>
  <li><a href="#backup_surgemail">How do I backup SurgeMail?</a></li>
  <li><a href="#gateway">How do I send my mail through my ISPs server?</a></li>
  <li><a href="#include">Can I use include files in surgemail.ini ?</a></li>
  <li><a href="#gateway">AOL or some other domain won't accept mail from me because 
    I'm a dsl/cable user, what can I do? </a></li>
  <li><a href="#change_domain_name">How can I change a domain name in SurgeMail?</a></li>
  <li><a href="#iis">How do I run SurgeMail and IIS SMTP virtual server on the 
    same Windows server?</a></li>
  <li><a href="#delfile">Help I cannot delete a message in webmail - turn off 
    your virus scanner!</a></li>
  <li><a href="#cannot_receive_mail">I can't receive mail </a></li>
  <li>I can receive email but not send it </li>
  <li><a href="#dns_failure">I am getting a DNS lookup failure, what can I do?</a> 
  </li>
  <li><a href="#Apache_IIS">I am running Apache/IIS hosting a website, Can I run 
    SurgeMail with webmail on the same machine?</a></li>
  <li><a href="#rename_domain">How do I rename a domain?</a> </li>
  <li><a href="#399_error">How can I fix this error 399 TCP Read failed?</a></li>
  <li><a href="#dup">Duplicate messages sending or receiving</a></li>
  <li><a href="#command_prompt">How do I get to the command prompt in Windows?</a> 
  </li>
  <li><a href="#whitelist">How do I whitelist a domain?</a></li>
  <li><a href="#sendmail">Sendmail - My forms can no longer send mail</a></li>
  <li><a href="#repeated_messages">Why do some messages appear multiple times 
    in a users inbox?</a></li>
  <li><span><a href="#aol_blocked">AOL have blocked my server, what can I do?</a></span> 
  </li>
  <li><a href="#timeout">SMTP session numbers growing, g_thread_max, g_smtp_max, 
    g_pop_max limits</a></li>
  <li><a href="#nosubmit">NoSubmit errors on incoming email</a></li>
  <li><a href="#movespam">How do I move spam to a spam folder for all users</a></li>
  <li><a href="#secondary_server">How do I setup SurgeMail to be a backup server 
    for a domain?</a> </li>
  <li><a href="#process_order">In what order do the various parts of SurgeMail 
    run? ( g_virus_cmd, g_virus_filter etc etc) </a></li>
  <li><a href="#pfx">To convert a PFX file to a PEM file, follow these steps on 
    a Windows machine</a></li>
  <li><a href="#64">SurgeMail/SurgeNews crash every minute on 64bit linux</a> 
  </li>
  <li><a href="#64">libgcc_s.so.1 must be installed for pthread_cancel to work</a></li>
  <li><a href="#atrn">Setting up ATRN service for a client</a></li>
  <li><a href="#local_accounts_compromised">How can I stop local accounts being 
    compromised and used for spamming? </a><br>
  <li><a href="#restrict_accounts">How do I restrict who some accounts can mail? 
    </a></li>
  <li><a href="#bounces">Blacklisting due to responders friends bouncing etc ironport 
    filtering or spamcop</a></li>
  <li><a href="#tcp_read">554 Failure tcp_read_dot </a></li>
  <li><a href="#nodata">Email fails with error &quot;No DATA command sent-rset&quot;</a><br>
  </li>
</ul>
<h3><a NAME="restart"></a>How do I restart the server?</h3>
<p><font face="Arial, Helvetica, sans-serif">On NT, type in: <b>net start surgemail</b> 
  </font> </p>
<p><font face="Arial, Helvetica, sans-serif">On 95/98, type in:<b> /surgemail/surgemail</b> 
  </font> </p>
<p><font face="Arial, Helvetica, sans-serif">On Unix, type in: <b>/usr/local/surgemail/surgemail_start.sh</b> 
  </font> </p>
<p><font face="Arial, Helvetica, sans-serif">To start it remotely use SurgeMail 
  monitor on http://your.mail.server:7027 </font> </p>
<h3><a NAME="gettoweb"></a>How do I get to the web manager?</h3>
<p><font face="Arial, Helvetica, sans-serif">Use your web browser and type in 
  a link like this: <a href="http://your.mail.server:7025">https://your.mail.server:7025</a> 
  If you are on the machine itself this link should work <a href="https://127.0.0.1:7025">https://127.0.0.1:7025</a> 
  </font> </p>
<h3><a NAME="setpass"></a>How do I set the web manager username and password?</h3>
<p><font face="Arial, Helvetica, sans-serif">*nix systems you need to go to the 
  shell and type<br>
  cd /usr/local/surgemail<br>
  ./surgemail -password</font></p>
<p><font face="Arial, Helvetica, sans-serif">Windows systems you need to go to 
  the <a href="#command_prompt">command prompt</a><br>
  <br>
  cd \surgemail<br>
  surgemail -password </font></p>
<h3><a name="include"></a>Can I use include files in surgemail.ini</h3>
<p><font face="Arial, Helvetica, sans-serif">Not normally no, the reason for this 
  restriction is that the web interface allows you to modify config settings in 
  a nice and safe manner, as a result the ini file needs to be re-written, and 
  if it was composed of include files it would be difficult, dangerous and very 
  nearly impossible to write it out correctly after a change.</font></p>
<p><font face="Arial, Helvetica, sans-serif">However, you can do it if you want, 
  but if you put an 'include full_path/file.ini' directive in surgemail.ini then 
  any call to save the ini file will silently fail (so your web admin will just 
  seem to work but won't really). Also note, if you create an ini file with 10,000 
  include files in it, and it takes 3 minutes to reload it, we will not have any 
  sympathy for you (we've seen this done before really!) </font></p>
<h3><a name="setkey"></a>How do I enter my registration key?</h3>
<p><font face="Arial, Helvetica, sans-serif">In the web manager click on the 'Register' 
  link on the navigation pane.</font></p>
<p><font face="Arial, Helvetica, sans-serif">Alternatively run tellmail activate 
  on the command line with your registration details:<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font face="Times New Roman, Times, serif"><b>&nbsp; 
  tellmail activate N123 myemail@mydomain.com</b></font></font> </p>
<h3><a NAME="slownetscape"></a>Why is the manager sluggish on Netscape &amp; Win 
  2000?</h3>
<p><font face="Arial, Helvetica, sans-serif">This is a bug in Netscape. It steals 
  all the CPU while waiting for a web page to arrive but since the server is on 
  the same system that means it responds slowly. You can fix it in task manager: 
  set the priority for Netscape down to 'below normal' and suddenly it will work 
  faster!&nbsp; Or upgrade to a fixed version of Netscape. </font></p>
<h3><a name="stopswatch"></a>How do I stop swatch (SurgeMail Monitor)?</h3>
<p><font face="Arial, Helvetica, sans-serif">It should never be necessary to stop 
  swatch manually as swatch is designed to keep running so that SurgeMail can 
  be restarted using the web interface. But, if for any reason the SurgeMail monitor 
  process needs to be manually stopped create the mon.exit file in the SurgeMail 
  directory and swatch will shutdown.</font> </p>
<h3><a NAME="userlimit"></a>Are there concurrent user limits?</h3>
<p><font face="Arial, Helvetica, sans-serif">The number of concurrent users is 
  operating system dependent and basically a matter of how many threads and file 
  handles the operating system supports. Here are the approximate figures-&nbsp;</font> 
  <font face="Arial, Helvetica, sans-serif"><br>
  &nbsp; </font></p>
<table class="plain_table" width="75%" >
  <tr> 
    <th><font face="Arial, Helvetica, sans-serif">Operating system</font> 
    <th><font face="Arial, Helvetica, sans-serif">Concurrent mail sessions (these 
      are not hard limits)</font> 
  </tr>
  <tr> 
    <td><font face="Arial, Helvetica, sans-serif">Windows NT</font></td>
    <td><font face="Arial, Helvetica, sans-serif">1,500</font></td>
  </tr>
  <tr> 
    <td><font face="Arial, Helvetica, sans-serif">Linux</font></td>
    <td><font face="Arial, Helvetica, sans-serif">500-1000 on early versions<br>
      more on recent kernals that do not have handle or thread limits</font></td>
  </tr>
  <tr> 
    <td height="5"><font face="Arial, Helvetica, sans-serif">Solaris 7</font></td>
    <td height="5"> 
      <p>500</p>
    </td>
  </tr>
  <tr> 
    <td><font face="Arial, Helvetica, sans-serif">Solaris 8</font></td>
    <td><font face="Arial, Helvetica, sans-serif">2,000</font></td>
  </tr>
</table>
<p>&nbsp;</p>
<h3><a name="quota"></a>How do I tailor the quota message?</h3>
<p><font face="Arial, Helvetica, sans-serif">In the SurgeMail directory create 
  a file called quota.eml, something like this (this requires SurgeMail 1.3m or 
  later):</font></p>
<table class="plain_table" width="50%">
  <tr> 
    <td> 
      <pre>Subject: A new quota message heartoftn.net</pre>
      <pre>reason: 

max= used= size=

This is the quota

message for domain: heartoftn.net

ends here.</pre>
    </td>
  </tr>
</table>
<p><font face="Arial, Helvetica, sans-serif">Which will look something like this 
  for the user:</font></p>
<table class="plain_table" width="50%">
  <tr> 
    <td> 
      <pre>Subject: A new quota message xxx.yyy.com</pre>
      <pre>reason: Quota exceeded 250000&gt;200000

max=200000 used=190000 size=60000

This is the quota

message for domain: xxx.yyy.com

ends here.</pre>
    </td>
  </tr>
</table>
<h3><a name="pine"></a>How do I use SurgeMail with Pine / Mutt to read my mail?</h3>
<p><font face="Arial, Helvetica, sans-serif">SurgeMail uses mdir format to store 
  mail which cannot be read by mail clients that read the mail drop file directly. 
  The &quot;Deliver&quot; mail delivery robot can be used to deliver mail to a 
  drop file: </font></p>
<p><font face="Arial, Helvetica, sans-serif">Deliver is available from <a href="http://sourceforge.net/projects/deliver/">sourceforge.net</a> 
  and can be configured in SurgeMail using a mail redirection rule in surgemail.ini 
  as per: </font></p>
<p><font face="Times New Roman, Times, serif">g_redirect was=&quot;marijn@mydomain.com&quot; 
  to=&quot;|./deliver -b /var/surgemail/mydomain.com/hd/fg/marijn/dropfile&quot;</font><font face="Arial, Helvetica, sans-serif"><br>
  </font></p>
<h3><a name="config"></a>Where are the SurgeMail configuration files?</h3>
<p><font face="Arial, Helvetica, sans-serif">SurgeMails main configuration file 
  is surgemail.ini which is store in /etc on UNIX systems and your Windows directory 
  on Windows systems (eg c:\winnt). This file can be edited by hand after which 
  a &quot;<b><font face="Times New Roman, Times, serif">tellmail reload</font></b>&quot; 
  would need to be issued or edited via the web interface. Backups of this file 
  are stored in the SurgeMail directory as ini_YYMMDD.rec.</font></p>
<p><font face="Arial, Helvetica, sans-serif">WebMail has a separate configuration 
  file stored in surgemail/scripts/webmail.ini.</font></p>
<h3><a name="enable_inbox_transfer"></a>How do I get WebMail to allow me to move 
  files back to the inbox?</h3>
<p><font face="Arial, Helvetica, sans-serif">If WebMail is using IMAP to talk 
  to SurgeMail this can be enabled using the following setting in webmail.ini. 
  (This is now enabled by default but used to be disabled by default)<br>
  </font> enable_inbox_transfer &quot;true&quot; 
<h3><a name="failed_detect_host"></a>Why do I get the error &quot;Failed to detect 
  host&quot; in WebMail?</h3>
<p><font face="Arial, Helvetica, sans-serif">This just means WebMail could not 
  talk to SurgeMail. There could be several reasons. The most likely reason is 
  that SurgeMail does not have the correct settings in the event that your domain 
  name is different from your hostname eg mydomain.com vs mail.mydomain.com <a href="global.htm#g_server_name">see 
  for more detail</a> </font> 
<p><font face="Arial, Helvetica, sans-serif">Check your webmail.ini file, surgemail/web_work/surgehost.ini 
  and surgemail.ini for possible misconfiguration of individual domains.</font> 
<h3><a name="manual_pdf"></a>Where can I download / get a printed version of the 
  manual?</h3>
<p><font face="Arial, Helvetica, sans-serif">The online help is the primary documentation 
  this is distributed with every SurgeMail download and the latest version is 
  available <a href="http://netwinsite.com/surgemail/help/index.htm">online</a>. 
  An automatically generated <a href="ftp://netwinsite.com/pub/surgemail/doc/surgemail.pdf">pdf 
  version</a> is also available.</font> 
<h3><a name="manual_pdf"></a>How do I install additional WebMail templates?</h3>
<p><font face="Arial, Helvetica, sans-serif">Different WebMail templates may be 
  installed. The Surgemail + Webmail distributions come with three template sets 
  by default (Panel, Surge and Smooth). Several additional template sets are available 
  but most of these have a rather out of date &quot;look and feel&quot; to them 
  and or do not supply all the functionality now supplied by webmail and surgemail 
  (these include marble, iconic, vanilla). </font> 
<p><font face="Arial, Helvetica, sans-serif">Several examples of the flexibility 
  of the webmail look and feels can be found on the the following pages:</font> 
  <br>
  <a href="http://netwinsite.com/surgemail/templates.htm">http://netwinsite.com/surgemail/templates.htm</a><br>
  <a href="http://netwinsite.com/webmail/gallery/index.htm">http://netwinsite.com/webmail/gallery/index.htm</a> 
<p><br>
<p><font face="Arial, Helvetica, sans-serif">All that is required to install a 
  template set is to add the actual template files to the directory surgemail/webmail/templatename, 
  the images to surgemail/www/nwimg/mail/template name and add one line to webmail.ini 
  defining it. eg:</font><br>
  tpl_set 2 E:\surgemail\webmail\marble /nwimg/mail/marble Marble Set (Marble) 
<h3><a name="sendmail_stub"></a>How can I use &quot;sendmail&quot; style command 
  line syntax to send mail?</h3>
<p><font face="Arial, Helvetica, sans-serif">SurgeMail installs a sendmail stub. 
  This will allow your PHP scripts and the like to continue sending mail using 
  the same syntax they have always done. You will need to ensure SurgeMail is 
  allowing relaying for your local IP. If it is not working pass the stub the 
  &quot;-debug&quot; parameter it should create a sendmail.debug file that will 
  give you information as to why it is not working.</font> 
<h3><a name="dns"></a>How do I fix <font face="Arial, Helvetica, sans-serif">&quot;DNS 
  lookup failed&quot; errors</font><font face="Arial, Helvetica, sans-serif">?</font></h3>
<font face="Arial, Helvetica, sans-serif"> 
<p><font face="Arial, Helvetica, sans-serif">This means that DNS resolution of 
  an address failed and can be for one of several reasons:</font> 
<p><font face="Arial, Helvetica, sans-serif"> 1) Wrong server being used<br>
  2) Server is not responding or firewall / router is blocking TCP port 53</font> 
<p><font face="Arial, Helvetica, sans-serif">SurgeMail will attempt to use the 
  DNS settings of your operating system for its name resolutions. If this is not 
  working for some reason you can manually force SurgeMail to use particular dns 
  servers using the setting g_dns_host setting. <br>
  eg. where the IP numbers are the ip addresses you wish to force SurgeMail to 
  use.<br>
  <font face="Times New Roman, Times, serif">g_dns_host &quot;1.2.3.4,2.3.4.5&quot;</font> 
  </font> 
<p><font face="Arial, Helvetica, sans-serif"><b>note:</b> You must restart SurgeMail 
  when changing g_dns_host </font> 
<p><font face="Arial, Helvetica, sans-serif">SurgeMail provides status information 
  on the DNS servers that it uses in on the status page on the web interface.</font> 
<p><font face="Arial, Helvetica, sans-serif">If this still fails it may be that 
  the DNS server is faulty and is not responding or that a firewall or gateway 
  is blocking TCP port 53 access. (some OS services only require UDP access which 
  is why your firewall might be blocking TCP traffic on port 53) To test this 
  telnet to your DNS server as per &quot;telnet your.dns.server.ip 53&quot;. If 
  this does not connect this is the problem. If this does connect then your DNS 
  server is working fine.</font> 
</font> 
<h3><font face="Arial, Helvetica, sans-serif"><a name="dns"></a>How do I fix </font><font face="Arial, Helvetica, sans-serif">DNS 
  &quot;lookup_name&quot; lockups?</font></h3>
<font face="Arial, Helvetica, sans-serif"> 
<p><font face="Arial, Helvetica, sans-serif">Set the setting g_dns_paranoid to 
  false i.e.</font></p>
<p><font face="Times New Roman, Times, serif"><a href="global.htm#g_dns_paranoid">g_dns_paranoid 
  </a>&quot;false&quot;</font></p>
<p><font face="Arial, Helvetica, sans-serif">And restart SurgeMail. If the problem 
  persists contact <a href="mailto:surgemail-support@netwinsite.com">surgemail-support@netwinsite.com</a>.</font></p>
<h3><a name="cmd_line_auth"></a>How do I add users on the command line?</h3>
<p><font face="Arial, Helvetica, sans-serif">Users can be added on the command 
  line as follows (You need to run the path etc for your authentication module 
  as specified in surgemail.ini)<br>
  ./nwauth -path . -set username@domain password</font> 
<p><font face="Arial, Helvetica, sans-serif">Alternatively for a more efficient 
  process create a text file of nwath<br>
  commands and pipe it to nwauth as follows:<br>
  &gt;&gt;Start of file nwauth.in&lt;&lt;<br>
  set user1@domain.com password<br>
  set user2@domain.com password2<br>
  set user3@domain2.com password3<br>
  &gt;&gt;End of file&lt;&lt;<br>
  ./nwauth -path . &lt; nwauth.in</font></p>
<p><font face="Arial, Helvetica, sans-serif">or for list of nwauth command lin 
  commands:<br>
  ./nwauth -help</font></p>
<p><font face="Arial, Helvetica, sans-serif">In new versions built later than 
  the 25th of April 2004 you can now use a tellmail command<br>
  tellmail add_user &lt;user@domain&gt; &lt;password&gt; <br>
  This automatically uses the correct authent module etc </font></p>
<h3><a name="doc"></a>Is there a printed version of the documentation?</h3>
<p><font face="Arial, Helvetica, sans-serif">Yes, a pdf version of the online 
  help can be downloaded from: <br>
  <a href="http://netwinsite.com/ftp/surgemail/doc/surgemail.pdf">http://netwinsite.com/ftp/surgemail/doc/surgemail.pdf</a></font> 
<h3><a name="firewall_ports"></a>What ports do I need to open on my firewall?</h3>
<p><font face="Arial, Helvetica, sans-serif">This depends on the services you 
  wish to offer, but in principle the main ports you will need open to TCP traffic 
  are:</font> 
<blockquote> 
  <p><font face="Arial, Helvetica, sans-serif"> 53 DNS lookup for outgoing mail<br>
    110 POP3 services (Also used for mirroring) <br>
    143 IMAP services<br>
    25 SMTP services<br>
    80 (or 7080 if port 80 is already in use) Webmail HTTP access<br>
    7025 Administration HTTPS access</font></p>
</blockquote>
<p><font face="Arial, Helvetica, sans-serif">SurgeMail also uses the following 
  </font></p>
<blockquote> 
  <p><font face="Arial, Helvetica, sans-serif"> 995 Secure POP3 services<br>
    993 Secure IMAP services<br>
    465 Secure SMTP services<br>
    7110 SurgePlus </font><font face="Arial, Helvetica, sans-serif"><br>
    7443 Secure Webmail HTTPS access<br>
    7026 Administration HTTP access<br>
    7027 Monitor HTTP access</font></p>
</blockquote>
<h3><a name="numbering"></a>What does the SurgeMail version numbering mean?</h3>
<p><font face="Arial, Helvetica, sans-serif">SurgeMail version numbering is setup 
  as follows &lt;Number&gt;.&lt;number&gt;&lt;letter&gt;[optional number] - &lt;build 
  number&gt; eg 1.5a</font> - 12 
<ul>
  <li><font face="Arial, Helvetica, sans-serif">The first number is a major release 
    number version expected to change approx once per year. </font></li>
  <li><font face="Arial, Helvetica, sans-serif">The second number is a release 
    number which will include new features and is expected to change once a month.</font></li>
  <li><font face="Arial, Helvetica, sans-serif">The letter is a sub version number 
    which gets modified each time a new version is uploaded to netwinsite either 
    as a beta or as a specials build. This will probably change almost on a daily 
    basis and will include both new features and bug fixes. eg 1.5a -&gt; 1.5b</font></li>
  <li><font face="Arial, Helvetica, sans-serif">If the production builds need 
    to be patched for a specific bug fix only, the optional number will be incremented 
    eg 1.5a2</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Whenever a new build is supplied 
    to a customer the &lt;build number&gt; will be updated (as of SurgeMail 1.8e)</font></li>
</ul>
<p><font face="Arial, Helvetica, sans-serif"><a href="updates.htm">Updates.htm</a> 
  documents changes since the last production release whenever a new version is 
  released as a likely production release candidate.</font> 
<p><font face="Arial, Helvetica, sans-serif">Prior to version 1.5a this was defined 
  slightly differently.</font> 
<h3><a name="webcon"></a>WebMail fails to connect - Failed to Auto-Detect POP 
  or IMAP at</h3>
<p><font face="Arial, Helvetica, sans-serif">In surgemail/webmail.ini ensure the 
  settings for IMAPhost and SMTPhost point to your actual server and not a domain 
  that resolves to some other system, or doesn't resolve at all eg:</font></p>
<pre>
	smtphost localhost
	imaphost localhost
</pre>
<h3><a name="webmail_seperate"></a>Can I run WebMail on a seperate machine?</h3>
<p><font face="Arial, Helvetica, sans-serif">Yes. In some cases it might be beneficial 
  to run the WebMail CGI on a different machine, to do this, simply install WebMail 
  on the other machine see the <a href="http://netwinsite.com/webmail/webmail.htm">WebMail 
  documentation</a> on how this is done. Then in addition to the normal configuration 
  requirements, eg: pophost smtphost etc you need to configure these WebMail settings:</font></p>
<pre><font face="Arial, Helvetica, sans-serif">use_id_autologin true

friends_only true<br>autorespond true

</font><font face="Arial, Helvetica, sans-serif">netwin_autologin_id 0 https://surgemail.server.com:7025/cgi/user.cgi /var/spool/webmail lcmd=user_load_pass&amp;vhost=&amp;webmail=true&amp;
		bgcolor=cust_panel_bgcolorhref_text&amp;thcolor=#D6D6CEhref_text

netwin_autologin_id 1 https://surgemail.server.com:7025/cgi/user.cgi /var/spool/webmail lcmd=user_load_fcommon&amp;vhost=&amp;webmail=true&amp;
		bgcolor=cust_panel_bgcolorhref_text&amp;thcolor=#D6D6CEhref_text

netwin_autologin_id 2 https://surgemail.server.com:7025/cgi/user.cgi /var/spool/webmail lcmd=user_load_fwd&amp;vhost=&amp;webmail=true&amp;
		bgcolor=cust_panel_bgcolorhref_text&amp;thcolor=#D6D6CEhref_text

netwin_autologin_id 4 https://surgemail.server.com:7025/cgi/user.cgi /var/spool/webmail lcmd=user_spam_load&amp;vhost=&amp;webmail=true&amp;
		bgcolor=cust_panel_bgcolorhref_text&amp;thcolor=#D6D6CEhref_text

netwin_autologin_id 5 https://surgemail.server.com:7025/cgi/user.cgi /var/spool/webmail lcmd=user_load_centipaid&amp;vhost=&amp;webmail=true&amp;
		bgcolor=cust_panel_bgcolorhref_text&amp;thcolor=#D6D6CEhref_text

netwin_autologin_id 6 https://surgemail.server.com:7025/cgi/user.cgi /var/spool/webmail lcmd=user_sms_load&amp;vhost=&amp;webmail=true&amp;
		bgcolor=cust_panel_bgcolorhref_text&amp;thcolor=#D6D6CEhref_text

netwin_autologin_id 7 https://surgemail.server.com:7025/cgi/user.cgi /var/spool/webmail lcmd=user_listmb&amp;vhost=&amp;webmail=true&amp;
		bgcolor=cust_panel_bgcolorhref_text&amp;thcolor=#D6D6CEhref_text</font>    </pre>
<font face="Arial, Helvetica, sans-serif">And these surgemail.ini settings:</font><br>
<pre>

<font face="Arial, Helvetica, sans-serif">g_autologin_pop &quot;TRUE&quot;

g_webmail_url &quot;http://other.server.com/scripts/webmail.exe&quot;</font></pre>
<p><font face="Arial, Helvetica, sans-serif">In addition for every domain you 
  add to SurgeMail you will now manually need to update webmail.ini with the domain 
  details, see the <a href="http://netwinsite.com/webmail/webmail.htm">WebMail 
  documentation</a> on &quot;Virtual Hosts&quot; for how this is done.</font></p>
<h3><a name="uninstall_avast"></a>How do I (manually) install / uninstall Avast 
  Antivirus</h3>
<p><font face="Arial, Helvetica, sans-serif">The avast installer in integrated 
  to SurgeMail web admin interface - just press the install and uninstall button 
  on the globals page.</font></p>
<p><font face="Arial, Helvetica, sans-serif">There should not be the need to manully 
  install Avast but if necessary this can be done by: downloading the installation 
  package from <a href="ftp://netwinsite.com/pub/surgemail/util/avastoem.exe">ftp://netwinsite.com/pub/surgemail/util/avastoem.exe</a> 
  running the command line:<br>
  avastoem.exe /oem &quot;SurgeMail&quot; <br>
  and making sure it is installed into the SurgeMail\Avast directory.</font></p>
<p><font face="Arial, Helvetica, sans-serif">Again there should not be the need 
  but to </font><font face="Arial, Helvetica, sans-serif"> manually uninistall 
  just delete all the files and subdirectories in the \surgemail\avast directory 
  other than surgemail\setup\setupif.dll which is required to install again via 
  surgemail web admin. In addition you need to delete the registry key :HKEY_LOCAL_MACHINE\SOFTWARE\ALWIL 
  Software\Avast\SurgeMail and all entries within it.</font></p>
<h3><a name="bind"></a>I have more than one IP but only want SurgeMail to listen 
  on one, how?</h3>
<span>g_smtp_port &lt;ip:port&gt; </span> 
<p><font face="Arial, Helvetica, sans-serif">This allows SurgeMail to listen on 
  a specified port and IP, you can add multiple IPs if you wish to listen on more 
  than one and multiple ports also.</font></p>
<p> eg:<br>
  g_smtp_port &quot;1.1.1.1:25, 2.2.2.2:1025&quot; 
</font> 
<h3><font face="Arial, Helvetica, sans-serif"><a name="virus"></a>How do I check 
  my virus scanner is running ? </font> </h3>
<p><span>You can check the status page and check how many viruses have been caught. 
  You can also send a test virus through which can be got from www.eicar.org, 
  and then of course there are the logs you can check.</span></p>
<h3><a name="outgoing_bind"></a>How do I make SurgeMail bind to one ip for outgoing 
  messages? </h3>
<p>In surgemail.ini add the following setting then restart. </p>
<p>g_bind_out &quot;x.x.x.x&quot;</p>
<h3><a name="moving_surgemail"></a>How do I move SurgeMail to a new machine? </h3>
<p>There are two ways of doing this, one is basically copying all the files to 
  the new machine. The second is by setting up a mirror and letting SurgeMail 
  mirror itself over to the second machine. </p>
<ol>
  <li><font face="Arial, Helvetica, sans-serif">Install SurgeMail on new machine</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Setup anything you tailored on 
    the original system (e.g. authent modules)</font><br>
  </li>
  <li><font face="Arial, Helvetica, sans-serif">Stop SurgeMail on new machine 
    </font></li>
  <li><font face="Arial, Helvetica, sans-serif">tellmail deactivate on old machine</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Stop SurgeMail on old machine</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Copy surgemail.ini from old machine 
    to new machine</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Copy the SurgeMail directory, 
    the mail directory and the database over to new machine</font>.<br>
    Check surgemail.ini for the paths to copy for the mail directory (g_mailbox)<br>
    The default database is nwauth which will be stored in the surgemail directory 
    but consists of the files (nwauth.add, nwauth.txt) <br>
  </li>
  <li><font face="Arial, Helvetica, sans-serif">Check surgemail.ini and check 
    everything is located correctly. Change all the paths if necessary</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Chown -R mail files (if on UNIX)</font> 
    for all mail folders etc...</li>
  <li><font face="Arial, Helvetica, sans-serif">Start surgemail on new machine, 
    check logging in etc</font></li>
  <li><font face="Arial, Helvetica, sans-serif">tellmail activate on new machine</font></li>
  <li><font face="Arial, Helvetica, sans-serif">If you have moved from one OS 
    to a different OS then you should run the installer on the new server again 
    so that it places the correct binaries on the new system. </font></li>
</ol>
<h3><a name="backup_surgemail"></a><span>How do I backup SurgeMail?</span></h3>
<ul>
  <li><font face="Arial, Helvetica, sans-serif">Backup surgemail.ini which is 
    found in the windows directory or /etc if on UNIX</font></li>
  <li><font face="Arial, Helvetica, sans-serif">To backup the mail you need to 
    backup the directory that stores all the mail. You will need to check this 
    location in surgemail.ini look for &quot;g_mailbox_path&quot; and that will 
    give you the directory to backup.</font></li>
  <li><font face="Arial, Helvetica, sans-serif">To backup the user accounts, if 
    you are using NWAuth for your user database (which is the default) then you 
    should backup all the nwauth* files in the SurgeMail directory.</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Finally you can backup the SurgeMail 
    directory which contains the programs, the temporary work area for queued 
    messages, and the templates etc etc. </font></li>
</ul>
<p><font face="Arial, Helvetica, sans-serif">On Windows you can just use something 
  like winzip to copy everything, on UNIX based platforms you can use tar and 
  gzip or whatever you prefer. </font></p>
<p>To restore a backup</p>
<ol>
  <li> Install SurgeMail on the new box</li>
  <li>Shutdown SurgeMail on both machines</li>
  <li>Copy your backup over to the new machine and untar/unzip (If you are on 
    linux using tar is a good idea as this will preserve file permissions) </li>
  <li>Check the file permissions if you are linux (ls -l) they should be owned 
    by mail</li>
  <li>Copy surgemail.ini over to the new machine and check the paths in it to 
    make sure they are correct.</li>
  <li>Restart SurgeMail </li>
</ol>
<p>If you are moving SurgeMail to a new machine you can check this guide <a href="http://www.netwinsite.com/surgemail/help/faq.htm#moving_surgemail ">http://www.netwinsite.com/surgemail/help/faq.htm#moving_surgemail 
  </a></p>
<h3><a name="gateway"></a>How do I send my mail through my ISPs server or some 
  other mail server?</h3>
<p><font face="Arial, Helvetica, sans-serif">If you need to send your mail via 
  another SMTP server then you can use the gateway setting. This setting lets 
  you choose which domains to send to a server so you can send one domain to one 
  server and another domain to another server or you can send all domains to one 
  server. This is useful if your ISP won't allow you to connect to port 25 on 
  remote machines or if you are on cable/DSL and domains like AOL won't accept 
  mail from you because of this so instead you can send all your mail through 
  your ISPs mail server.</font></p>
<p><font face="Arial, Helvetica, sans-serif">Example 1: Sending all mail through 
  a differerent server<br>
  <br>
  g_gateway domain=&quot;*&quot; to=&quot;ip of server to use&quot; relay=&quot;false&quot;<br>
  If you need to authenticate on the server you are going to use you can do this<br>
  g_gateway domain=&quot;*&quot; to=&quot;ip of server to use&quot; relay=&quot;false&quot; 
  user=&quot;user to auth with&quot; pass=&quot;password of user&quot;</font></p>
<p><font face="Arial, Helvetica, sans-serif">Example 2: Sending mail going to 
  AOL via a different server</font></p>
<p><font face="Arial, Helvetica, sans-serif">g_gateway domain=&quot;aol.com&quot; 
  to=&quot;ip of server to use&quot; relay=&quot;false&quot;<br>
  You can add SMTP AUTHentication like in example 1.</font></p>
<p><font face="Arial, Helvetica, sans-serif">You can find more information on 
  using the gateway setting here <a href="global.htm#g_gateway">g_gateway </a></font></p>
<h3><a name="change_domain_name" id="change_domain_name"></a>How can I change 
  a domain name in SurgeMail?</h3>
<p>A. Stop Surgemail<br>
  B. Edit nwauth.add and nwauth.txt and globally change old domain name to new 
  domain name. <br>
  C. Edit surgemail.ini and again change domain names. Note this will likely change 
  the /var/domain_name directory name.<br>
  D. Change the name of the mail directory [default will be old domain name].<br>
  E. Edit webmail.ini and change old to new domain name. Check IMAP and SMTP server 
  names if appropriate.<br>
  F. run &quot;./surgemail/scripts/webmail.cgi -manager&quot;<br>
  G. Select s option and specify old/new domain names for converting across users.<br>
  H. Restart Surgemail and using the web interface, correct any aliases and/or 
  virtual domains which may have redundant new domain names.</p>
<h3><a name="slow" id="change_domain_name"></a>Slow performance, virus scanner 
  installed?</h3>
<p>If you have a virus scanner like Nortons installed with Auto Protect enabled, 
  you should disable the auto protect feature which will seriously kill performance 
  of the mail server (e.g. it may run 100 times slower). Also if you have your 
  virus scanner enabled for incoming/outgoing mail you should disable that as 
  well as it could easily break the mail server protocol in unexpected ways. </p>
<p>SurgeMail has a virus scanner option 'avast' which should be used for scanning 
  for viruses in mail messages, it is much much more efficient as it is properly 
  integrated. </p>
<h3><a name="delfile" id="change_domain_name"></a>I cannot delete a file in webmail 
  (turn off your virus scanner!)</h3>
<p>If you have a virus scanner like Nortons installed with Auto Protect enabled, 
  it may lock access to webmail files, this will prevent webmail from deleting 
  the message file, this then upsets the user :-). So let me repeat, don't run 
  a virus scanner on your mail server, instead use a scanner inside SurgeMail. 
  (e.g. avast)</p>
<p></p>
<h3><a name="iis" id="iis"></a> How do I run SurgeMail and IIS SMTP virtual server 
  on the same Windows server?</h3>
<p><font face="Arial, Helvetica, sans-serif">Applies to Windows 2000 </font></p>
<p>PROBLEM:&nbsp; You can not have SurgeMail and IIS SMTP Virtual Server listening 
  on the same TCP port 25.&nbsp; The IIS SMTP service listens to port 25 on all 
  unassigned IP addresses, even though you specify a specific IP address for the 
  SurgeMail server.&nbsp; You need to disable the MS IIS socket pooling feature 
  (DisableSocketPooling).&nbsp; This property is not exposed in ADSI for SMTP. 
</p>
<p>This works for IIS also, just substitute SmtpSvc with the W3SVC</p>
<p>SOLUTION:&nbsp; </p>
<ol>
  <li> Assign a unique IP for SurgeMail …. For example if your server's IP is 
    123.123.123.30 , assign 123.123.123.31 to be used for the DNS resolution that 
    will point to the URL that resolves to SurgeMail on your Windows server, e.g. 
    mail2.yourdomain.com. </li>
  <li> Download and install the MetaEdit2.2 utility for IIS. – see article <a href="http://support.microsoft.com/kb/232068/EN-US/">http://support.microsoft.com/kb/232068/EN-US/ 
    </a></li>
  <li> Stop the default SMTP Virtual Server in IIS, if you haven't already to 
    have SurgeMail SMTP work on port 25. </li>
  <li> Create a backup of your IIS metabase by using IIS Manager, right-click 
    on your server and select Backup/Restore Configuration and then create a backup 
    file in case the edit fails. </li>
  <li> Run the MetaEdit2.2 utility and follow the instructions at <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;281760">http://support.microsoft.com/default.aspx?scid=kb;en-us;281760 
    </a></li>
  <li> Restart the IIS default SMTP Virtual Server and it should take off fine.&nbsp; 
    We now have SurgeMail and IIS SMTP virtual server listening on port 25 with 
    two unique IP's! </li>
</ol>
<h3><a name="cannot_receive_mail" id="cannot_receive_mail"></a> I can't receive 
  mail </h3>
<p><font face="Arial, Helvetica, sans-serif">Usually this is one of the following</font></p>
<ul>
  <li><font face="Arial, Helvetica, sans-serif">Firewall not letting traffic in 
    on port 25</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Router not configured to let traffic 
    in on port 25</font></li>
  <li><font face="Arial, Helvetica, sans-serif">ISP blocking incoming traffic 
    on port 25</font></li>
  <li><font face="Arial, Helvetica, sans-serif">DNS records not setup correctly.</font></li>
</ul>
<p><font face="Arial, Helvetica, sans-serif">So first check that you can connect 
  locally to the server. At the command prompt on the server type</font></p>
<p><font face="Arial, Helvetica, sans-serif">telnet localhost 25 </font></p>
<p><font face="Arial, Helvetica, sans-serif">You should receive a welcome message 
  like this<br>
  220 mydomain.com SurgeSMTP (Version 3.1b-1) http://surgemail.com </font></p>
<p><font face="Arial, Helvetica, sans-serif"> </font><font face="Arial, Helvetica, sans-serif">If 
  you get unable to connect then it's probably due to a firewall running on that 
  machine that is stopping surgemail. </font></p>
<p><font face="Arial, Helvetica, sans-serif">If you are running SurgeMail on a 
  Windows operating system you can restart surgemail and then check mail.log and 
  check it says<br>
  &quot;03 10:32:22.89:Info:2156: Listening on (all interfaces:25)&quot;</font></p>
<p><font face="Arial, Helvetica, sans-serif">You can use this page to help test 
  sending mail to your server.<br>
  <a href="http://email-test.com">http://email-test.com</a></font></p>
<p>&nbsp;</p>
<h3><a name="dns_failure" id="dns_failure"></a> I am getting a DNS lookup failure, 
  what can I do?</h3>
<p>You need to check that you have the port open for SurgeMail to the DNS. </p>
<p>Port 53 TCP and UDP</p>
<p>You can test the DNS is working and SurgeMail has access to it by going to 
  the shell or command prompt and typing</p>
<p>nslookup<br>
  server= &lt;ip of DNS&gt;<br>
  set type=MX<br>
  netwinsite.com</p>
<p>Don't type the angle brackets :). </p>
<p>You should then get a response back looking like this:<br>
  netwinsite.com MX preference = 10, mail exchanger = mail.netwinsite.com</p>
<p><br>
  You can then type exit to exit the nslookup program. </p>
<p>Once you have tested that it works you can make sure SurgeMail is using this 
  DNS.<br>
  Login to the SurgeMail webadmin and in the setting search box type<br>
  g_dns_host<br>
  then edit that setting and put the ip of your DNS in there.<br>
  Then click save, then completely stop surgemail and restart it.<br>
  <br>
  You should now be able to send emails without dns problems, there will be times 
  when you will get some dns lookup failures of course.</p>
<p>&nbsp;</p>
<h3><a name="Apache_IIS"></a>I am running Apache/IIS hosting a website, Can I 
  run SurgeMail with webmail on the same machine?</h3>
<p><font face="Arial, Helvetica, sans-serif">Yes you can!, there are several ways 
  in fact.</font></p>
<ol>
  <li><font face="Arial, Helvetica, sans-serif"> If you have a spare ip on the 
    machine you can make webmail bind to that IP only and then configure Apache/IIS 
    to only bind to the other IP. This means you can have webmail running on port 
    80 (normal web port) and it won't interfere with Apache/IIS.</font></li>
  <li><font face="Arial, Helvetica, sans-serif">You can setup webmail so it runs 
    directly under Apache or IIS, you will need to download webmail separately 
    from netwinsite and run the webmail installer and then turn off the webmail 
    port in surgemail as you won't be using that. You would then setup a virtual 
    domain in apache or IIS for the webmail. </font></li>
  <li>You can setup a virtual domain in IIS/Apache and then redirect requests 
    to that domain to port 7080 where SurgeMail's web server will then take care 
    of things, this is operating Apache in a proxy mode but with IIS you are just 
    redirecting the browser, unfortunately IIS as far as I know does not support 
    proxy. This is the easiest thing to do and best thing to do if you don't have 
    a spare IP.</li>
</ol>
<p>If anyone knows of a free proxy support module for IIS let us know. There is 
  one that could be tried <a href="http://www.isapirewrite.com/">http://www.isapirewrite.com/</a> 
  but this is commercial, however they do have a trial period I believe. </p>
<p>Options 1 &amp; 3 are the recommended ones and easiest. </p>
<p>Here is exactly how you would do option 3</p>
<h5>Apache:</h5>
<p>In this example we will use the domain &quot;test.com&quot; test.com is already 
  running a website and we want to add a subdomain webmail.test.com which will 
  go directly to webmail.</p>
<p>So you will need to edit httpd.conf which is found commonly in /etc/httpd/conf</p>
<p>If you skip to the end you will find the virtual domain setup, basically you 
  would have something like this </p>
<p>NameVirtualHost *:80</p>
<p>&lt;VirtualHost *:80&gt;<br>
  ServerName www.test.com<br>
  DocumentRoot /var/www/html<br>
  &lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost *:80&gt;<br>
  ServerName webmail.test.com<br>
  ProxyPass / http://127.0.0.1:7080/<br>
  ProxyPassreverse / http://127.0.0.1:7080/<br>
  &lt;/VirtualHost&gt;</p>
<p>That's it, the first virtualhost block is your default domain and should match 
  your DocumentRoot setting in httpd.conf.<br>
  The second block is where we setup webmail.test.com and then use the proxy module 
  commands to forward requests to that domain onto the SurgeMail webserver which 
  by default listens on port 7080 </p>
<p>You can find full documentation on virtual domains for Apache here. <a href="http://httpd.apache.org/docs-2.0/vhosts/">http://httpd.apache.org/docs-2.0/vhosts/</a> 
</p>
<h5>IIS 5/6</h5>
<p>This is very easy to do.</p>
<ol>
  <li> Load up the IIS Manager. </li>
  <li>Right click on &quot;websites&quot; then click select New then select website 
    which should open the wizard</li>
  <li>Enter a description (webmail for test.com)</li>
  <li>The next screen it asks for the ip and the port, just leave these as they 
    are as we are using named based virtual domains, so in the &quot;Host Header&quot; 
    box type &quot;webmail.test.com&quot; (without the quotes. and click next.</li>
  <li>It then asks for the path for this virtual domain, just make a directory 
    in your document directory for this domain (like... c:\inetpub\www\webmail) 
    and then select that and then next</li>
  <li>Just give it read permissions</li>
  <li>After you click next it should finish the wizard, now we need to tell it 
    to redirect everything to port 7080 for this domain</li>
  <li>Right click on webmail in the list and then click properties</li>
  <li>Click on the home directory tab</li>
  <li>Select &quot;a redirection to url&quot; and then enter http://webmail.test.com:7080 
    and then click ok</li>
</ol>
<p>Now when you browse to http://webmail.test.com you should go direct to the 
  webmail pages<br>
  If you have any problems please email us at surgemail-support@netwinsite.com</p>
<p>&nbsp;</p>
<h3><a name="rename_domain"></a>How do I rename a domain?</h3>
<p>This is a little bit tricky currently, we will look at making this a lot easier 
  in future versions.</p>
<p>First you should stop SurgeMail.</p>
<p>Then edit surgemail.ini find the domain (in this example test.com) </p>
<p>vdomain address=&quot;&quot; name=&quot;test.com&quot;<br>
  mailbox_path &quot;C:\surgemail\mbox\test.com\&quot; </p>
<p>You need to change these two settings to the new domain (test2.com) </p>
<p>vdomain address=&quot;&quot; name=&quot;test2.com&quot;<br>
  mailbox_path &quot;C:\surgemail\mbox\test2.com\&quot; </p>
<p>You then need to copy/move the old mail directory to the new location. <br>
  C:\surgemail\mbox\test.com\ to C:\surgemail\mbox\test2.com\</p>
<p>You then need to change all the users in the database as these are all stored 
  as user@test.com so you now need to change them to user@test2.com. If you are 
  using nwauth, you can use a text editor to do this, just do a search and replace 
  changing the domain part of the username to the new domain.</p>
<p>Now you have done SurgeMail, then you just need to deal with WebMail.</p>
<p>&nbsp;</p>
<h3><a name="399_error" id="399_error"></a>How can I fix this error 399 TCP Read 
  failed?</h3>
<ol>
  <li> Upgrade surgemail</li>
  <li> Check and remove any virus scanner installed on your mail server</li>
  <li> Check your ip address to see if it's listed in any black listing RBL service</li>
  <li> Try connecting to the destination host from your mail server, and from 
    another<br>
    system to see if it works or not.<br>
    telnet &lt;ip of destination server&gt; 25</li>
</ol>
<h3><span><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><a name="dup" id="399_error"></a></font></span><b>Duplicate 
  messages sending or receiving</b></h3>
<p>There are many situations where duplicate messages can occur. Specifically 
  when one server has sent a message but before the receiving server says 'I've 
  got it' a bunch of tests are performed, if these take too long the connection 
  may timeout. In this situation the sending system will resend, but the receiving 
  system believes it has the message and says &quot;I've got it&quot;. Big delays 
  like this should not occur normally with surgemail so would be a sign of something 
</p>
<p>There are many situations where duplicate messages can occur. Specifically 
  when one server has sent a message but before the receiving server sais 'I've 
  got it' a bunch of tests are performed, if these take too long the connection 
  may timeout. In this situation the sending system will resend, but the receiving 
  system believes it has the message and sais &quot;I've got it&quot;. Big delays 
  like this should not occur normally with surgemail so would be a sign of something 
  wrong.</p>
<p>Also mail clients set to 'leave messages on the server' can get confused in 
  some instances and refetch messages, this also shouldn't happen though. Examine 
  the msg*.rec delivery logs to determine if a duplicate was delivered twice or 
  just 'read' twice by the client. </p>
<p>Here are some general things to check:</p>
<ul>
  <li> 
    <p>Check if you have a virus scanner on your system or client, if so remove 
      it and see if that fixes it, virus scanners regularly break the smtp protocol 
      :-)</p>
  </li>
  <li> 
    <p>If your dns is sluggish surbl may be taking too long: g_surbl name=&quot;multi.surbl.org&quot;<br>
      stamp=&quot;sc.surbl.org,ws.surbl.org,phishing,ob.surbl.org,ab.surbl.org,jp&quot;</p>
  </li>
  <li> 
    <p>Check the following settings which are all potentials for 'delays' which 
      might cause this problem. g_badfrom... g_mx_verify...</p>
  </li>
  <li> 
    <p>Capture the thread in mail.log of an incoming message that takes a long 
      time, then scan down the time stamps to find the 'biggest' gap in time, 
      then you should see the cause. </p>
  </li>
</ul>
<p>Here are some links with things to check and notes on outlook issues:</p>
<ul>
  <li>http://support.microsoft.com/default.aspx?scid=kb;en-us;292249</li>
  <li>http://support.microsoft.com/default.aspx?scid=kb;en-us;317945</li>
  <li>http://www.its.caltech.edu/~halweb/pc/software/outlookxp-duplicate.txt</li>
</ul>
<p>&nbsp;</p>
<h3><font face="Verdana, Arial, Helvetica, sans-serif"><a name="command_prompt"></a>How 
  do I get to the command prompt in Windows? </font></h3>
<font face="Verdana, Arial, Helvetica, sans-serif"> 
<ol>
  <li>Left cick on the start button</li>
  <li>Left click on Program files or All Programs </li>
  <li>Left click on Accessories</li>
  <li>Left click on command prompt </li>
</ol>
<h3><a name="whitelist"></a>How do I whitelist a domain?</h3>
<p>There are several steps involved as there are various whitelists, for RBL's 
  , ASPAM etc. RBL's &amp; ASPAM</p>
<p><a href="global.htm#g_orbs_late">g_orbs_late</a> &quot;true&quot; (allows RBL 
  based exceptions based on rctp and from address)<br>
  <a href="global.htm#g_spf_skip_to">g_spf_skip_to </a>&quot;*@domain&quot; (applies 
  to RBL's and ASPAM) <br>
  <a href="global.htm#g_spf_skip_from">g_spf_skip_from</a> &quot;*@domain&quot; 
  (applies to RBL's and ASPAM) <br>
  <a href="global.htm#g_smite_skip">g_smite_skip</a> &quot;*@domain.com&quot; 
  (applies to smite scoring and thus friends - this is the source domain)<br>
  <a href="global.htm#g_smite_skip_to">g_smite_skip_to</a> &quot;*@domain.com&quot; 
  (applies to smite score &amp; friends - this is the destination domain)</p>
<p><br>
  If you know the IP's of the domain you want to whitelist you can also whitelist 
  based on them.<br>
  <a href="global.htm#g_spf_skip">g_spf_skip</a> &quot;ip&quot; - skips spf checks 
  for emails from this ip<br>
  <a href="global.htm#g_orbs_exception">g_orbs_exception</a> &quot;ip&quot; - 
  skips RBL checks for emails from this ip <br>
  <a href="global.htm#g_mfilter_skip">g_mfilter_skip</a> &quot;ip&quot; - skips 
  mfilter processing for emails from this ip <br>
  <a href="global.htm#g_spam_allow">g_spam_allow</a> &quot;ip&quot; - skips spam 
  throttle limits, ideal for the ip address of a mailing list server.</p>
<p>&nbsp;</p>
<h3><a name="sendmail"></a>Sendmail - My forms can no longer send mail</h3>
<p>SurgeMail replaces the sendmail binary with a sendmail stub, this basically 
  pretends to be sendmail and redirects everything to SurgeMail. Your programs 
  should not have any problems but sometimes there are.</p>
<ul>
  <li> 
    <p>Create a file called sendmail_surge.ini in /etc on *nix or the windows 
      directory on Windows. </p>
  </li>
  <li> 
    <p>in this file add the following settings<br>
      host 127.0.0.1<br>
      debug true</p>
  </li>
</ul>
<p>Then try sending a message with the sendmail binary</p>
<p>/usr/sbin/sendmail -debug <br>
  From: yourusername@yourdomain<br>
  To: user@whateverdomain<br>
  Subject: test</p>
<p>This is a test<br>
  .</p>
<p>You can then view sendmail.debug to check what has happened. If you still have 
  problems please send us the sendmail.debug log and also the output from a <br>
  /usr/sbin/sendmail -version (surgemail-support@netwinsite.com) </p>
<p>&nbsp;</p>
<h3><a name="repeated_messages"></a>Why do some messages appear multiple times 
  in a users inbox?</h3>
<p>There are several ways this can occur. Basically there is a known 'issue' with 
  smtp where a timeout/failure during the 'data' stage after the 'dot' is sent 
  by the sender, can result in the receiving system thinking it's got the message 
  while the sending system thinks it failed to send it so retries.</p>
<p>Usually this occurs due to something slightly odd going on like a virus scanner 
  interposed in the channel which is causing a multi minute delay while it accepts 
  the message from one end but doesn't send it on to the other end.</p>
<p>So, first, you need to identify where the duplication occurred, in the surgemail 
  logs find the message id in question and you will see if it was received multiple 
  times or not.</p>
<p>Then go backwards to the source till you know where the duplication is occurring, 
  then on both systems in question (the sender or mail client and receiving mail 
  server) look for virus scanners and smart spam filters that might have caused 
  an issue. And increase any timeouts you can see, in surgemail the timeouts you 
  can increase are:</p>
<p> G_SEND_TIMEOUT<br>
  G_SMTP_CMD_TIMEOUT<br>
  G_SMTP_DATA_TIMEOUT</p>
<p>Now, the one most likely to help is the data timeout, but, it's a new one, 
  you may need a special build to get that setting, let me know platform and we'll 
  send a new build you can try which has that setting. With this type of fault 
  I would set it up to about 20 minutes to see if it <br>
  fixes it, e.g.<br>
  g_smtp_data_timeout &quot;1200&quot;</p>
<p>Lastly, some email clients will download messages multiple times by mistake, 
  this is unlikely to be the problem but worth keeping in mind, particularly if 
  the setting to 'leave message on server' is ticked in the mail client. Again 
  the msg*.rec file should make it clear if this is a likely explanation as it 
  will only show one message<br>
  arriving.<br>
</p>
<h3><a name="aol_blocked"></a>AOL have blocked my server, what can I do?</h3>
<p>AOL have some very strict policies regarding how much spam you can send them 
  and your users can easily get your server blocked. The first thing to do is 
  to go to <a href="http://postmaster.aol.com">http://postmaster.aol.com </a>and 
  open a feedback loop, this will let you know exactly how you are getting blacklisted, 
  from there you should be able to kill the problem in SurgeMail. Often it is 
  users that have setup redirection rules from their accounts to their AOL accounts.</p>
<p>You could prevent your users doing this with the following settings. </p>
<p><a href="global.htm#g_forward_illegal">g_forward_illegal</a> to=&quot;*@domain.com,*@domain2.com&quot; 
  apply=&quot;user&quot;</p>
<p>will prevent users configuring forward rules to specified domains.</p>
<p>it will not prevent existing settings from working, if you want to find those 
  try:</p>
<p><a href="tellmail.htm">tellmail find_user</a> domain fwd *@domain.com <br>
  <a href="tellmail.htm#find_user">tellmail find_user</a> domain fwd *@domain2.com</p>
<h3><a name="timeout"></a>SMTP session numbers growing, g_thread_max, g_smtp_max, 
  g_pop_max limits</h3>
<p>This problem has many causes, usually a broken virus scanner, or bad dns_host 
  entry and orbs lookups causing a problem. If you just increase the limit without 
  first understanding why the limit is being hit, you may well make the problem 
  worse and hide the real cause of the problem while generating more obscure problems. 
  So unless you really expect that many sessions for some reason first read through 
  this section and check the relevant status info. </p>
<p>If there are lots of pop/imap sessions then it may be an authent problem or 
  a disk IO problem. </p>
<p>In any case<b> first look at advanced 'status' </b>and examine the state of 
  all the channels and how long they've been idle, if they are all in the same 
  state then it's likely the name of the state will give you a clue as to what 
  it's doing and what is mis configured.</p>
<p>If you are using a virus scanner other than avast, then we recommend you change 
  to avast, the other free or third party scanners cause endless problems, they 
  are fine for 'little' servers but when you are running a real server you should 
  be seriously considering getting avast to avoid the headache's :-)</p>
<p>The other common problem is dns/spf lookups causing a problem to fix add this 
  setting:</p>
<blockquote> 
  <p> <b>g_dns_lookup &quot;true&quot;</b></p>
</blockquote>
<p>This is on by default in 3.7b and later builds.</p>
<p>If you are really getting hit by thousands of concurrent incoming email then 
  first try reducing the timeouts:</p>
<blockquote> 
  <p> G_SMTP_CMD_TIMEOUT &quot;30&quot;<br>
    G_SMTP_DATA_TIMEOUT &quot;62&quot;</p>
</blockquote>
<p>If that still doesn't help increase the limits g_thread_max and g_smtp_max, 
  but not beyond 900 and 800 respectively and start lower (e.g. 500,400</p>
<p>Read the next section 'only' if you've eliminated all issues above.</p>
<h3>Increasing g_smtp_max and g_thread_max safely (too many files open)</h3>
<p>Ok, first, read the above section, there is almost no chance you really need 
  to increase these limits so chances are you need to fix the problems described 
  in the above section, if you increase the limit without fixing the above problems 
  then the problem will continue and it will be a lot harder to figure out the 
  real cause.</p>
<p>To safely increase the limits do the following: </p>
<ul>
  <li>In surgemail_start.sh set <b>ulimit -n 4096</b> (increased from 1024)</li>
  <li>Upgrade to surgemail 3.8c-5 or later</li>
  <li>Set limits, I suggest you still keep below 2000, <b>g_smtp_max &quot;1800&quot; 
    g_thread_max &quot;2000&quot; g_pop_max &quot;1500&quot;</b></li>
</ul>
<h3>&nbsp;</h3>
<h3><a name="nosubmit"></a>NoSubmit errors on incoming email</h3>
This error may not mean a problem exists, it can occur normally when your system 
is probed. However it can also indicate a problem with the data stage. Basically 
it suggests 'something' is breaking the connection when the message body is being 
received. 
<p>Likely culprits are</p>
<p> Virus scanners (on your server, or on your gateway, or on the sending server) 
  - Remove/uninstall these nasty things :-)</p>
<p>On windows it might be an MTU issue, Try &quot;DrTCP&quot; from dslreports 
  (http://www.dslreports.com/drtcp) , decrease the MTU to 1024.</p>
<p>&nbsp;</p>
<h3><a name="movespam"></a>How do I move spam to a spam folder for all users</h3>
<p>Ok, first, don't do this :-), in general this is a bad idea, if you have the 
  surgemail spam settings correctly configured the users won't get spam so this 
  won't be necessary, see <a href="http://netwinsite.com/surgemail/help/spam.htm">http://netwinsite.com/surgemail/help/spam.htm</a></p>
<p>But, there are some situations where this is worth doing, lets say you have 
  an external spam filter tagging the messages, then possibly this might be a 
  good idea. Do it as follows.</p>
<p>In the web admin tool click on accounts, go to the bottom of the page, and 
  then click on the 'filtering' button under 'Default user settings for this domain 
  or global.</p>
<p>Add a rule to move messages into the folder you want if the header/tag exists, 
  note you can add the 'if exists' check box so it will only do it if the user 
  has created the specified folder.</p>
<p>Then you may wish to add an expire rule to expire the contents of this spam 
  folder if it has messages more than 60 days old</p>
<blockquote> 
  <p> (for each domain add)</p>
  <blockquote> 
    <p> expire_rule folder=&quot;Spam&quot; age=60</p>
  </blockquote>
</blockquote>
<h3><a name="secondary_server"></a>How do I setup SurgeMail to be a backup server 
  for a domain?</h3>
<p>Let us use &quot;mydomain.xx&quot; as the example domain. You want to setup 
  SurgeMail so that if the primary server that is hosting mydomain.xx goes down 
  SurgeMail will accept mail for that domain and hold it until the primary server 
  goes back online and then SurgeMail will deliver the mail to that server.</p>
<p>You need to make sure that you have a lower priority MX record for the domain 
  pointing at your server to start with so that mail will be delivered to SurgeMail 
  when the primary server is down. Then you just need to configure SurgeMail which 
  is very easy. </p>
<p>You only need one setting.</p>
<p><a href="global.htm#g_gateway">g_gateway </a>domain="mydomain.xx" to="ip of 
  primary server"</p>
<p>The important thing is that you must NOT setup the domain on SurgeMail as otherwise 
  SurgeMail will think that the domain is hosted locally and try and deliver the 
  messages locally and they will of course fail as the users won't exist.</p>
<p>You can control the time period SurgeMail will hold these messages for the 
  primary server before bouncing them with the<br>
  <a href="global.htm#g_retry_rule">g_retry_rule</a> setting, by default it will 
  use the <a href="global.htm#g_retry_limit">g_retry_limit</a> setting which has 
  a default of 48 hours, so SurgeMail will continue trying to send the messages 
  to the the primary domain for 48 hours and then will bounce them. </p>
<h3><a name="process_order"></a>In what order do the various parts of SurgeMail 
  run? ( g_virus_cmd, g_virus_filter etc etc) </h3>
<p>Here is a short list of some of the functions in SurgeMail listed in the order 
  they are run. g_virus_cmd is run first. </p>
<p> g_virus_cmd<br>
  g_filter_pipe<br>
  aspam<br>
  mfilter<br>
  g_scan_cmd<br>
</p>
<h3><a name="pfx"></a>To convert a PFX file to a PEM file, follow these steps 
  on a Windows machine:</h3>
<p>1. Download and install the Win32 OpenSSL package from http://gnuwin32.sourceforge.net/packages/openssl.htm.</p>
<p>2. Create a folder c:\certs and copy the file yourcert.pfx into the c:\certs 
  folder</p>
<p>3. Open a command prompt and change into the GnuWin32\bin directory: </p>
<p>cd %ProgramFiles%\GnuWin32\bin</p>
<p><br>
  4. Type the following command to convert the PFX file to an unencrypted PEM 
  file (all on one line):</p>
<p>openssl pkcs12 -in c:\certs\yourcert.pfx -out c:\certs\cag.pem -nodes</p>
<p><br>
  5. When prompted for the import password, enter the password you used when exporting 
  the certificate to a PFX file. You should receive a message that says MAC verified 
  OK.<br>
</p>
<p>Copy the resulting file to the surgemail certificate file surge_priv.pem</p>
<h3><a name="64"></a>SurgeMail crashes on 64bit linux every minute - libgcc_s.so.1 
  must be installed for pthread_cancel to work<br>
</h3>
<p>Install the 32bit GCC RPM then 32 bit binaries will run on your 64bit installation. 
</p>
<p>&nbsp;</p>
<h3>Setting up ATRN service for a client<a name="atrn"></a></h3>
<p><br>
  Define the mx record for 'example.com' to point to your mail server.</p>
<p>In surgemail.ini define:<br>
  <br>
  g_atrn_port 366<br>
  g_atrn_server domain=&quot;example.com&quot; user=&quot;fred&quot; pass=&quot;secret&quot;<br>
  g_relay_to &quot;example.com&quot; (so that surgemail will store mail for that 
  domain)<br>
  g_retry_rule domain=&quot;example.com&quot; hours=&quot;200&quot; (keep messages 
  for several days)</p>
<p>And open port 366 on your firewall if necessary and restart surgemail.</p>
<p>Then the client who's domain is 'example.com' should configure his server to 
  use atrn username &quot;fred&quot; password &quot;secret&quot; to fetch pending 
  email on your server. </p>
<h3><a name="local_accounts_compromised"></a>How can I stop local accounts being 
  compromised and used for spamming? </h3>
<p>Limits to prevent guessing passwords and abusing a local account to send spam:</p>
<p>g_recent_bypass &quot;127.0.0.1&quot; # bypass limits per ip address<br>
  g_bad_login_ip_ignore &quot;127.0.0.1&quot; # bypass limits for bad logins<br>
  G_BAD_LOGIN_ALLOW &quot;10&quot; # Number of bad logins before blocking user 
  <br>
  G_BAD_LOGIN_IP_ALLOW # number of bad logins before blocking that ip address</p>
<p># limit users from sending out bulk email...<br>
  g_user_send_max max=&quot;2000&quot;<br>
  g_user_send_warning &quot;500&quot;<br>
  G_USER_SEND_IP &quot;true&quot;<br>
  G_USER_SEND_WHITE &quot;127.0.0.1,other known mailling list servers&quot;<br>
</p>
<p>You can also check for weak passwords used by your users with the following 
  command (run in the shell or command prompt) </p>
<p> tellmail test_weak<br>
  to find the worst accounts/passwords.</p>
<h3><a name="restrict_accounts"></a>How do I restrict who a group of users can 
  email? </h3>
<p>In certain situations you may want to limit certain groups of users to not 
  be able to send / receive mail directly from the internet.<br>
  eg in schools or in company environments</p>
<p>This can be done using g_access_group with an appropriate g_user_send_rule 
  and g_user_receive_rule.<br>
  eg. accounts in the &quot;local&quot; group can only send to / receive from 
  other mydomain.com accounts:</p>
<p>g_access_group group=&quot;local&quot; access_pop=&quot;*&quot; access_imap=&quot;*&quot; 
  access_smtp=&quot;*&quot; access_incoming=&quot;*&quot;<br>
  g_user_receive_rule group=&quot;local&quot; from=&quot;*@mydomain.com&quot;<br>
  g_user_send_rule group=&quot;local&quot; to=&quot;*@mydomain.com&quot;</p>
<h3><a name="bounces"></a>Bounce blacklisting due to responders friends etc ironport 
  filtering or spamcop</h3>
<p>Some RBL systems (like spamcop) blacklist servers for sending bounces. One 
  could argue if this was valid or not, but they do it, and so we must cope with 
  it</p>
<p> In general surgemail doesn't send many bounces compared to most servers but 
  if you find your are being blacklisted due to this issue then consider using 
  these settings:</p>
<p>1) Turn on the default recommended spam settings using the 'config' checker 
  in the web admin tool</p>
<p>2) Set </p>
<pre>	 <font face="Courier New, Courier, mono">g_spam_block &quot;true&quot;</font></pre>
<p>3) If you have a front end mail server, or low priority mx hosts, then remove 
  them, so mail goes directly to surgemail if possible.</p>
<p>4) If problems still persist then set</p>
<pre>	 <font face="Courier New, Courier, mono">g_friends_check_spf &quot;true&quot;</font></pre>
<pre><font face="Courier New, Courier, mono">	 g_responder_safer &quot;true&quot;</font></pre>
<p>5) If problems still persist, panic :-)</p>
<p>&nbsp;</p>
</font> 
<h3><font face="Verdana, Arial, Helvetica, sans-serif">554 Failure tcp_read_dot<a name="tcp_read"></a></font></h3>
<p>&nbsp;</p>
<!-- #EndEditable --> 
<p><font face="Verdana, Arial, Helvetica, sans-serif">These errors indicate a 
  fault external to surgemail, usually virus/spam scanner <br>
  on the sending users pc is the problem. But let us know if you can't find the 
  <br>
  fault. Other potential causes include faulty network cards or random network 
  failures. Or a corrupt email message and faulty sending email server.</font></p>
<p>&nbsp;</p>
<p><font face="Verdana, Arial, Helvetica, sans-serif">You can identify more about 
  the problem by testing as follows:</font></p>
<p>&nbsp;</p>
<ul>
  <li><font face="Verdana, Arial, Helvetica, sans-serif">Get the problem sender 
    to send with a different email client, and to send different sized messages 
    with different contents.</font></li>
  <li><font face="Verdana, Arial, Helvetica, sans-serif">Get the problem sender 
    to send the identical message/attachment via another email service (e.g. gmail)</font></li>
  <li><font face="Verdana, Arial, Helvetica, sans-serif">You can turn on extra 
    logging at your end using g_log_tcp_read &quot;their.ip.address&quot;, this 
    will give a detailed log of what your server received before the connection 
    closed. (see tcp.log)</font></li>
</ul>
<h3><font face="Verdana, Arial, Helvetica, sans-serif">554 Failure tcp_read_dot<a name="tcp_read"></a></font><a name="nodata"></a></h3>
<p>This message means surgmeail never got a 'data' command from the sending server. 
  So the sending server never actually tried to send an email message, this is 
  most common if all the recipients are rejected, or if a virus or spam filter 
  at the sending users pc rejects the message before it can be sent. It also happens 
  when the sending mail server/client is just trying to find out if the recipient 
  is valid.</p>
<p>It has been seen once with &quot;Symantec AntiVirus 10.0.0.359 running the 
  Internet E-mail Auto Protect. Disable the feature.&quot;<br>
  <font face="Verdana, Arial, Helvetica, sans-serif"> 
  <!-- CONTENT END -->
  <!--#include virtual="ssi/column_end.ssi" -->
  <!--#include virtual="ssi/columns_end.ssi" -->
  <!--#include virtual="ssi/page_end.ssi" -->
  </font> </p>
</body>
</html>

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

