<?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>Pario TechnoBlob &#187; zmprov</title>
	<atom:link href="http://pario.no/tag/zmprov/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Migrate Zimbra mail filter rules between servers</title>
		<link>http://pario.no/2011/07/21/migrate-zimbra-mail-filter-rules-between-servers/</link>
		<comments>http://pario.no/2011/07/21/migrate-zimbra-mail-filter-rules-between-servers/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 22:33:01 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[sieve]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[zimbramailsievescript]]></category>
		<category><![CDATA[zmprov]]></category>
		<category><![CDATA[zmztozmig]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1573</guid>
		<description><![CDATA[This is a short HOWTO migrate Zimbra mail filter rules from one server to another or even copy the rules from one user and import them to another. These commands are useful to use when you migrate user accounts between servers since mail filters are not migrated using the Zimbra to Zimbra migration script, zmztozmig [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short HOWTO migrate Zimbra mail filter rules from one server to another or even copy the rules from one user and import them to another. These commands are useful to use when you migrate user accounts between servers since mail filters are not migrated using the Zimbra to Zimbra migration script, zmztozmig . I might write a short post about migrating users between Zimbra servers later.</p>
<p><strong>Export the rules to a file named filter_rules.sieve</strong> as the zimbra user</p>
<pre>
# zmprov ga user@example.com zimbraMailSieveScript > filter_rules.sieve</pre>
<p><strong>The content of the file could look something like this</strong></p>
<pre>
# name user@example.com
zimbraMailSieveScript require ["fileinto", "reject", "tag", "flag"];

# Filtername
if anyof (header :contains ["to"] "root@localhost") {
    fileinto "foldername";
    stop;
}</pre>
<p>Copy the filter_rules.sieve file to the other server and import the filter rules by enclosing the filter rules with a single qoutes around the rules</p>
<pre>
# zmprov ma user@example.com zimbraMailSieveScript 'require ["fileinto", "reject", "tag", "flag"];

# Filtername
if anyof (header :contains ["to"] "root@localhost") {
    fileinto "foldername";
    stop;
}'
</pre>
<p>This has been tested on a Zimbra 7.1.1 OSE server after migrating some users mailboxes from a 32-bit Zimbra server to a new 64-bit server.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTEvMDcvMjEvbWlncmF0ZS16aW1icmEtbWFpbC1maWx0ZXItcnVsZXMtYmV0d2Vlbi1zZXJ2ZXJzLzx3cHRiPk1pZ3JhdGUgWmltYnJhIG1haWwgZmlsdGVyIHJ1bGVzIGJldHdlZW4gc2VydmVyczx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2011/07/21/migrate-zimbra-mail-filter-rules-between-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zimbra distribution list commands</title>
		<link>http://pario.no/2009/11/17/zimbra-distribution-list-commands/</link>
		<comments>http://pario.no/2009/11/17/zimbra-distribution-list-commands/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 15:02:50 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[zmprov]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1262</guid>
		<description><![CDATA[This is just a short post describing Zimbra distribution list (mailinglist) commands. These commands should be run as the zimbra user # su - zimbra List all distribution lists # zmprov gadl Print only members addresses of a distribution list # zmprov gdl mailinglist@example.com &#124; grep zimbraMailForwardingAddress: &#124; awk {'print $2'} Show if a list [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a short post describing Zimbra distribution list (mailinglist) commands.</p>
<p>These commands should be run as the zimbra user</p>
<pre>
# su - zimbra</pre>
<p><strong>List all distribution lists</strong></p>
<pre>
# zmprov gadl</pre>
<p><strong>Print only members addresses of a distribution list</strong></p>
<pre>
# zmprov gdl mailinglist@example.com | grep zimbraMailForwardingAddress: | awk {'print $2'}</pre>
<p><strong>Show if a list is member of another distribution list(s)</strong></p>
<pre>
# zmprov gdlm mailinglist@example.com</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDkvMTEvMTcvemltYnJhLWRpc3RyaWJ1dGlvbi1saXN0LWNvbW1hbmRzLzx3cHRiPlppbWJyYSBkaXN0cmlidXRpb24gbGlzdCBjb21tYW5kczx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2009/11/17/zimbra-distribution-list-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ReIndexing a Zimbra mailbox</title>
		<link>http://pario.no/2008/02/02/reindexing-a-zimbra-mailbox/</link>
		<comments>http://pario.no/2008/02/02/reindexing-a-zimbra-mailbox/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 22:57:06 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[reindex]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[zmprov]]></category>

		<guid isPermaLink="false">http://pario.no/2008/02/02/reindexing-a-zimbra-mailbox/</guid>
		<description><![CDATA[I had some problems with one of my mailaccounts periodically not receiving mail. A temporary way to fix it was to restart zimbra as zimbra user (zmcontrol stop; zmcontrol start; ) It worked for a while, but came back usually after a couple of hours. The solution to this problem was to reindex the mailaccount [...]]]></description>
			<content:encoded><![CDATA[<p>I had some problems with one of my mailaccounts periodically not receiving mail. A temporary way to fix it was to restart zimbra as zimbra user (zmcontrol stop; zmcontrol start; ) It worked for a while, but came back usually after a couple of hours.</p>
<p>The solution to this problem was to reindex the mailaccount as zimbra user.</p>
<pre>
# su - zimbra
# zmprov rim username@example.com start
# zmprov rim username@example.com status</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDIvMDIvcmVpbmRleGluZy1hLXppbWJyYS1tYWlsYm94Lzx3cHRiPlJlSW5kZXhpbmcgYSBaaW1icmEgbWFpbGJveDx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/02/02/reindexing-a-zimbra-mailbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

