<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss1full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns="http://purl.org/rss/1.0/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
<channel rdf:about="http://aplawrence.com/fullrss.rdf">
<title>Main Site News at A.P.Lawrence.com</title>
<link>http://aplawrence.com/</link>
<description>
Main feed at aplawrence.com: Thousands of articles, reviews, consultants listings, skills tests, opinion, how-to's for Unix, Linux and Mac OS X, networking, web site maintenance and more.. 
</description>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>6</sy:updateFrequency>
<sy:updateBase>2008-01-01T00:00+00:00</sy:updateBase>
<dc:language>en</dc:language>
<dc:publisher>A.P. Lawrence</dc:publisher>
<dc:rights>Copyright  A.P. Lawrence</dc:rights>
<dc:creator>A.P. Lawrence (mailto:rssfeeds@aplawrence.com)</dc:creator>
<dc:date>2013-06-18T18:00:29+00:00</dc:date>
<image rdf:resource="http://aplawrence.com/image21.gif">
</image>
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://aplawrence.com/Kerio/how_to_upgrade_connect.html" />
<rdf:li rdf:resource="http://aplawrence.com/Kerio/everyone_at_domain.html" />
<rdf:li rdf:resource="http://aplawrence.com/Kerio/hosted_or_on_premise.html" />
<rdf:li rdf:resource="http://aplawrence.com/Kerio/x_envelope_to.html" />
<rdf:li rdf:resource="http://aplawrence.com/Kerio/connection_limit_reached.html" />
<rdf:li rdf:resource="http://aplawrence.com/Kerio/multiple_spam_folders.html" />
<rdf:li rdf:resource="http://aplawrence.com/Kerio/tnef_attachments.html" />
<rdf:li rdf:resource="http://aplawrence.com/Kerio/contact_groups_create.html" />
</rdf:Seq>
</items>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rdf+xml" href="http://feeds.feedburner.com/aplawrence/ZPYH" /><feedburner:info uri="aplawrence/zpyh" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>41.889582</geo:lat><geo:long>-70.894066</geo:long><feedburner:emailServiceId>aplawrence/ZPYH</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname></channel>
<image rdf:about="http://aplawrence.com/image21.gif">
<title>A.P.Lawrence Logo</title>
<url>http://aplawrence.com/image21.gif</url>
<link>http://aplawrence.com</link>
</image>


<item rdf:about="http://aplawrence.com/Kerio/how_to_upgrade_connect.html">
<title>How to upgrade Kerio Connect Mail Server  </title>
<description>Connect,Kerio,Mail 

2013/06/18&lt;p&gt;&lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Most of the time, upgrading Kerio Connect involves nothing more than downloading the installer for the new version and running it. The process is quick and painless - a very brief interruption of services and then you are back in business.&lt;/p&gt;
&lt;p&gt;Of course you should always have current backups before any upgrade, but there is an extremely low likelihood of any trouble whatsoever. Follow the general directions at &lt;a title="Upgrading Kerio Connect" href="http://kb.kerio.com/product/kerio-connect/installation-and-upgrade/how-do-i-update-kerio-connect-when-a-new-version-is-available-451.html" target="_blank"&gt;How do I update Kerio Connect when a new version is available?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are circumstances where a bit more planning and work may need to be done. One is when you are moving to new hardware or changing operating systems. Another is when you have delayed doing upgrades for some time. We'll look at both of those and more.&lt;/p&gt;
&lt;h2&gt;New hardware or operating system change&lt;/h2&gt;
&lt;p&gt;Most of that is covered in Kerio's KB article &lt;a title="Moving Kerio Connect" href="http://kb.kerio.com/product/kerio-connect/server-configuration/export-and-migration/how-do-i-move-kerio-connect-from-one-machine-to-another-or-change-operating-systems-360.html"&gt;How do I move Kerio Connect from one machine to another (or change Operating Systems)?&lt;/a&gt;, but there are a few things that doesn't mention.&lt;/p&gt;
&lt;p&gt;One is what to do when you plan a version upgrade at the same time as the hardware change. I suggest doing the version upgrade AFTER the physical move. You can download any older version of Connect; see &lt;a title="Older Kerio version download " href="http://kb.kerio.com/product/kerio-connect/server-configuration/how-do-i-get-older-versions-of-kerio-software-227.html" target="_blank"&gt; How do I get older versions of Kerio software?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The other issue is how to get the Store data to the new machine. See my &lt;a title="Using Kmsrecover" href="http://aplawrence.com/Kerio/kmsrecover_differentials.html" target="_blank"&gt;Unsupported use of KMSRECOVER for moving Kerio Connect&lt;/a&gt; and &lt;a title="Transferring a Kerio Connect Server with rsync" href="http://aplawrence.com/Kerio/rsync_connect_transfer.html"&gt;Transferring a Kerio Connect Server with rsync&lt;/a&gt; for more details on that.&lt;/p&gt;
&lt;!-- PLACEAD --&gt;&lt;!-- BIG --&gt;
&lt;h2&gt; Delayed upgrades &lt;/h2&gt;
&lt;p&gt; If you are behind by several versions, that's usually no different than a simple upgrade: just download the latest version and install it. You'll want to read the appropriate parts of &lt;a title="Opens in a new window" href="http://www.kerio.com/connect/history" target="_blank"&gt;http://www.kerio.com/connect/history&lt;/a&gt; and &lt;a  href="http://www.kerio.com/connect/history/older" target="_blank"&gt;http://www.kerio.com/connect/history/older&lt;/a&gt; to get a feel for things that have changed. After any upgrade you will want to run through your configuration to become familiar with any changes there and investigate any new features you'll want to configure. I can help you with that if you are one of my customers - as with any support issues, there is no charge for that.&lt;/p&gt;
&lt;p&gt; If you are really far behind - older than version 6.7.3 Patch 1 (January 2010), you'll need to do your upgrade in steps - see the &lt;a title="Upgrading Kerio Connect" href="http://kb.kerio.com/product/kerio-connect/installation-and-upgrade/how-do-i-update-kerio-connect-when-a-new-version-is-available-451.html" target="_blank"&gt;How do I update Kerio Connect when a new version is available?&lt;/a&gt; article.&lt;/p&gt;
&lt;h2&gt;Client upgrades&lt;/h2&gt;
&lt;p&gt;If your users are not using the Kerio Outlook Connector, there is nothing to be done on the client side.&lt;/p&gt;
&lt;p&gt;If you are running a recent version of Connect, the Outlook Connector will attempt to upgrade itself automatically.  I wish I could say that it always succeeds, but unfortunately it doesn't. &lt;/p&gt;
&lt;p&gt;One reason might be incompatibility - your Outlook might be too old or too new. See the End User tab at &lt;a title="Client requirements" href="http://www.kerio.com/connect/requirements" target="_blank"&gt;http://www.kerio.com/connect/requirements&lt;/a&gt; for current requirements.&lt;/p&gt;
&lt;p&gt;Your users can cause problems too. The Kerio manuals say this:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;If a new version is available or the versions are different on the server and the client, a recommendation for update of Kerio Outlook Connector appears. Once this dialog is confirmed, update is performed, followed by an automatic restart of MSOutlook. The whole update including restart should take up to two minutes, depending on connection data-flow speed.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Did you notice the "&lt;i&gt;Once this dialog is confirmed" &lt;/i&gt; part? Users sometimes ignore that upgrade message completely. And, of course, even if they do not, things can go wrong and the client update can fail.&lt;/p&gt;
&lt;p&gt;If you are only going from the not-quite-latest version to the latest, that might not matter: the old software may work with the new server. It may not, though, or it may work but cause performance issues or subtle bugs. &lt;/p&gt;
&lt;p&gt;So, what do you do if a client update fails?&lt;/p&gt;
&lt;p&gt;Probably the first thing to try is a manual download and manual install. Use the MSI  version rather than the .exe:&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=kerio_connect_upgrades_koc_lg.jpg&amp;amp;mytitle=MSI%20versions%20of%20Connector&amp;amp;returnpage=Kerio/how_to_upgrade_connect.html&amp;amp;returntitle=How%20to%20upgrade%20Kerio%20Connect%20Mail%20Server"&gt;&lt;img src="http://aplawrence.com/images/kerio_connect_upgrades_koc.jpg" alt="MSI versions of Connector" title="MSI versions of Connector (click for larger view)" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;You should also kill off any running installs and check Task Manager to see if any msiexec.exe processes are running.  Kill them if they are.&lt;/p&gt;
&lt;p&gt;If that still fails, try removing both the Kerio Updater software and the Connector with Control Panel and then try a fresh install. Under some conditions, Kerio support may want you to use a special "ktuninstaller.exe" that they can provide. &lt;/p&gt;
&lt;p&gt;Note: the MSI installer comes in 32 bit or 64 bit versions.  The 32 bit can work with any version of Outlook, but you can't use the 32 bit with 64 bit Outlook.&lt;/p&gt;
&lt;p&gt;There is also a separate MSI package available for just the Kerio Updater Service (this is the piece that runs as a service and is &lt;a href="http://kb.kerio.com/product/kerio-connect/email-clients/kerio-outlook-connector/kerio-updater-service-installation-188.html"&gt;supposed to do the Connector upgrades when needed&lt;/a&gt;). You can try that, too.&lt;/p&gt;
&lt;p&gt;Still can't get it working? Call me or Kerio, &lt;a title="Kerio Connect Forums" href="http://forums.kerio.com" target="_blank"&gt;check the forums &lt;/a&gt; and research the &lt;a title="Connector KB articles" href="http://kb.kerio.com/category/kerio-connect/email-clients/kerio-outlook-connector/" target="_blank"&gt;KB articles.&lt;/a&gt; If the MSI package is failing, a little extra logging might help you or us figure out why:&lt;/p&gt;
&lt;pre&gt;
msiexec /i kerio-connect-koff-(....)win32.msi&amp;gt; /lv C:\temp\kerio_install.log
&lt;/pre&gt;
&lt;p&gt;See &lt;a title="msiexec switches" href="http://support.microsoft.com/kb/227091" target="_blank"&gt;Command-Line Switches for the Microsoft Windows Installer Tool&lt;/a&gt; also.&lt;/p&gt;
&lt;p&gt;There are more logs under %programdata%/Kerio - Kerio Support may want those also.&lt;/p&gt;
&lt;h2&gt;The Outlook Cache&lt;/h2&gt;
&lt;p&gt;Several connector upgrades have required rebuilding the local cache. That can be a very time consuming procedure - the general recommendation has been to use webmail while it rebuilds.&lt;/p&gt;
&lt;p&gt;There is another way, however. If you remove the cache before the upgrade, you can start using Outlook again immediately. Doing that requires a bit of work though. The first thing is to find your Outlook cache files. KERIO OUTLOOK CONNECTOR CACHE FILES ARE IN A DIFFERENT LOCATION THAN OUTLOOK CACHE FILES. &lt;/p&gt;
&lt;p&gt;Under C:\Documents and Settings\YourLogin\Local Settings\Application Data\Kerio\Outlook Connectorwill be a ditectory for each of your profiles. You may need to turn on "Show Hidden Files and Folders" to navigate to there.&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=kerio_upgrade_cache_files_lg.jpg&amp;amp;mytitle=KOFF/KOC%20Cache%20files&amp;amp;returnpage=Kerio/how_to_upgrade_connect.html&amp;amp;returntitle=How%20to%20upgrade%20Kerio%20Connect%20Mail%20Server"&gt;&lt;img src="http://aplawrence.com/images/kerio_upgrade_cache_files.jpg" alt="KOFF/KOC Cache files" title="KOFF/KOC Cache files (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;Once there, it's the *.FDB files that you'd remove and you may need to kill off the KoffBackend.exe process to do that.&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=kerio_upgrade_clear_cache_lg.jpg&amp;amp;mytitle=Remove%20FDB%20files&amp;amp;returnpage=Kerio/how_to_upgrade_connect.html&amp;amp;returntitle=How%20to%20upgrade%20Kerio%20Connect%20Mail%20Server"&gt;&lt;img src="http://aplawrence.com/images/kerio_upgrade_clear_cache.jpg" alt="Remove FDB files" title="Remove FDB files (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;With those removed, Outlook will need to resynch, but you at least can use it right away:&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=kerio_upgrade_resynch_lg.jpg&amp;amp;mytitle=Outlook%20resynch&amp;amp;returnpage=Kerio/how_to_upgrade_connect.html&amp;amp;returntitle=How%20to%20upgrade%20Kerio%20Connect%20Mail%20Server"&gt;&lt;img src="http://aplawrence.com/images/kerio_upgrade_resynch.jpg" alt="Outlook resynch" title="Outlook resynch (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;I hope this helps and of course I am always available for assistance.&lt;/p&gt;



