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

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

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

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


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

<!-- #BeginEditable "Headerstuff"-->
<title>The tellmail command line utility.</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 tellmail.htm -->

<div class="content_outer">


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

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

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

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

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

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

<div class="L2C2_column_content">
<!-- Back to tellmail.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','Tellmail'],3); </script>
  <script language="JavaScript"> index_select('idx_tellmail.htm'); </script>
  <h1>The tellmail command line utilty</h1>

  <p><font face="Arial, Helvetica, sans-serif">tellmail is a command line utility
    that allows you to perform some administrative tasks with SurgeMail such as
    adding users and domains to locating a users mailbox. To use tellmail you
    just need to type tellmail at the shell or command prompt. On Windows you
    can get to the command prompt by going left clicking on the start button,
    then program files, then accessories then command prompt.</font></p>
  <p><font face="Arial, Helvetica, sans-serif">Example:<br>
    C:\&gt;tellmail &lt;command&gt; </font></p>
  <p><font face="Arial, Helvetica, sans-serif"> All commands are preceeded by
    typing tellmail</font></p>
  <h3>General tellmail commands </h3>
  <p><a href="#help">help</a><br>
    <a href="#status">status</a><br>
    <a href="#reload">reload</a><br>
  <a href="#shutdown">shutdown</a><br>
  <a href="#queue">queue</a></p>
  <h3>Misc. tellmail commands </h3>
  <p><a href="#aspam_retrain">aspam_retrain</a><br>
      <a href="#g_relay_allow_ip">g_relay_allow_ip</a><br>
    <a href="#suspend">suspend</a><br>
    <a href="#resume">resume</a><br>
	<a href="#surgeplus">surgeplus</a><br>
  <a href="#surgehost_update">surgehost_update</a></p>
  <h3>User commands</h3>
  <p><a href="#path">path</a> &lt;user@domain&gt;<br>
    <a href="#add_user">add_user</a> &lt;user@domain&gt;<br>
    <a href="#delete_user">delete_user </a>&lt;user@domain&gt;<br>
    <a href="#change_pass">change_pass</a> &lt;user@domain&gt; &lt;password&gt;
    <br>
    <a href="#add_user_alias">add_user_alias</a> &lt;user&gt; &lt;alias&gt;<br>
    <a href="#delete_user_alias">delete_user_alias</a> &lt;user&gt; &lt;alias&gt;<br>
    <a href="#add_domain">add_domain </a>&lt;domain&gt;<br>
    <a href="#delete_domain">delete_domain</a> &lt;domain&gt;<br>
    <a href="#clear_cache">clear_cache</a> [user@domain]<br>
    <br>
    <a href="#logout">logout</a> &lt;user@domain&gt;<br>
    <a href="#showlocks">showlocks </a><br>
    <a href="#expire">expire</a><br>
    <a href="#expire_status">expire_status</a><br>
    <a href="#expire_user">expire_user</a> &lt;user@domain&gt; &lt;days&gt; &lt;bytes&gt;<br>
    <a href="#set_authfield">set_authfield</a> fieldname file.txt [apply]<br>
    <a href="#find_user">find_user</a> &lt;domain&gt; &lt;field_name&gt; &lt;field_value&gt;<br>
    <a href="#user_send_max">user_send_max</a> &lt;user@domain&gt;<br>
    <a href="#add_member">add_member</a> &lt;list&gt; &lt;user@domain&gt; <br>
    <a href="#add_rules">add_rules</a> &lt;file&gt;
    <br>
    <a href="#rescan_aliases_file">rescan_aliases_file</a><br>
  <a href="#rescan_aliases">rescan_aliases</a><br>
  <a href="#list_rcpt">list_rcpt</a> &lt;domain&gt; [type]
  <p><br>
  <p>Quota Commands
  <p><a href="#quota">quota </a>&lt;user@domain&gt;
      - Displays the users quota <br>
  quota_rebuild &lt;user@domain&gt; - Rebuilds user's quota. <br>
  quota_domain &lt;domain&gt; - Displays how much data the domain is currently using. <br>
      quota_rebuild_domain &lt;domain&gt; - Rebuilds the quota usage for this domain <br>
      quota_set_domain &lt;domain&gt; &lt;size&gt; - Sets the quota for the specified domain <br>
      quota_resetall - Rebuilds all quotas for all users. <br>
      quota_set
  &lt;user@domain&gt; &lt;amount&gt; - sets the users quota.
    <h3>Migration commands</h3>
  <p><a href="#imap_import">imap_import</a> &lt;localuser@localdomain&gt; &lt;oldimaphost&gt; &lt;olduser&gt; &lt;oldpass&gt; &lt;delete|keep&gt; &lt;create|nocreate&gt;
  <h3>License commands</h3>
  <p><a href="#activate">activate</a>&lt;registration&gt; [email address]<br>
    <a href="#deactivate">deactivate</a>&lt;registration&gt; [email address] </p>
  <h3>Mirroring </h3>
  <p><a href="#resync_config">resync_config</a><br>
    <a href="#resync_fast">resync_fast</a><br>
    <a href="#resync_nwauth">resync_nwauth</a></p>
  <h3><a name="help"></a>help </h3>
  <p> <font face="Arial, Helvetica, sans-serif">Lists the commands you case use
    and a brief description </font></p>
  <h3><a name="status"></a>status</h3>
  <font face="Arial, Helvetica, sans-serif">This gives you a ton of information
  on the server. </font>
  <h3><a name="reload"></a>reload</h3>
  <p> <font face="Arial, Helvetica, sans-serif">This allows you reload SurgeMail
    without having to stop and restart it which means it won't interrupt users
    that are currently online. Great if you have edited surgemail.ini manually
    and need to activate your changes without disrupting service.</font></p>
  <h3><a name="shutdown"></a>shutdown</h3>
  <p> <font face="Arial, Helvetica, sans-serif">This simply tells SurgeMail to
    shutdown.</font></p>
  <h3><a name="queue"></a>queue</h3>
  <p>This displays the current delivery queue. </p>
  <h3><a name="path"></a>path &lt;user@domain&gt; </h3>
  <p><font face="Arial, Helvetica, sans-serif">This allows you to find where a
    users mailbox is stored on the disk.<br>
    example: </font></p>
  <p><font face="Arial, Helvetica, sans-serif">C:\&gt;tellmail path stu@catch.netwin.co.nz<br>
    C:\surgemail\mbox\catch.netwin.co.nz\xc\lg\stu\</font></p>
  <h3><a name="add_user"></a>add_user &lt;user@domain&gt;</h3>
  <p> <font face="Arial, Helvetica, sans-serif">This allows you to add users easily
    to SurgeMail.</font></p>
  <h3><a name="delete_user"></a>delete_user &lt;user@domain&gt;</h3>
  <p> <font face="Arial, Helvetica, sans-serif">This allows you to delete users
    from SurgeMail. The deletion process is as follows.</font></p>
  <ul>
    <li><font face="Arial, Helvetica, sans-serif">Deletes user from authentication
      database</font></li>
    <li><font face="Arial, Helvetica, sans-serif">Removes cache entry</font></li>
    <li><font face="Arial, Helvetica, sans-serif">Decreases registration count</font></li>
    <li><font face="Arial, Helvetica, sans-serif">Decreases user count for domain</font></li>
    <li><font face="Arial, Helvetica, sans-serif">Removes WebMail files (tells
      webmail to)</font></li>
    <li><font face="Arial, Helvetica, sans-serif">Removes SurgeMail files (users
      mail)</font></li>
    <li><font face="Arial, Helvetica, sans-serif">Removes aliases</font></li>
    <li><font face="Arial, Helvetica, sans-serif">Removes mailing list subscriptions</font></li>
    <li><font face="Arial, Helvetica, sans-serif">R</font><font face="Arial, Helvetica, sans-serif">ecords
      them in users_YYYYMMDD.rec </font></li>
  </ul>
  <h3><a name="change_pass"></a>change_pass &lt;user@domain&gt; &lt;pass&gt;</h3>
  <p> <font face="Arial, Helvetica, sans-serif">This allows you to change users
    passwords easily.</font></p>
  <h3></h3>
  <h3><a name="add_user_alias"></a>add_user_alias &lt;user&gt; &lt;alias&gt; </h3>
  <font face="Arial, Helvetica, sans-serif">This allows you to add aliases
  for users. </font>
  <h3><a name="delete_user_alias"></a>delete_user_alias &lt;user&gt; &lt;alias&gt;</h3>
  <p> <font face="Arial, Helvetica, sans-serif">This allows you to delete aliases
    for users. </font></p>
  <h3><a name="add_domain"></a>add_domain &lt;domain&gt;</h3>
  <p> <font face="Arial, Helvetica, sans-serif">Adds a domain to SurgeMail. This
    command makes use of the domain_defaults.txt file specified <a href="domains.htm#create">here</a>.</font></p>
  <h3><a name="delete_domain"></a>delete_domain &lt;domain&gt; </h3>
  <p><font face="Arial, Helvetica, sans-serif">D</font><font face="Arial, Helvetica, sans-serif">eletes
    a domain from SurgeMail. </font></p>
  <h3><a name="clear_cache"></a>clear_cache [user@domain] </h3>
  <p> <font face="Arial, Helvetica, sans-serif">This allows you to clear SurgeMail's
    authentication cache.<br>
    Examples:<br>
    tellmail clear_cache - With no argument it will clear the entire cache.<br>
    tellmail clear_cache test@localdomain - This will clear only this users cache
    out<br>
    tellmail clear_cache *@domain2.com - Clears the cache for all users at domain2.com</font></p>
  <h3><a name="quota"></a>quota &lt;user@domain&gt;</h3>
  <p> <font face="Arial, Helvetica, sans-serif">Displays the users current disk
    usage and their allowed quota. </font></p>
  <h3><a name="logout"></a>logout &lt;user@domain&gt; </h3>
  <p><font face="Arial, Helvetica, sans-serif">This will logout a user that is
    currently connected to on IMAP or POP you can see the current locks by using
    the <a href="#showlocks">tellmail showlocks</a> command </font></p>
  <p><font face="Arial, Helvetica, sans-serif">Example: <br>
    tellmail logout stu@blah.com</font></p>
  <h3><a name="showlocks"></a>showlocks </h3>
  <p><font face="Arial, Helvetica, sans-serif">This shows the current software
    locks used by IMAP and POP in SurgeMail. When a user logs into POP or IMAP
    SurgeMail creates a lock for that user to prevent multiple connections to
    the same account.</font></p>
  <p><font face="Arial, Helvetica, sans-serif">Example:</font></p>
  <p><font face="Arial, Helvetica, sans-serif">tellmail showlocks <br>
    Lock (catch.netwin.co.nz#stu#_) n=1 f=0 locktype=pop thid=2332</font></p>
  <h3><a name="expire"></a>expire</h3>
  <p>This starts the expire process. </p>
  <h3><a name="expire_status"></a>expire_status</h3>
  <p>Gives the status on the expire process. </p>
  <h3><a name="expire_user"></a>expire_user &lt;user@domain&gt; &lt;days&gt; &lt;bytes&gt;</h3>
  <p><font face="Arial, Helvetica, sans-serif">This expires mail in the specified
    users INBOX, and optionally Trash folders based on the specified criteria,
    you may specify an age in days and/or a max size in bytes, any message exceeding
    these will be expired.</font></p>
  <h3><a name="find_user" id="find_user"></a>find_user &lt;domain&gt; &lt;field name &gt; &lt;field value &gt;</h3>
  <p class="style1">This lets you search for a user or users that match the criteria you have set. </p>
  <p class="style1">Examples:</p>
  <p class="style1">To get a list of accounts of a certain status:<br>
  tellmail find_user foo.com mailstatus suspended<br>
  tellmail find_user foo.com mailstatus payup<br>
  tellmail find_user foo.com mailstatus closed</p>
  <p class="style1">To find out who is using friends<br>
  tellmail find_user foo.com friends true</p>
  <p class="style1">To find users in a certain group<br>
  tellmail find_user foo.com mailaccess groupname</p>
  <h3><a name="set_authfield"></a>set_authfield fieldname file.txt [apply]</h3>
  <p><font face="Arial, Helvetica, sans-serif">This allows you to apply new authent
    values for one field based on the text file file.txt and fieldname the name
    of the field to change. Without [apply] flag this is run in preview mode to
    see what changes to the database would be made and run with [apply] flag to
    actually make the changes.</font><font face="Arial, Helvetica, sans-serif"><br>
    </font></p>
  <p><font face="Arial, Helvetica, sans-serif">where file.txt contains user, new
    value pairs<br>
    user1@domain,value1<br>
    user2@domain,value2<br>
    ...<br>
    eg.</font><font face="Arial, Helvetica, sans-serif"><br>
    user1@mydomain.com,20mb<br>
    user2@mydomain.com,30mb </font>
  <p><font face="Arial, Helvetica, sans-serif">tellmail set_authfield quota newvalues.txt</font></p>
  <p>Processing file (a.a) PREVIEWING CHANGES ...<br>
    2 records updated, 0 records did not exist<br>
    Original nwauth records stored in pre.txt and updated records in post.txt
    for review<br>
  </p>
  <h3></h3>
  <h3><a name="user_send_max"></a>user_send_max &lt;user@domain&gt;</h3>
  <p> <font face="Arial, Helvetica, sans-serif">Reports the number of emails the
    user has sent in the last 24 hour period.</font></p>
  <h3></h3>
  <h3><a name="add_member"></a>add_member &lt;list&gt; &lt;user@domain&gt;</h3>
  <p><font face="Arial, Helvetica, sans-serif">Adds the specified email to the
    specified mailing list.</font></p>
  <h3><a name="add_rules"></a>add_rules &lt;file&gt;</h3>
  <p><font face="Arial, Helvetica, sans-serif">Reads &lt;file&gt;, expects lines
    formatted:</font></p>
  <p><font face="Arial, Helvetica, sans-serif">email:rule</font></p>
  <p><font face="Arial, Helvetica, sans-serif">where &quot;email&quot; is the
    users email address i.e. user@domain.com and &quot;rule&quot; is a user exception
    rule formatted as expected in the users friend.rul file (create some rules
    for a user to discover the format, it can be different for different rules
    and we may change or extend it in future).</font></p>
  <p><font face="Arial, Helvetica, sans-serif">This command will not add duplicate
    rules. This command will only add rules for existing users.</font></p>
  <h3><a name="rescan_aliases_files"></a>rescan_aliases_files </h3>
  <p>scan aliases.txt, make domuser.newdat</p>
  <h3><a name="rescan_aliases"></a>rescan_aliases</h3>
  <p>scans domuser.dat, make aliases.txt </p>
  <h3><a name="list_rcpt"></a>list_rcpt</h3>
  <p>Attempts to list all valid receipt addresses for the server. Can be run as:</p>
  <p>tellmail list_rcpt<br>
    tellmail list_rcpt domain.name<br>
    tellmail list_rcpt domain.name [redirect|lists|alias|blog|misc]</p>
  <p>The first gets all receipts.<br>
    The next gets only those for the specified domain.<br>
    The last gets only those for the specified domain and type.<br>
  </p>
  <p>&nbsp; </p>
  <h3><a name="imap_import"></a>imap_import &lt;localuser@localdomain&gt; &lt;oldimaphost&gt; &lt;olduser&gt; &lt;oldpass&gt; &lt;delete|keep&gt; &lt;create|nocreate&gt;</h3>
  <p>You can use this command to import users from another serverm this is for importing imap accounts.</p>
  <ol>
    <li> The username and domain to which the account will be created in surgemail</li>
    <li>The ip of the server you are migrating the account from</li>
    <li>The login name of the account on the server you are migrating from.</li>
    <li>The accounts password on the server you are migrating from</li>
    <li>Whether you want to delete or keep the messages on the old server</li>
    <li>Whether you want the account created on the surgemail server, unless you have already created the account this must be create.      <br>
  </ol>
      <p>Example: </p>
      <p>old server: 10.0.0.5<br>
        old user account: fred<br>
        old account password: test<br>
        username and domain to create on surgemail: fred@mydomain.com</p>
      <p>tellmail fred@mydomain.com 10.0.0.5 fred test keep create <br>
  </p>
  <h3><a name="activate"></a>activate &lt;registration&gt; [email address]</h3>
  <p> <font face="Arial, Helvetica, sans-serif">This tells SurgeMail to contact
    the netwinsite.com database and activate your SurgeMail server.</font></p>
  <h3></h3>
  <h3><a name="deactivate"></a>deactivate &lt;registration&gt; [email address]</h3>
  <p> <font face="Arial, Helvetica, sans-serif">This tells SurgeMail to deactivate
      SurgeMail. You should do this if you are going to move SurgeMail to a new
    machine and then can reactivate on the new machine.</font></p>
  <h3><a name="resync_config"></a>resync_config</h3>
  <p>This tells SurgeMail to send the config file to the other mirror, you would run this on the machine that has the data you want transferred. </p>
  <h3><a name="resync_fast"></a>resync_fast</h3>
  <p><font face="Arial, Helvetica, sans-serif">This tells SurgeMail to resend
      missing files to the slave, this uses a separate thread.<br>
    You run this on the machine that has the extra data, if both machines for
    some reason have data that each other doesn't have it is safe to run this
    command on both slave and master. This command only sends data the other machine
    does NOT have, so is considered a very safe command. </font></p>
  <h3><a name="resync_nwauth"></a>resync_nwauth </h3>
  <p><font face="Arial, Helvetica, sans-serif">This resends NWAuth to the other
      machine, usually run on the master, but if the master had a disk crash and
    lost NWAuth you would run this on the slave.</font></p>
  <h3><a name="resync_config"></a>resync_config</h3>
  <p><font face="Arial, Helvetica, sans-serif">This resends the surgemail.ini
      to the other machine, usually run on the master, but if the master had a disk
      crash and lost it's config you would run this on the slave. This is <b>required
      </b>every time you enable g_mirror_config, i.e. add it, or go from FALSE to
    TRUE on either machine.</font></p>
  <h3><a name="surgeplus"></a>surgeplus</h3>
  <p>
  <font face="Arial, Helvetica, sans-serif">surgeplus is used for doing various
	  SurgePlus commands. use "tellmail surgeplus" for a full list of SurgePlus commands.
	  Some common surgeplus commands are
  <ul>
  <li><b>tellmail surgeplus status</b> - View current surgeplus status</li>
  <li><b>tellmail surgeplus rebuild</b> - Delete cached client downloads so they will be rebuilt
  next time a user tries to download them. Useful if you have customized a SurgePlus image file.</li>
  <li><b>tellmail surgeplus activate (24-digit-license-key)</b> -
  Tell SurgeMail to use your new SurgePlus license key.
  <li><b>tellmail surgeplus download</b> - Download the latest SurgePlus beta and release
  versions from netwinsite.com to make available to your users.</li>
  <li><b>tellmail surgeplus reload</b> - Reloads and SurgePlus config files from disk.</li>

</ul>


  </font>
  <p></p>
  <h3><a name="aspam_retrain"></a>aspam_retrain</h3>
  <p><font face="Arial, Helvetica, sans-serif">You should only run this command
    if you manually change Aspam files. </font></p>
  <h3><a name="g_relay_allow_ip"></a>g_relay_allow_ip &lt;ip&gt;</h3>
  <p>This allows you to check if an IP is allowed to relay or not.</p>
  <p>eg tellmail g_relay_allow_ip 192.168.0.1</p>
  <h3><font face="Arial, Helvetica, sans-serif"><a name="suspend" id="suspend"></a>suspend</font></h3>
  <p><font face="Arial, Helvetica, sans-serif">This command will stop SurgeMail from sending any mail out, instead it will just queue it until a tellmail resume command is issued. </font></p>
  <h3><font face="Arial, Helvetica, sans-serif"><a name="resume"></a>resume</font></h3>
  <p><font face="Arial, Helvetica, sans-serif">This command will make SurgeMail start sending the queue out again after it has been placed in suspend mode by the tellmail suspend command.</font></p>
  <h3><font face="Arial, Helvetica, sans-serif"><a name="surgehost_update" id="surgehost_update"></a>surgehost_update</font></h3>
  <p><font face="Arial, Helvetica, sans-serif">This command will make SurgeMail generate a new surgehost.ini file for use with webmail. It will run through all the domains in surgemail and update surgehost.ini for each domain. </font></p>
<!-- #EndEditable -->
<!-- CONTENT END -->
</div>

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

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

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

<br><br>
</body>

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

</body>
</html>

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