<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Start of log.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 log.htm -->

<!-- #BeginEditable "Headerstuff"-->
<title>Log Searching</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 log.htm -->

<div class="content_outer">


<!-- Back to log.htm -->
<div class="L2C2_column_left">
<!-- Back to log.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 log.htm -->
</div>

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

<div class="L2C2_column_content">
<!-- Back to log.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','Log Searching'],3); </script>
  <script language="JavaScript"> index_select('idx_log.htm'); </script>

  <h1>Searching the log Files</h1>

  <p><font face="Arial, Helvetica, sans-serif">SurgeMail generates two log files
    of general interest: </font></p>
  <ul>
    <li><font face="Arial, Helvetica, sans-serif">msg.log (surgemail\recYYMM\msgYYMMDD.rec)
      = permanent record of mail received, bounced, delivered, etc</font></li>
    <li><font face="Arial, Helvetica, sans-serif">mail.log (surgemail\mail*.log)
      = temporary record of almost everything that happens inside <font face="Arial, Helvetica, sans-serif">S<font face="Arial, Helvetica, sans-serif">urgeMail</font>
      </font>. These are rotated on restart or when they get too big (typically
      several hours, but if server load is high this may be as small as several
      minutes)</font></li>
  </ul>
  <h2><a NAME="status"></a>Log file searching</h2>
  <p><font face="Arial, Helvetica, sans-serif">With this form you can do some
    quite advanced log file searching and troubleshooting. The search page has
    several ways it can be used:</font></p>
  <ol>
  <li><font face="Arial, Helvetica, sans-serif">The default behaviour is that
    the complete last part of each log is displayed to the size of the &quot;limit
    results to&quot; field. </font></li>
  <li><font face="Arial, Helvetica, sans-serif">You can manually search for specific
    things</font></li>
    <li><font face="Arial, Helvetica, sans-serif">You can drill down from the
      msg.log entries to mail.log entries</font></li>
  <li><font face="Arial, Helvetica, sans-serif">You can use the sample searches
    as supplied at the bottom of the page</font></li>
  <li><font face="Arial, Helvetica, sans-serif">You can click the suggested
    highlighting possibilities at top of displayed log items</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Complete custom searches using
    the advanced page</font></li>
</ol></blockquote>
<blockquote>
  <p><font face="Arial, Helvetica, sans-serif">These are explained in more detail
    below for now let us look at some examples. </font></p>
  <p><font face="Arial, Helvetica, sans-serif">The msg.log entries are formatted
    as: day, time, [queuenumber], action, and a variety of more detailed information</font>
  <pre><font face="Courier New, Courier, mono">eg.
<u>19 14:26:27</u> <u>[2]</u> Received 127.0.0.1 &lt;test1@orion> &lt;test3@lap> 588 &lt;1@test> "In Queue"
19 14:26:27 [2] Stored 127.0.0.1 &lt;test1@orion> &lt;test3@lap> 588 &lt;1@test> "Stored locally"</font></pre>
  <p><font face="Arial, Helvetica, sans-serif">The mail.log entries are formatted
    as: day, time, log entry type, thread number, variety of more detailed information</font>
  </p>
  <pre><font face="Courier New, Courier, mono">eg.
<u>08 12:25:29.06</u>:<u>Info:2120:</u> SurgeSMTP 1.5d, User connected (210.86.15.138) (10.0.0.5)<br>08 12:25:29.07:Info:2120: smtp:[210.86.15.138] In: HELO mta5-rme.xtra.co.nz</font></pre>
  <p><font face="Arial, Helvetica, sans-serif">By clicking on the thread id or
    date fields you can drill down to get more specific information related to
    a particular message or thread. By clicking on the day/time fields you are
    zooming out to get a display of all things happening at this time.</font></p>

  <h3><a name="status"></a>Using the search page</h3>
  <p><font face="Arial, Helvetica, sans-serif">Searches consist of text to search
    &quot;for&quot;, particular text to be &quot;highlighted&quot; and text to
    be &quot;excluded&quot;. These are all comma separated lists of wildcard search
    terms that get combined.</font></p>
  <p>eg to search for anything related to &quot;fred@mydomain.com&quot; OR &quot;joe@mydomain.com&quot;
    but NOT&quot;alfred@mydomain.com&quot; with joe's stuff highlighted you could
    use:</p>
  <p>
  <pre>
  Search for: &quot;userfred@mydomain.com,userjoe@mydomain.com&quot;
  highlight: &quot;userfred@*&quot;
  exclude: &quot;alfred@mydomain.com&quot;