&lt;p&gt;Comments: &lt;a href="http://aplawrence.com/cgi-bin/newcomm.pl?commenting=/Kerio/how_to_upgrade_connect.html"&gt;Click Here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Want to showcase your product to our audience? Check our &lt;a href="http://aplawrence.com/advert.html"&gt;advertising options.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Many of the products and books I review are things I purchased for my own use.  Some were given to me specifically for the purpose of   reviewing them.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;b&gt;I resell or can earn commissions from the sale of some of these items.  Links within these pages may be affiliate links that pay me for referring you 
to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain.  If you have any question, please do feel free to contact me.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;div style="font-size:80%"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://samepage.io?partner=683d6fe8b2973c7cc2a4ba099fd949be56d864fe"&gt;Samepage - Redefining how people create and share information&lt;/a&gt;&lt;/td&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://aplawrence.com/Kerio"&gt;Kerio Mail Server, Firewall and more&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?a=D9Mn1FPtxDo:jxQ07RzT7Qc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/aplawrence/ZPYH/~4/D9Mn1FPtxDo" height="1" width="1"/&gt;</description>
<link>http://feedproxy.google.com/~r/aplawrence/ZPYH/~3/D9Mn1FPtxDo/how_to_upgrade_connect.html</link>
<feedburner:origLink>http://aplawrence.com/Kerio/how_to_upgrade_connect.html</feedburner:origLink></item>
<item rdf:about="http://aplawrence.com/Kerio/everyone_at_domain.html">
<title>E-Mail to everyone in your Kerio Connect domain  </title>
<description>Connect,Kerio,Mail 

2013/06/17&lt;p&gt;&lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Sending an email that goes to everyone in your Kerio Connect domain sounds simple, doesn't it? It actually is - you just need a group that includes everyone.  That's easy enough, especially if you use a directory service that creates that group automatically. In that case, you just import the group from the directory service and assign it an email address.&lt;/p&gt;
&lt;p&gt;If you don't use a directory service, you'll need to remember to update that group when you add or delete email users, but as you can select everyone at once, that's no great hardship.&lt;/p&gt;
&lt;p&gt;Another way to accomplish the same thing is to create an "everyone" alias that delivers email to a public folder rather than an email address. Share that folder with whomever you like.&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=everyone_at_alias_lg.jpg&amp;amp;mytitle=An%20alias%20delivering%20to%20a%20public%20folder&amp;amp;returnpage=Kerio/everyone_at_domain.html&amp;amp;returntitle=E-Mail%20to%20everyone%20in%20your%20Kerio%20Connect%20domain"&gt;&lt;img src="http://aplawrence.com/images/everyone_at_alias.jpg" alt="An alias delivering to a public folder" title="An alias delivering to a public folder (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;!-- PLACEAD --&gt;&lt;!-- BIG --&gt;
&lt;p&gt;That also has the advantage of fine tuning who sees and controls these emails&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=everyone_at_folder_lg.jpg&amp;amp;mytitle=Access%20rights%20for%20a%20public%20folder&amp;amp;returnpage=Kerio/everyone_at_domain.html&amp;amp;returntitle=E-Mail%20to%20everyone%20in%20your%20Kerio%20Connect%20domain"&gt;&lt;img src="http://aplawrence.com/images/everyone_at_folder.jpg" alt="Access rights for a public folder" title="Access rights for a public folder (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;There is a problem, though: if you have an "everyone" group or alias, people from the outside world can spam all your users at once. If that's not acceptable, what can you do? &lt;/p&gt;
&lt;p&gt;There are actually a number of ways to do this. Each has its own advantages and disadvantages, though.&lt;/p&gt;
&lt;h2&gt;A shared Contact group/distribution list&lt;/h2&gt;
&lt;p&gt;A distribution list (now called "contact group") is an internal group. See &lt;a title="Kerio Connect Webmail Distribution lists (Contact Groups)" href="http://aplawrence.com/Kerio/distribution-lists.html"&gt;Kerio Connect Webmail Distribution lists&lt;/a if you hadn't noticed these. Like a group, you can easily add members (hint - search for your domain to cut down the selection)&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=everyone_at_dlist_lg.jpg&amp;amp;mytitle=Contact%20Group/Distribution%20List&amp;amp;returnpage=Kerio/everyone_at_domain.html&amp;amp;returntitle=E-Mail%20to%20everyone%20in%20your%20Kerio%20Connect%20domain"&gt;&lt;img src="http://aplawrence.com/images/everyone_at_dlist.jpg" alt="Contact Group/Distribution List" title="Contact Group/Distribution List (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;Unlike a group, these are not available from outside. &lt;/p&gt;
&lt;p&gt;These are created by individual users, but can be put into Public Folders and thereby shared with everyone. See "&lt;a title="Sharing Contact Groups" href="http://aplawrence.com/Kerio/advantages_of_contact_groups.html" target="_self"&gt;Consider using Kerio Connect Contact Groups instead of Mail Groups&lt;/a&gt;"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h2&gt;A mailing list&lt;/h2&gt;
&lt;p&gt;&lt;a title="Mailing Lists" href="http://aplawrence.com/Unixart/kmsmlist.html"&gt;Kerio Connect's mailing lists&lt;/a&gt; are an under-utilized feature.  As you can control who can post to the list and the people who receive it, this can be a great way to have an "everyone" address. For example, you could restrict posting (sending email to the group) to an administrative group only.&lt;/p&gt;
&lt;p&gt;On the members side (people who receive the email sent to the list), maintenance is a bit annoying, but a csv import function makes that a little easier and the list is just a text file on the server, so you could write an external script to keep it updated.&lt;/p&gt;
&lt;h2&gt;A domain limited user&lt;/h2&gt;
&lt;p&gt;This method has the disadvantage of consuming a user license (none of the others do), but does have some interesting aspects.&lt;/p&gt;
&lt;p&gt;You create an "everyone" group as before, but you only put one user in it. This is a new user who forwards everything to whomever you want. The "everyone" group is set to be limited to your domain&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=everyone_at_limited_group_lg.jpg&amp;amp;mytitle=Limiting%20a%20group&amp;amp;returnpage=Kerio/everyone_at_domain.html&amp;amp;returntitle=E-Mail%20to%20everyone%20in%20your%20Kerio%20Connect%20domain"&gt;&lt;img src="http://aplawrence.com/images/everyone_at_limited_group.jpg" alt="Limiting a group" title="Limiting a group (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;Note that the user you put in the group is now prevented from sending or receiving outside of your domain, so no outside person can send email to him directly either, therefore  don't use an existing user!&lt;/p&gt;
&lt;p&gt;You'll need to update this user's forwarding as you add and delete users, of course.&lt;/p&gt;
&lt;p&gt;A post at the Kerio forums suggests obfuscating this by having that user&lt;a href="http://forums.kerio.com/mv/msg/13947/65142/#msg_65142" target="_blank"&gt; forward to an oddly named group that includes everyone&lt;/a&gt;. It could also forward to oddly named alias that delivers to a public folder.&lt;/p&gt;



