<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Start of migration.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 migration.htm -->

<!-- #BeginEditable "Headerstuff"-->
<title>Installation and Upgrading</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 migration.htm -->
<div class="content_outer">


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

<!-- Back to migration.htm -->
<div class="L2C2_column_content">
<!-- Back to migration.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','Migration'],3); </script>
<script language="JavaScript"> index_select('idx_migration.htm'); </script>
<h1><a name="migration"></a>Mailserver Migration </h1>
<p><font face="Arial, Helvetica, sans-serif">SurgeMail has a number of features 
  to make the migration from an existing mail server to your new SurgeMail installation 
  easier. These can be combined to your choice to make your mail migration as 
  painless as possible for both you and your users. However migrating from one 
  mail server to another should always be done carefully and should be fully controlled. 
  Important considerations are factors such as simplicity of upgrade procedure, 
  length of downtime and ability to rollback. </font></p>
<p><font face="Arial, Helvetica, sans-serif">Unless you have specific requirements, 
  the recommended method for upgrading to SurgeMail is POP / IMAP intercept mode. 
  We aim to make the migration as simple and safe as possible. If you have any 
  suggestions on how we can improve the migration process please let us know:<a href="mailto:support-surgemail@netwinsite.com"><br>
  surgemail-support@netwinsite.com</a> </font></p>
<p><font face="Arial, Helvetica, sans-serif"><b>Note: In all cases</b> we recommend 
  you start by making a <b>backup copy</b> of your existing mail server's mailbox 
  files :-) </font></p>
<a name="intercept"></a> 
<h3>Migration using POP / IMAP intercept mode (recommended)</h3>
<p><font face="Arial, Helvetica, sans-serif">This is a simple zero downtime method 
  for migrating all active accounts from any arbitraty mailserver to SurgeMail. 
  This method configures SurgeMail to be the new mailserver for all users. When 
  a user logs into SurgeMail and a local account does not exist, SurgeMail will 
  login to the old server check the account is valid. If the account is valid 
  SurgeMail will create an account and retrieve mail for this account storing 
  it locally. From now on the user will use SurgeMail as their primary mailserver 
  and mail for them will be delivered locally. Mail delivered to SurgeMail for 
  users that have not yet logged in will be forwarded on to your old mail server.</font></p>
<ol>
  <li><font face="Arial, Helvetica, sans-serif">Backup your existing mail server's 
    mailbox files :-)</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Install SurgeMail onto your new 
    server and configure to host your existing domains</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Setup the options <a href="domain.htm#old_pophost">old_POPhost</a> 
    / <a href="domain.htm#old_imaphost">old_IMAPhost </a> and <a href="domain.htm#fallback_relay">fallback_relay</a> 
    for the domain you are migrating (on domain administration page). The fallback_relay 
    setting will pass on all mail for accounts that not yet have been created 
    locally to your old server and the old_pophost setting will allow SurgeMail 
    to retrieve account information and email from the old mailserver.</font> 
    <br>
  </li>
  <li><font face="Arial, Helvetica, sans-serif">Change your DNS and MX records 
    to point to surgemail</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Whenever a user checks their mail 
    an account with the same username and password will be created in SurgeMail 
    and all outstanding mail will be retrieved.</font></li>
</ol>
<p><font face="Arial, Helvetica, sans-serif">Detailed examples and documentation 
  can be found <a href="migration_ex1.htm">here</a> on using this method. Note! migration cannot be used in conjunction with CRAM-MD5 as that prevents surgemail from storing the old password.  CRAM-MD5 is best not used as SSL offers better security. </font></p>
<a name="non_surgemail"></a> 
<h2>Migration from Non SurgeMail server</h2>
<p><font face="Arial, Helvetica, sans-serif">SurgeMail has a number of features 
  to make the migration from an existing non SurgeMail mailserver to SurgeMail 
  easier:</font></p>