</pre>
  <p><font face="Arial, Helvetica, sans-serif">So for multiple entries using comma
    separated search terms::</font></p>
  <pre>- &quot;Search for:A,B&quot; means: A or B<br>- &quot;Limit to:A,B&quot; means: A and B<br>- &quot;Search for:A,B&quot; + &quot;Limit to:C,D&quot; means: (A or B) and (C and D)<br>- &quot;Search for:A,B&quot; + &quot;Limit to:C,D&quot; + &quot;Exclude:E,F&quot; means: (A or B) and (C and D) and NOT (E or F)</pre>
  <p><font face="Arial, Helvetica, sans-serif">In addition the search can be limited
    to a certain amount of output and log text in certain files. (See right hand
    side of the search page) You would typically just limit to a certain amount
    of output from the last one log file. But it is also useful to select a small
    amount of output from multiple log files and to actually limit the output
    by searched for text. </font></p>
  <p><font face="Arial, Helvetica, sans-serif">eg: to limit search for anything
    related to thread with id &quot;12345&quot; AND &quot;over a timerange between
    12:45 and 12:49 on the 15th of the month&quot; in any of the mail.log files
    the following limits could be used:</font></p>
  <pre>
  Limit results to : 1000K of each All files
  and limit to: &quot;:12345:,15 12:4[5-9]&quot;
</pre>
  <p><font face="Arial, Helvetica, sans-serif">Wildcards that may be used are
    *, ? and []. <br>( eg: the following would all match &quot;text&quot; or &quot;test&quot;
    : &quot;te?t&quot; , &quot;t*t&quot; , &quot;te[sx]t&quot; , &quot;te[a-z]t&quot;
    ).
  <p>
    To search for wildcarded characters these need to be escaped with a forward
    slash.<br> eg: to search for &quot;] imap&quot; you would use &quot;\] imap&quot;</font></p>
  <p><font face="Arial, Helvetica, sans-serif">Also the highlight field has special
    formatting that allows you to specify any arbitrary valid HTML colour in curly
    brackets. If none is specified each highlighted term will be given a separate
    colour. </font></p>

  <h3><a name="format"></a>Further searching tips</h3>
  <p><font face="Arial, Helvetica, sans-serif">The links at the bottom of the
    page are fully specified searches. Just click the link (after filling out
    any optional required information fields). After having the relevant log file
    lines you can get further information by clicking the message ID or thread
    ID several times. In the msg.log the first click will highlight entries, the
    second click will limit to these entries, the third click will attempt to
    display mail.log related to this message. In mail.log the first click will
    highlight entries related to this thread, the second click will limit to these
    entries and the third click will just center the search window on the item
    in question.</font></p>
  <p><font face="Arial, Helvetica, sans-serif">The highlight fields at the to
    of the the log file output are defendant on what you are currently doing and
    will display some information that would be sensible to highlight based upon
    the log file you are currently searching.</font></p>

  <h2>Tracking a message</h2>
  <p><font face="Arial, Helvetica, sans-serif">To track a particular message start
    with the link at the bottom of the page and drill down the queried links as
    much as you can.</font></p>
  <p><font face="Arial, Helvetica, sans-serif">eg Delivered and redirected to
    two local addresses </font></p>
  <font >
  <pre>26 12:20:35 [1] Received 203.167.148.167 &lt;fred@xxx&gt; &lt;user1@yyy&gt; 366 <102@marijn> "In Queue"