&lt;p&gt;Comments: &lt;a href="http://aplawrence.com/cgi-bin/newcomm.pl?commenting=/Kerio/everyone_at_domain.html"&gt;Click Here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Want to showcase your product to our audience? Check our &lt;a href="http://aplawrence.com/advert.html"&gt;advertising options.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Many of the products and books I review are things I purchased for my own use.  Some were given to me specifically for the purpose of   reviewing them.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;b&gt;I resell or can earn commissions from the sale of some of these items.  Links within these pages may be affiliate links that pay me for referring you 
to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain.  If you have any question, please do feel free to contact me.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;div style="font-size:80%"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://samepage.io?partner=683d6fe8b2973c7cc2a4ba099fd949be56d864fe"&gt;Samepage - Redefining how people create and share information&lt;/a&gt;&lt;/td&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://aplawrence.com/Kerio"&gt;Kerio Mail Server, Firewall and more&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?a=G0Tp9-5MhWk:aBcUkRKfIGE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/aplawrence/ZPYH/~4/G0Tp9-5MhWk" height="1" width="1"/&gt;</description>
<link>http://feedproxy.google.com/~r/aplawrence/ZPYH/~3/G0Tp9-5MhWk/everyone_at_domain.html</link>
<feedburner:origLink>http://aplawrence.com/Kerio/everyone_at_domain.html</feedburner:origLink></item>
<item rdf:about="http://aplawrence.com/Kerio/hosted_or_on_premise.html">
<title>Hosted vs. On Premise Email  </title>
<description>Connect,Kerio,Mail 

2013/06/14&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Barely a week goes by where someone doesn't mention either Office 365 or Google Apps to me (or both).  You might think that I'm adamantly opposed to hosted email because I sell on-premise solutions, but I'm not. It can make sense for some people and there are even some advantages, but just as having an on-premise mail server has its good points and its bad, so does out-sourcing your email to someone else.&lt;/p&gt;
&lt;p&gt;By the way, I do need to mention that you can self-host. That is, if the idea of email in the cloud appeals to you because availability or for whatever reason, there's no reason that you can't put up a server at Amazon or whatever and retain control of your email. See my &lt;a title="Hosted services vs. self-hosting" href="http://aplawrence.com/Kerio/self_hosting.html"&gt;Hosted services vs. self-hosting&lt;/a&gt; article for more on that.&lt;/p&gt;
&lt;p&gt;Here, I want to look at the things you should consider before shutting down your in-house mailserver.&lt;/p&gt;
&lt;p&gt;&lt;i&gt;Disclaimer: I've been selling and supporting mailservers for more than twenty years. Of course I have a bias toward the things I sell. I always try to see that in myself so that I can keep it out of articles like this, but you should be aware of my prejudices.&lt;/i&gt;&lt;/p&gt;
&lt;!-- PLACEAD --&gt;&lt;!-- BIG --&gt;
&lt;h2&gt;Cost&lt;/h2&gt;
&lt;p&gt;Although both Microsoft and Google are charging far less than many other hosting companies, there's absolutely no contest against on-premise unless you only have a very small number of users. I did some cost comparisons at my&lt;a title="osted Google Apps Gmail vs. in-house Mail Server" href="http://aplawrence.com/Misc/gmail_org.html"&gt; Hosted Google Apps Gmail vs. in-house Mail Server&lt;/a&gt; post a few years ago. Hardware costs have of course decreased since then and while support costs may have increased, the need for operating system support has actually lessened and can even almost disappear entirely with packaged virtual machines. &lt;/p&gt;
&lt;p&gt;The cost for a 50 user hosted email will be approximately $2,500.00 a year. That's a fair pile of money and that is that.  Contrast that with the typical maintenance cost for a Kerio mailserver of the same size, which would less than $600.00. Yes, that's not counting hardware or support, but even if you go overboard on estimating that, you'll always be less money.&lt;/p&gt;
&lt;p&gt;The cost gap becomes even wider as your user base goes up. A 100 user Kerio system renews at around $1,100.00 yearly vs. $5,000.00 or more for hosted email. Hardware and support costs aren't any different.&lt;/p&gt;
&lt;p&gt;That doesn't count extras like more storage space, archiving, virus scanning..&lt;/p&gt;
&lt;h2&gt;Support&lt;/h2&gt;
&lt;p&gt;"Wait just a minute", you are probably saying, "A 100 user base obviously requires more support than a 50 user base!"&lt;/p&gt;
&lt;p&gt;Well, sure. But those are support costs you have whether your email is in-house or out. Users who can't remember passwords, users who misconfigure clients - those are still your problems. So are the users who mangle email addresses they type, set their reply-to incorrectly or give out incorrect email addresses to people who want to send you email. Almost everything on the client side (which is where the lion's share of the support is anyway) is still your problem.&lt;/p&gt;
&lt;p&gt;And, lucky you, you get some new issues to deal with..&lt;/p&gt;
&lt;h2&gt;Blacklists&lt;/h2&gt;
&lt;p&gt;You may have had the unpleasant experience of having your IP blacklisted. That sometimes happens because some spammer was using that IP before you got it, or it could be because you caught a PC virus or were too aggressive with your marketing email. Whatever the cause, it was probably pretty quick to fix and (unless you kept on being sloppy) it may never have recurred.&lt;/p&gt;
&lt;p&gt;When you let somebody like Google or Microsoft handle your mail, you are usually sharing an IP with other people. When they misbehave, the resulting blacklisting affects them AND you. &lt;/p&gt;
&lt;p&gt;It happens often enough that Google even has an article about it&lt;/p&gt;
&lt;p&gt;Quote from 
&lt;i&gt;&lt;a href="http://support.google.com/a/bin/answer.py?hl=en&amp;amp;answer=27642"&gt;http://support.google.com/a/bin/answer.py?hl=en&amp;amp;answer=27642&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;On rare occasions, you might send mail from your Gmail account, then receive a notice that your mail has bounced because your IP addresshas been blacklisted by the recipient.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;I can tell you that it's not all that rare..&lt;/p&gt;
&lt;p&gt;More important is that unfortunately, not everybody *bounces*. I don't bounce people on blacklists, I just silently ignore them and I know that other folks do the same. That means that sometimes you won't KNOW that your email never got delivered.&lt;/p&gt;
&lt;p&gt;Why is that any different than on your own server? Let's look at two scenarios to see why.&lt;/p&gt;
&lt;p&gt;In the first, it's your server that's been blacklisted. As it almost certainly will remain blacklisted until you do something about it, you will find out - some piece of mail will bounce sooner or later. When it does, you fix the problem and , as noted before, unless you make a habit of being spammish, it may not happen again for a long time, if ever.&lt;/p&gt;
&lt;p&gt;In the other case, the IP you share with who knows how many other people gets blacklisted because one of them is a spammer. Let's say that's at Microsoft and that they are really on top of it and find out very quickly. Within an hour they identify the bad guy, boot him off and have the blacklist removed.&lt;/p&gt;
&lt;p&gt;Everything you send in that period might not get through. After that, everything's fine. During that hour, if nothing actually bounced, you could have emails that were just silently ignored by the recipients. Isn't that fun? Mysteriously missing emails.&lt;/p&gt;
&lt;p&gt;Here's the best part: it can happen again next week, next month or even tomorrow! It could happen over and over again and you might never even know..&lt;/p&gt;
&lt;h2&gt;Compliance&lt;/h2&gt;
&lt;p&gt;If you are subject to Sarbanes Oxley, HIPPA or other regulations, these are all still your responsibility, too. Need to archive? That's extra cost with most hosting - it isn't when you do it yourself.&lt;/p&gt;
&lt;h2&gt;Customization&lt;/h2&gt;
&lt;p&gt;If you are a regular reader of this site, you know that I'm always writing scripts to do this odd thing or the other. That's an ability you usually lose completely when someone else hosts your email. &lt;/p&gt;
&lt;h2&gt;Security&lt;/h2&gt;
&lt;p&gt;When your email is in-house, in-house email never leaves your network.  Yes, your local administrator can read your email. So can the admin(s) at the hosted site - do you know who they are? &lt;/p&gt;
&lt;h2&gt;Changed your mind?&lt;/h2&gt;
&lt;p&gt;It's usually easy to transfer your on-premise email store to someone else. Kerio Connect stores every bit of email and every contact and calendar entry as plain text files and so do most in-house systems (with the notable exception of Exchange). You can almost always get that data to wherever it needs to go.&lt;/p&gt;
&lt;p&gt;Will it be just as easy to bring it back? Maybe, maybe not..&lt;/p&gt;
&lt;h2&gt;Internet Down&lt;/h2&gt;
&lt;p&gt;Oops - no email. You can still do internal email if you are on premise, but not if you are hosted.&lt;/p&gt;
&lt;p&gt;What about people sending email to you? If your on-premise server is unavailable because your internet is dead, your customers know that. They aren't going to be fuming as the hours tick by and that Very Important email they sent doesn't get answered. It got delivered to your hosting provider just fine, but you can't get it - too bad your customers don't know that!&lt;/p&gt;
&lt;h2&gt;Maintenance Windows&lt;/h2&gt;
&lt;p&gt;You may not have any control over maintenance windows with hosted email. When they decide something needs to be rebooted, migrated, upgraded or whatever, they usually do what THEY need to do, not what's convenient for you.&lt;/p&gt;
&lt;h2&gt;System down&lt;/h2&gt;
&lt;p&gt;Hey, it can happen to anyone - your in-house system or a hosted system. If your data store isn't damaged or you just want email back up and running with or without the existing store, your recovery time with a system like Kerio is just a few minutes longer than the time it takes to find a machine to run it on. If you need that to happen NOW, you can probably do it.&lt;/p&gt;
&lt;p&gt;With the hosted provider.. heck, who knows? Yeah, they have an SLA with you and yeah, they want it back up running fast, but it's THEIR priorities that matter, not yours. So if their 5,000 seat customer machine crashes at the same time as one with 1,000 seats, I'd expect they'd replace the big one first. Too bad you are one of the 1,000, isn't it?&lt;/p&gt;
&lt;p&gt;So, that's it. Some things to think about. I should also mention that if you insist upon going this way, I can offer hosted Kerio Connect to you also. I can't beat Office 365 prices, but I can come close and I can beat the heck out of them on support, so if that matters to you, give me a call or shoot me an email. &lt;/p&gt;


