<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>zimbraPrefOutOfOfficeReply - Spheron1</title>
	<atom:link href="https://www.spheron1.uk/tag/zimbraprefoutofofficereply/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.spheron1.uk</link>
	<description></description>
	<lastBuildDate>Mon, 27 Jun 2011 21:07:36 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Zimbra mailbox import/export and migration of e-mail filter rules</title>
		<link>https://www.spheron1.uk/2011/06/27/zimbra-mailbox-importexport-and-migration-of-e-mail-filter-rules/</link>
					<comments>https://www.spheron1.uk/2011/06/27/zimbra-mailbox-importexport-and-migration-of-e-mail-filter-rules/#comments</comments>
		
		<dc:creator><![CDATA[digitaldisaster]]></dc:creator>
		<pubDate>Mon, 27 Jun 2011 21:07:36 +0000</pubDate>
				<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[getRestURL]]></category>
		<category><![CDATA[postRestURL]]></category>
		<category><![CDATA[Sieve]]></category>
		<category><![CDATA[ZCS]]></category>
		<category><![CDATA[Zimbra Collaboration Suite]]></category>
		<category><![CDATA[zimbraMailSieveScript]]></category>
		<category><![CDATA[zimbraPrefMailSignatureHTML]]></category>
		<category><![CDATA[zimbraPrefOutOfOfficeReply]]></category>
		<category><![CDATA[zmmailbox]]></category>
		<category><![CDATA[zmprov]]></category>
		<guid isPermaLink="false">https://www.spheron1.uk/?p=438</guid>

					<description><![CDATA[<p>Zimbra has a fantastically useful built in system for exporting an entire mailbox, including the contents of the entire e-mail inbox, calendar, address book and briefcase ready to be imported on another Zimbra server either via the web interface or using zmmailbox from the command line. This makes migrating mailboxes between separate Zimbra installations incredibly easy. You can export a&#46;&#46;&#46;</p>
<p>The post <a href="https://www.spheron1.uk/2011/06/27/zimbra-mailbox-importexport-and-migration-of-e-mail-filter-rules/">Zimbra mailbox import/export and migration of e-mail filter rules</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Zimbra has a fantastically useful built in system for exporting an entire mailbox, including the contents of the entire e-mail inbox, calendar, address book and briefcase ready to be imported on another Zimbra server either via the web interface or using zmmailbox from the command line. This makes migrating mailboxes between separate Zimbra installations incredibly easy.</p>
<p>You can export a chosen mailbox from the source Zimbra server with:</p>
<blockquote><p>zmmailbox -z -m user@test.com getRestURL &#8220;//?fmt=tgz&#8221; > /tmp/user_test.com.tar.gz</p></blockquote>
<p>And then import it into the destination server with:</p>
<blockquote><p>zmmailbox -z -m user@test.com postRestURL &#8220;//?fmt=tgz&#038;resolve=reset&#8221; /tmp/user_test.com.tar.gz</p></blockquote>
<p>You need to make sure that the target account exists before attempting to import the archive on the destination server. Using the &#8220;reset&#8221; resolve method will ensure that everything is wiped from the target account before importing from the archive.</p>
<p>Simply replace &#8220;tgz&#8221; with &#8220;zip&#8221; in order to chose between the two archive formats when importing and exporting, making sure to use the right one on the import! </p>
<p>If you want to download a copy of an account from your browser, just visit the appropriate URL (e.g. http://mail.test.com/home/user/?fmt=tgz where &#8220;user&#8221; is the account&#8217;s username) or use the nice Import/Export GUI in the Zimbra preferences tab, which also gives you the option to upload and import an archive.</p>
<p>The Zimbra preference interface to the export function also allows you to easily specify advanced settings such as date ranges, search filters or limiting the export to a certain data type such as calendar items.</p>
<p>The one problem with Zimbra&#8217;s import/export system is that user settings such as signatures and mail filters which are stored in an account&#8217;s LDAP attributes aren&#8217;t included in the exported data. It&#8217;s easy enough to manually move signatures between servers, but anything more than a couple of mail filters can be tedious to manually re-create.</p>
<p>Luckily, you can get the information you need from the zimbraMailSieveScript attribute for a chosen account using the zmprov command line utility:</p>
<blockquote><p>zmprov ga user@test.com zimbraMailSieveScript</p></blockquote>
<p>This should give you something a copy of your mail filter rules in the sieve format, for example:</p>
<blockquote><p>require [&#8220;fileinto&#8221;, &#8220;reject&#8221;, &#8220;tag&#8221;, &#8220;flag&#8221;];</p>
<p># No Reply<br />
if anyof (header :contains [&#8220;to&#8221;] &#8220;noreply@test.com&#8221;) {<br />
    fileinto &#8220;Inbox/No Reply&#8221;;<br />
    stop;<br />
}</p></blockquote>
<p>You can then easily re-import this into LDAP on the destination server by placing single quotes around the result and using &#8220;zmprov ma&#8221;:</p>
<blockquote><p>zmprov ma user@test.com zimbraMailSieveScript &#8216;require [&#8220;fileinto&#8221;, &#8220;reject&#8221;, &#8220;tag&#8221;, &#8220;flag&#8221;];</p>
<p># No Reply<br />
if anyof (header :contains [&#8220;to&#8221;] &#8220;noreply@test.com&#8221;) {<br />
    fileinto &#8220;Inbox/No Reply&#8221;;<br />
    stop;<br />
}&#8217;</p></blockquote>
<p>You can of course apply the same technique to other account details if you wish, you just need to know the appropriate LDAP attribute, such as zimbraPrefMailSignatureHTML for your signature or zimbraPrefOutOfOfficeReply for your out of office auto reply.</p><p>The post <a href="https://www.spheron1.uk/2011/06/27/zimbra-mailbox-importexport-and-migration-of-e-mail-filter-rules/">Zimbra mailbox import/export and migration of e-mail filter rules</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.spheron1.uk/2011/06/27/zimbra-mailbox-importexport-and-migration-of-e-mail-filter-rules/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 19/34 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching 17/25 queries in 0.011 seconds using Redis

Served from: spheron1.uk @ 2026-04-03 17:12:43 by W3 Total Cache
-->