26 12:20:35 [1] Stored 203.167.148.167 &lt;fred@xxx&gt; &lt;redirect2@yyy&gt; 366 <102@marijn> "Stored locally"
26 12:20:35 [1] Stored 203.167.148.167 &lt;fred@xxx&gt; &lt;redirect1@yyy&gt; 366 <102@marijn> "Stored locally"
</pre>
  </font>
  <p><font face="Arial, Helvetica, sans-serif">eg. Delivered and retrieved via
    pop</font></p>
  <font>
  <pre>26 12:46:38 [2] Received 203.167.148.167 &lt;fred@xxx&gt; &lt;user1@yyy&gt; 366 <103@marijn> "In Queue"
26 12:46:38 [2] Stored 203.167.148.167 &lt;fred@xxx&gt; &lt;user1@yyy&gt; 366 <103@marijn> "Stored locally"
26 12:47:29 [0] pop 127.0.0.1 "Fred" &lt;fred@xxx&gt; user1 394 <103@marijn> "103.marijn"</pre>
  </font>

  <h2><a name="format"></a>Format of msg.log</h2>
  <p><font face="Arial, Helvetica, sans-serif">The msg.log files can be used to
    determine whether a particular message has been received and if it has been
    received what has happened to it. A new file is created on a daily basis named
    &quot;msg&lt;year&gt;&lt;month&gt;&lt;day&gt;.rec&quot;. This log is a permanent
    record and is not rotated.</font> </p>
  <h3>There are the following types of entries:</h3>
  <ul>
    <li><font face="Arial, Helvetica, sans-serif"> Received - Message has been
      received via SMTP and queued for local or remote delivery </font> </li>
    <li><font face="Arial, Helvetica, sans-serif">Stored - Message has been delivered
      to local account </font></li>
    <li><font face="Arial, Helvetica, sans-serif">Sent - Message has been delivered
      to remote account </font> </li>
    <li><font face="Arial, Helvetica, sans-serif">Later - Message delivery failed,
      will try again later</font> </li>
    <li><font face="Arial, Helvetica, sans-serif">pop - Message has been retrieved
      using POP3 </font> </li>
    <li><font face="Arial, Helvetica, sans-serif">del - Message has been deleted
      using POP3 or IMAP</font></li>
  </ul>
  <p><font face="Arial, Helvetica, sans-serif">There are also the following entries
    </font></p>
  <ul>
    <li><font face="Arial, Helvetica, sans-serif">New - Single line logged per
      recipient (requires g_log_rcpt)</font></li>
    <li><font face="Arial, Helvetica, sans-serif">Fwd - Redirection has been applied(requires
      g_log_fwd)</font></li>
    <li><font face="Arial, Helvetica, sans-serif">Rejected - Message has been
      received via SMTP and rejected (with reason) </font> </li>
    <li><font face="Arial, Helvetica, sans-serif">Tarpitted - Message has been
      tarpitted and rejected</font></li>
    <li><font face="Arial, Helvetica, sans-serif">NoSubmit - Message was never
      submitted (<a href="#nosubmit">with reason</a>) </font></li>
  </ul>
  <h3>Log entry format:</h3>
  <p><font face="Arial, Helvetica, sans-serif">Entries for Received, Stored, Sent,
    Later have the same syntax:</font> </p>
  <pre>
<font >"date & time" "queue id" Received "from ip" "from address" "dest address" "size" "id" "status"