&lt;p&gt;Comments: &lt;a href="http://aplawrence.com/cgi-bin/newcomm.pl?commenting=/Kerio/hosted_or_on_premise.html"&gt;Click Here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Want to showcase your product to our audience? Check our &lt;a href="http://aplawrence.com/advert.html"&gt;advertising options.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Many of the products and books I review are things I purchased for my own use.  Some were given to me specifically for the purpose of   reviewing them.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;b&gt;I resell or can earn commissions from the sale of some of these items.  Links within these pages may be affiliate links that pay me for referring you 
to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain.  If you have any question, please do feel free to contact me.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;div style="font-size:80%"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://samepage.io?partner=683d6fe8b2973c7cc2a4ba099fd949be56d864fe"&gt;Samepage - Redefining how people create and share information&lt;/a&gt;&lt;/td&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://aplawrence.com/Kerio"&gt;Kerio Mail Server, Firewall and more&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?a=PJyUmFq6W8g:VKeDJeXvjlM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/aplawrence/ZPYH/~4/PJyUmFq6W8g" height="1" width="1"/&gt;</description>
<link>http://feedproxy.google.com/~r/aplawrence/ZPYH/~3/PJyUmFq6W8g/hosted_or_on_premise.html</link>
<feedburner:origLink>http://aplawrence.com/Kerio/hosted_or_on_premise.html</feedburner:origLink></item>
<item rdf:about="http://aplawrence.com/Kerio/x_envelope_to.html">
<title>X-Envelope-To:; vs. To:;  </title>
<description>Connect,Kerio,Mail 

2013/06/13&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;If you've ever poked around in the "Advanced Options" section of your Kerio Connect mail server configuration, you might have wondered about the check-box for "Insert X-Envelope-To header to locally delivered messages".&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=x_envelope_set_lg.jpg&amp;amp;mytitle=Kerio%20Connect%20X-Envelope-To%20header&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/x_envelope_set.jpg" alt="Kerio Connect X-Envelope-To header" title="Kerio Connect X-Envelope-To header (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;The newest manuals don't even mention that, but the older versions do have at least this much to say:&lt;/p&gt;
&lt;blockquote&gt;
Defines if the &lt;code&gt;X-Envelope-To&lt;/code&gt; entry will be inserted into the header of messages delivered locally. &lt;code&gt;X-Envelope-To&lt;/code&gt; is the original recipient address based on the SMTP envelope. This option is useful especially if there is adomain mailbox in Kerio Connect.
&lt;/blockquote&gt;

&lt;p&gt;Perhaps a little more explanation is in order.&lt;/p&gt;
&lt;p&gt;If you've ever done a "View source", you are certainly familiar with the "To:" header. Normally that contains your email address, but you might sometimes see something very odd like this example:&lt;/p&gt;
&lt;pre&gt;
Mime-Version: 1.0
To:&lt;a href="mailto:VendorSupport@toysrus.com" target="_blank"&gt;VendorSupport@notyourdomain.com&lt;/a&gt;
From: Vendor Support &amp;lt;&lt;a href="mailto:VendorSupport@toysrus.com" target="_blank"&gt;VendorSupport@&lt;/a&gt;&lt;a href="mailto:VendorSupport@toysrus.com" target="_blank"&gt;notyourdomain&lt;/a&gt;&lt;a href="mailto:VendorSupport@toysrus.com" target="_blank"&gt;.com&lt;/a&gt;&amp;gt;
Return-Path:&lt;a href="mailto:VendorSupport@toysrus.com" target="_blank"&gt;VendorSupport@&lt;/a&gt;&lt;a href="mailto:VendorSupport@toysrus.com" target="_blank"&gt;notyourdomain&lt;/a&gt;&lt;a href="mailto:VendorSupport@toysrus.com" target="_blank"&gt;.com&lt;/a&gt;
&lt;/pre&gt;
&lt;p&gt;You are not "&lt;a href="mailto:VendorSupport@toysrus.com" target="_blank"&gt;VendorSupport@notyourdomain.com&lt;/a&gt;", yet the email arrived in your mailbox. How?&lt;/p&gt;
&lt;p&gt;The answer is simple enough: "To:" doesn't really matter.  If we use the analogy of a physical letter, that "To:" is what's written on the letter itself and is not necessarily what's written on the envelope that told the Post Office how to get that letter to you. Just like a physical letter, email has an outer envelope too.&lt;/p&gt;
&lt;!-- PLACEAD --&gt;&lt;!-- BIG --&gt;
&lt;p&gt;Most email clients don't let you play any games with what's inside and outside. When you send an email, the envelope address and the "To:" address are usually going to be the same. But they don't have to be.&lt;/p&gt;
&lt;p&gt;A little Perl script shows that more plainly:&lt;/p&gt;
&lt;pre&gt;
#!/usr/bin/perl

sendit($ARGV[0], $ARGV[1] );

