<?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>BigSmoke &#187; zimbra</title>
	<atom:link href="http://blog.bigsmoke.us/tag/zimbra/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bigsmoke.us</link>
	<description>Smokes your problems, coughs fresh air.</description>
	<lastBuildDate>Sat, 04 Feb 2012 11:10:31 +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 a commercial SSL certificate in Zimbra</title>
		<link>http://blog.bigsmoke.us/2011/04/12/installing-a-commercial-ssl-certificate-in-zimbra</link>
		<comments>http://blog.bigsmoke.us/2011/04/12/installing-a-commercial-ssl-certificate-in-zimbra#comments</comments>
		<pubDate>Tue, 12 Apr 2011 18:31:43 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1929</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>I installed a commercial (free) SSL certificate from <a href="https://www.startssl.com/">Startcom SSL</a> in Zimbra. I basically followed <a href="http://wiki.zimbra.com/wiki/Installing_a_StartSSL_SSL_Certificate_with_zmcertmgr">this</a>, except the java keytool thing. I don&#8217;t know why that is necessary&#8230; I did this on Zimbra 6.0.10_GA_2692.UBUNTU8_64 UBUNTU8_64 FOSS edition.</p>
<ul>
<li>Download the <a href="http://www.startssl.com/certs/ca.pem">ca.pem</a> <a href="http://www.startssl.com/certs/sub.class1.server.ca.pem">and sub.class1.server.ca.pem</a> (the CA for the free class 1 validation) to /tmp/ </li>
<li>Cat the CA certs to form a single CA certificate chain file: cat ca.pem sub.class1.server.ca.pem > ca_bundle.crt</li>
<li>Place server certificate in /tmp/ssl.crt. </li>
<li>Place the private key in /opt/zimbra/ssl/zimbra/commercial/commercial.key </li>
<li>Deploy the commercial certificate with zmcertmgr as the root user: /opt/zimbra/bin/zmcertmgr deploycrt comm /tmp/ssl.crt /tmp/ca_bundle.crt</li>
<li>Restart zimbra: su zimbra, then zmcontrol stop &#038;&#038; zmcontrol start
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2011/04/12/installing-a-commercial-ssl-certificate-in-zimbra/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling exim port 25 listening when zimbra is installed</title>
		<link>http://blog.bigsmoke.us/2010/12/12/disabling-exim-port-25-listening-when-zimbra-is-installed</link>
		<comments>http://blog.bigsmoke.us/2010/12/12/disabling-exim-port-25-listening-when-zimbra-is-installed#comments</comments>
		<pubDate>Sun, 12 Dec 2010 17:36:55 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1765</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re installing zimbra in an Ubuntu or Debian machine, it seems it installs the MTA in such a way that command line tools like mail and such don&#8217;t work. But when you install exim, it conflicts with the postfix in Zimbra. </p>
