<?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>Spirit of Change &#187; Zimbra</title>
	<atom:link href="http://vavai.net/category/server/mail-server/zimbra/feed/" rel="self" type="application/rss+xml" />
	<link>http://vavai.net</link>
	<description>Tutorial About Blog, Linux &#038; Open Source Application</description>
	<lastBuildDate>Fri, 30 Dec 2011 08:32:04 +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>Installing Zimbra Mail Server on SLES 11 SP1 64 bit in less than 30 Minutes-Part 3</title>
		<link>http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-3/</link>
		<comments>http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-3/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 02:52:17 +0000</pubDate>
		<dc:creator>Vavai</dc:creator>
				<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[SLES]]></category>

		<guid isPermaLink="false">http://vavai.net/?p=1421</guid>
		<description><![CDATA[Previous tutorial : “Installing Zimbra Mail Server on SLES 11 SP1 64 bit in less than 30 Minutes-Part 2″ V. INSTALLING ZIMBRA Estimated Time : 10 minutes Minimal server appliance has all required package for installing Zimbra. Postfix and all other applications that could potentially conflict with Zimbra package deactivated automatically on initial boot. You [...]]]></description>
			<content:encoded><![CDATA[<p>Previous tutorial : <a href="http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-2">“Installing Zimbra Mail Server on SLES 11 SP1 64 bit in less than 30 Minutes-Part 2″</a></p>
<p><strong>V. INSTALLING ZIMBRA</strong><br />
Estimated Time : 10 minutes</p>
<p>Minimal server appliance has all required package for installing Zimbra. Postfix and all other applications that could potentially conflict with Zimbra package deactivated automatically on initial boot. You do not need to install additional package because all necessary package is bundled inside the appliance. <span id="more-1421"></span></p>
<ol>
<li>Go to folder <strong>/opt</strong>, download Zimbra binary installer from  <a href="http://www.zimbra.com/downloads/os-downloads.html">Zimbra Website</a> (At this writing, zimbra latest version is version 7.1.3), uncompress and then run the setup installer
<pre class="brush: bash">
cd /opt
wget -c http://files.zimbra.com/downloads/7.1.3_GA/zcs-7.1.3_GA_3346.SLES11_64.20110930001521.tgz
tar -zxvf zcs-7.1.3_GA_3346.SLES11_64.20110930001521.tgz
cd zcs-7.1.3_GA_3346.SLES11_64.20110930001521
./setup.sh
</pre>
<p>`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-12.jpeg"><img class="alignnone size-full wp-image-1427" title="vavai-zimbra-mail-server-less-than-30-minutes-12" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-12.jpeg" alt="" width="400" height="420" /></a></li>
<li>Answer the question <strong>&#8220;Do you agree with the terms of the software license agreement? [N]&#8220;</strong> with <strong>Y</strong>. Off course, because if you answer N, the installation process will simply stopped successfully <img src='http://vavai.net/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </li>
<li>Press ENTER for all installation package. The default answer is Y. Leave the &#8220;zimbra-memcached&#8221; and &#8220;zimbra-proxy&#8221; as is (will not be install) because zimbra-memcached and zimbra-proxy only required for <a href="http://www.zimbra.com/docs/os/6.0.6/multi_server_install/multi-server_install.5.01.html">multi server installation</a>.<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-13.jpeg"><img class="alignnone size-full wp-image-1428" title="vavai-zimbra-mail-server-less-than-30-minutes-13" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-13.jpeg" alt="" width="353" height="526" /></a></li>
<li>Zimbra will install the required application package and at the end will be check DNS records. On the DNS confirmation : &#8220;DNS ERROR resolving MX for mail.vavai.net<br />
It is suggested that the domain name have an MX record configured in DNS<br />
Change domain name? [Yes]&#8220;. Just answer “Y” for change domain and then typing your domain name (in my case : vavai.net) instead of your hostname (mail.vavai.net)<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-14.jpeg"><img class="alignnone size-full wp-image-1429" title="vavai-zimbra-mail-server-less-than-30-minutes-14" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-14.jpeg" alt="" width="441" height="107" /></a></li>
<li>Press <strong>3</strong>  on the question <strong>&#8220;Address unconfigured (**) items  (? &#8211; help)&#8221;</strong> and press 4 on the question <strong>&#8220;Select, or &#8216;r&#8217; for previous menu [r]&#8220;</strong> to change the default password for Zimbra Admin</li>
<li>Fill in Zimbra Admin password. Note : Password will be displayed on plain text</li>
<li>Press ENTER on question <strong>&#8220;Select, or &#8216;r&#8217; for previous menu [r]&#8220;</strong></li>
<li>Press A on question <strong>&#8220;*** CONFIGURATION COMPLETE &#8211; press &#8216;a&#8217; to apply</strong><br />
<strong>Select from menu, or press &#8216;a&#8217; to apply config (? &#8211; help)&#8221;</strong> and then press ENTER twice, following with &#8220;Y&#8221; and then  press ENTER on question <strong>&#8220;The system will be modified &#8211; continue? [No]&#8220;</strong><br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-16.jpeg"><img class="alignnone size-full wp-image-1430" title="vavai-zimbra-mail-server-less-than-30-minutes-16" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-16.jpeg" alt="" width="441" height="121" /></a></li>
<li>Zimbra will perform the system installation process. Please be patient <img src='http://vavai.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  . The installation will took 5-10 minutes depending your server performance (processor and memory)</li>
<li>Zimbra Open Source Edition will asking an optional registering your installation for statistics purpose only. Answer for this question are up to you <img src='http://vavai.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
<pre class="brush: bash">
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
The VERSION of zcs installed (7.1.3_GA_3346_SLES11_64)
The ADMIN EMAIL ADDRESS created (admin@vavai.net)Notify Zimbra of your installation? [Yes]
</pre>
</li>
<li>Installation is complete, run the command :
<pre class="brush: bash">
su - zimbra
zmcontrol -v
zmcontrol status
</pre>
<p>`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-17.jpeg"><img class="alignnone size-full wp-image-1431" title="vavai-zimbra-mail-server-less-than-30-minutes-17" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-17.jpeg" alt="" width="442" height="332" /></a></li>
<li>Open the browser and go to http://your-zimbra-server-ip (in my case : http://192.168.1.250) or http://zimbra-hostname (in my case : http://mail.vavai.net) to access Zimbra Webmail<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-18.jpeg"><img class="alignnone size-full wp-image-1432" title="vavai-zimbra-mail-server-less-than-30-minutes-18" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-18.jpeg" alt="" width="414" height="289" /></a></li>
<li>Zimbra management can be done using the web admin with https protocol and default port 7071 : https://192.168.1.250:7071 or https://mail.vavai.net:7071</li>
</ol>
<p><strong>VI. SUMMARY</strong></p>
<p>Zimbra Installation is very easy and requires a short time if we use the right tools. It can be done by using an appliance to simplify the installation process because I&#8217;ve prepare all the Zimbra requirement packages to the appliance and remove unnecessary application.</p>
<p>Hopefully this is useful for anyone who needs it. Warm regards from Jakarta-Indonesia <img src='http://vavai.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Zimbra Mail Server on SLES 11 SP1 64 bit in less than 30 Minutes-Part 2</title>
		<link>http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-2/</link>
		<comments>http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-2/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 16:13:54 +0000</pubDate>
		<dc:creator>Vavai</dc:creator>
				<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[SLES]]></category>

		<guid isPermaLink="false">http://vavai.net/?p=1414</guid>
		<description><![CDATA[Previous tutorial : &#8220;Installing Zimbra Mail Server on SLES 11 SP1 64 bit in less than 30 Minutes-Part 1&#8243; Note : I&#8217;m using YaST for openSUSE screenshot because I already have it. However, there should no significant difference between a screenshot with YAST configuration on SLES IV. CONFIGURING LOCAL DNS SERVER Estimated time : 3 [...]]]></description>
			<content:encoded><![CDATA[<p>Previous tutorial : <a href="http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-1">&#8220;Installing Zimbra Mail Server on SLES 11 SP1 64 bit in less than 30 Minutes-Part 1&#8243;</a></p>
<p><em>Note : I&#8217;m using YaST for openSUSE screenshot because I already have it. However, there should no significant difference between a screenshot with YAST configuration on SLES </em></p>
<p><strong>IV. <strong>CONFIGURING LOCAL DNS SERVER</strong></strong></p>
<p>Estimated time : 3 minutes</p>
<p>Zimbra need an A &amp; MX records that pointing to it&#8217;s IP Address. We could use/modify existing DNS records to meet with our requirement but I would prefer to installing local DNS server for it&#8217;s flexibility. If you&#8217;re currently using an existing &amp; running mail server and need to replace it with Zimbra, you should not change any MX entry before completing and testing the configuration. Incomplete configuration on production mail server may impact to bounce mail, so, we need a local DNS server to prevent the impact and to do a full test before activating mail server for production use.</p>
<p>Setting up a DNS server on openSUSE for Zimbra requirement should be easy by using YAST. Below is a step by step, please change the IP and host name to meet with your environment on previous tutorial.<span id="more-1414"></span></p>
<ol>
<li>Type : <strong>yast dns-server</strong> on the console/terminal</li>
<li>Click Next on first configuration wizard : Forwarder List
<p><div id="attachment_777" class="wp-caption alignnone" style="width: 487px"><a href="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-17.jpeg"><img class="size-full wp-image-777" title="zimbra-opensuse112-17" src="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-17.jpeg" alt="DNS Server wizard : Initial Windows" width="477" height="355" /></a><p class="wp-caption-text">DNS Server wizard : Initial Windows</p></div></li>
<li>Add a new Zone. Typing your domain name on <strong>Zone name</strong>, choose <strong>Master</strong>on type of zone and then click Add (ALT+A)
<p><div id="attachment_778" class="wp-caption alignnone" style="width: 487px"><a href="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-18.jpeg"><img class="size-full wp-image-778" title="zimbra-opensuse112-18" src="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-18.jpeg" alt="Add DNS Zone" width="477" height="359" /></a><p class="wp-caption-text">Add DNS Zone</p></div></li>
<li>Press <strong>ALT+I</strong> (Edit) to modify your zone<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-19.jpeg"><img class="alignnone size-full wp-image-779" title="zimbra-opensuse112-19" src="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-19.jpeg" alt="zimbra-opensuse112-19" width="473" height="361" /></a></li>
<li>Just leave the first tab (Basics) as is. Press <strong>ALT+D</strong> to move to the second tab : <strong>NS Records</strong></li>
<li>Write <strong>ns1</strong> on <strong>Name Server to Add</strong> option and then press <strong>ALT+A</strong> to add the records. YAST will be smart enough to autocompleting the entry and give a fully qualified domain name to the records<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-20.jpeg"><img class="alignnone size-full wp-image-780" title="zimbra-opensuse112-20" src="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-20.jpeg" alt="zimbra-opensuse112-20" width="474" height="356" /></a></li>
<li>Press <strong>ALT+X</strong> to move to the third tab, MX Records. Fill in <strong>mail</strong> as Zimbra host name (see your configuration on first tutorial) on <strong>Address</strong> option, Give it a priority number (lower means highest priority) and then Press ALT+A to add MX records. Again, YAST will be smart enough to autocompleting the entry and give a fully qualified domain name to the MX records<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-21.jpeg"><img class="alignnone size-full wp-image-781" title="zimbra-opensuse112-21" src="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-21.jpeg" alt="zimbra-opensuse112-21" width="476" height="358" /></a></li>
<li>Leave the fourth tab as is, except you need to modify to SOA option</li>
<li>Move to final tab. Type : <strong>ns1</strong> on Record key, choose A (Address Records) as records type and write Zimbra IP on records value and then press ALT+A to Add the records. Still on the final tab (Records), create the second Address Records for Zimbra hostname. Type <strong>mail</strong> on Record key, choose A (Address Records) as records type and write Zimbra IP on records value and then press ALT+A to add the mail Address Records<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-22.jpeg"><img class="alignnone size-full wp-image-782" title="zimbra-opensuse112-22" src="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-22.jpeg" alt="zimbra-opensuse112-22" width="476" height="355" /></a></li>
<li>Press <strong>ALT+O</strong> (OK)</li>
<li>Press <strong>ALT+N</strong> to go to the next wizard</li>
<li>Press <strong>ALT+S</strong> to Choose <strong>On : Start up now and When Booting</strong> and then press ALT+F  to completing DNS configuration. This will ensure that DNS service will be active on start up<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-23.jpeg"><img class="alignnone size-full wp-image-783" title="zimbra-opensuse112-23" src="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-23.jpeg" alt="zimbra-opensuse112-23" width="477" height="358" /></a></li>
<li>Restarting DNS Service by running the command : <strong>service named restart</strong> on console/terminal</li>
<li>Testing the DNS records using dig and nslookup : nslookup ns1.domain.tld and nslookup mail.domain.tld. if the setting is done correctly, DNS Server will respond with the Zimbra IP.<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-10.jpeg"><img class="alignnone size-full wp-image-1416" title="vavai-zimbra-mail-server-less-than-30-minutes-10" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-10.jpeg" alt="" width="402" height="305" /></a><br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-24.jpeg"><img class="alignnone size-full wp-image-784" title="zimbra-opensuse112-24" src="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-24.jpeg" alt="zimbra-opensuse112-24" width="300" height="247" /></a></li>
<li>Here is my DNS server configurations that can be accessed on the file <strong>/var/lib/named/master/vavai.net</strong><br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-11.jpeg"><img class="alignnone size-full wp-image-1417" title="vavai-zimbra-mail-server-less-than-30-minutes-11" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-11.jpeg" alt="" width="405" height="171" /></a></li>
</ol>
<p>Continue to the third part :<strong> <a href="http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-3/">Installing Zimbra Mail Server on SLES 11 SP1 64 bit in less than 30 Minutes-Part 3</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Zimbra Mail Server on SLES 11 SP1 64 bit in less than 30 Minutes-Part 1</title>
		<link>http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-1/</link>
		<comments>http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-1/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 15:33:13 +0000</pubDate>
		<dc:creator>Vavai</dc:creator>
				<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[SLES]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://vavai.net/?p=1395</guid>
		<description><![CDATA[The following article will explain about the quick and easy tutorial : how to installing Zimbra Mail Server on SUSE Linux Enterprise Server 11 SP1 64 bit. I will use the Minimal Server Appliance in this tutorial to simplify the installation process. Here are some notes related to the server setting : WARNING : This guide using [...]]]></description>
			<content:encoded><![CDATA[<p>The following article will explain about the quick and easy tutorial : how to installing Zimbra Mail Server on SUSE Linux Enterprise Server 11 SP1 64 bit. I will use the <a href="http://vavai.net/2011/11/suse-linux-enterprise-server-11-sp1-minimal-server-appliance/">Minimal Server Appliance</a> in this tutorial to simplify the installation process. Here are some notes related to the server setting :</p>
<ol>
<li>WARNING : This guide using Preload ISO and will erase the entire contents of hard disk!  If you do not want to delete your existing data, consider using Virtualization server or use ISO-LiveCD.</li>
<li>
<div id="gt-res-content">
<div dir="ltr">Zimbra server will be using a private IP which will be translated into public IP using NAT</div>
</div>
</li>
<li>Zimbra will be setting up using Split-DNS concept. This means that in the internal network, mail server will be recognized based on a private IP network, while from the outside will be recognized based on the public IP. For this purpose, the internal DNS will be set up in Zimbra Mail Server</li>
<li>Zimbra Fully Qualified Domain Name : mail.vavai.net, private IP : 192.168.1.250</li>
</ol>
<p><strong><span id="more-1395"></span>I. DOWNLOAD MINIMAL SERVER</strong></p>
<div dir="ltr">Estimated time : 5 minutes</div>
<div dir="ltr">
<ol>
<li>Download Minimal Server Appliance, choose Harddisk/Preload ISO appliance type<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-1.jpeg"><img class="alignnone size-full wp-image-1397" title="vavai-zimbra-mail-server-less-than-30-minutes-1" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-1.jpeg" alt="" width="382" height="180" /></a></li>
<li>Burn the ISO onto blank CD</li>
</ol>
<p><strong>II. BASIC SERVER INSTALLATION<br />
</strong></p>
<div dir="ltr">Estimated time : 5 minutes</div>
<div dir="ltr">
<ol>
<li>Turn on the computer with a CD/DVD ROM as first boot option</li>
<li>You will be greeted with the first appearance of Appliance. Select the menu: <strong>&#8220;Install/Restore Minimal Server Appliance&#8221;</strong> and press ENTER<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-2.jpeg"><img class="alignnone size-full wp-image-1399" title="vavai-zimbra-mail-server-less-than-30-minutes-2" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-2.jpeg" alt="" width="314" height="132" /></a></li>
<li>Click Yes on the choice : <strong>&#8220;Destroying ALL data on /dev/sdx, Continue?&#8221;</strong>. WARNING, think before act! <img src='http://vavai.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-3.jpeg"><img class="alignnone size-full wp-image-1400" title="vavai-zimbra-mail-server-less-than-30-minutes-3" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-3.jpeg" alt="" width="362" height="78" /></a></li>
<li>Minimal Server Appliance will be installed to the physical machine.<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-4.jpeg"><img class="alignnone size-full wp-image-1401" title="vavai-zimbra-mail-server-less-than-30-minutes-4" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-4.jpeg" alt="" width="395" height="88" /></a></li>
<li>Minimal Server Appliance will automatically run after the installation process is complete. Type Y at the question : <strong>&#8220;Do you Accept the EULA?&#8221;</strong><br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-5.jpeg"><img class="alignnone size-full wp-image-1402" title="vavai-zimbra-mail-server-less-than-30-minutes-5" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-5.jpeg" alt="" width="546" height="117" /></a></li>
<li>Login with user name : <strong>root</strong> and password : <strong>opensuse</strong>.<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-6.jpeg"><img class="alignnone size-full wp-image-1403" title="vavai-zimbra-mail-server-less-than-30-minutes-6" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-6.jpeg" alt="" width="319" height="121" /></a></li>
</ol>
<p><strong>III. INITIAL CONFIGURATION (NETWORK)</strong></p>
<p>Estimated time : 3 minutes</p>
<ol>
<li> Type: <strong>YaST lan</strong> on the console/terminal to starting network configuration using YAST<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-7.jpeg"><img class="alignnone size-full wp-image-1404" title="vavai-zimbra-mail-server-less-than-30-minutes-7" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-7.jpeg" alt="" width="426" height="344" /></a></li>
<li>Press <strong>ALT+I</strong> to configure network card. Fill in the IP address, subnet mask and hostname. Note : The letters in yellow can be accessed by pressing ALT + the letter. You can also using tab to switch between one option to another option<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-81.jpeg"><img class="alignnone size-full wp-image-1406" title="vavai-zimbra-mail-server-less-than-30-minutes-8" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-81.jpeg" alt="" width="383" height="155" /></a></li>
<li>Click Next and then move to <strong>Hostname &amp; DNS</strong>tab. Setup your hostname, your domain, Name Server 1,2 &amp; 3 and domain search. Remember that I am using split DNS and create a local DNS server so Name Server 1 =  Zimbra Server, Name Server 2 = My Router and Name Server 3 = Public DNS Server (OpenDNS . You can also use Google&#8217;s DNS-8.8.8.8-on Name Server 3<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-13.jpeg"><img title="zimbra-opensuse112-13" src="http://vavai.net/wp-content/uploads/2009/12/zimbra-opensuse112-13.jpeg" alt="zimbra-opensuse112-13" width="495" height="320" /></a></li>
<li>Move to <strong>Routing</strong> tab and fill the <strong>Default Gateway</strong> with  your router address<br />
`<br />
<a href="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-9.jpeg"><img class="alignnone size-full wp-image-1409" title="vavai-zimbra-mail-server-less-than-30-minutes-9" src="http://vavai.net/wp-content/uploads/2011/12/vavai-zimbra-mail-server-less-than-30-minutes-9.jpeg" alt="" width="494" height="373" /></a></li>
<li>Press <strong>ALT+O</strong> or press on <strong>OK</strong> to close and update your network configuration</li>
</ol>
<div id="gt-res-content">
<div dir="ltr">Tutorials will continue into the second part : <a href="http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-2/"><strong>Installing Zimbra Mail Server on SLES 11 SP1 64 bit in less than 30 Minutes-Part 2</strong></a></div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://vavai.net/2011/12/installing-zimbra-mail-server-on-sles-11-sp1-64-bit-in-less-than-30-minutes-part-1/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>openSUSE/SLES Tips : Imapsync installation for Email Backup &amp; Synchronization</title>
		<link>http://vavai.net/2011/12/opensusesles-tips-imapsync-installation-for-email-backup-synchronization/</link>
		<comments>http://vavai.net/2011/12/opensusesles-tips-imapsync-installation-for-email-backup-synchronization/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 15:05:05 +0000</pubDate>
		<dc:creator>Vavai</dc:creator>
				<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Imapsync]]></category>
		<category><![CDATA[Synchronization]]></category>

		<guid isPermaLink="false">http://vavai.net/?p=1377</guid>
		<description><![CDATA[Imapsync is a tool for facilitating incremental recursive IMAP transfers from one mailbox to another. It is useful for mailbox migration or backup, and reduces the amount of data transferred by only copying messages that are not present on both servers. Read, unread, and deleted flags are preserved, and the process can be stopped and [...]]]></description>
			<content:encoded><![CDATA[<p>Imapsync is a tool for facilitating incremental recursive IMAP transfers from one mailbox to another. It is useful for mailbox migration or backup, and reduces the amount of data transferred by only copying messages that are not present on both servers. Read, unread, and deleted flags are preserved, and the process can be stopped and resumed. The original messages can optionally be deleted after a successful transfer.</p>
<p><a href="http://vavai.net/wp-content/uploads/2011/12/imapsync.jpg"><img class="alignright size-full wp-image-1378" style="margin: 5px;" title="imapsync" src="http://vavai.net/wp-content/uploads/2011/12/imapsync.jpg" alt="" width="300" height="191" /></a>Imapsync is one very useful tool because it can be used to perform backup and synchronization of all email content, both structure and content. For example, if we have an inbox, sent items, drafts, trash, etc in the old mail server, we can copy the structure and content seamlessly into the new mail server. Imapsync even able to backup a folder other than the default folder, such as copying a folder called &#8220;Vavai&#8221; and &#8220;Urgent&#8221;, etc inside my inbox folder.</p>
<p>The following tutorial is the process of installation and usage of Imapsync on SUSE Linux Enterprise Server 11 SP 1, although Imapsync can be run in almost all Linux systems.</p>
<p><strong><span id="more-1377"></span>INSTALLATION</strong></p>
<p>Run the following command via the console / terminal:</p>
<pre class="brush: bash">
zypper ar http://download.opensuse.org/repositories/devel:/languages:/perl/SLE_11 perl
http://download.opensuse.org/repositories/home:/pheinlein/SLE_11_SP1/ imapsync
zypper ref
zypper in imapsync perl-Date-Manip perl-Mail-IMAPClient
</pre>
<p><strong>Note :</strong> I&#8217;m using package on <a href="http://download.opensuse.org/repositories/home:/pheinlein/SLE_11_SP1/">openSUSE Build Services</a> to install Imapsync. Do not forget to change the version and type of openSUSE distribution in accordance with your running system.</p>
<p><strong>USAGE</strong></p>
<p>Here is an example of using Imapsync to synchronize a mailbox from the mail server with an IP 192.168.10.2 to the mail server with an IP 192.168.10.1 (Imapsync can also use server hostname instead of ip address):</p>
<pre class="brush: bash">
imapsync - host1 192.168.10.2 - user1 budi@namadomain.com - passwordbudi password1 - host2 192.168.10.1 - vavai@namadomain.co.id user2 - password2 passwordvavai - noauthmd5 -ssl1 -ssl2
</pre>
<p>The above command will copy the mailbox budi@namadomain.com on server 192.168.10.2 to the mailbox vavai@namadomain.co.id on server 192.168.10.1.</p>
<p>Let&#8217;s see the user account between primary server and secondary server. As you may notices, Imapsync can be used to copy the email user A to the same mailbox on another server or to a different mailbox on another server</p>
<p>NOTE:</p>
<ol>
<li>- &#8211; follows by words are Imapsync parameters. &#8211;user1 budi@namadomain.com means that user account in first server is budi@namadomain.com</li>
<li>Imapsync can be used to synchronize all mail server that supports the IMAP protocol (as the name implies, Imapsync, not POPsync especially lipsync <img src='http://vavai.net/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> ), so it can be used on Postfix+Imap, Sendmail + Imap, Qmail+Imap, MDaemon, Microsoft Exchange etc</li>
<li>Imapsync requires a password for each account to be successfully synchronized.</li>
<li>Imapsync is able to synchronize the password if we know both accounts and password. We have to equate all the passwords if you want to easily synchronize with the command above. Oon some mail servers, we can use Imapsync with the &#8211; -authuser to access user mailboxes by using admin privileges.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://vavai.net/2011/12/opensusesles-tips-imapsync-installation-for-email-backup-synchronization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zimbra Mail Server Tips : Bulk Reset Account Password</title>
		<link>http://vavai.net/2011/12/zimbra-mail-server-tips-bulk-reset-account-password/</link>
		<comments>http://vavai.net/2011/12/zimbra-mail-server-tips-bulk-reset-account-password/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 10:26:03 +0000</pubDate>
		<dc:creator>Vavai</dc:creator>
				<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[Bulk Reset]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://vavai.net/?p=1339</guid>
		<description><![CDATA[Sometimes we may want to reset the user password for a while, such as setting up a new system or migration from the old mail server and want to clean up old password. Below are a simple script to bulk-reset Zimbra account password : #!/bin/bash clear USERS=`su - zimbra -c &#039;zmprov -l gaa&#039;`; for ACCOUNT [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we may want to reset the user password for a while, such as setting up a new system or migration from the old mail server and want to clean up old password.</p>
<p>Below are a simple script to bulk-reset Zimbra account password :</p>
<pre class="brush: bash">
#!/bin/bash
clear
USERS=`su - zimbra -c &#039;zmprov -l gaa&#039;`;

for ACCOUNT in $USERS; do
ACC1=`echo $ACCOUNT | awk -F@ &#039;{print $1}&#039;`;
ACC=`echo $ACC1 | cut -d &#039;.&#039; -f1`;

if [ $ACC == &quot;admin&quot; ] || [ $ACC == &quot;wiki&quot; ] || [ $ACC == &quot;galsync&quot; ] || [ $ACC == &quot;ham&quot; ] || [ $ACC == &quot;spam&quot; ]; then
echo &quot;Skipping system account, $NAME...&quot;;
else
echo &quot;Modifying $ACCOUNT password...&quot;;
su - zimbra -c &quot;zmprov sp $ACCOUNT NewGeneratedPassword&quot;;
su - zimbra -c &quot;zmprov ma $ACCOUNT zimbraPasswordMustChange TRUE;
echo &quot;Done!&quot;
echo &quot;&quot;
# read anykey
fi
done
echo &quot;Modifying password for all user has been finished successfully&quot;
</pre>
<p>Note : I think it would be better to include some personal ID (part of user name or any fields) into generated-password so all password will be a semi-random password. In my case, I&#8217;m using user birth date or part of their name for their generated password to prevent anyone trying to login to any mailbox. It&#8217;s not really secure but in my case, it was sufficient for temporary purpose.</p>
]]></content:encoded>
			<wfw:commentRss>http://vavai.net/2011/12/zimbra-mail-server-tips-bulk-reset-account-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SUSE Linux Enterprise Server 11 SP1 Minimal Server Appliance</title>
		<link>http://vavai.net/2011/11/suse-linux-enterprise-server-11-sp1-minimal-server-appliance/</link>
		<comments>http://vavai.net/2011/11/suse-linux-enterprise-server-11-sp1-minimal-server-appliance/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 07:07:05 +0000</pubDate>
		<dc:creator>Vavai</dc:creator>
				<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[SLES]]></category>
		<category><![CDATA[SUSE Studio]]></category>

		<guid isPermaLink="false">http://vavai.net/?p=1311</guid>
		<description><![CDATA[I&#8217;m currently working as an IT system integrator on a small company based on Bekasi, a small town near Jakarta Indonesia. The company founded by me and my young brother and covering on various jobs regarding server setting, implementation, maintenance and workshop/training. At first, installing server is an interesting jobs but after similar works on [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working as an IT system integrator on a <a href="http://www.excellent.co.id">small company</a> based on Bekasi, a small town near Jakarta Indonesia. The company founded by me and my young brother and covering on various jobs regarding server setting, implementation, maintenance and workshop/training.</p>
<p>At first, installing server is an interesting jobs but after similar works on some client, I feel bored with the process, ie :</p>
<ol>
<li>Virtualization Server (VMWare, KVM, OpenVZ, Xen, etc) Installation</li>
<li>Server OS installation</li>
<li>Application Installation</li>
<li>Customizing the configuration</li>
</ol>
<p>I think I could reduce the time for processing the above task by making an appliance using SUSE Studio. An appliance will contains my default server setup and all of packages required by application. The results are <a href="http://susestudio.com/a/veav1Y/minimal-server-appliance"><strong>Minimal Server Appliance</strong></a>.</p>
<p><span id="more-1311"></span></p>
<p><a href="http://vavai.net/wp-content/uploads/2011/11/vavai-minimal-server-appliance.jpeg"><img class="size-full wp-image-1312 alignnone" title="vavai-minimal-server-appliance" src="http://vavai.net/wp-content/uploads/2011/11/vavai-minimal-server-appliance.jpeg" alt="" width="480" height="360" /></a></p>
<p>Minimal Server Appliance based on SUSE Linux Enterprise Server 11 SP1 64 bit Just Enough Operating System (JeOS). It has all minimal server package with DRBD+Heartbeat from High Availability Extension (HAE) Addons.</p>
<p>The Appliance was successfully tested to running Zimbra Collaboration Suite 7.×.x (latest testing with Zimbra 7.1.3) on VMWare ESXi, Proxmox VE, VirtualBox and KVM Virtualization. Use the following user name and password credentials to make modification to the appliance configuration :</p>
<p>User Name : root<br />
Password : opensuse</p>
<p>By using this application I can reduce the installation time to just a few minutes only. If you wish to make some modification, feel free to clone the appliance and making your own.</p>
<p>Notes from latest releases :</p>
<p>001 : Change Appliance Size to 50 GB (Dynamic Size)<br />
002 : Add netcat package, required by Zimbra zmconfigd<br />
003 : Add Indonesian Local Mirror for SLES 11 SP1 64 bit<br />
004 : Add imapsync package for mail migration and synchronization<br />
005 : Add nmap package for port tracking<br />
006 : Add opendkim package for Zimbra DKIM signature<br />
007 : Add ntp and yast2-ntp-client for time synchronization<br />
008 : Add sqlite3 package, required by Zimbra 7.×.x</p>
<p>I&#8217;m intended and mostly using the appliance for Zimbra mail server deployment on top of SLES 11 SP1 64 bit but the appliance itself could be setting up as web server, database server, proxy server, file server, etc.</p>
<p>Minimal Server Appliance available on ISO LiveCD, Preload ISO for physical server deployment and Virtual Image (OVF and VMX extension) for virtual server deployment.</p>
<p>Please let me know if you found any bugs regarding the appliance.</p>
]]></content:encoded>
			<wfw:commentRss>http://vavai.net/2011/11/suse-linux-enterprise-server-11-sp1-minimal-server-appliance/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing RapidSSL Certificate on Zimbra Mail Server</title>
		<link>http://vavai.net/2011/11/installing-rapidssl-certificate-on-zimbra-mail-server/</link>
		<comments>http://vavai.net/2011/11/installing-rapidssl-certificate-on-zimbra-mail-server/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 05:14:22 +0000</pubDate>
		<dc:creator>Vavai</dc:creator>
				<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[Certificate]]></category>
		<category><![CDATA[RapidSSL]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://vavai.net/?p=1307</guid>
		<description><![CDATA[By default, Zimbra create and installing Self-Signed Certificate on installation process for https transport protocol. Self-signed certificate used for Apache jetty web server (both Zimbra webmail and Administration console), POP3 SSL, SMTP SSL and IMAP SSL. Self-Signed certificate doesn&#8217;t automatically trusted because the certificate was not issued &#38; certify by authorized SSL certificate provider such [...]]]></description>
			<content:encoded><![CDATA[<p>By default, Zimbra <em>c</em>reate and installing<em> Self-Signed Certificate</em> on installation process for https transport protocol. Self-signed certificate used for Apache jetty web server (both Zimbra webmail and Administration console), POP3 SSL, SMTP SSL and IMAP SSL. Self-Signed certificate doesn&#8217;t automatically trusted because the certificate was not issued &amp; certify by authorized SSL certificate provider such as Verisign, Cybertrust, Godaddy, RapidSSL, etc.</p>
<p><a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2011/11/certificate-untrusted11.png"><img class="alignnone size-full wp-image-4552" title="certificate-untrusted1" src="http://vavai.com/wp-content/uploads/2011/11/certificate-untrusted11.png" alt="" width="324" height="180" /></a></p>
<p>Below are step-by-step how to install RapidSSL certificate on Zimbra Mail Server</p>
<p><span id="more-1307"></span></p>
<ol>
<li>Open Zimbra Administration Console, go to <strong>Tools | Certificate </strong>menu and then click on <strong>Install Certificate </strong>link</li>
<li>Follow the Certificate creation wizard. On Second wizard windows, choose <strong>Generate the CSR for the commercial certificate authorizer</strong> options and then click on Next button until final wizard windows. Don&#8217;t forget to fill in an appropriate entry to the certificate fields.</li>
<li><a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2011/11/vavai-generating-csr-for-zimbra.jpeg"><img class="alignnone size-full wp-image-4556" title="vavai-generating-csr-for-zimbra" src="http://vavai.com/wp-content/uploads/2011/11/vavai-generating-csr-for-zimbra.jpeg" alt="" width="370" height="272" /></a></li>
<li>On final wizard, click on <strong>Download the CSR</strong> link</li>
<li>Buy an SSL certificate from RapidSSL and use the downloaded CSR on the above process as required by RapidSSL. RapidSSL will send us the webserver and intermediate certificate</li>
<li>Create a blank-text file <strong>/tmp/zcsserver.crt</strong>. Copy-paste all of webserver certificate content from RapidSSL including <strong>Begin Certificate </strong>and <strong>End Certificate</strong> line into /tmp/zcsserver.crt.</li>
<li>Run the following command :
<pre class="brush: bash">
cd /tmp
wget http://www.geotrust.com/resources/root_certificates/certificates/GeoTrust_Global_CA.cer
wget https://knowledge.rapidssl.com/library/VERISIGN/ALL_OTHER/RapidSSL%20Intermediate/RapidSSL_CA_bundle.pem
cat GeoTrust_Global_CA.cer RapidSSL_CA_bundle.pem &gt; /tmp/ca_bundle.crt
cd /opt/zimbra/bin
./zmcertmgr deploycrt comm /tmp/zcsserver.crt /tmp/ca_bundle.crt
chmod 644 /opt/zimbra/java/jre/lib/security/cacerts
/opt/zimbra/java/bin/keytool -import -alias rapidsslintca -keystore /opt/zimbra/java/jre/lib/security/cacerts -storepass changeit -file /tmp/RapidSSL_CA_bundle.pem
su - zimbra
zmcontrol restart
</pre>
<p> <strong>changeit</strong> on the above line is the default password for Mailbox truststore. If you wish to verify the correct password, check it with the following command :</p>
<pre class="brush: bash">
su - zimbra
zmlocalconfig -s | grep mailboxd_truststore_password
</pre>
</li>
<li>Check your Zimbra Mail Server with https protocol and make sure that certificate was installed sucessfully</li>
</ol>
<p><a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2011/11/vavai-geotrust-ssl-certificate.jpeg"><img class="alignnone size-full wp-image-4549" title="vavai-geotrust-ssl-certificate" src="http://vavai.com/wp-content/uploads/2011/11/vavai-geotrust-ssl-certificate.jpeg" alt="" width="441" height="293" /></a></p>
<p><strong>Note</strong> : If you wish to replace the words <strong>Which is run by (unknown)</strong> to an appropriate organization name, buy the premium or advanced SSL certificate. Premium or Advanced SSL certificate is more expensive than standard SSL certificate and need a document from your organization to be verified by SSL certificate provider</p>
]]></content:encoded>
			<wfw:commentRss>http://vavai.net/2011/11/installing-rapidssl-certificate-on-zimbra-mail-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading Zimbra Mail Server 6.x.x into Zimbra Mail Server 7.x.x</title>
		<link>http://vavai.net/2011/04/upgrading-zimbra-mail-server-6-x-x-into-zimbra-mail-server-7-x-x/</link>
		<comments>http://vavai.net/2011/04/upgrading-zimbra-mail-server-6-x-x-into-zimbra-mail-server-7-x-x/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 11:45:48 +0000</pubDate>
		<dc:creator>Vavai</dc:creator>
				<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[SLES]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">http://vavai.net/?p=1296</guid>
		<description><![CDATA[Zimbra has released Zimbra 7 for about a month and it seems quite stable for production use. As major upgrade to Zimbra 6, Zimbra 7 comes with tons of bug fixes and new features including security feature to prevent virus and spam. Does the upgrade process should be applied for production use ? The answer [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.zimbra.com">Zimbra</a> has released Zimbra 7 for about a month and it seems quite stable for production use. As major upgrade to Zimbra 6, Zimbra 7 comes with tons of bug fixes and new features including security feature to prevent virus and spam.</p>
<p>Does the upgrade process should be applied for production use ? The answer depends on your environment. If an existing system quite stable with minor problem, you may stick with your existing Zimbra system but if you need some features that only provided by Zimbra 7, upgrading may be the best option. I&#8217;m currently manages some Zimbra for production mail server system on some client, most of them are corporate with user 100-10k users.<span id="more-1296"></span></p>
<p><a href="http://vavai.com/wp-content/uploads/2011/04/zimbra-login.png"><img class="alignnone size-medium wp-image-2782" title="zimbra-login" src="http://vavai.com/wp-content/uploads/2011/04/zimbra-login-300x209.png" alt="" width="300" height="209" /></a></p>
<p>If you wish to upgrading  Zimbra 6.x.x into Zimbra 7.x.x, below are some notes to make upgrading process works successfully. Upgrade process took about 30 minutes on system with 8 GB of RAM</p>
<ol>
<li><strong>Full Backup</strong>. Backup is a must, especially for major upgrade from Zimbra 6 to Zimbra 7. Backup all your  /opt/zimbra to a backup media. It&#8217;s a preventive tasks, as an emergency option in case upgrade process doesn&#8217;t work as expected.</li>
<li><strong>Write a Notes for Custom Modification</strong>. Upgrading process will remove all custom modification to Zimbra system, including DomainKeys/DKIM, PolicyD, Postfix Restrict Recipient, RBL override, custome Postfix tweaks, etc</li>
<li><strong>Download &amp; Read Release Notes Carefully</strong>. Release notes can be obtained from  : <a href="http://www.zimbra.com/downloads/os-downloads.html">http://www.zimbra.com/downloads/os-downloads.html</a>. Read it carefully, especially for pre, on and post install tips.</li>
<li><strong>Update MySQL Database</strong>. Zimbra bypassing this process because this process will took a much longer time, depending MySQL database size. Although the bypass process will not messed up email sending and receiving,  Zimbra will issued an error for  database integrity report as below :

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">Database errors found.
<span style="color: #000040;">/</span>opt<span style="color: #000040;">/</span>zimbra<span style="color: #000040;">/</span>mysql<span style="color: #000040;">/</span>bin<span style="color: #000040;">/</span>mysqlcheck <span style="color: #000040;">--</span>defaults<span style="color: #000040;">-</span>file<span style="color: #000080;">=</span><span style="color: #000040;">/</span>opt<span style="color: #000040;">/</span>zimbra<span style="color: #000040;">/</span>conf<span style="color: #000040;">/</span>my.<span style="color: #007788;">cnf</span> <span style="color: #000040;">-</span>S <span style="color: #000040;">/</span>opt<span style="color: #000040;">/</span>zimbra<span style="color: #000040;">/</span>db<span style="color: #000040;">/</span>mysql.<span style="color: #007788;">sock</span> <span style="color: #000040;">-</span>A <span style="color: #000040;">-</span>C <span style="color: #000040;">-</span>s <span style="color: #000040;">-</span>u root <span style="color: #000040;">--</span>password<span style="color: #000080;">=</span>XtfabvSktqwZBQKFU5J.<span style="color: #007788;">vAJ8QQUpssqi</span>
mboxgroup1.<span style="color: #007788;">appointment</span>
 error    <span style="color: #008080;">:</span> Table upgrade required. <span style="color: #007788;">Please</span> <span style="color: #0000ff;">do</span> <span style="color: #FF0000;">&quot;REPAIR TABLE `appointment`&quot;</span> or dump<span style="color: #000040;">/</span>reload to fix it<span style="color: #000040;">!</span>
 mboxgroup1.<span style="color: #007788;">data_source_item</span>
 error    <span style="color: #008080;">:</span> Table upgrade required. <span style="color: #007788;">Please</span> <span style="color: #0000ff;">do</span> <span style="color: #FF0000;">&quot;REPAIR TABLE `data_source_item`&quot;</span> or dump<span style="color: #000040;">/</span>reload to fix it<span style="color: #000040;">!</span>
 mboxgroup1.<span style="color: #007788;">imap_folder</span>
 error    <span style="color: #008080;">:</span> Table upgrade required. <span style="color: #007788;">Please</span> <span style="color: #0000ff;">do</span> <span style="color: #FF0000;">&quot;REPAIR TABLE `imap_folder`&quot;</span> or dump<span style="color: #000040;">/</span>reload to fix it<span style="color: #000040;">!</span>
 mboxgroup1.<span style="color: #007788;">mail_item</span>
 error    <span style="color: #008080;">:</span> Table upgrade required. <span style="color: #007788;">Please</span> <span style="color: #0000ff;">do</span> <span style="color: #FF0000;">&quot;REPAIR TABLE `mail_item`&quot;</span> or dump<span style="color: #000040;">/</span>reload to fix it<span style="color: #000040;">!</span>
 mboxgroup1.<span style="color: #007788;">pop3_message</span>
 error    <span style="color: #008080;">:</span> Table upgrade required. <span style="color: #007788;">Please</span> <span style="color: #0000ff;">do</span> <span style="color: #FF0000;">&quot;REPAIR TABLE `pop3_message`&quot;</span> or dump<span style="color: #000040;">/</span>reload to fix it<span style="color: #000040;">!</span></pre></div></div>

<p>To resolve this problem, run following command from konsole/terminal :</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #000040;">/</span>opt<span style="color: #000040;">/</span>zimbra<span style="color: #000040;">/</span>libexec<span style="color: #000040;">/</span>scripts<span style="color: #000040;">/</span>migrate20100913<span style="color: #000040;">-</span>Mysql51.<span style="color: #007788;">pl</span></pre></div></div>

<p>The above command will invoke Zimbra to updating  MySQL database from Zimbra 6.x.x database schema</li>
<li><strong>Optional : Authorizing Zimbra MTA</strong>. If your Zimbra server could not send an email after upgrade, run the following command :

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">sudo <span style="color: #000040;">/</span>opt<span style="color: #000040;">/</span>zimbra<span style="color: #000040;">/</span>bin<span style="color: #000040;">/</span>zmprov –m –l yourZimbra.<span style="color: #007788;">server</span>.<span style="color: #007788;">com</span> zimbraMtaAuthHost yourZimbra.<span style="color: #007788;">server</span>.<span style="color: #007788;">com</span></pre></div></div>

<p>Note : the above command are optional, you do not need to execute the command if your Zimbra server doesn&#8217;t have any problem for sending and receiving email.</li>
</ol>
<p>Fully tested upgrading Zimbra 6.0.10 to Zimbra 7.1.0 on SUSE Linux Enterprise Server 11 SP1 64 bit.</p>
]]></content:encoded>
			<wfw:commentRss>http://vavai.net/2011/04/upgrading-zimbra-mail-server-6-x-x-into-zimbra-mail-server-7-x-x/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>DomainKeys/DKIM Implementation on Zimbra+SLES 11 SP1 with OpenDKIM</title>
		<link>http://vavai.net/2010/12/domainkeysdkim-implementation-on-zimbrasles-11-sp1-with-opendkim/</link>
		<comments>http://vavai.net/2010/12/domainkeysdkim-implementation-on-zimbrasles-11-sp1-with-opendkim/#comments</comments>
		<pubDate>Sat, 25 Dec 2010 21:16:47 +0000</pubDate>
		<dc:creator>Vavai</dc:creator>
				<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[DKIM]]></category>
		<category><![CDATA[Email Server]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[OpenDKIM]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://vavai.net/?p=1260</guid>
		<description><![CDATA[Following tutorial will covers DomainKeys/DKIM implementation using OpenDKIM on SLES or openSUSE. Domain Keys Identified Mail (DKIM) is a technology designed to make it difficult or impossible for criminals to steal the identities of legitimate organizations. This authentication technology allows good senders to &#8220;sign&#8221; a message to prove that it really did come from them.. [...]]]></description>
			<content:encoded><![CDATA[<p><a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/12/zimbra-logo32.jpg"><img class="alignright size-full wp-image-2386" title="zimbra-logo3" src="http://vavai.com/wp-content/uploads/2010/12/zimbra-logo32.jpg" alt="" width="320" height="105" /></a>Following tutorial will covers DomainKeys/DKIM implementation using OpenDKIM on SLES or openSUSE. Domain Keys Identified Mail (DKIM) is a technology designed to make it difficult or impossible for criminals to steal the identities of legitimate organizations. This authentication technology allows good senders to &#8220;sign&#8221; a message to prove that it really did come from them..</p>
<p>DKIM originally written as sender authentication protocol developed in order to address the problem of forged email messages. Yahoo! released the DomainKeys specification and Cisco released the Internet Identified Mail specification. Both methods are based on cryptographic message signing. The two efforts have been merged, and the combined specification is known as DomainKeys Identified Mail (DKIM).</p>
<p><span id="more-1260"></span></p>
<p>These are various options for implementing DomainKeys Signature : by using DK-Filter, DKIM-milter, OpenDKIM and also by using Amavisd-new DKIM implementation. Don&#8217;t be confused with all the terms. All method have similar function, signing your email as &#8220;trusted&#8221; or legitimate email.<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/12/dkim-process.jpg"><img class="alignnone size-full wp-image-2385" title="dkim-process" src="http://vavai.com/wp-content/uploads/2010/12/dkim-process.jpg" alt="" width="434" height="176" /></a></p>
<p>Implementing OpenDKIM on openSUSE/SLES  for Zimbra Mail Server can be achieved with 5 easy steps :</p>
<ol>
<li>Installing OpenDKIM</li>
<li>Configuring OpenDKIM</li>
<li>Configuring DNS Records</li>
<li>Integrating with Your Mail Server (in my case : Zimbra Mail Server)</li>
<li>Testing &amp; Verified DKIM Signature</li>
</ol>
<p><strong>OPENDKIM INSTALLATION<br />
</strong></p>
<p>Download and install OpenDKIM. I found a repo on <a href="http://software.opensuse.org/search?q=opendkim&amp;baseproject=SUSE%3ASLE-11%3ASP1&amp;lang=en&amp;include_home=true&amp;exclude_debug=true">openSUSE Build Services Repository</a>,  <del><a href="http://packages.opensuse-community.org/index.jsp?searchTerm=opendkim">Webpin</a>. RPM has build for openSUSE 11.2 but you may also install it on openSUSE 11.3 or SLES 11.</del></p>
<p>In case the original RPM removed from repos, I make a backup copy on my repo <a href="http://download.vavai.com">http://download.vavai.com</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">wget <span style="color: #000040;">-</span>c http<span style="color: #008080;">:</span><span style="color: #666666;">//download.vavai.com/repo/x86_64/opendkim-2.2.2-2.1.x86_64.rpm</span>
wget <span style="color: #000040;">-</span>c http<span style="color: #008080;">:</span><span style="color: #666666;">//download.vavai.com/repo/x86_64/libopendkim3-2.2.2-2.1.x86_64.rpm</span>
zypper in <span style="color: #000040;">*</span>.<span style="color: #007788;">rpm</span></pre></div></div>

<p><strong>OPENDKIM CONFIGURATION<br />
</strong></p>
<ol>
<li>Create OpenDKIM configuration

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">cp <span style="color: #000040;">/</span>usr<span style="color: #000040;">/</span>share<span style="color: #000040;">/</span>doc<span style="color: #000040;">/</span>packages<span style="color: #000040;">/</span>opendkim<span style="color: #000040;">/</span>opendkim.<span style="color: #007788;">conf</span>.<span style="color: #007788;">sample</span> <span style="color: #000040;">/</span>etc<span style="color: #000040;">/</span>opendkim.<span style="color: #007788;">conf</span>
mkdir <span style="color: #000040;">-</span>p <span style="color: #000040;">/</span>etc<span style="color: #000040;">/</span>mail<span style="color: #000040;">/</span>dkim</pre></div></div>

</li>
<li>Modify  <strong>/etc/opendkim.conf</strong>to meet with your environment

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">BaseDirectory <span style="color: #000040;">/</span>var<span style="color: #000040;">/</span>run<span style="color: #000040;">/</span>opendkim
Domain vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>
InternalHosts 192.168.10.0<span style="color: #000040;">/</span><span style="color: #0000dd;">24</span>, 127.0.0.1
KeyFile <span style="color: #000040;">/</span>etc<span style="color: #000040;">/</span>mail<span style="color: #000040;">/</span>dkim<span style="color: #000040;">/</span>selector.<span style="color: #0000ff;">private</span>
Mode sv
Selector selector
Socket inet<span style="color: #008080;">:</span><span style="color: #0000dd;">8891</span>@localhost
Syslog Yes
SyslogFacility mail
X<span style="color: #000040;">-</span>Header Yes</pre></div></div>

</li>
<li>Create selector and key for signing message

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">opendkim<span style="color: #000040;">-</span>genkey <span style="color: #000040;">-</span>d vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span> <span style="color: #000040;">-</span>D <span style="color: #000040;">/</span>etc<span style="color: #000040;">/</span>mail<span style="color: #000040;">/</span>dkim <span style="color: #000040;">-</span>s selector
cd <span style="color: #000040;">/</span>etc<span style="color: #000040;">/</span>mail<span style="color: #000040;">/</span>dkim
chmod <span style="color: #0000dd;">440</span> selector.<span style="color: #0000ff;">private</span></pre></div></div>

<p>The above command made  2 files : selector.txt &amp;selector.private. selector.txt contain DNS records that we must insert into our DNS Server .</li>
<li>Run openDKIM with following command :

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">opendkim <span style="color: #000040;">-</span>x <span style="color: #000040;">/</span>etc<span style="color: #000040;">/</span>opendkim.<span style="color: #007788;">conf</span></pre></div></div>

</li>
</ol>
<p><strong>DNS SERVER CONFIGURATION<br />
</strong></p>
<p>Open <strong>/etc/mail/dkim/selector.txt</strong> and copy it&#8217;s content into our DNS Server. If your public DNS managed by ISP, contact and ask them for inserting a TXT records into DNS Server for our domain.</p>
<p>Below are a sample of my DNS Server for domain vavai.web.id :</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;"># cat /var/lib/named/master/vavai.web.id</span>
$TTL 2d
@		IN SOA		ns1.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>.	<span style="color: #007788;">root</span>.<span style="color: #007788;">ns1</span>.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>. <span style="color: #008000;">&#40;</span>
				<span style="color: #0000dd;">2010122101</span>	<span style="color: #008080;">;</span> serial
				3h		<span style="color: #008080;">;</span> refresh
				1h		<span style="color: #008080;">;</span> retry
				1w		<span style="color: #008080;">;</span> expiry
				1d <span style="color: #008000;">&#41;</span>		<span style="color: #008080;">;</span> minimum
&nbsp;
vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>.	<span style="color: #007788;">IN</span> NS		ns1.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>.
<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>.	<span style="color: #007788;">IN</span> NS		ns2.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>.
<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>.   <span style="color: #007788;">IN</span> A		174.120.9.<span style="color: #007788;">XXX</span>
vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>.	<span style="color: #007788;">IN</span> MX		<span style="color: #0000dd;">0</span> mail.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>.
<span style="color: #007788;">www</span>		IN CNAME	vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>.
<span style="color: #007788;">ns1</span>		IN A		202.158.52.<span style="color: #007788;">xxx</span>
mail		IN A		202.158.52.<span style="color: #007788;">xxx</span>
ns2		IN A		202.43.115.<span style="color: #007788;">xxx</span>
vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>.   <span style="color: #007788;">IN</span> TXT          <span style="color: #FF0000;">&quot;v=spf1 a mx include:mail.vavai.web.id ~all&quot;</span>
selector._domainkey IN TXT <span style="color: #FF0000;">&quot;v=DKIM1; r=postmaster; g=*; k=rsa; p=MIG29fMA0GCSqsdfsdfdsfdsfGSIb3DQEBAQUAA4GNADCBiQKBgQDJ5IZT5e5nvmkotroz5ylTlwU8yEEZ+v/576aI+w6TkbP4XibYxDsWVweXXtVeQQMMAAmw8AwYuK5R9b373Xqu+Hv9HNAJoAteKF/qlKcZc5Akhj5B7P1imXaurZkkIBp63yBZyZRralzQYNT3UrVB7M/xONMWXcU9xm7Zv1PzH1Y1OQIDAQAB&quot;</span></pre></div></div>

<p><strong>ZIMBRA MAIL SERVER</strong> <strong>CONFIGURATION</strong></p>
<p>Login as Zimbra user (su – zimbra) and then add the following item :</p>
<pre class="brush: bash">
    -o milter_default_action=accept
    -o smtpd_milters=inet:localhost:8891
    -o non_smtpd_milters=inet:localhost:8891
    -o disable_mime_output_conversion=yes
</pre>
<p>into bottom line of <strong>/opt/zimbra/postfix/conf/master.cf.in</strong>, after the following line :</p>
<pre class="brush: bash">
-o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappin
</pre>
<p><strong>TESTING &amp; VERIFYING OPENDKIM</strong><br />
After all step has been successfully executed, testing OpenDKIM by sending a blank email into sa-test@sendmail.net or check-auth@verifier.port25.com or autorespond+dkim@dk.elandsys.com or into your Gmail/Yahoo email account.</p>
<p>Below are a sample of response message from sendmail :</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">Authentication System<span style="color: #008080;">:</span>       DomainKeys Identified Mail
Result<span style="color: #008080;">:</span>                   DKIM signature confirmed GOOD
Description<span style="color: #008080;">:</span>              Signature verified, message arrived intact
Reporting host<span style="color: #008080;">:</span>           sendmail.<span style="color: #007788;">net</span>
More information<span style="color: #008080;">:</span>         http<span style="color: #008080;">:</span><span style="color: #666666;">//mipassoc.org/dkim/</span>
Sendmail milter<span style="color: #008080;">:</span>          https<span style="color: #008080;">:</span><span style="color: #666666;">//sourceforge.net/projects/dkim-milter/</span></pre></div></div>

<p>Respon from elandsys :</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">This is an automatic response.  <span style="color: #007788;">Replies</span> to <span style="color: #0000dd;">this</span> message will not generate
an automatic response.
<span style="color: #007788;">Do</span> not reply to <span style="color: #0000dd;">this</span> message except <span style="color: #0000ff;">for</span> reporting a problem.
&nbsp;
<span style="color: #007788;">The</span> results are as follows<span style="color: #008080;">:</span>
&nbsp;
DKIM Signature validation<span style="color: #008080;">:</span> pass <span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1024</span><span style="color: #000040;">-</span>bit key<span style="color: #008000;">&#41;</span></pre></div></div>

<p>Response from Gmail</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">Received<span style="color: #000040;">-</span>SPF<span style="color: #008080;">:</span> pass <span style="color: #008000;">&#40;</span>google.<span style="color: #007788;">com</span><span style="color: #008080;">:</span> domain of vavai@vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span> designates XXX.158.52.<span style="color: #007788;">XXX</span> as permitted sender<span style="color: #008000;">&#41;</span> client<span style="color: #000040;">-</span>ip<span style="color: #000080;">=</span>XXX.158.52.<span style="color: #007788;">XXX</span><span style="color: #008080;">;</span>
Authentication<span style="color: #000040;">-</span>Results<span style="color: #008080;">:</span> mx.<span style="color: #007788;">google</span>.<span style="color: #007788;">com</span><span style="color: #008080;">;</span> spf<span style="color: #000080;">=</span>pass <span style="color: #008000;">&#40;</span>google.<span style="color: #007788;">com</span><span style="color: #008080;">:</span> domain of vavai@vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span> designates XXX.158.52.<span style="color: #007788;">XXX</span> as permitted sender<span style="color: #008000;">&#41;</span> smtp.<span style="color: #007788;">mail</span><span style="color: #000080;">=</span>vavai@vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span><span style="color: #008080;">;</span> dkim<span style="color: #000080;">=</span>pass header.<span style="color: #007788;">i</span><span style="color: #000080;">=</span>@vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>
Received<span style="color: #008080;">:</span> from localhost <span style="color: #008000;">&#40;</span>localhost <span style="color: #008000;">&#91;</span>127.0.0.1<span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span>
	by mx3.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span> <span style="color: #008000;">&#40;</span>Postfix<span style="color: #008000;">&#41;</span> with ESMTP id 0E666DB0302
	<span style="color: #0000ff;">for</span> <span style="color: #008080;">;</span> Wed, <span style="color: #0000dd;">22</span> Dec <span style="color: #0000dd;">2010</span> <span style="color:#800080;">09</span><span style="color: #008080;">:</span><span style="color: #0000dd;">42</span><span style="color: #008080;">:</span><span style="color: #0000dd;">12</span> <span style="color: #000040;">+</span><span style="color: #208080;">0700</span> <span style="color: #008000;">&#40;</span>WIT<span style="color: #008000;">&#41;</span>
X<span style="color: #000040;">-</span>Virus<span style="color: #000040;">-</span>Scanned<span style="color: #008080;">:</span> amavisd<span style="color: #000040;">-</span><span style="color: #0000dd;">new</span> at vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span>
Received<span style="color: #008080;">:</span> from mx3.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span> <span style="color: #008000;">&#40;</span><span style="color: #008000;">&#91;</span>127.0.0.1<span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span>
	by localhost <span style="color: #008000;">&#40;</span>mx3.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span> <span style="color: #008000;">&#91;</span>127.0.0.1<span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#40;</span>amavisd<span style="color: #000040;">-</span><span style="color: #0000dd;">new</span>, port <span style="color: #0000dd;">10024</span><span style="color: #008000;">&#41;</span>
	with ESMTP id On3P3QqkyMM4 <span style="color: #0000ff;">for</span> <span style="color: #008080;">;</span>
	Wed, <span style="color: #0000dd;">22</span> Dec <span style="color: #0000dd;">2010</span> <span style="color:#800080;">09</span><span style="color: #008080;">:</span><span style="color: #0000dd;">42</span><span style="color: #008080;">:</span><span style="color: #0000dd;">11</span> <span style="color: #000040;">+</span><span style="color: #208080;">0700</span> <span style="color: #008000;">&#40;</span>WIT<span style="color: #008000;">&#41;</span>
Received<span style="color: #008080;">:</span> from mx3.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span> <span style="color: #008000;">&#40;</span>mx3.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span> <span style="color: #008000;">&#91;</span>XXX.158.52.<span style="color: #007788;">XXX</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span>
	by mx3.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span> <span style="color: #008000;">&#40;</span>Postfix<span style="color: #008000;">&#41;</span> with ESMTP id 56CC1DB0136
	<span style="color: #0000ff;">for</span> <span style="color: #008080;">;</span> Wed, <span style="color: #0000dd;">22</span> Dec <span style="color: #0000dd;">2010</span> <span style="color:#800080;">09</span><span style="color: #008080;">:</span><span style="color: #0000dd;">42</span><span style="color: #008080;">:</span><span style="color: #0000dd;">11</span> <span style="color: #000040;">+</span><span style="color: #208080;">0700</span> <span style="color: #008000;">&#40;</span>WIT<span style="color: #008000;">&#41;</span>
X<span style="color: #000040;">-</span>DKIM<span style="color: #008080;">:</span> OpenDKIM Filter v2.2.2 mx3.<span style="color: #007788;">vavai</span>.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span> 56CC1DB0136
DKIM<span style="color: #000040;">-</span>Signature<span style="color: #008080;">:</span> v<span style="color: #000080;">=</span><span style="color: #0000dd;">1</span><span style="color: #008080;">;</span> a<span style="color: #000080;">=</span>rsa<span style="color: #000040;">-</span>sha256<span style="color: #008080;">;</span> c<span style="color: #000080;">=</span>simple<span style="color: #000040;">/</span>simple<span style="color: #008080;">;</span> d<span style="color: #000080;">=</span>vavai.<span style="color: #007788;">web</span>.<span style="color: #007788;">id</span><span style="color: #008080;">;</span>
	s<span style="color: #000080;">=</span>selector<span style="color: #008080;">;</span> t<span style="color: #000080;">=</span><span style="color: #0000dd;">1292985731</span><span style="color: #008080;">;</span>
	bh<span style="color: #000080;">=</span>cBOiyKgb7kh<span style="color: #000040;">/</span>ygTXq8sQihgwMCryqYRvRZBYcO6<span style="color: #000040;">/</span>z5U<span style="color: #000080;">=</span><span style="color: #008080;">;</span>
	h<span style="color: #000080;">=</span>Date<span style="color: #008080;">:</span>From<span style="color: #008080;">:</span>To<span style="color: #008080;">:</span>Message<span style="color: #000040;">-</span>ID<span style="color: #008080;">:</span>Subject<span style="color: #008080;">:</span>MIME<span style="color: #000040;">-</span>Version<span style="color: #008080;">:</span>Content<span style="color: #000040;">-</span>Type<span style="color: #008080;">;</span>
	b<span style="color: #000080;">=</span>KMOYjsda6qPqNdf0NuyxdEayFxgRCAVmilYKobK3sKV8hSvybT3fmbWM<span style="color: #000040;">+</span>2mZUCzMY
	 sDSdVVTXMB6RnHoEPyPzNFK7y9TPpAn0SPkGqL0nSzQ<span style="color: #000040;">+</span>Fr6<span style="color: #000040;">/</span>VaEBHrcQGduUNm5Ot5
	 V0Y9vIcmfjLGWTkkAX0RjHpV<span style="color: #000040;">/</span>9ZK8VPJD0etRsM0<span style="color: #000080;">=</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://vavai.net/2010/12/domainkeysdkim-implementation-on-zimbrasles-11-sp1-with-opendkim/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Script for Export-Import Zimbra Mail Server Account &amp; Password</title>
		<link>http://vavai.net/2010/08/script-for-export-import-zimbra-mail-server-account-password/</link>
		<comments>http://vavai.net/2010/08/script-for-export-import-zimbra-mail-server-account-password/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 02:19:22 +0000</pubDate>
		<dc:creator>Vavai</dc:creator>
				<category><![CDATA[OpenSUSE]]></category>
		<category><![CDATA[Zimbra]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://vavai.net/?p=1229</guid>
		<description><![CDATA[Zimbra save all account and profile information on the LDAP database. Zimbra has no function for only import and export it&#8217;s account, although they have bundled Zimbra to Zimbra migration command. The Zimbra to Zimbra migration command export all mailbox and account while I only need a list of account with some primary fields like [...]]]></description>
			<content:encoded><![CDATA[<p><a class="highslide" onclick="return vz.expand(this)" href="http://vavai.net/wp-content/uploads/2010/08/zimbra-opensuse1.jpg"><img class="alignnone size-full wp-image-1240" title="zimbra-opensuse1" src="http://vavai.net/wp-content/uploads/2010/08/zimbra-opensuse1.jpg" alt="" width="125" height="125" /></a></p>
<p>Zimbra save all account and profile information on the LDAP database. Zimbra has no function for only import and export it&#8217;s account, although they have bundled Zimbra to Zimbra migration command. The Zimbra to Zimbra migration command export all mailbox and account while I only need a list of account with some primary fields like password, first name, full name, etc, especially for testing purpose only.</p>
<p>I decided to create a simple script that look for related information on Zimbra LDAP with the following algorithm :</p>
<ol>
<li>Check  Zimbra version, because Zimbra 5 and Zimbra 6 has different method for accessing LDAP and also these are a few changes on Zimbra CLI. Zimbra 6 need paramater for command while Zimbra 5 doesn&#8217;t need it, e.g, on Zimbra 5, running <strong>zmprov gaa</strong> will list all Zimbra account but on Zimbra 6 we must use <strong>zmprov -l gaa </strong>to display same result.</li>
<li>Export all  account profile to temporary parameter and loop for all account</li>
<li>Skip all system account : admin, ham, spam, galsync and wiki. All these system account doesn&#8217;t need to be exported because Zimbra will create all system account on installation process.</li>
<li>Get all account identity/fields from Zimbra LDAP by using  LDAPsearch command</li>
<li>Create a text file with zmp extension. This file will contains  zmprov ca command with proper parameter from step 4</li>
<li>Create  ldif file for updating Zimbra LDAP password, because Zimbra LDAP using SSHA encryption and the better method for updating Zimbra LDAP password is using ldapmodify command.</li>
<li>Finish</li>
</ol>
<p><span id="more-1229"></span></p>
<p>Algorithm for  Import Account</p>
<ol>
<li>Check whether user are already on Zimbra user environment or not</li>
<li>Check is there existing  zmp and ldif file (the result from export script)</li>
<li>Import zmp file</li>
<li>Run ldapmodify command to change Zimbra LDAP password by using  ldif data</li>
<li>Finish</li>
</ol>
<p>Please remember that you must running export  script by using root privilege  but the  import account must be run within  Zimbra user environment (su &#8211; zimbra).</p>
<p>Look at following example to run Zimbra Account export script :</p>
<pre class="brush: cpp">
su
cd /srv
wget -c http://vavai.com/wp-content/uploads/exim-acc-zcs.tar.gz
tar -zxvf exim-acc-zcs.tar.gz
cd exim-acc-zcs
./export-acc-zcs.sh
</pre>
<p>The above command will produce  zcs-acc-add.zmp and zcs-acc-mod.ldif file. Copy all four file (the last two are  script file) onto some folder on target server and run the following command to import the account and it&#8217;s profile :</p>
<pre class="brush: cpp">
su
su - zimbra
cd /home/vavai
./import-acc-zcs.sh
</pre>
<p>Script has been sucessfully tested on  Zimbra 6.0.5, 6.0.6 dan 6.0.7 on SUSE Linux Enterprise Server 11 and openSUSE 11.</p>
<p><a class="highslide" onclick="return vz.expand(this)" href="http://vavai.net/wp-content/uploads/2010/08/export-account-zcs.jpeg"><img class="alignnone size-full wp-image-1245" title="export-account-zcs" src="http://vavai.net/wp-content/uploads/2010/08/export-account-zcs.jpeg" alt="" width="428" height="230" /></a></p>
<p>Download Zimbra Account Export-Import Script by click on the download icon belows :<br />
<a href="http://vavai.com/wp-content/uploads/exim-acc-zcs.tar.gz"><img src="http://vavai.com/wp-content/uploads/2010/06/Download.png" alt="" /></a></p>
<p>Script for export :</p>
<pre class="brush: cpp">
#!/bin/sh

#Hapus Layar
clear

echo -e &quot;###################################################################################&quot;
echo -e &quot;# Zimbra export-acc-zcs.sh ver 0.0.2                                              #&quot;
echo -e &quot;# Skrip untuk export account Zimbra berikut profile dan password                  #&quot;
echo -e &quot;# Masim &#039;Vavai&#039; Sugianto - vavai@vavai.com - http://www.vavai.com                 #&quot;
echo -e &quot;# Untuk saran dan pertanyaan silakan menggunakan Milis Komunitas Zimbra Indonesia #&quot;
echo -e &quot;# Link Komunitas : http://www.zimbra.web.id - http://www.opensuse.or.id           #&quot;
echo -e &quot;###################################################################################&quot;

# /* Variable untuk bold */
ibold=&quot;\033[1m&quot;&quot;\n===&gt; &quot;
ebold=&quot;\033[0m&quot;

# /* Parameter */
echo &quot;&quot;
echo -n &quot;Enter Domain Name (ex : vavai.com) : &quot;
read NAMA_DOMAIN
echo -n &quot;Enter path folder for exported account (ex : /home/vavai/) : &quot;
read FOLDER

# /* Membuat file hasil export dan mengisi nama domain */
NAMA_FILE=&quot;$FOLDER/zcs-acc-add.zmp&quot;
LDIF_FILE=&quot;$FOLDER/zcs-acc-mod.ldif&quot;

rm -f $NAMA_FILE
rm -f $LDIF_FILE

touch $NAMA_FILE
touch $LDIF_FILE

echo &quot;createDomain $NAMA_DOMAIN&quot; &gt; $NAMA_FILE

# /* Check versi Zimbra yang digunakan */
VERSION=`su - zimbra -c &#039;zmcontrol -v&#039;`;
ZCS_VER=&quot;/tmp/zcsver.txt&quot;
# get Zimbra LDAP password
ZIMBRA_LDAP_PASSWORD=`su - zimbra -c &quot;zmlocalconfig -s zimbra_ldap_password | cut -d &#039; &#039; -f3&quot;`

touch $ZCS_VER
echo $VERSION &gt; $ZCS_VER

echo -e $ibold&quot;Retrieve Zimbra User..............................&quot;$ebold

grep &quot;Release 5.&quot; $ZCS_VER
if [ $? = 0 ]; then
USERS=`su - zimbra -c &#039;zmprov gaa&#039;`;
LDAP_MASTER_URL=`su - zimbra -c &quot;zmlocalconfig -s ldap_master_url | cut -d &#039; &#039; -f3&quot;`
fi

grep &quot;Release 6.&quot; $ZCS_VER
if [ $? = 0 ]; then
USERS=`su - zimbra -c &#039;zmprov -l gaa&#039;`;
LDAP_MASTER_URL=&quot;ldapi:///&quot;
fi

echo -e $ibold&quot;Processing account, please wait..............................&quot;$ebold
# /* Proses insert account kedalam file hasil export */
for ACCOUNT in $USERS; do
NAME=`echo $ACCOUNT`;
DOMAIN=`echo $ACCOUNT | awk -F@ &#039;{print $2}&#039;`;
ACCOUNT=`echo $ACCOUNT | awk -F@ &#039;{print $1}&#039;`;
ACC=`echo $ACCOUNT | cut -d &#039;.&#039; -f1`

if [ $NAMA_DOMAIN == $DOMAIN ] ;
then
OBJECT=&quot;(&amp;amp;(objectClass=zimbraAccount)(mail=$NAME))&quot;
dn=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep dn:`

displayName=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep displayName: | cut -d &#039;:&#039; -f2 | sed &#039;s/^ *//g&#039; | sed &#039;s/ *$//g&#039;`

givenName=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep givenName: | cut -d &#039;:&#039; -f2 | sed &#039;s/^ *//g&#039; | sed &#039;s/ *$//g&#039;`

userPassword=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep userPassword: | cut -d &#039;:&#039; -f3 | sed &#039;s/^ *//g&#039; | sed &#039;s/ *$//g&#039;`

cn=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep cn: | cut -d &#039;:&#039; -f2 | sed &#039;s/^ *//g&#039; | sed &#039;s/ *$//g&#039;`

initials=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep initials: | cut -d &#039;:&#039; -f2 | sed &#039;s/^ *//g&#039; | sed &#039;s/ *$//g&#039;`

sn=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep sn: | cut -d &#039;:&#039; -f2 | sed &#039;s/^ *//g&#039; | sed &#039;s/ *$//g&#039;`

if [ $ACC == &quot;admin&quot; ] || [ $ACC == &quot;wiki&quot; ] || [ $ACC == &quot;galsync&quot; ] || [ $ACC == &quot;ham&quot; ] || [ $ACC == &quot;spam&quot; ]; then
echo &quot;Skipping system account, $NAME...&quot;
else
echo &quot;createAccount $NAME passwordtemp displayName &#039;$displayName&#039; givenName &#039;$givenName&#039; sn &#039;$sn&#039; initials &#039;$initials&#039; zimbraPasswordMustChange FALSE&quot; &gt;&gt; $NAMA_FILE

echo &quot;$dn
changetype: modify
replace: userPassword
userPassword:: $userPassword
&quot; &gt;&gt; $LDIF_FILE
echo &quot;Adding account $NAME&quot;
fi
else
echo &quot;Skipping account $NAME&quot;
fi

done
echo -e $ibold&quot;All account has been exported sucessfully into $NAMA_FILE and $LDIF_FILE...&quot;$ebold
</pre>
<p><strong>Script for import :</strong></p>
<pre class="brush: cpp">
#!/bin/sh

#Hapus Layar
clear

echo -e &#039;###################################################################################&#039;
echo -e &#039;# Zimbra import-zcs-acc.sh ver 0.0.1                                              #&#039;
echo -e &#039;# Skrip untuk import data account Zimbra                                          #&#039;
echo -e &#039;# Masim &#039;Vavai&#039; Sugianto - vavai@vavai.com - http://www.vavai.com                 #&#039;
echo -e &#039;# Untuk saran dan pertanyaan silakan menggunakan Milis Komunitas Zimbra Indonesia #&#039;
echo -e &#039;# Link Komunitas : http://www.zimbra.web.id - http://www.opensuse.or.id           #&#039;
echo -e &#039;###################################################################################&#039;

# /* Variable untuk bold */
ibold=&quot;\033[1m&quot;&quot;\n===&gt; &quot;
ebold=&quot;\033[0m&quot;

if [ &quot;$USER&quot; != &quot;zimbra&quot; ]
then
echo -e $ibold&quot;You need to be user zimbra to run this script...&quot;$ebold
exit
fi

CURRENT_FOLDER=`pwd`;

echo &quot;&quot;
echo -e &quot;Please verify that you have copied zcs-acc-add.zmp &amp;amp; zcs-acc-mod.ldif on current folder !&quot;
echo -e &quot;Current Folder : $CURRENT_FOLDER, Please change to your folder before running this script.&quot;
echo -e &quot;Press ENTER to continue...&quot;
read jawab

if [ -f ./zcs-acc-add.zmp ];
then
if [ -f ./zcs-acc-add.zmp ];
then
echo -e $ibold&quot;Importing account...&quot;$ebold

ZIMBRA_LDAP_PASSWORD=`zmlocalconfig -s zimbra_ldap_password | cut -d &#039; &#039; -f3`

#		cat ./zcs-acc-add.zmp | su - zimbra -c zmprov
zmprov &lt; $CURRENT_FOLDER/zcs-acc-add.zmp

echo -e $ibold&quot;Modify password...&quot;$ebold

ldapmodify -f &quot;$CURRENT_FOLDER/zcs-acc-mod.ldif&quot; -x -H ldapi:/// -D cn=config -w $ZIMBRA_LDAP_PASSWORD

#		su - zimbra -c &#039;$LDAP_CMD&#039;

echo -e $ibold&quot;Zimbra account has been modified sucessfully ...&quot;$ebold

else
echo &quot;Sorry, file $CURRENT_FOLDER/zcs-acc-mod.ldif does not exists, import process will not be continue...&quot;
exit
fi
else
echo &quot;Sorry, file $CURRENT_FOLDER/zcs-acc-add.zmp does not exists, import process will not be continue...&quot;
exit
fi
</pre>
]]></content:encoded>
			<wfw:commentRss>http://vavai.net/2010/08/script-for-export-import-zimbra-mail-server-account-password/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