sub sendit {
my $xenvelope_who=shift;
my $apparently_to=shift;

open(SENT,"|/opt/kerio/mailserver/sendmail $xenvelope_who");
print SENT &amp;lt;&amp;lt;EOF;
Content-Type: text/html
Content-Transfer-Encoding: 8BIT
From: tony\@aplawrence.com
To: $apparently_to
Subject: X-env test

This was just a test

EOF
close SENT;
} 
&lt;/pre&gt;
&lt;p&gt;We can use that to munge up "To:"&lt;/p&gt;
&lt;pre&gt;
tmail.pl tony@aplawrence.com nobody@all
&lt;/pre&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=x_envelope_test1_lg.jpg&amp;amp;mytitle=To%20nobody@all&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/x_envelope_test1.jpg" alt="To nobody@all" title="To nobody@all (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;Kerio Connect "sendmail" helpfully added the true send-to address anyway, but as you saw in the first "VendorSupport" example I showed, that isn't always going to be the case. That's when we'd want to have "Insert X-Envelope-To header to locally delivered messages" turned on:&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=x_envelope_lg.jpg&amp;amp;mytitle=%20With%20Show%20X-Envelope-To%20on&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/x_envelope.jpg" alt=" With Show X-Envelope-To on" title=" With Show X-Envelope-To on (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;By the way, although we used something that at least vaguely looks like an email address, we don't have to:&lt;/p&gt;
&lt;pre&gt;
tmail.pl tony@aplawrence.com not_even_an_email_address_at_all
&lt;/pre&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=x_envelope_not_even_lg.jpg&amp;amp;mytitle=Tonot_even_an_email_address_at_all&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/x_envelope_not_even.jpg" alt="Tonot_even_an_email_address_at_all" title="Tonot_even_an_email_address_at_all (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;If you are wondering what "&lt;i&gt;This option is useful especially if there is a domain mailbox in Kerio Connect"&lt;/i&gt; is referring to in the old manuals, I suspect it has to do with &lt;a title="POP3 Downloads" href="http://manuals.kerio.com/connect/adminguide/en/sect-pop3dload.html" target="_blank"&gt;POP3 downloads&lt;/a&gt;, but I have no way to test that right now.&lt;/p&gt;


&lt;p&gt;Comments: &lt;a href="http://aplawrence.com/cgi-bin/newcomm.pl?commenting=/Kerio/x_envelope_to.html"&gt;Click Here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Want to showcase your product to our audience? Check our &lt;a href="http://aplawrence.com/advert.html"&gt;advertising options.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Many of the products and books I review are things I purchased for my own use.  Some were given to me specifically for the purpose of   reviewing them.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;b&gt;I resell or can earn commissions from the sale of some of these items.  Links within these pages may be affiliate links that pay me for referring you 
to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain.  If you have any question, please do feel free to contact me.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;div style="font-size:80%"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://samepage.io?partner=683d6fe8b2973c7cc2a4ba099fd949be56d864fe"&gt;Samepage - Redefining how people create and share information&lt;/a&gt;&lt;/td&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://aplawrence.com/Kerio"&gt;Kerio Mail Server, Firewall and more&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?a=OCIyq-49MHY:4X_LSQ9gA0g:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/aplawrence/ZPYH/~4/OCIyq-49MHY" height="1" width="1"/&gt;</description>
<link>http://feedproxy.google.com/~r/aplawrence/ZPYH/~3/OCIyq-49MHY/x_envelope_to.html</link>
<feedburner:origLink>http://aplawrence.com/Kerio/x_envelope_to.html</feedburner:origLink></item>
<item rdf:about="http://aplawrence.com/Kerio/connection_limit_reached.html">
<title>Kerio Control Connection Limit Reached Alert  </title>
<description>Control,Kerio,Security 

2013/06/12&lt;p&gt;&lt;br /&gt;&lt;/p&gt;


&lt;p&gt;In Kerio Control Configuration -&amp;gt;Traffic Policy -&amp;gt; Security Settings -&amp;gt; Miscellaneous, you'll find a setting for "Connection Limit". That puts a limit on connections and by default it is set to 600. That means that if a machine in your network tries to have  more than 600 connections to machines on the Internet, it gets blocked.&lt;/p&gt;
&lt;p&gt;Note that this is connections in either direction: outgoing or incoming.&lt;/p&gt;
&lt;p&gt;That's a pretty generous limit, as any machine with that many connections may be up to no good. If the connections are legitimate, you are probably already well aware of exactly what those connections are and why that machine needs to make them. In that case, you either need to raise the limit or put a public interface on that machine that doesn't go through the firewall (it's not currently possible to have any exceptions for this limit or to define individual limits for certain machines).&lt;/p&gt;
&lt;p&gt;What if there isn't any reason that you know of for this machine to be so active? You suddenly get this and have no idea why:&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=connection_limit_reached_lg.jpg&amp;amp;mytitle=Keri%20Connection%20Limit%20Alert%20message.&amp;amp;returnpage=Kerio/connection_limit_reached.html&amp;amp;returntitle=Kerio%20Control%20Connection%20Limit%20Reached%20Alert"&gt;&lt;img src="http://aplawrence.com/images/connection_limit_reached.jpg" alt="Keri Connection Limit Alert message." title="Keri Connection Limit Alert message. (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;!-- PLACEAD --&gt;&lt;!-- BIG --&gt;
&lt;p&gt;As noted, this could be bad news. It could indicate a virus on the misbehaving computer, or it could mean that someone on the outside is trying to cripple you by deliberately making useless connections.&lt;/p&gt;
&lt;p&gt;Or, it might just be something you forgot about.&lt;/p&gt;
&lt;p&gt;In the two most recent cases where I've seen this, that was the case. In both cases, the customers were using Microsoft Domain Controllers and some or all machines were looking to there for DNS. That machine in turn was going out to the Internet to resolve the requests and although neither customer has anything even approaching 600 users, connections last long enough and come quickly enough that now and then the connection limit was reached.&lt;/p&gt;
&lt;p&gt;Aside from the alert, this also means that some DNS request failed, though apparently it didn't happen often enough that anyone complained. Probably the affected user was momentarily puzzled and when they tried again, enough older connections had timed out that it went through, so they shrugged their shoulders and got on with their work (or whatever they were doing instead of work).&lt;/p&gt;
&lt;p&gt;The solution is simple enough: tell the Domain Controller (or the individual machines) to look up DNS at the Kerio Control box. That isn't an outgoing or incoming connection, so the connection limit counter isn't affected. &lt;/p&gt;



&lt;p&gt;Comments: &lt;a href="http://aplawrence.com/cgi-bin/newcomm.pl?commenting=/Kerio/connection_limit_reached.html"&gt;Click Here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Want to showcase your product to our audience? Check our &lt;a href="http://aplawrence.com/advert.html"&gt;advertising options.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Many of the products and books I review are things I purchased for my own use.  Some were given to me specifically for the purpose of   reviewing them.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;b&gt;I resell or can earn commissions from the sale of some of these items.  Links within these pages may be affiliate links that pay me for referring you 
to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain.  If you have any question, please do feel free to contact me.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;div style="font-size:80%"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://samepage.io?partner=683d6fe8b2973c7cc2a4ba099fd949be56d864fe"&gt;Samepage - Redefining how people create and share information&lt;/a&gt;&lt;/td&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://aplawrence.com/Kerio"&gt;Kerio Mail Server, Firewall and more&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?a=m97Cmu1W5Y0:52PdVuKMBhM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/aplawrence/ZPYH/~4/m97Cmu1W5Y0" height="1" width="1"/&gt;</description>
<link>http://feedproxy.google.com/~r/aplawrence/ZPYH/~3/m97Cmu1W5Y0/connection_limit_reached.html</link>
<feedburner:origLink>http://aplawrence.com/Kerio/connection_limit_reached.html</feedburner:origLink></item>
<item rdf:about="http://aplawrence.com/Kerio/multiple_spam_folders.html">
<title>Multiple Spam folders with Kerio Connect  </title>
<description>Connect,Kerio,Mail,Malware 

2013/06/11&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;If you are a Kerio Connect user or administrator, you have certainly seen messages marked as "**SPAM**". You may also be aware that you can change that to prefix spam messages with something else.&lt;/p&gt;
&lt;p&gt;For example, here I've changed mine to read "**SPAM** [%s]":&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=spam_sorting_lg.jpg&amp;amp;mytitle=Changing%20Spam%20Prefix%20in%20Kerio%20Connect&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/spam_sorting.jpg" alt="Changing Spam Prefix in Kerio Connect" title="Changing Spam Prefix in Kerio Connect (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;If you are a new to Kerio Connect, you may be puzzled by this. The current manuals don't mention anything about that. Why would I do that?&lt;/p&gt;
&lt;p&gt;Actually, it's something that used to be mentioned in the manuals, and fortunately it still works.&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=spam_sorting_message_lg.jpg&amp;amp;mytitle=Using%20%s%20in%20Spam%20Prefix&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/spam_sorting_message.jpg" alt="Using %s in Spam Prefix" title="Using %s in Spam Prefix (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;!-- PLACEAD --&gt;&lt;!-- BIG --&gt;
&lt;p&gt;What does it do? It makes your Spam messages look like this:&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=spam_sorting_results_lg.jpg&amp;amp;mytitle=Results%20of%20using%20%s&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/spam_sorting_results.jpg" alt="Results of using %s" title="Results of using %s (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;That gives you an immediate visual clue as to the actual Spam rating. If I'm looking for false positives (things marked as Spam that might not be), I'd look at those with "**SPAM** [****]" (4 stars) first, because those have the lowest Spam rating.&lt;/p&gt;
&lt;p&gt;It would be nice if you could sort by Subject so that the lower scoring messages came first, but neither Outlook nor Webmail pay any attention to that and instead sort by alphanumerics only.&lt;/p&gt;
&lt;p&gt;There is another way, though.&lt;/p&gt;
&lt;h2&gt;Sort messages into multiple Junk Folders&lt;/h2&gt;
&lt;p&gt;As you'll see shortly, this isn't something most of us would want to do because it affects out of office settings.  Think about all of this before rushing to implement it!&lt;/p&gt;
&lt;p&gt;This comes from the tip in the older manuals that suggests that you could write rules to sort messages out into multiple folders based on the Subject line.  That involves a bit more work, but we can do it.&lt;/p&gt;
&lt;p&gt;You'll need to add Mail filter rules for each condition you want to sort specially. I moved "[****]" and "[*****]" messages to their own folders with these three rules:&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=spam_sorting_rule4_lg.jpg&amp;amp;mytitle=Rule%204&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/spam_sorting_rule4.jpg" alt="Rule 4" title="Rule 4 (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=spam_sorting_rule5_lg.jpg&amp;amp;mytitle=Rule%205&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/spam_sorting_rule5.jpg" alt="Rule 5" title="Rule 5 (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=spam_sorting_rule_other_lg.jpg&amp;amp;mytitle=%20Any%20Spam&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/spam_sorting_rule_other.jpg" alt=" Any Spam" title=" Any Spam (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;* Be sure to use "contains" and not "matches" to avoid interpreting the "*"'s as wildcards.&lt;/p&gt;
&lt;p&gt;To allow these new rules to work, you need to disable the default spam rule:&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=spam_sorting_default_rule_lg.jpg&amp;amp;mytitle=%20Disable%20default%20rule&amp;amp;returnpage=Kerio/multiple_spam_folders.html&amp;amp;returntitle=Multiple%20Spam%20folders%20with%20Kerio%20Connect"&gt;&lt;img src="http://aplawrence.com/images/spam_sorting_default_rule.jpg" alt=" Disable default rule" title=" Disable default rule (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;With this all in place, I now have lower scoring spam separate from high scoring spam. That could make it easier for me to quickly check for false positives.&lt;/p&gt;
&lt;p&gt;Note: the new rules here are not the same as the default rule. That rule uses a different test and also takes the whitelist into account. You could edit the filters manually to do the same; see &lt;a title="Kerio's message rules are processed by Sieve" href="http://aplawrence.com/Kerio/using_sieve.html"&gt;Using Sieve for spam in Kerio Mailserver&lt;/a&gt;. &lt;b&gt;If you use the personal whitelist, you'd definitely want to do that (and you'd need to update your rules whenever that whitelist changes!)&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;Look at the "filter.siv" file in your mail directory to see these default rules.&lt;/i&gt;&lt;/p&gt;
&lt;pre&gt;
#!1 __WebmailJunk__
if allof (spamtest, not address :all :is "From" "") {
  fileinto "Junk E-mail";
  stop;
}

#!0 __WebmailAutoreply__
#if true {
#  vacation :days 7 "I am out of office today.  Please call 774 213-1199 if urgent\r\n\r\n";
#}
&lt;/pre&gt;
&lt;p&gt;Also, this affects the out of office rule.  With the default spam rule, out of office messages won't be sent in reply to messages that are marked "**SPAM**". Unless you move that rule below your new rules, out of office messages will be sent.  This requires manual editing of "filter.siv".  As the normal out of office message will get moved right back to the top every time it is enabled, you'd probably want to define your own rule, instead.  &lt;/p&gt;
&lt;p&gt;Another way to handle that is to re-enable the default rule before you enable out of office messages.  The disadvantage of that is that your Spam won;'t be sorted out into your new folders, because your rules won't ever be seen. 
No matter what, this isn't going to be ideal.&lt;/p&gt;



&lt;p&gt;Comments: &lt;a href="http://aplawrence.com/cgi-bin/newcomm.pl?commenting=/Kerio/multiple_spam_folders.html"&gt;Click Here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Want to showcase your product to our audience? Check our &lt;a href="http://aplawrence.com/advert.html"&gt;advertising options.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Many of the products and books I review are things I purchased for my own use.  Some were given to me specifically for the purpose of   reviewing them.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;b&gt;I resell or can earn commissions from the sale of some of these items.  Links within these pages may be affiliate links that pay me for referring you 
to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain.  If you have any question, please do feel free to contact me.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;div style="font-size:80%"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://samepage.io?partner=683d6fe8b2973c7cc2a4ba099fd949be56d864fe"&gt;Samepage - Redefining how people create and share information&lt;/a&gt;&lt;/td&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://aplawrence.com/Kerio"&gt;Kerio Mail Server, Firewall and more&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?a=t1KqslaK4rA:KnWycuQD774:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/aplawrence/ZPYH/~4/t1KqslaK4rA" height="1" width="1"/&gt;</description>
<link>http://feedproxy.google.com/~r/aplawrence/ZPYH/~3/t1KqslaK4rA/multiple_spam_folders.html</link>
<feedburner:origLink>http://aplawrence.com/Kerio/multiple_spam_folders.html</feedburner:origLink></item>
<item rdf:about="http://aplawrence.com/Kerio/tnef_attachments.html">
<title>Whatever happened to Winmail.dat issues?  </title>
<description>Connect,Kerio,Mail 

2013/06/10&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Assuming you are a non-Microsoft user - and why WOULD a smart person like you be a Microsoft person? No, seriously, assuming that you are either not a part of the Evil Empire - um, not a Microsoft user, or at least not always a Microsoft user (maybe you have a tablet or a Mac as a second machine), when was the last time you saw a winmail.dat attachment? It's been a long time since I've seen one or had anyone ask me about that.&lt;/p&gt;
&lt;p&gt;Google "winmail.dat" if you are a Microsoft user with no non-Microsoft folks in your addressbook and therefore have no idea what I'm talking about.&lt;/p&gt;
&lt;p&gt;It seems strange - that used to come up frequently. People would think the file was an attachment they were supposed to open. There actually could be an attachment embedded in there, apparently, but most of the time it's just Outlook formatting junk and of no use to anyone except another Outlook user.&lt;/p&gt;
&lt;p&gt;Those Outlook users can control their outgoing format:&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=winmail_dat_outlook_lg.jpg&amp;amp;mytitle=Outook%20mail%20formatting%20options&amp;amp;returnpage=Kerio/tnef_attachments.html&amp;amp;returntitle=Whatever%20happened%20to%20Winmail.dat%20issues?"&gt;&lt;img src="http://aplawrence.com/images/winmail_dat_outlook.jpg" alt="Outook mail formatting options" title="Outook mail formatting options (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;I think maybe Outlook now defaults to HTML rather than RTF (setting it to RTF was what caused those stupid Winmail.dat things). That could explain why I haven't seen any recently. Or if not, a lot of people have changed their settings, which seems less likely.&lt;/p&gt;
&lt;!-- PLACEAD --&gt;&lt;!-- BIG --&gt;
&lt;p&gt;Some servers like Kerio Connect have a setting to silently decode TNEF (Transport Neutral Encapsulation Format, which is how these things are encoded), so I'd only see this when someone sends something to my Gmail account rather than my normal address. But, I haven't seen one of these in Gmail for some time either: I did a search and the last one I saw was in March of 2009. I forwarded it to myself again to see if maybe Google had started decoding these too, but no, it came through.&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=winmail_dat_lg.jpg&amp;amp;mytitle=Winmail.dat%20attachment&amp;amp;returnpage=Kerio/tnef_attachments.html&amp;amp;returntitle=Whatever%20happened%20to%20Winmail.dat%20issues?"&gt;&lt;img src="http://aplawrence.com/images/winmail_dat.jpg" alt="Winmail.dat attachment" title="Winmail.dat attachment (click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;The last time somebody asked me a question about this involved Apple mail. They use Kerio Connect, so the decoding wasn't an issue, but (according to what Kerio support determined), the Apple Mail itself was at fault:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;The problem is on sender's side - he sends the email encoded in proprietary TNEF format from Microsoft Exchange (winmail.dat). Kerio Connect decodes such messages so it can be displayed on all email clients. The message has two identical parts, one in plaintext, one in RTF. Some clients choose to display RTF event if they are not able to do it correctly. Apple Mail and IOS Mail does this. It is already reported to Apple.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;I don't know if current Apple Mail has that issue, but sometime later I came across this:&lt;/p&gt;
&lt;pre&gt;
defaults write com.apple.mail PreferPlainText -bool TRUE
&lt;/pre&gt;
&lt;p&gt;That's supposed to tell Apple mail that you want to see plain text emails. I've never tried it, but am also told that if you have this set and DO want to view (for example) an HTML formatted email as the sender intended you to see it, you can use View -&amp;gt; Message -&amp;gt; Next Alternative. I've never tried that either (I'm not a fan of Apple Mail, sorry).&lt;/p&gt;
&lt;p&gt;Kerio Connect users only: The Debug log can turn on extended debugging with the Message decoding option.  I turned that on and forwarded myself that RTF message that someone had sent me in 2009. The log noted this:&lt;/p&gt;
&lt;pre&gt;
[09/Jun/2013 15:36:21][15379] {msgdecode} TNEF part of message
/opt/kerio/mailserver/store/queue/00/51b4d933-0000013a.eml decoded.
&lt;/pre&gt;
&lt;p&gt;I supposed it might be more detailed had it encountered some problem, so I decided to try that. I downloaded a winmail.dat file and sent it to myself as an attachment. I confirmed that I got the "decoded" result in the Debug log and then tried corrupting the attachment with various permutations of:&lt;/p&gt;
&lt;pre&gt;
echo "abc" | dd of=t seek=1024 count=3 bs=1 conv=notrunc
&lt;/pre&gt;
&lt;p&gt;(See &lt;a href="http://aplawrence.com/Words/2003_11_03.html"&gt;dd - data dumper&lt;/a&gt; if you don't recognize what that is doing)&lt;/p&gt;
&lt;p&gt;That DID corrupt the attachment, but all that happened was that Connect left it as an attachment and no message was written to the log.  Other logs can report TNEF errors, apparently: I saw this in a &lt;a title="Outlook contact vcard TNEF not decoded" href="http://forums.kerio.com/index.php?t=rview&amp;amp;goto=60953&amp;amp;th=15237" target="_blank"&gt;forum post about a TNEF issue&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;
[22/Apr/2009 11:29:58] mail_queue.cpp:
TNEF decoding of message C:\Program
Files\Kerio\MailServer\store/queue/34/49ef4604-0000542f.eml failed:
TNEF stream contains unsupported properties
&lt;/pre&gt;
&lt;p&gt;I suppose that the non-reporting of obvious corruption might bother me more if it had not been so long since I have seen any TNEF, never mind something corrupted!&lt;/p&gt;
&lt;p&gt;How about you? Do you still see these critters?&lt;/p&gt;



&lt;p&gt;Comments: &lt;a href="http://aplawrence.com/cgi-bin/newcomm.pl?commenting=/Kerio/tnef_attachments.html"&gt;Click Here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Want to showcase your product to our audience? Check our &lt;a href="http://aplawrence.com/advert.html"&gt;advertising options.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Many of the products and books I review are things I purchased for my own use.  Some were given to me specifically for the purpose of   reviewing them.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;b&gt;I resell or can earn commissions from the sale of some of these items.  Links within these pages may be affiliate links that pay me for referring you 
to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain.  If you have any question, please do feel free to contact me.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;div style="font-size:80%"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://samepage.io?partner=683d6fe8b2973c7cc2a4ba099fd949be56d864fe"&gt;Samepage - Redefining how people create and share information&lt;/a&gt;&lt;/td&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://aplawrence.com/Kerio"&gt;Kerio Mail Server, Firewall and more&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?a=p2ucHMcA5O4:vTEWSImVOPQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/aplawrence/ZPYH/~4/p2ucHMcA5O4" height="1" width="1"/&gt;</description>
<link>http://feedproxy.google.com/~r/aplawrence/ZPYH/~3/p2ucHMcA5O4/tnef_attachments.html</link>
<feedburner:origLink>http://aplawrence.com/Kerio/tnef_attachments.html</feedburner:origLink></item>
<item rdf:about="http://aplawrence.com/Kerio/contact_groups_create.html">
<title>Creating Contact Groups from Mail Groups  </title>
<description>Connect,Kerio,Mail,Perl,Scripting 

2013/06/09&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;At &lt;a title="Contact Groups" href="http://aplawrence.com/Kerio/advantages_of_contact_groups.html" target="_self"&gt;"Consider using Kerio Connect Contact Groups instead of Mail Groups"&lt;/a&gt;, I talked about the advantages of Contact Groups for internal lists. If you only had one or two such lists with a small number of contacts in each, you could manually convert them to Contact Groups without much work. But what if you had several dozen to convert? That would be tedious, wouldn't it?&lt;/p&gt;
&lt;p&gt;Fortunately, it's not particularly difficult to script this. We first need to understand how Kerio creates Contact Groups, then we need to gather the members of the Mail Groups we want to convert and then (with a little bit more work) we can create new Contact Groups.&lt;/p&gt;
&lt;p&gt;(This article is a bit more geekish than usual and the code is longer. It may be of little interest to the average user or administrator.)&lt;/p&gt;
&lt;h2&gt;Contact Groups Format&lt;/h2&gt;
&lt;p&gt;Here is an example of what a Contact Group actually looks like on your disk. It's just text; you can examine these things with any text editor.&lt;/p&gt;
&lt;p&gt;This one is more complex than we'll actually need because it contains other Contact Groups as well as both individuals and other groups. &lt;/p&gt;
&lt;pre&gt;
Subject: Nested Contact Group
Date: Fri, 7 Jun 2013 08:20:40 -0400
Content-Type: text/x-vcard-dl; charset="utf-8"
Content-Transfer-Encoding: 8bit

BEGIN:VCARD
VERSION:3.0
PRODID:-//kerio.com/Contacts//NONSGML v1.0//EN
X-DL:TRUE
FN:Nested Contact Group
UID:6596500c-5a9d-4788-8aa4-3f7e2ee324c3
BEGIN:X-DL-ITEM
TYPE:REFERENCE
NAME:Robert Lawrence
EMAIL:robert@aplawrence.com
DATA:fd3ab4b6-4fa0-460a-a14c-2eb13651e369/00000003
END:X-DL-ITEM
BEGIN:X-DL-ITEM
TYPE:REFERENCE
EMAIL:nosuchperson@nowhere.com
END:X-DL-ITEM
BEGIN:X-DL-ITEM
TYPE:REFERENCE
NAME:AAGroup
EMAIL:aagroup@aplawrence.com
DATA:fd3ab4b6-4fa0-460a-a14c-2eb13651e369/00000011
END:X-DL-ITEM
BEGIN:X-DL-ITEM
TYPE:LISTREFERENCE
NAME:Contact Group One
DATA:e14df63c-e49e-45dc-ae98-976e6ff66fca/00000198
END:X-DL-ITEM
END:VCARD

&lt;/pre&gt;
&lt;p&gt;Let's break this down so we understand it. After the stuff that identifies the Contact Group itself, we have the first member:&lt;/p&gt;
&lt;pre&gt;
BEGIN:X-DL-ITEM
TYPE:REFERENCE
NAME:Robert Lawrence
EMAIL:robert@aplawrence.com
DATA:fd3ab4b6-4fa0-460a-a14c-2eb13651e369/00000003
END:X-DL-ITEM

&lt;/pre&gt;
&lt;p&gt;That all makes sense, but what's that "DATA" line?&lt;/p&gt;
&lt;p&gt;That's a reference to another contact. In this case, it happens to be from the GAL (Global Address List) and it is referencing the Public Contacts folder, specifically file 00000003.eml in that folder:&lt;/p&gt;
&lt;pre&gt;
* 00000003.eml in Public Contacts Folder * 

Subject: Robert Lawrence
Date: Tue, 30 Apr 2013 15:15:06 -0400
Content-Type: text/vcard; charset="utf-8"
Content-Transfer-Encoding: 8bit

BEGIN:VCARD
VERSION:3.0
PRODID:-//kerio.com/Contacts//NONSGML v1.0//EN
EMAIL;TYPE=PREF:robert@aplawrence.com
N:Lawrence;Robert;;;
FN:Robert Lawrence
CATEGORIES:Global Address List
X-SYNCHRONIZED-FROM-GAL:true
UID:a5f72a5b-2264-4ca7-a4f5-8e09294ed86f
X-JABBER:robert@aplawrence.com
END:VCARD
&lt;/pre&gt;
&lt;!-- PLACEAD --&gt;&lt;!-- BIG --&gt;
&lt;p&gt;How did I know it would be in the Public Contacts folder? Because inside "status.fld" in that folder is this:&lt;/p&gt;
&lt;pre&gt;
G&lt;span style="color: #ff0000;"&gt;fd3ab4b6-4fa0-460a-a14c-2eb13651e369&lt;/span&gt;
&lt;/pre&gt;
&lt;p&gt;Look familiar? Compare it to&lt;/p&gt;
&lt;pre&gt;
DATA:&lt;span style="color: #ff0000;"&gt;fd3ab4b6-4fa0-460a-a14c-2eb13651e369&lt;/span&gt;/00000003
&lt;/pre&gt;
&lt;p&gt;See how the TYPE:REFERENCE works now? The DATA line points it to a folder and a specific contact. It's the same thing for the AAGroup entry - that's 00000011.eml in the Public Contacts.&lt;/p&gt;
&lt;p&gt;What about "Contact Group One"? It's a LISTREFERENCE, which means it's pointing at another Contact Group and its DATA tells us it is in the folder with id e14df63c-e49e-45dc-ae98-976e6ff66fca and the file will be 00000198.eml. Where's e14df63c-e49e-45dc-ae98-976e6ff66fca ? That's the same Contacts folder that this Group is stored in; it's status.fld has Ge14df63c-e49e-45dc-ae98-976e6ff66fca in it.&lt;/p&gt;
&lt;p&gt;Finally, look at that "nosuchperson" section. There's no DATA line for that, so it didn't come from an existing contact: it was just typed in.&lt;/p&gt;
&lt;p&gt;So we see now how we can add items to a Contact Group - we find the members in the Public Contacts if we can and if we can't, we just put them in directly. That part is simple enough.&lt;/p&gt;
&lt;p&gt;But what about the first part of the contents?&lt;/p&gt;
&lt;pre&gt;
BEGIN:VCARD
VERSION:3.0
PRODID:-//kerio.com/Contacts//NONSGML v1.0//EN
X-DL:TRUE
FN:Nested Contact Group
UID:6596500c-5a9d-4788-8aa4-3f7e2ee324c3

&lt;/pre&gt;
&lt;p&gt;What is that "UID:6596500c-5a9d-4788-8aa4-3f7e2ee324c3"?&lt;/p&gt;
&lt;p&gt;That's a &lt;a title="UUID's" href="http://en.wikipedia.org/wiki/UUID" target="_blank"&gt;UUID&lt;/a&gt;.  On Linux, you can generate one with&lt;/p&gt;
&lt;p&gt;# uuid&lt;br /&gt;b3d7bd76-d031-11e2-a82d-effcd23bafde&lt;/p&gt;
&lt;p&gt;On Mac OS X, use&lt;/p&gt;
&lt;p&gt;$ uuidgen&lt;br /&gt;0DF91624-4C8C-477E-B0BA-5694769EBBF1&lt;/p&gt;
&lt;p&gt;It's &lt;a title="Windows uuidgen" href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa373928(v=vs.85).aspx" target="_blank"&gt;uuidgen on Windows&lt;/a&gt; also. You'll need a UUID for every Contact Group you create manually.  There are also library routines for creating uuid's, but I'll use the command line versions here.&lt;/p&gt;
&lt;p&gt;I took part of the code from my &lt;a title="Exposing Hidden data to users" href="http://aplawrence.com/Kerio/expose_groups.html" target="_self"&gt;"Exposing hidden data to users"&lt;/a&gt; script. The script is fairly long and a bit clumsy, but I hope the logic is easy to follow.&lt;/p&gt;
&lt;p&gt;Changes you'll need to make are marked in red.&lt;/p&gt;
&lt;p&gt;Note that this particular script is unusually intrusive and could break things.  PLEASE UNDERSTAND IT BEFORE YOU RUN IT.  If possible, you should run this on copied data first to be sure it is doing what you want.  Obviously you'd need to change some paths to do that.&lt;/p&gt;
&lt;pre&gt;
#!/usr/bin/perl
$domainpath="&lt;span style="color: #ff0000;"&gt;/opt/kerio/mailserver/store/mail&lt;/span&gt;";
$domain="&lt;span style="color: #ff0000;"&gt;aplawrence.com&lt;/span&gt;";
open(I,"&lt;span style="color: #ff0000;"&gt;/opt/kerio/&lt;/span&gt;mailserver/users.cfg");
@stuff=&amp;lt;I&amp;gt;;
# These are the groups we want to change into Contact Groups
@groups=(&lt;span style="color: #ff0000;"&gt;"Planning","Sales"&lt;/span&gt;);
# Get Public Contacts uuid
 chdir("$domainpath/$domain/#public/Contacts");
 open(U,,"&amp;lt;:crlf","status.fld");
 @U=&amp;lt;U&amp;gt;;
 # uuid is second line and begins with "G"
 $cuid=$U[1];
 $cuid=~s/^.//;
 chomp $cuid;
 chdir("#msgs");
 $first_file_num=&lt;span style="color: #ff0000;"&gt;100&lt;/span&gt;;
 # Set $first_file_num above last currently in Public Contacts
 # Danger here:  NO ADDING OF PUBLIC CONTACTS WHILE RUNNING THIS!
 # If you can't guarantee that, SHUT THE SERVER DOWN!
 $newcontact=sprintf("%0.8x",$first_file_num);
#  Get group members
 foreach (@groups) {
   $group=$_;
   $uuid=`uuid`;
   chomp $uuid;
   while (-e "$newcontact.eml") {
     $newcontact=sprintf("%0.8x",$first_file_num);
     $first_file_num++;
   }
print "Writing $newcontact.eml for $group\n";
open(O,"&amp;gt;:crlf","$newcontact.eml");
print O &amp;lt;&amp;lt;EOF;
Subject: $group &lt;span style="color: #ff0000;"&gt;Contact Group D-List&lt;/span&gt;
Date: Fri, 7 Jun 2013 08:20:40 -0400
Content-Type: text/x-vcard-dl; charset="utf-8"
Content-Transfer-Encoding: 8bit

BEGIN:VCARD
VERSION:3.0
PRODID:-//kerio.com/Contacts//NONSGML v1.0//EN
X-DL:TRUE
FN: $group &lt;span style="color: #ff0000;"&gt;Contact Group D-List&lt;/span&gt;
UID:$uuid
EOF
   
   $group=$_;
   foreach (@stuff) {
     chomp;
     $start=1 if /&amp;lt;list name="User"&amp;gt;/; 
     $start=0 if /&amp;lt;.list&amp;gt;/;
      next if not $start;
      $user=$_ if /&amp;lt;variable name="Name"&amp;gt;/;
      $user=~ s/&amp;lt;variable name="Name"&amp;gt;//;
      $user=~ s/&amp;lt;.*//;
      $user=~ s/\s+//g;
      if (/&amp;lt;variable name="Groups"&amp;gt;$group/) {
         # now find it in GAL Contacts
         chdir("$domainpath/$domain/#public/Contacts/#msgs");
         $found=0;
         foreach(&amp;lt;*.eml&amp;gt;){
           $emlfile=$_;
            $emlfile=~s/.eml//;
            chomp $emlfile;
            open(I, "&amp;lt;:crlf","$_");
            @cfile=&amp;lt;I&amp;gt;;
            close I;
            $fname="";
            foreach (@cfile) {
              $fname=$_ if /^FN:/;
              $found=1 if /^EMAIL.*$user\@$domain/;
             }
         last if $found;
         }
       $fname=~s/^FN://;
       chomp $fname;
print O &amp;lt;&amp;lt;EOF;
BEGIN:X-DL-ITEM
TYPE:REFERENCE
NAME:$fname
EMAIL:$user\@$domain
DATA:$cuid/$emlfile
END:X-DL-ITEM
EOF
      } 
   }
 print O "END:VCARD\n";
 close O;
 }
 chdir("$domainpath/$domain/#public/Contacts");
 rename("index.fld", "index.bad");
 # A server restart will fix things up quickly, but otherwise it may take some time
&lt;/pre&gt;
&lt;p&gt;The hard part here is convincing Connect to reindex the Public Contacts. We rename "index.fld" in the script, but it can be a while before anything gets to there to fix it. You can hasten it with a server restart if you are impatient or use this.&lt;/p&gt;
&lt;div style="text-align:center"&gt;

&lt;p&gt;&lt;a href="http://aplawrence.com/cgi-bin/showpic.pl?image=reindex_pf_lg.jpg&amp;amp;mytitle=Kerio%20Connect%20Reindex%20public%20folders&amp;amp;returnpage=Kerio/contact_groups_create.html&amp;amp;returntitle=Contact%20Groups"&gt;&lt;img src="http://aplawrence.com/images/reindex_pf.jpg" alt="Reindex Public folders" title="Reindex Public Folders(click for larger view)" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;After you are satisified that everything is as it should be, you can delete the Mail Groups and start using these.&lt;p&gt;


&lt;p&gt;Comments: &lt;a href="http://aplawrence.com/cgi-bin/newcomm.pl?commenting=/Kerio/contact_groups_create.html"&gt;Click Here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Want to showcase your product to our audience? Check our &lt;a href="http://aplawrence.com/advert.html"&gt;advertising options.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Many of the products and books I review are things I purchased for my own use.  Some were given to me specifically for the purpose of   reviewing them.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;b&gt;I resell or can earn commissions from the sale of some of these items.  Links within these pages may be affiliate links that pay me for referring you 
to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain.  If you have any question, please do feel free to contact me.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;div style="font-size:80%"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://samepage.io?partner=683d6fe8b2973c7cc2a4ba099fd949be56d864fe"&gt;Samepage - Redefining how people create and share information&lt;/a&gt;&lt;/td&gt;
&lt;td&gt; - &lt;/td&gt;
&lt;td&gt;&lt;a href="http://aplawrence.com/Kerio"&gt;Kerio Mail Server, Firewall and more&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?a=glRdjE5_PYo:BnecAlewcqE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/aplawrence/ZPYH?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/aplawrence/ZPYH/~4/glRdjE5_PYo" height="1" width="1"/&gt;</description>
<link>http://feedproxy.google.com/~r/aplawrence/ZPYH/~3/glRdjE5_PYo/contact_groups_create.html</link>
<feedburner:origLink>http://aplawrence.com/Kerio/contact_groups_create.html</feedburner:origLink></item>
</rdf:RDF>