<ul>
  <li><font face="Arial, Helvetica, sans-serif">Parallel operation / gradual migration</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Authentication database import</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Delivered Mail conversion</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Complete configuration upgrade 
    (DMail only)</font></li>
</ul>
<h3><a name="parallel"></a>Parallel operation / gradual transfer</h3>
<p><font face="Arial, Helvetica, sans-serif">SurgeMail has the option &quot;<a href="domain.htm#fallback_relay">fallback_relay</a>&quot; 
  (configurable per domain) that allows mail to be delivered to a different host 
  if the user does not exist locally. This can be used whilst testing that a system 
  is operational and if desired for the gradual migration of users from an existing 
  server to the current server. The two ways of configuring this are as follows:</font></p>
<p><font face="Arial, Helvetica, sans-serif">1. Configure SurgeMail to handle 
  the domain served by your existing server. Keep your MX record pointing at your 
  existing server. On the existing server cc (or redirect) mail to your SurgeMail 
  configuration. For the account(s) in question start using SurgeMail to retrieve 
  and send mail. In this configuration rollback is easy by simply switching your 
  mail client back to the original server.<br>
  Note: If you are sending to servers that do a reverse lookup you will need to 
  get SurgeMail to relay outbound through your existing server. </font></p>
<p><font face="Arial, Helvetica, sans-serif">2. Configure SurgeMail to handle 
  the domain served by your existing server. Switch your MX record to the SurgeMail 
  server. Now if the account in question is defined in the SurgeMail user database, 
  SurgeMail will process mail for this user and the users mail client will need 
  to point to SurgeMail. If the account is not present all mail will be forwarded 
  to your existing mailserver and the users mail client will need to point to 
  your existing mail server.<br>
  Note: Again if you are sending to servers that do a reverse lookup you will 
  need to get your existing server to relay outbound mail through the SurgeMail 
  server. </font></p>
<h3><a name="auth_import"></a>Authentication database import</h3>
<p><font face="Arial, Helvetica, sans-serif">There probably is no need to is no 
  need to import your existing user database as SurgeMail is very likely to have 
  an authentication module that will use your existing database directly. Having 
  said that many administrators do choose to convert their existing user database 
  to NWAuth. This is especially so if using system based authentication as NWAuth 
  does not require a UNIX system account for every user in your authentication 
  database.</font></p>
<p><font face="Arial, Helvetica, sans-serif">If converting your sendmail configuration 
  your existing /etc/passwd + /etc/shadow account database can be imported to 
  NWAuth format without users having to change their password or the encrypted 
  password being decoded either by manually copying the fields or using the following 
  script <a href="ftp://netwinsite.com/pub/surgemail/util/xferusers.pl">xferusers.pl</a>.</font></p>
<h3><a name="mail_conversion"></a>Delivered Mail Conversion</h3>
<p><font face="Arial, Helvetica, sans-serif">SurgeMail uses maildir format to 
  store delivered mail. SurgeMail has the inbuilt ability to convert standard 
  drop files to maildir format. In addition SurgeMail will convert dmail bin files 
  and mbx files to SurgeMail mdir format. The settings that control this process 
  are the surgemail.ini vdomain settings: dmail_drop_path, dmail_bin_path and 
  dmail_hash.</font></p>
<p><font face="Arial, Helvetica, sans-serif">eg: If you were converting a Windows 
  DMail configuration the upgrade settings would be as follows, these are automatically 
  added if you do SurgeMail install based on a dmail.conf.</font></p>
<blockquote> 
  <pre>dmail_bin_path &quot;D:\somewhere\binfiles&quot;
dmail_drop_path &quot;D:\somewhere\dropfiles&quot;
dmail_hash &quot;0&quot;</pre>
</blockquote>
<p><font face="Arial, Helvetica, sans-serif">Note: Hash level: 0 = no hashing, 
  1= <a href="http|//netwinsite.com/dmail/dm_set.htm#hash">dmail specific</a> 
  hashing, 2=generic double level hashing (mail/f/r/fred), 3= <a href="http|//netwinsite.com/dmail/dm_set.htm#hash">dmail 
  specific</a> hashing.<br>
  </font></p>