<p>To fix it, you can install exim4, but configure this line in /etc/default/exim4:</p>
<p><pre class="php">QUEUERUNNER=<span style="color: #ff0000;">'queueonly'</span></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/12/12/disabling-exim-port-25-listening-when-zimbra-is-installed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zimbra has no shutdown init script on Debian and Ubuntu</title>
		<link>http://blog.bigsmoke.us/2010/12/06/zimbra-has-no-shutdown-init-script-on-debian-and-ubuntu</link>
		<comments>http://blog.bigsmoke.us/2010/12/06/zimbra-has-no-shutdown-init-script-on-debian-and-ubuntu#comments</comments>
		<pubDate>Sun, 05 Dec 2010 23:01:59 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[init]]></category>
		<category><![CDATA[rc0]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1737</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
There is a K01zimbra in rc6.d for reboot, but not in rc0.d. See <a href="http://bugzilla.zimbra.com/show_bug.cgi?id=54099">this bug report</a> I made.
</p>

<p>
Workaround:
</p>

<pre class="php">cd /etc/rc0.d/
ln -s ../init.d/zimbra K01zimbra</pre>

<p>
I noticed that after an upgrade, the bootscript was gone again, so I made this cron task and put it in cron.daily:
</p>

<pre class="bash"><span style="color: #808080; font-style: italic;">#!/bin/bash</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Zimbra bug: no rc0 bootscript: http://bugzilla.zimbra.com/show_bug.cgi?id=54099</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># The bootscript I put there gets removed upon upgrade, so I put this script in</span>
<span style="color: #808080; font-style: italic;"># place which mails root if it is missing.</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># The bug is fixed, but in 6.0.10 it still wasn't there, so I don't know when</span>
<span style="color: #808080; font-style: italic;"># it will be included in the release.</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Install it in /etc/cron.daily.</span>
&nbsp;
<span style="color: #b1b100;">if</span> ! <span style="color: #66cc66;">&#91;</span> -e <span style="color: #ff0000;">&quot;/etc/rc0.d/K01zimbra&quot;</span> -a -e <span style="color: #ff0000;">&quot;/etc/rc6.d/K01zimbra&quot;</span> <span style="color: #66cc66;">&#93;</span>; <span style="color: #b1b100;">then</span>
  <span style="color: #0000ff;">message=</span><span style="color: #ff0000;">&quot;Kill zimbra bootscript not found in either rc0 (shutdown) or rc6 (reboot).&quot;</span>
  <span style="color: #000066;">echo</span> <span style="color: #ff0000;">&quot;$message&quot;</span>
  <span style="color: #000066;">echo</span> <span style="color: #ff0000;">&quot;$message&quot;</span> | mail -s <span style="color: #ff0000;">&quot;Zimbra bootscript error&quot;</span> root
<span style="color: #b1b100;">fi</span></pre>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/12/06/zimbra-has-no-shutdown-init-script-on-debian-and-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zimbra dependancy on &#8216;file&#8217;</title>
		<link>http://blog.bigsmoke.us/2010/12/06/zimbra-dependancy-on-file</link>
		<comments>http://blog.bigsmoke.us/2010/12/06/zimbra-dependancy-on-file#comments</comments>
		<pubDate>Sun, 05 Dec 2010 22:59:39 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[amavisd]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1735</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
Zimbra has a dependancy on &#8216;file&#8217;, which the installer file won&#8217;t check for. It is also a WONTFIX bug, so beware: install file(1)! If you don&#8217;t, mails get stuck in queue because amavisd won&#8217;t run.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/12/06/zimbra-dependancy-on-file/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making mysqldump work on a zimbra installation</title>
		<link>http://blog.bigsmoke.us/2010/10/08/making-mysqldump-work-on-a-zimbra-installation</link>
		<comments>http://blog.bigsmoke.us/2010/10/08/making-mysqldump-work-on-a-zimbra-installation#comments</comments>
		<pubDate>Fri, 08 Oct 2010 13:55:14 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1615</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
Zimbra installs its own mysql and there is no workable mysqldump command. There is a mysql command wrapper script (/opt/zimbra/bin/mysql) that loads an environment to set password and such, but there is no such thing for mysqldump. I copied that wrapper script to /usr/local/bin/mysqldump so that user zimbra can no run mysqldump. This is it:
</p>

<pre class="php"><span style="color: #808080; font-style: italic;">#!/bin/bash</span>
<span style="color: #808080; font-style: italic;"># I, halfgaar, copied this script from /opt/zimbra/bin/mysql and adjusted to so that I can do mysqldump.</span>
&nbsp;
source /opt/zimbra/bin/zmshutil || <a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a> <span style="color: #cc66cc;">1</span>
zmsetvars mysql_directory mysql_socket zimbra_mysql_user zimbra_mysql_password
&nbsp;
<a href="http://www.php.net/exec"><span style="color: #000066;">exec</span></a> $<span style="color: #66cc66;">&#123;</span>mysql_directory<span style="color: #66cc66;">&#125;</span>/bin/mysqldump -S $<span style="color: #66cc66;">&#123;</span>mysql_socket<span style="color: #66cc66;">&#125;</span> \
    -u $<span style="color: #66cc66;">&#123;</span>zimbra_mysql_user<span style="color: #66cc66;">&#125;</span> --password=$<span style="color: #66cc66;">&#123;</span>zimbra_mysql_password<span style="color: #66cc66;">&#125;</span> <span style="color: #ff0000;">&quot;$@&quot;</span></pre>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/10/08/making-mysqldump-work-on-a-zimbra-installation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Zimbra&#8217;s duplicate mail detection</title>
		<link>http://blog.bigsmoke.us/2010/01/18/disable-zimbras-duplicate-mail-detection</link>
		<comments>http://blog.bigsmoke.us/2010/01/18/disable-zimbras-duplicate-mail-detection#comments</comments>
		<pubDate>Mon, 18 Jan 2010 11:14:09 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[dedupe]]></category>
		<category><![CDATA[duplicates]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1029</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
Zimbra can discard duplicates of incoming mail. This has certain advantages, but for us, where different people use the same account with different identities, this prevents a message from being delivered to multiple virtual inboxes.
</p>

<p>
To disable this, do this as user zimbra:
</p>

<pre class="php">zmprov mcf zimbraMessageIdDedupeCacheSize <span style="color: #cc66cc;">0</span>
zmmailboxdctl restart</pre>

<p>
Unfortunately, this has the annoying problem that conversations aren&#8217;t detected for duplicates of a message. See <a href="http://www.zimbra.com/forums/administrators/36560-conversations-not-detected-duplicates-message.html">this forum thread</a> for more info.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/01/18/disable-zimbras-duplicate-mail-detection/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lowering Bayes score for Zimbra&#8217;s Spamassassin config</title>
		<link>http://blog.bigsmoke.us/2010/01/18/lowering-bayes-score-for-zimbras-spamassasin-config</link>
		<comments>http://blog.bigsmoke.us/2010/01/18/lowering-bayes-score-for-zimbras-spamassasin-config#comments</comments>
		<pubDate>Mon, 18 Jan 2010 00:25:54 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[SpamAssassin]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1026</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
The Spamassassin config in Zimbra has a very high default score for bayes matching of 99, 95, 90, etc, percent. A mail with subject and body &#8220;test&#8221; or &#8220;asdfaewf a&#8221; is often marked as 99% bayes, even though the spamfilter has seen no training mail. This is absurd.
</p>

<p>
To amend this, I put this in /opt/zimbra/conf/spamassassin/local.cf:
</p>

<pre class="php">score BAYES_99 <span style="color: #cc66cc;">2.500</span>
score BAYES_95 <span style="color: #cc66cc;">2.000</span>
score BAYES_90 <span style="color: #cc66cc;">1.500</span>
score BAYES_85 <span style="color: #cc66cc;">1.000</span>
score BAYES_80 <span style="color: #cc66cc;">0.500</span></pre>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/01/18/lowering-bayes-score-for-zimbras-spamassasin-config/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring fetchmail to deliver to Zimbra with custom header added</title>
		<link>http://blog.bigsmoke.us/2010/01/17/configuring-fetchmail-to-deliver-to-zimbra-with-custom-header-added</link>
		<comments>http://blog.bigsmoke.us/2010/01/17/configuring-fetchmail-to-deliver-to-zimbra-with-custom-header-added#comments</comments>
		<pubDate>Sun, 17 Jan 2010 18:36:56 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[fetchmail]]></category>
		<category><![CDATA[formail]]></category>
		<category><![CDATA[MDA]]></category>
		<category><![CDATA[POP3]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1017</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
I needed to fetch mail from a POP3 account and deliver it to a Zimbra account. Because I&#8217;m doing this for multiple POP3 accounts, I want to add a header which I can use in Zimbra to filter. This is what we made:
</p>

<pre class="php">poll server user <span style="color: #ff0000;">&quot;user&quot;</span> pass <span style="color: #ff0000;">&quot;secret&quot;</span> mda <span style="color: #ff0000;">&quot;formail -A 'X-Zimbra-To: user@domain.org'| /opt/zimbra/postfix/sbin/sendmail -i -t service@sicirec.org&quot;</span></pre>

<p>
The <tt>-i</tt> tells sendmail to ignore a single dot on a line, because that would normally mean end of mail. The <tt>-t</tt> is &#8220;to&#8221; (not the header &#8220;<tt>To:</tt>&#8220;).
</p>

<p>
It is a bit unclear why postfix delivers locally to Zimbra, since doing <q><tt>mail user@ourdomain.org</tt></q> routes through an external SMTP server, which is configured in Zimbra to be used as MTA for outgoing mail. It is configured as &#8216;webmail MTA&#8217;.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/01/17/configuring-fetchmail-to-deliver-to-zimbra-with-custom-header-added/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing spamassassin rule in Zimbra</title>
		<link>http://blog.bigsmoke.us/2010/01/17/fixing-spamassassin-rule-in-zimbra</link>
		<comments>http://blog.bigsmoke.us/2010/01/17/fixing-spamassassin-rule-in-zimbra#comments</comments>
		<pubDate>Sun, 17 Jan 2010 18:15:17 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[SpamAssassin]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1015</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
Spamassassin has had a bug for a while, marking any mail from 2010 and later as spam because it&#8217;s from &#8220;far into the future&#8221;. This was very crudely done as this regexp: <tt>/20[1-9][0-9]/</tt>. Because of that, almost all mail from 2010 onward is marked as spam.
</p>

<p>
I Changed the regex to match for 2020 or later, but that&#8217;s not really a fix. Even the spamassassin maintainers &#8216;fixed&#8217; it that way.
</p>

<p>
What I have to look out for though, is that this file may get overwritten when I upgrade zimbra. sa-update doesn&#8217;t seem to work on zimbra, so I don&#8217;t really know what the best way of getting new rules is.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/01/17/fixing-spamassassin-rule-in-zimbra/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set proper origin domain for Zimbra server</title>
		<link>http://blog.bigsmoke.us/2010/01/12/set-proper-origin-domain-for-zimbra-server</link>
		<comments>http://blog.bigsmoke.us/2010/01/12/set-proper-origin-domain-for-zimbra-server#comments</comments>
		<pubDate>Tue, 12 Jan 2010 14:24:14 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=994</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
(This turned out not to be how I fixed it. I just configured exim and /etc/mailname as I do always and that fixed it. However, exim does not run as the SMTP server listening on port 25, that is the postfix installed by Zimbra. I don&#8217;t know how and if this exim configuration conflicts with zimbra.)
</p>

<p>
I have a zimbra server fooled into thinking it hosts a particular domain. Part of the fooling involves setting a different SMTP server than localhost for <em>all</em> outgoing mail. Luckily, Zimbra can do that.
</p>

<p>
The downside of that is that when you send mail to &#8220;root&#8221;, the other SMTP server qualifies it with its domain and the mail appears to be coming from the wrong server. 
</p>

<p>
To fix it, specify this in the /opt/zimbra/postfix/conf/main.cf:
</p>

<pre class="php">myorigin = example.com</pre>

<p>
This seems to work without caveats. However, I don&#8217;t know if zimbra overwrites this config file at some point.
</p>

<p>
As always, pick a domain that exists, otherwise a lot of mailservers won&#8217;t accept it. You don&#8217;t even need an MX record, A or CNAME if enough.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/01/12/set-proper-origin-domain-for-zimbra-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

