<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.zarafa.com/wiki/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.zarafa.com/wiki/index.php?title=Unix_Mailboxes_to_Zarafa_migration&amp;feed=atom&amp;action=history</id>
		<title>Unix Mailboxes to Zarafa migration - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.zarafa.com/wiki/index.php?title=Unix_Mailboxes_to_Zarafa_migration&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.zarafa.com/wiki/index.php?title=Unix_Mailboxes_to_Zarafa_migration&amp;action=history"/>
		<updated>2013-05-22T14:19:55Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://www.zarafa.com/wiki/index.php?title=Unix_Mailboxes_to_Zarafa_migration&amp;diff=1666&amp;oldid=prev</id>
		<title>Peter: Created page with &quot;The easiest way to migrate from unix maiboxes (as used for example by Squirrelmail) is to do the following steps:  # Share the directories containing the mailbox files via NFS (t...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.zarafa.com/wiki/index.php?title=Unix_Mailboxes_to_Zarafa_migration&amp;diff=1666&amp;oldid=prev"/>
				<updated>2011-08-02T11:22:18Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;The easiest way to migrate from unix maiboxes (as used for example by Squirrelmail) is to do the following steps:  # Share the directories containing the mailbox files via NFS (t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The easiest way to migrate from unix maiboxes (as used for example by Squirrelmail) is to do the following steps:&lt;br /&gt;
&lt;br /&gt;
# Share the directories containing the mailbox files via NFS (typically, /var/mail and /home)&lt;br /&gt;
#  Mount the NFS shares on the Zarafa server&lt;br /&gt;
# Use ''formail'' to convert the mailboxes&lt;br /&gt;
&lt;br /&gt;
The first two steps are only recommended if Zarafa is installed on a new machine which is not the current mail server. You could also copy the mailbox files to the Zarafa server using FTP/scp if needed. The goal is to have the unix mail files on the same server where you run ''zarafa-dagent''.&lt;br /&gt;
&lt;br /&gt;
To convert a unix mail file, run&lt;br /&gt;
&lt;br /&gt;
  formail -s zarafa-dagent username &amp;lt; /path/to/mailfile&lt;br /&gt;
&lt;br /&gt;
If you have mail in BSD-style mail files and you want to import them into subfolders of a user, run&lt;br /&gt;
&lt;br /&gt;
  formail -s zarafa-dagent -C -F &amp;quot;Folder Name&amp;quot; username &amp;lt; /path/to/mailfile&lt;br /&gt;
&lt;br /&gt;
For example, if you have the following mail files: /var/mail/carlo, /home/carlo/Sent Mail, /home/carlo/project1 /home/carlo/project2, and you want to import them for the user carlo, issue:&lt;br /&gt;
&lt;br /&gt;
  formail -s zarafa-dagent carlo &amp;lt; /var/mail/carlo&lt;br /&gt;
  formail -s zarafa-dagent -C -F &amp;quot;Sent Mail&amp;quot; carlo &amp;lt; &amp;quot;/home/carlo/Sent Mail&amp;quot;   &amp;lt;-- notice the quotes!&lt;br /&gt;
  formail -s zarafa-dagent -C -F Projects\project1 carlo &amp;lt; /home/carlo/project1&lt;br /&gt;
  formail -s zarafa-dagent -C -F Projects\project2 carlo &amp;lt; /home/carlo/project2&lt;br /&gt;
&lt;br /&gt;
See the manual pages on ''formail'' and ''zarafa-dagent'' for further information, especially if you want to change the ''zarafa-dagent'' path delimiter (the backslash) to something else.&lt;br /&gt;
&lt;br /&gt;
Last, request your users to delete the message that an empty mail file mostly include:&lt;br /&gt;
&lt;br /&gt;
  From: Mail System Internal Data &amp;lt;MAILER-DAEMON@machine.domain&amp;gt;&lt;br /&gt;
  Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA&lt;br /&gt;
  &lt;br /&gt;
  This text is part of the internal format of your mail folder, and is not&lt;br /&gt;
  a real message.  It is created automatically by the mail system software.&lt;br /&gt;
  If deleted, important folder data will be lost, and it will be re-created&lt;br /&gt;
  with the data reset to initial values.&lt;/div&gt;</summary>
		<author><name>Peter</name></author>	</entry>

	</feed>