<p><font face="Arial, Helvetica, sans-serif"> eg So unhashed UNIX Sendmail drop 
  files can be converted as follows:</font></p>
<blockquote> 
  <pre>dmail_drop_path &quot;/var/spool/mail&quot;
dmail_hash &quot;0&quot;</pre>
</blockquote>
<p><font face="Arial, Helvetica, sans-serif">The default SurgeMail behaviour is 
  to check for mail to convert when a user logs in using POP or IMAP. This means 
  that normally the conversion load is evenly spread over the timeframe that users 
  login. However larger accounts may see a delay in checking their mail while 
  the mail conversion takes place. This can be prevented by doing the conversion 
  of all &quot;outstanding old mail&quot; in batch mode using the following command:</font></p>
<blockquote> 
  <pre>tellmail convert_dmail</pre>
</blockquote>
<p><font face="Arial, Helvetica, sans-serif">This command requires dmail_bin_path 
  and dmail_drop_path and dmail_hash settings to have been setup correctly prior 
  to running the command.</font></p>
<h3>DROPFILE format (pine) </h3>
<p><font face="Verdana, Arial, Helvetica, sans-serif">For pine format unix drop 
  files (Each folder is contained in a single file with each message starting 
  with the line 'From ...', you can use this command to import mail folders (other 
  than the inbox which the dmail conversion commands will handle) This commands 
  requires SurgeMail 3.7c4 or later.</font></p>
<blockquote> 
  <pre>tellmail dropfile_import john@your.domain /home/john/mail</pre>
</blockquote>
<h3><a name="config_upgrade"></a>Complete Configuration Upgrade</h3>
<p><font face="Arial, Helvetica, sans-serif">As each mail server configuration 
  tends to be unique and specifically configured we do not support a generic upgrade 
  ability from an arbitrary mail server. We aim to supply the capability to easily 
  migrate the necessary elements of your configuration to surgemail.</font></p>
<p><font face="Arial, Helvetica, sans-serif">Having said that, SurgeMail does 
  have the ability to upgrade an existing DMail configuration. It does this by 
  generating a surgemail.ini configuration based on the dmail.conf configuration. 
  This reuses the authentication database that DMail used and adding the settings 
  described in &quot;Delivered Mail Conversion&quot; above. Then when a user logs 
  in mail existing mail is converted to the correct SurgeMail location.</font></p>
<h2><a name="moving_surgemail"></a>Moving a SurgeMail configuration</h2>
<p><font face="Arial, Helvetica, sans-serif">SurgeMail has been designed to make 
  migration between two SurgeMail servers of similar or of different platforms 
  very easy but again there are several different ways to migrate.</font></p>
<h3><a name="copy_surgemail"></a>Migration by copying directory tree</h3>
<p><font face="Arial, Helvetica, sans-serif">The easiest and currently the recommended 
  way of moving SurgeMail between servers of the same platform is by copying the 
  whole SurgeMail directory tree. To do this, install a default configuration 
  on the new server, then copy the entire SurgeMail directory tree (plus /etc/surgemail.ini) 
  to the new server, move your license key from one host to the other using tellmail 
  deactivate / activate, and update your mx record.</font></p>
<p><font face="Arial, Helvetica, sans-serif">&quot;Moving&quot; your SurgeMail 
  key: </font></p>
<ol>
  <li><font face="Arial, Helvetica, sans-serif">If you want to temporarily run 
    your two servers side by side, get a new temporary key from :https and install 
    this on the new server until you are ready to move your paid key..</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Run &quot;tellmail deactivate 
    N##### myemail@mydomain.com&quot; on the old server to disable your paid key 
    on your old server</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Run &quot;tellmail activate N##### 
    myemail@mydomain.com&quot; on the new server to enable your paid key on your 
    new server</font></li>
</ol>
<h3><a name="copy_data"></a>Migration by copying data files</h3>
<p><font face="Arial, Helvetica, sans-serif">Alternatively the relevant data files 
  can be copied. This is the recommended way when moving between platforms or 
  you wanting a clean install on the same platform. To do this you will need to 
  install a default configuration on the new server, then copy the following configuration, 
  mail and data files from the old installation to the new installation, move 
  your license key, and update your MX record.</font></p>
<p><font face="Arial, Helvetica, sans-serif">To copy SurgeMail data directories 
  you will need to copy:</font></p>
<ol>
  <li><font face="Arial, Helvetica, sans-serif">surgemail.ini (c:\winnt for windows 
    or in /etc for unix) : main SurgeMail configuration</font></li>
  <li><font face="Arial, Helvetica, sans-serif">surgemail_direcotry\mydomain.com 
    : delivered mail for each domain.</font></li>
  <li><font face="Arial, Helvetica, sans-serif">surgemail_direcotry\webmail_work 
    : WebMail options (and folders if running WebMail in POPmode)</font></li>
  <li><font face="Arial, Helvetica, sans-serif">surgemail_directory\scripts\webmail.ini 
    : WebMail configuration file</font></li>
  <li><font face="Arial, Helvetica, sans-serif">surgemail_directory\nwauth.txt 
    + nwauth.add : user database (if using NWAuth)</font></li>
  <li><font face="Arial, Helvetica, sans-serif">surgemail_directory\*.ini *.dat 
    : variety of configuration files</font></li>
  <li><font face="Arial, Helvetica, sans-serif">surgemail_directory\work (optional) 
    : undelivered mail queue</font></li>
  <li><font face="Arial, Helvetica, sans-serif">surgemail_directory\recYYMM (optional) 
    : delivery record</font></li>
  <li><font face="Arial, Helvetica, sans-serif">surgemail_directory\ssl (optional) 
    : if signed certificates have been added these will need to be copied</font></li>
  <li><font face="Arial, Helvetica, sans-serif">surgemail_directory\bull and dlist 
    (optional) : configuration of bulletins and mailing lists</font></li>
</ol>
<p><font face="Arial, Helvetica, sans-serif">On UNIX be sure to correct the file 
  ownerships to 'mail' if you coppied the files as root! (chown -R mail /usr/local/surgemail) 
  </font></p>
<h3><a name="mirrorring"></a>Zero downtime migration using Mirrorring</h3>
<p><font face="Arial, Helvetica, sans-serif">In both the above two cases neither 
  the old or new SurgeMail installations should not be running whilst copying 
  files. If this is not acceptable in terms of interruption of service you can 
  use migration using pop intercept mode or migration using mirrorring. The optimal 
  procedure is still being finalised for zero downtime upgrades so please test 
  your chosen migration path on a non live system first and again suggestions 
  for improvement are welcome.</font></p>
<p><font face="Arial, Helvetica, sans-serif">The mirrorring feature can be used 
  to migrate user accounts and mail from one server to another using zero downtime. 
  To do this you need to Setup your new server in the same configuration as your 
  old server by copying the configuration files and install a temporary second 
  license key. Enable mirrorring on both systems. Add an MX record with higher 
  priority for your new server. At this stage both servers will be live and mail 
  can be delivered to either server and it will be mirrored to the other server. 
  When you are confident the new server is working as expected you remove the 
  mx record for the old system, wait for any remaining mail to be mirrored to 
  the new server and take the old server offline.</font></p>
<p><font face="Arial, Helvetica, sans-serif">Several things should be carefully 
  noted. Firstly mirroring only duplicates delivered mail, more specifically files 
  that get mirrored are the files stored in the surgemail/mydomain.com maildir 
  directories for each domain. This means that certain settings or files will 
  not get mirrored as follows: </font></p>
<ol>
  <li><font face="Arial, Helvetica, sans-serif">If you are using WebMail in POP 
    mode mail stored in WebMail folders will not be synchronised. If you are using 
    WebMail in IMAP mode (since recently the default) mail in WebMail folders 
    will be copied.</font></li>
  <li><font face="Arial, Helvetica, sans-serif">WebMail user configuration settings, 
    DList information will not be copied.</font></li>
</ol>
<h2><a name="import_export"></a>Miscellaneous Mail Conversion / Import / Export</h2>
<h3><a name="move_webmail"></a>Moving mail in WebMail folders to surgemail IMAP 
  folders</h3>
<p><font face="Arial, Helvetica, sans-serif">When running WebMail in POP mode 
  the mail stored in folders is stored in the WebMail work area. When running 
  WebMail in IMAP mode this mail is stored in the SurgeMail folders and is accessible 
  using other IMAP clients. To convert this mail do the following: </font></p>
<ol>
  <li><font face="Arial, Helvetica, sans-serif">You need WebMmail version 3.0r 
    or later</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Ensure you have a manager password 
    configured in your webmail.ini file &quot;managers_password mypassword&quot;</font></li>
  <li><font face="Arial, Helvetica, sans-serif">Run &quot;webmail.exe -manager&quot;, 
    do option &quot;m&quot; and enter &quot;*&quot; for converting all users.</font></li>
</ol>
<h3><a name="maildir"></a>Importing old mail from other Maildir implementations</h3>
<p><font face="Arial, Helvetica, sans-serif">Maildir implementations vary slightly 
  in their implementation. SurgeMail is able to import other Maildir formats by 
  running the command &quot;tellmail maildir_convert surgemail_domain.com source_directory&quot; 
  </font><font face="Arial, Helvetica, sans-serif">where source directory is a 
  fully specified path with $HASH1 / $HASH2 and $USER, where expansion of directories 
  is required.</font></p>
<blockquote> 
  <pre>tellmail maildir_convert mydomain.com '/home/$USER/Mail'
tellmail maildir_convert mydomain.com '/home/$HASH2/$USER/Mail'
tellmail maildir_convert mydomain.com '/var/spool/mail/$HASH1/$USER/Mail'</pre>
</blockquote>
<p>Where <br>
  $HASH1 = /fr (for fred)<br>
  $HASH2 = /f/r (for fred)<br>
  $USER = wild card scan of usernames<br>
</p>
<p><font face="Arial, Helvetica, sans-serif">eg: Converting all mail stored in 
  the format /var/spool/mail/user1/Mail to /usr/local/surgemail/mydomain.com/bb/wj/user1/</font></p>
<blockquote> 
  <pre>tellmail maildir_convert '/var/spool/mail/$USER/Mail'</pre>
</blockquote>
<h2>Virtual User Table - Translating username to username@domain.name </h2>
<p>Using 5.1 or later you can create a file called 'virtusertable.dat' to translate 
  user names given without a username during pop/imap login into a user and domain 
  name pair, this should only be used when converting users from an old sendmail 
  system where you need to translate the users to multiple different domains, 
  e.g.</p>
<blockquote>
  <p> fred -&gt; fred@domain1.com</p>
  <p>bob -&gt; bob@domain2.com</p>
  <p>joe -&gt; joe@domain3.com</p>
  <p>&nbsp;</p>
</blockquote>
<p>The file format is as follows:</p>
<blockquote>
  <pre>fred fred@domain1.com<br>bob bob@domain2.com<br>joe joe@domain3.com</pre>
  <pre>    <!-- CONTENT END -->   <!--#include virtual="ssi/column_end.ssi" -->   <!--#include virtual="ssi/columns_end.ssi" -->   <!--#include virtual="ssi/page_end.ssi" --> </pre>
</blockquote>
<!-- #EndEditable --> 
</body>
</html>

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