"date & time" "queue id" tarpited "from ip" "from address" "dest address" 0 "status message"
"date & time" 0 pop "client ip" "from address" "pop login" "size" "xmailer id" "filename"
"date & time" 0 del "." "." "login" 0 "." "filename"
</font></pre>

  <h2>Format of mail.log</h2>
  <p><font face="Arial, Helvetica, sans-serif">The mail.log - mail6.log contain
    information logged from within SurgeMail to record what is happening. There
    are three levels that are recorded error / information / debug. The information
    logging level can be set using the g_log_level setting. </font></p>
  <p><font face="Arial, Helvetica, sans-serif">This is the logfile NetWin support
    staff will probably request if you have any problems that need investigation.</font></p>
  <p>&nbsp;</p>
  <h4><font face="Arial, Helvetica, sans-serif" color="336699">Additional log
    files</font></h4>
  <ul>
    <li><font face="Arial, Helvetica, sans-serif">surgemail\startstop.log = Record
      of SurgeMail startup and shutdown</font></li>
    <li><font face="Arial, Helvetica, sans-serif">webmail*.log (surgemail\scripts\webmail*.log)
      = Similar to mail*.log but for WebMail and must be explicitly enabled in
      wemail.ini </font> </li>
    <li><font face="Arial, Helvetica, sans-serif">surgemail\install.log = Logfile
      of what is done during installation</font></li>
    <li><font face="Arial, Helvetica, sans-serif">surgemail\mon.log = Logfile
      of surgemail monitor (swatch.exe) activity</font></li>
    <li><font face="Arial, Helvetica, sans-serif">surgemail\wweb.log = SurgeMail
      web serving activity</font></li>
    <li><font face="Arial, Helvetica, sans-serif">surgemail\trace.log, mutex.log
      = Debug logs useful if <font face="Arial, Helvetica, sans-serif">S<font face="Arial, Helvetica, sans-serif">urgeMail</font>
      </font> dies<br>
      unexpectedly&nbsp;</font></li>
  </ul>
  <h2>Particular questions</h2>
  <h3><a name="nosubmit"></a>What does NoSubmit mean?</h3>
  <p><font face="Arial, Helvetica, sans-serif">The &quot;NoSubmit&quot; log entry
    means that the message was never submitted. This could be for a variety of
    reasons such as an network problems, broken sending mailer, or surgemail filtering
    options.</font></p>
  <p>24 01:07:39 [132061] NoSubmit 24.61.98.153 &lt;support@domain.com&gt; &lt;evan@mydomain.net&gt;
    219 &quot;<b>tcp_read_dot</b>&quot;<br>
    <br>
    <blockquote>It means the sending system sent<br>
    mail from:&lt;yyy&gt;<br>
    rcpt to:&lt;xxx&gt;<br>
    data<br>
    (closed connection)</blockquote>
  <p><font face="Arial, Helvetica, sans-serif">In this case no 'message' was sent
    after the data command, this can occur if you have enabled g_badfrom_* checking
    because some systems take 20 seconds to respond to the from check and then
    their own sending stage timesout. You can add known domains that have this
    problem to the g_badfrom_whitelist.</font><br>
    eg. g_badfrom_whitelist &quot;*slow.domain,*other.domain&quot;</p>
  <p>24 01:07:39 [132061] NoSubmit 24.61.98.153 &lt;support@domain.com&gt; &lt;evan@mydomain.net&gt;
    219 &quot;<b>No DATA command sent</b>&quot;<br>
  </p>
  <blockquote>It means the sending system sent<br>
    mail from:&lt;yyy&gt;<br>
    rcpt to:&lt;xxx&gt;<br>
    (closed connection)</blockquote>
  <p><font face="Arial, Helvetica, sans-serif">In this case no the connection
    was closed before the data command. This is likely to be the result of a g_badfrom
    check on on an outgoing email by a system running surgemail with the g_bad_from
    check enabled. This is not a problem (NoSubmits was just not being logged
    previously).</font><br>
  </p>

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

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

<!-- Back to log.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>
		<br>
		<a href="/surgemail/" class="footer_link">Windows Mail Server Software</a><span class="style2"> |  </span> 
		<a href="/webmail/" class="footer_link">Linux Webmail</a><span class="style2"> | </span> 
		<a href="/surgemail/free_mail_server.htm" class="footer_link">Free Windows Mail Server</a>

        <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; 2011 Netwin Ltd. All rights reserved.
		  </td>
        </tr>
      </table>
	</td>
  </tr>
</table>
</div>
</div>

<br><br>
</body>

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

</body>
</html>

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

