<?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>Talk Tech To Me - GFI Blog &#187; Alex Cachia</title>
	<atom:link href="http://www.gfi.com/blog/author/alex-cachia/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gfi.com/blog</link>
	<description>Brought to you by GFI Software</description>
	<lastBuildDate>Fri, 09 Aug 2013 17:06:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Making use of Microsoft SQL Server Express with GFI MailArchiver – Part 2 of 2</title>
		<link>http://www.gfi.com/blog/making-microsoft-sql-server-express-gfi-mailarchiver-part-2-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=making-microsoft-sql-server-express-gfi-mailarchiver-part-2-2</link>
		<comments>http://www.gfi.com/blog/making-microsoft-sql-server-express-gfi-mailarchiver-part-2-2/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 08:26:54 +0000</pubDate>
		<dc:creator>Alex Cachia</dc:creator>
				<category><![CDATA[GFI Fixes It]]></category>
		<category><![CDATA[GFI MailArchiver]]></category>
		<category><![CDATA[Microsoft SQL Server Express]]></category>

		<guid isPermaLink="false">http://www.gfi.com/blog/?p=2090</guid>
		<description><![CDATA[In my previous post I ran you through deploying SQL Server Express if you didn’t already have it installed, and how to ensure that it is properly configured for use with GFI MailArchiver. Let us now head on to configuring &#8230;]]></description>
				<content:encoded><![CDATA[<p>In my <a href="http://www.gfi.com/blog/making-microsoft-sql-server-express-gfi-mailarchiver-part-1-2/">previous post</a> I ran you through deploying SQL Server Express if you didn’t already have it installed, and how to ensure that it is properly configured for use with GFI MailArchiver.</p>
<p>Let us now head on to configuring GFI MailArchiver to make use of SQL Express and to automatically roll-over from one database to another when the 4GB size limit of the SQL Express database is reached.</p>
<p><span id="more-2090"></span></p>
<p>1.    To start off with, we need to pre-populate SQL Server Express with a number of databases for use by GFI MailArchiver. Roll-over by size limit in GFI MailArchiver 6.3 does not yet support the automatic creation of new databases to use when rolling over – the good news is that this feature will be available in GFI MailArchiver 6.4 which will ship later on this year.</p>
<ul>
<li>To create a new database, fire up the SQL Server Management Studio console, expand the node of the SQL instance you’re going to use, right click on ‘Databases’, and click ‘New Database’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 1" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-1.jpg"><img class="aligncenter size-medium wp-image-2119" title="Part 2 - 1" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-1-300x230.jpg" alt="" width="300" height="230" /></a></p>
<ul>
<li>Set a database name, and set the initial size for the ‘Rows Data’ to 1 GB and for ‘Log’ to 10 MB.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 2" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-2.jpg"><img class="aligncenter size-medium wp-image-2120" title="Part 2 - 2" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-2-300x269.jpg" alt="" width="300" height="269" /></a></p>
<ul>
<li>Set autogrowth for the rows data to 100 MB at a time.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 3" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-3.jpg"><img class="aligncenter size-medium wp-image-2121" title="Part 2 - 3" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-3-300x233.jpg" alt="" width="300" height="233" /></a></p>
<ul>
<li>Set autogrowth for the logs data to 10 MB at a time.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 4" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-4.jpg"><img class="aligncenter size-medium wp-image-2122" title="Part 2 - 4" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-4-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p>If you’re asking yourself why you should set the initial and autogrowth values so high the answer is that each time SQL Server needs to grow its file, performance is impacted. The less times SQL Server needs to grow its files, the better.</p>
<ul>
<li>We now need to set GFI MailArchiver to make use of the new database we’ve created in the active archive store. But before doing that, go ahead and create a few more databases for GFI MailArchiver to make use of when the 4 GB limit is reached on the first database.</li>
</ul>
<p>2.    We now need to create an archive store based on SQL Express and set it as the active archive store.</p>
<ul>
<li>Fire up the GFI MailArchiver configuration console, open the node ‘GFI MailArchiver’ &gt; ‘Configuration’ &gt; ‘Archive Stores’ and click ‘Add Archive Store’.</li>
</ul>
<ul>
<li>Set a name for the new archive store and click ‘Next’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 5" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-5.jpg"><img class="aligncenter size-medium wp-image-2123" title="Part 2 - 5" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-5-300x244.jpg" alt="" width="300" height="244" /></a></p>
<ul>
<li>Select ‘Microsoft SQL Server database and file system (including Express Edition)’. Please note this is the only option for which automatic roll-over by size limit is supported. Click ‘Next’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 6" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-6.jpg"><img class="aligncenter size-medium wp-image-2124" title="Part 2 - 6" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-6-300x245.jpg" alt="" width="300" height="245" /></a></p>
<ul>
<li>Select the SQL Server instance in which you created the databases for use with GFI MailArchiver. As for credentials, I suggest you use sa credentials for these operations so as not to get stuck on some permissions related issue. Don’t worry, these credentials will only be used to perform the necessary operations and will then be discarded (they are not stored anywhere). Click ‘Next’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 7" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-7.jpg"><img class="aligncenter size-medium wp-image-2125" title="Part 2 - 7" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-7-300x244.jpg" alt="" width="300" height="244" /></a></p>
<ul>
<li>Select the database you’re going to use for the active archive store. Click ‘Next’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 8" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-8.jpg"><img class="aligncenter size-medium wp-image-2126" title="Part 2 - 8" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-8-300x244.jpg" alt="" width="300" height="244" /></a></p>
<ul>
<li>Select the location on disk where you want to store the emails archived to this archive store (and, unlike me, keep in mind the disk I/O recommendations I made in part 1 of this post – in my case it’s a test environment). Click ‘Next’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 9" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-9.jpg"><img class="aligncenter size-medium wp-image-2127" title="Part 2 - 9" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-9-300x244.jpg" alt="" width="300" height="244" /></a></p>
<ul>
<li>You should now get a dialog indicating that database verification is complete. Click ‘Next’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 10" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-10.jpg"><img class="aligncenter size-medium wp-image-2128" title="Part 2 - 10" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-10-300x245.jpg" alt="" width="300" height="245" /></a></p>
<ul>
<li>Enter user names and passwords for GFI MailArchiver to create users in SQL Server which it will use to write to the database when emails are being archived, and read from the database when emails are being browsed or searched. Make sure that the password you configure satisfies any password complexity requirements on your machine/domain! Click ‘Next’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 11" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-11.jpg"><img class="aligncenter size-medium wp-image-2129" title="Part 2 - 11" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-11-300x245.jpg" alt="" width="300" height="245" /></a></p>
<ul>
<li>You should now get a dialog indicating that login creation was successful. Click ‘Next’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 12" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-12.jpg"><img class="aligncenter size-medium wp-image-2130" title="Part 2 - 12" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-12-300x244.jpg" alt="" width="300" height="244" /></a></p>
<ul>
<li>Select the location on disk where you want to store the search index files for this archive store (again, keeping in mind the disk I/O recommendations I made in part 1 of this post). Click ‘Next’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 13" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-13.jpg"><img class="aligncenter size-medium wp-image-2131" title="Part 2 - 13" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-13-300x244.jpg" alt="" width="300" height="244" /></a></p>
<ul>
<li>You should now get a dialog indicating that you have completed the archive store wizard. Click ‘Finish’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 14" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-14.jpg"><img class="aligncenter size-medium wp-image-2132" title="Part 2 - 14" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-14-300x244.jpg" alt="" width="300" height="244" /></a></p>
<ul>
<li>You should now be back on the ‘Archive Stores’ page. In the ‘Archive in the following store’ drop down menu select the new SQL Express based archive store which you have just created. Finally, don’t forget to click ‘Save Settings’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 15" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-15.jpg"><img class="aligncenter size-medium wp-image-2133" title="Part 2 - 15" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-15-300x227.jpg" alt="" width="300" height="227" /></a></p>
<ul>
<li>You have now configured GFI MailArchiver to make use of a SQL Express based archive store as its active archive store.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 16" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-16.jpg"><img class="aligncenter size-medium wp-image-2134" title="Part 2 - 16" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-16-300x227.jpg" alt="" width="300" height="227" /></a></p>
<p>3.    Now we need to create a number of archive stores based on SQL Express so as to roll-over to them when the size limit on the active archive store is reached.</p>
<ul>
<li>In the GFI MailArchiver configuration console, open the node ‘GFI MailArchiver’ &gt; ‘Configuration’ &gt; ‘Archive Stores Management’ and click ‘Add Archive Store’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 17" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-17.jpg"><img class="aligncenter size-medium wp-image-2135" title="Part 2 - 17" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-17-300x227.jpg" alt="" width="300" height="227" /></a></p>
<ul>
<li>You should be pretty familiar with the wizard you get at this point, as it’s the same one we went through to create an archive store based on SQL Express and set it as the active archive store.</li>
</ul>
<ul>
<li>Go ahead and create a few archive stores in ‘Archive Stores Management’ based on SQL Express.</li>
</ul>
<p>4.    At this point all that is left for us to do is to configure GFI MailArchiver such that it will automatically roll-over to one of the newly created SQL Express based archive stores when the active SQL Express based archive store reaches its 4GB size limit.</p>
<ul>
<li>Fire up the GFI MailArchiver configuration console.</li>
</ul>
<ul>
<li>Open the node ‘GFI MailArchiver’ &gt; ‘Configuration’ &gt; ‘Archive Stores Management’ and click ‘Add Archive Store’.</li>
</ul>
<ul>
<li>Select the ‘Enable the swap archive store schedule’ check box and make sure the ‘Use a new Archive Store when it is full’ radio button is selected. Don’t forget to click ‘Save Settings’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 18" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-18.jpg"><img class="aligncenter size-medium wp-image-2136" title="Part 2 - 18" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-18-300x243.jpg" alt="" width="300" height="243" /></a></p>
<ul>
<li>That’s it! You have configured GFI MailArchiver to make use of SQL Express based archive stores and to automatically roll-over to a new SQL Express archive store when the active archive store reaches the 4GB size limit of its SQL Express Database!</li>
</ul>
<p><a class="lightbox" title="Part 2 - 19" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-19.jpg"><img class="aligncenter size-medium wp-image-2137" title="Part 2 - 19" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-19-268x300.jpg" alt="" width="268" height="300" /></a></p>
<ul>
<li>Please keep in mind that you will not be able to select the option ‘Enable the swap archive store schedule’ should you not set a SQL Express based archive store as the active archive store, or have archive stores in ‘Archive Stores Management’ which are not based on SQL Express.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 20" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-20.jpg"><img class="aligncenter size-medium wp-image-2138" title="Part 2 - 20" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-20-300x249.jpg" alt="" width="300" height="249" /></a></p>
<ul>
<li>Furthermore, once you’ve enabled the option ‘Use a new Archive Store when it is full’ you will not be able to set the active archive store to one which is not based on SQL Express.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 21" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-21.jpg"><img class="aligncenter size-medium wp-image-2139" title="Part 2 - 21" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-21-300x244.jpg" alt="" width="300" height="244" /></a></p>
<ul>
<li>As a final note, when the active archive store reaches the 4GB size limit of the SQL Express database it is based on and GFI MailArchiver rolls over to a new SQL Express based archive store, a notification such as the one below will be sent to the administrator’s email address as configured under ‘GFI MailArchiver’ &gt; ‘Configuration’ &gt; ‘General Settings’.</li>
</ul>
<p><a class="lightbox" title="Part 2 - 22" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-22.jpg"><img class="aligncenter size-medium wp-image-2140" title="Part 2 - 22" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-22-300x239.jpg" alt="" width="300" height="239" /></a></p>
<ul>
<li>Should GFI MailArchiver be rolling over to the last available SQL Express based archive store, the email notification will also notify about this. At this point it is important that you create a few more archive stores for GFI MailArchiver to roll over to once the SQL Express database for this last archive store reaches its 4GB size limit – otherwise email archiving will then stop!</li>
</ul>
<p><a class="lightbox" title="Part 2 - 23" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-23.jpg"><img class="aligncenter size-medium wp-image-2141" title="Part 2 - 23" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-2-23-300x239.jpg" alt="" width="300" height="239" /></a></p>
<p>In this <a href="http://www.gfi.com/blog/making-microsoft-sql-server-express-gfi-mailarchiver-part-1-2/">2 part series</a> I have briefly covered deployment and configuration of SQL Express for use with GFI MailArchiver, as well as configuring GFI MailArchiver to make use of SQL Express and automatically roll-over from one database to another when the 4GB size limit of the SQL Express database is reached. Admittedly this could and should be a simpler process – and this is precisely one of the things we will be working on in the next release, GFI MailArchiver 6.4, due later on in Q2 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gfi.com/blog/making-microsoft-sql-server-express-gfi-mailarchiver-part-2-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making use of Microsoft SQL Server Express with GFI MailArchiver – Part 1 of 2</title>
		<link>http://www.gfi.com/blog/making-microsoft-sql-server-express-gfi-mailarchiver-part-1-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=making-microsoft-sql-server-express-gfi-mailarchiver-part-1-2</link>
		<comments>http://www.gfi.com/blog/making-microsoft-sql-server-express-gfi-mailarchiver-part-1-2/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 13:36:10 +0000</pubDate>
		<dc:creator>Alex Cachia</dc:creator>
				<category><![CDATA[GFI Fixes It]]></category>
		<category><![CDATA[GFI MailArchiver]]></category>
		<category><![CDATA[Microsoft SQL Server Express]]></category>

		<guid isPermaLink="false">http://www.gfi.com/blog/?p=2069</guid>
		<description><![CDATA[Following feedback that customers would like to make use of GFI MailArchiver with Microsoft SQL Server Express, with GFI MailArchiver 6.3 we included the ability to automatically roll-over from one database to another when the size limit on the database &#8230;]]></description>
				<content:encoded><![CDATA[<p>Following feedback that customers would like to make use of GFI MailArchiver with Microsoft SQL Server Express, with GFI MailArchiver 6.3 we included the ability to automatically roll-over from one database to another when the size limit on the database is reached – which will make using SQL Express with GFI MailArchiver much more feasible and manageable (since SQL Express has a 4GB size limit on a single database). This functionality is available for GFI MailArchiver “SQL (Express) + NTFS” archive stores (i.e. archive stores in which email metadata is held on SQL Express and emails are stored on disk).</p>
<p>On this vein, I thought about drawing up some guidelines for using SQL Express with GFI MailArchiver on virtual paper.</p>
<h2>Deployment of SQL Express for use with GFI MailArchiver</h2>
<p>Some of you might already have SQL Express deployed, so I will give you a couple of hints for things to make sure of before trying to use your SQL Express deployment with GFI MailArchiver. I also realize that some of you might not have SQL Express already deployed, so I will also briefly go through deploying it from scratch for our purposes. I will be using SQL Express 2008.</p>
<p><span id="more-2069"></span></p>
<p>Before covering deployment itself of SQL Express, however, I have one recommendation for you, whether you’re deploying it from scratch or otherwise. Due to the nature of its task, GFI MailArchiver is a disk I/O intensive piece of software – it is continuously reading/writing emails to/from disk, it is continuously reading/writing data to/from database (which can itself be disk I/O intensive), and it is continuously indexing and performing searches on emails, which necessitates reading/writing to/from index files on disk (which also entails disk I/O). Customers tend to fall into the trap of storing emails, databases and indexes on one disk, sometimes even on the same disk on which the Microsoft Exchange Information Store databases are stored (which bring along with them even more disk I/O) – resulting in disk thrashing and severely degraded performance of the product. In order to avoid this, it is important to plan for a disk which is dedicated for the storage of your SQL Express databases. Should you wish to avoid having to grab another disk for this purpose, you might want to look at whether you have another machine on your network with some spare disk and CPU cycles on which you might want to deploy SQL Express instead. Given the flexibility offered by SQL Express you will probably find that indeed you do have such a machine (damn, I even installed it on a XP machine in my test environment!). That is an equally viable option with the added advantage of also offloading your server of some CPU cycles. But enough about that, let’s dive into what you need to do if you already have SQL Server Express deployed somewhere on your network.</p>
<p>If you already have SQL Server Express deployed on your network, it’s quite simple really:</p>
<ol>
<li>Make sure mixed mode authentication is enabled.</li>
</ol>
<ul>
<li>Fire up the SQL Server Management Studio console, right click on the SQL instance you’re going to use, and click ‘Properties’.</li>
</ul>
<p style="text-align: center;"><a class="lightbox" title="Image 1" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Untitled.jpg"><img class="size-medium wp-image-2070 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Image 1" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Untitled-300x239.jpg" alt="" width="300" height="239" /></a></p>
<ul>
<li>In the Server Properties dialog box, select ‘Security’ and enable ‘SQL Server and Windows Authentication mode’.</li>
</ul>
<p style="text-align: center;"><a class="lightbox" title="Part 1 - Image 2" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-2.jpg"><img class="size-medium wp-image-2071 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 2" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-2-300x269.jpg" alt="" width="300" height="269" /></a></p>
<ul>
<li>Click ‘OK’.</li>
</ul>
<p>2. Make sure that the ‘SQL Server Browser’ service is started.</p>
<ul>
<li>Fire up the SQL Server Configuration Manager console and select ‘SQL Server Services’. Should the ‘Start Mode’ for the ‘SQL Server Browser’ service not be set to ‘Automatic’, right click on it, click ‘Properties’, and on the ‘Service’ tab set ‘Start Mode’ to ‘Automatic’.</li>
</ul>
<ul>
<li>If the ‘SQL Server Browser’ service is currently stopped, right click on it and click ‘Start’.</li>
</ul>
<p style="text-align: center;"><a class="lightbox" title="Part 1 - Image 3" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-3.jpg"><img class="size-medium wp-image-2072 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 3" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-3-300x201.jpg" alt="" width="300" height="201" /></a></p>
<p style="text-align: center;"><a class="lightbox" title="Part 1 - Image 4" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-4.jpg"><img class="size-medium wp-image-2073 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 4" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-4-273x300.jpg" alt="" width="273" height="300" /></a></p>
<p>3.    If SQL Express is installed on a different machine to your GFI MailArchiver machine, make sure that TCP/IP is enabled for the SQL Server instance you will use with GFI MailArchiver.</p>
<ul>
<li>In the SQL Server Configuration Manager console, expand the ‘SQL Server Network Configuration’ node, and select ‘Protocols for SQLEXPRESS’.</li>
</ul>
<ul>
<li>Right click ‘TCP/IP’, and click ‘Enable’.</li>
</ul>
<p style="text-align: center;"><a class="lightbox" title="Part 1 - Image 5" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-5.jpg"><img class="size-medium wp-image-2074 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 5" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-5-300x215.jpg" alt="" width="300" height="215" /></a></p>
<ul>
<li>You will need to restart the SQL Server service for this change to come into effect. Select ‘SQL Server Services’, right click on the SQL Server service for the instance you’re working on, which will be ‘SQL Server (SQLEXPRESS)’ if you’re using the default instance, and click ‘Restart’.</li>
</ul>
<p style="text-align: center;"><a class="lightbox" title="Part 1 - Image 6" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-6.jpg"><img class="size-medium wp-image-2075 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 6" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-6-300x215.jpg" alt="" width="300" height="215" /></a></p>
<p style="text-align: left;">4.    If SQL Express is installed on a different machine to your GFI MailArchiver machine, and you have the Windows Firewall enabled on the SQL Express machine, you will need to open access to the SQL Server Browser service, as well as configuring the SQL Server Express database engine service to listen on a specified port and opening access to that port.</p>
<p>To open access to the SQL Browser service, you will need to open access to UDP port 1434.</p>
<p>To set the SQL Server Express database engine service to listen on a specified port, follow the instructions at <a href="http://msdn.microsoft.com/en-us/library/ms177440.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms177440.aspx</a> &#8211; ‘How to: Configure a Server to Listen on a Specific TCP Port (SQL Server Configuration Manager)’ making sure that you clear ‘Dynamic Ports’ and set ‘TCP Port’ in ‘IPAll’ too like below. You will then need to open access to TCP on the port you configured. More information here: <a href="http://msdn.microsoft.com/en-us/library/ms175043(v=SQL.100).aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms175043(v=SQL.100).aspx</a> &#8211; ‘How to: Configure a Windows Firewall for Database Engine Access)’.</p>
<p><a class="lightbox" title="Part 1 - Image 7" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-7.jpg"><img class="size-medium wp-image-2076 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 7" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-7-273x300.jpg" alt="" width="273" height="300" /></a></p>
<p style="text-align: left;">You will also need to restart the SQL Server service for these changes to take effect.</p>
<p style="text-align: left;">5.    That’s it –  your SQL Server Express deployment is ready for use with GFI MailArchiver!</p>
<h2>Deploying SQL Express from scratch</h2>
<p>I don’t want to make this boring, so I’m not going to post a screen shot of each installation step… but I will give you some useful information and hints on the matter:</p>
<p>1.    To start off with, a comment about prerequisites – if the platform you’re installing on happens not to have them, you’ll need to install the following:</p>
<ul>
<li>Microsoft Windows Installer 4.5</li>
<li>Microsoft .NET Framework 3.5 Service Pack 1</li>
<li>Microsoft Windows PowerShell</li>
</ul>
<p>2.    If you’re installing SQL Server Express on an Active Directory Domain Controller machine, or on a machine on which the Windows Firewall is enabled, you might get some warnings in the ‘Setup Support Rules’ dialog as shown below.</p>
<p style="text-align: center;"><a class="lightbox" title="Part 1 - Image 8" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-8.jpg"><img class="size-medium wp-image-2077 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 8" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-8-300x264.jpg" alt="" width="300" height="264" /></a></p>
<ul>
<li>With respect to installing on a domain controller, I will refer you to SQL Server 2008 Books Online (November 2009) &gt; Hardware and Software Requirements for Installing SQL Server 2008 &gt; Installing SQL Server on a Domain Controller: <a href="http://msdn.microsoft.com/en-us/library/ms143506.aspx#DC_Support" target="_blank">http://msdn.microsoft.com/en-us/library/ms143506.aspx#DC_Support</a>. In short, however, if you’re installing on a domain controller you will need to run SQL Server services under the SYSTEM account or you’ll need to create an account for the purpose – other than that, SQL Server Express Setup will not block you from installing, and you shouldn’t have problems unless you’re planning to change the machine in question from a domain controller to a domain member, you’re installing to a read-only domain controller, or you’re looking at a SQL Server failover cluster.</li>
</ul>
<p>The SQL Server 2008 Books Online section on the matter also mentions that Microsoft does not recommend installing SQL Server 2008 on a domain controller “for security reasons” – granted, you don’t want anyone who manages to break into your SQL Server machine to also have access to your domain controller… Furthermore, you will probably find that with a larger number of users (my guess being anything more than a 100 users) the usage patterns of active directory and SQL Server on the same machine will be such that they impact each other performance-wise. If any of this is of concern to you, always remember that you can easily install SQL Server Express on pretty much any machine with some spare disk and CPU cycles.</p>
<ul>
<li>If you’re installing SQL Express on a different machine to your GFI MailArchiver machine, and you have the Windows Firewall enabled on the machine on which you’re installing SQL Server Express, you will need to open access to the SQL Server Browser service, as well as configuring the SQL Server Express database engine service to listen on a specified port and opening access to that port.</li>
</ul>
<p>You will be able to do this once SQL Express is actually installed.</p>
<p>3.    Service accounts: When you get to the ‘Server Configuration’dialog, you will need to configure a couple of settings related to SQL Server Express services.</p>
<ul>
<li>As per Microsoft recommendation, I chose to run the SQL Server Express services under separate accounts, so I created an account, ‘sqlexpress’, under which to run the ‘SQL Server Database Engine’ service.</li>
</ul>
<ul>
<li>Make sure you set ‘Startup Type’ for the ‘SQL Server Browser’ service to ‘Automatic’. This service makes it possible to discover a SQL Server instance on the network, so it needs to be started for GFI MailArchiver to be able to discover your SQL Server Express instance.</li>
</ul>
<p style="text-align: center;"><a class="lightbox" title="Part 1 - Image 9" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-9.jpg"><img class="size-medium wp-image-2078 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 9" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-9-300x232.jpg" alt="" width="300" height="232" /></a></p>
<p style="text-align: left;">4.    In the ‘Database Engine Configuration’ dialog, make sure you select the ‘Mixed Mode’ authentication mode. You will also need to select a user to act as administrator for your SQL Server Express instance.</p>
<p><a class="lightbox" title="Part 1 - Image 10" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-10.jpg"><img class="size-medium wp-image-2079 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 10" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-10-300x232.jpg" alt="" width="300" height="232" /></a><br />
5.    If you’re installing SQL Express on a different machine to your GFI MailArchiver machine, once the SQL Express installer has completed successfully make sure that TCP/IP is enabled for the SQL Server instance you will use with GFI MailArchiver.</p>
<ul>
<li>Fire up the SQL Server Configuration Manager console.</li>
</ul>
<ul>
<li>In the SQL Server Configuration Manager console, expand the ‘SQL Server Network Configuration’ node, and select ‘Protocols for SQLEXPRESS’.</li>
</ul>
<ul>
<li>Right click ‘TCP/IP’, and click ‘Enable’.</li>
</ul>
<p style="text-align: center;"><a class="lightbox" title="Part 1 - Image 11" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-11.jpg"><img class="size-medium wp-image-2080 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 11" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-11-300x215.jpg" alt="" width="300" height="215" /></a></p>
<ul>
<li>You will need to restart the SQL Server service for this change to come into effect. Select ‘SQL Server Services’, right click on the SQL Server service for the instance you’re working on, which will be ‘SQL Server (SQLEXPRESS)’ if you’re using the default instance, and click ‘Restart’.</li>
</ul>
<p style="text-align: left;"><a class="lightbox" title="Part 1 - Image 12" href="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-12.jpg"><img class="size-medium wp-image-2081 aligncenter" style="border: 0pt none; margin-top: 10px; margin-bottom: 10px;" title="Part 1 - Image 12" src="http://www.gfi.com/blog/wp-content/uploads/2010/04/Part-1-Image-12-300x215.jpg" alt="" width="300" height="215" /></a><br />
6.    Almost forgot &#8211; if SQL Express is installed on a different machine to your GFI MailArchiver machine, and you have the Windows Firewall enabled on the SQL Express machine, you will need to open access to the SQL Server Browser service, as well as configuring the SQL Server Express database engine service to listen on a specified port and opening access to that port.</p>
<p>This can be done in exactly the same way as I described earlier in this post for existing installations of SQL Server Express.</p>
<p style="text-align: left;">7.    That’s it &#8211; you’ve deployed SQL Server Express and it’s ready for use with GFI MailArchiver!</p>
<p>In my next post I will run you through configuring GFI MailArchiver to make use of SQL Express and to automatically roll-over from one database to another when the 4GB size limit of the SQL Express database is reached.</p>
<p><script src="http://slashdot.org/slashdot-it.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gfi.com/blog/making-microsoft-sql-server-express-gfi-mailarchiver-part-1-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Architectural Changes in GFI MailEssentials 14.1</title>
		<link>http://www.gfi.com/blog/architectural-gfi-mailessentials-141/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=architectural-gfi-mailessentials-141</link>
		<comments>http://www.gfi.com/blog/architectural-gfi-mailessentials-141/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 14:00:21 +0000</pubDate>
		<dc:creator>Alex Cachia</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[GFI Fixes It]]></category>
		<category><![CDATA[GFI MailEssentials]]></category>

		<guid isPermaLink="false">http://www.gfi.com/blog/?p=713</guid>
		<description><![CDATA[In Q3 2009 we will be releasing GFI MailEssentials 14.1, into which we have put a lot of effort on the architectural front of the product (amongst others). I wanted to take this opportunity to share the architectural changes we &#8230;]]></description>
				<content:encoded><![CDATA[<p><a class="lightbox" title="GFI-MailEssentials" href="http://www.gfi.com/blog/wp-content/uploads/2009/07/GFI-MailEssentials.png"><img class="alignright size-full wp-image-772" style="margin: 10px;" title="GFI-MailEssentials" src="http://www.gfi.com/blog/wp-content/uploads/2009/07/GFI-MailEssentials.png" alt="" width="170" height="100" /></a>In Q3 2009 we will be releasing GFI MailEssentials 14.1, into which we have put a lot of effort on the architectural front of the product (amongst others). I wanted to take this opportunity to share the architectural changes we have made in GFI MailEssentials 14.1 and discuss their benefits. Inevitably, I will first take you through the historical evolution of the product’s architecture.</p>
<p>The current incarnation of GFI MailEssentials owes its first design to early 2002 (if my memory does not fail me, we released GFI MailEssentials 7 somewhere around June 2002).</p>
<p><span id="more-713"></span>The general architecture was quite simple and straightforward:</p>
<ul>
<li>We hooked into the Microsoft IIS SMTP server using SMTP Event Sinks.</li>
<li>Emails were passed on to a scan engine which was plugin based.</li>
<li>Different anti-spam plug-ins implemented various spam filters.</li>
<li>These anti-spam plug-ins called a library of actions (which are effectively what gets done with a spam email, for example, saved to a folder on disk, forwarded to a particular mailbox, moved into a particular folder in a mailbox, etc).</li>
</ul>
<p>This architecture is illustrated in Figure 1 below – it worked transparently (or almost) and equally well both on Windows 2000 IIS SMTP and Exchange 2000 (and eventually Windows 2003 IIS SMTP and Exchange 2003), and it was around through six revisions of GFI MailEssentials – up to GFI MailEssentials 12.</p>
<p> <a class="lightbox" title="GFI MailEssentials Architecture, v7 - v12" href="http://www.gfi.com/blog/wp-content/uploads/2009/07/Fig-1.bmp"><img class="aligncenter size-full wp-image-715" title="GFI MailEssentials Architecture, v7 - v12" src="http://www.gfi.com/blog/wp-content/uploads/2009/07/Fig-1.bmp" alt="" /></a></p>
<p style="text-align: center;"><em>Figure 1: GFI MailEssentials Architecture, v7 &#8211; v12.</em></p>
<p>One thing to note about this architecture is that the anti-spam scanning components all “live” within inetinfo.exe, which had the disadvantage that any instability in our scanning components would bring down IIS – including the SMTP server and also the IIS web server (i.e. any websites on the machine hosted by IIS would also be taken down…)</p>
<p>With the advent of Microsoft Exchange Server 2007, which was in 64-bit, we took out the scan engine into a separate 32-bit process, gfiscans.exe, which appears as the GFI MailEssentials Scan Engine service in the services console. Making use of out-of-proc COM, we started calling the 32-bit scan engine from the 64-bit transport agents written for Exchange 2007. This brought with it two main advantages:</p>
<ul>
<li>First of all, since the anti-spam scanning components now “lived” in a separate process, any instability in our scanning components would only bring down the GFI MailEssentials Scan Engine service (i.e. gfiscans.exe).</li>
<li>Furthermore, any crash in our scanning components could now be recovered from, because the transport agents could detect that the GFI MailEssentials Scan Engine was no longer responding and start it up again – without any impact on email flow.</li>
</ul>
<p>These changes were at first only rolled out on Microsoft Exchange Server 2007 installations of GFI MailEssentials 12. The architecture of GFI MailEssentials 12 on 32-bit IIS SMTP and Exchange 2000/2003 installations remained as in Figure 1 above.</p>
<p><a class="lightbox" title="GFI MailEssentials Architecture, v12 – v14" href="http://www.gfi.com/blog/wp-content/uploads/2009/07/Fig.-2.bmp"><img class="aligncenter size-full wp-image-716" title="GFI MailEssentials Architecture, v12 – v14" src="http://www.gfi.com/blog/wp-content/uploads/2009/07/Fig.-2.bmp" alt="" /></a></p>
<p style="text-align: center;"><em>Figure 2: GFI MailEssentials Architecture, v12 – v14.</em></p>
<p>When we released GFI MailEssentials 14.0, we introduced support for 64-bit IIS SMTP, and the same architecture as in Figure 2 above was also introduced on 64-bit IIS SMTP installations. The architecture of GFI MailEssentials 12 on 32-bit IIS SMTP and Exchange 2000/2003 installations remained as in Figure 1 above.</p>
<p>With the upcoming release of GFI MailEssentials 14.1, the architecture of GFI MailEssentials on all installations will be as illustrated in Fig 3 below.</p>
<ul>
<li>The scan engine is now always hosted in a separate 32-bit process, gfiscans.exe, which appears as the GFI MailEssentials Scan Engine service in the services console.</li>
<li>Email sources – be they 32-bit IIS SMTP or Exchange 2000/2003 event sinks, 64-bit IIS SMTP event sinks, or 64-bit Exchange 2007/2010 transport agents – all submit emails for processing by the scan engine via out-of-proc COM.</li>
<li>The various anti-spam filter plugins do their scanning within the gfiscans.exe process.</li>
<li>Emails for which an action needs to be executed, such as spam emails to be forwarded to some other mailbox or moved to some folder within the recipient’s mailbox, are removed from the IIS SMTP or Exchange queue and queued for processing to a separate process.</li>
<li>When an email is queued for an action to be executed, the raw email content is spooled to disk, and some metadata is queued to MSMQ.</li>
<li>Actions are executed within the GFI MailEssentials Managed Attendant Service, the process name of which is contentsecurity.as.attendant.exe.</li>
<li>An email which has been queued for an action to be executed is picked up by an actions coordinator which is hosted within the Managed Attendant, and passed to a set of plugins which implement the actions.<br />
 </li>
</ul>
<p><a class="lightbox" title="GFI MailEssentials Architecture, v12 – v14.1" href="http://www.gfi.com/blog/wp-content/uploads/2009/07/Fig.-3.bmp"><img class="aligncenter size-full wp-image-717" title="GFI MailEssentials Architecture, v12 – v14.1" src="http://www.gfi.com/blog/wp-content/uploads/2009/07/Fig.-3.bmp" alt="" /></a></p>
<p style="text-align: center;"><em>Figure 3: GFI MailEssentials Architecture, v12 – v14.1.</em></p>
<p>The new architecture in GFI MailEssentials 14.1 brings about a number of advantages and improvements:</p>
<ul>
<li>No matter what platform GFI MailEssentials is installed on, since the anti-spam scanning components now “live” in a separate process, any instability in our scanning components will only bring down the GFI MailEssentials Scan Engine service (i.e. gfiscans.exe).</li>
<li>No matter what platform GFI MailEssentials is installed on, any crash in our scanning components could now be recovered from, because the sinks or transport agents can detect that the GFI MailEssentials Scan Engine is no longer responding and start it up again – without any impact on email flow.</li>
<li>As opposed to the previous architecture, in which actions were executed within the scan engine, increasing the time the scan engine was taking to process spam emails, spam emails are now simply queued to the Managed Attendant, reducing the time in which a response is returned to IIS SMTP or Exchange in the case of spam emails, and thereby improving the performance of the scan engine.</li>
<li>With the new architecture, when an action being executed on a spam email fails, that email is queued to what is called the recovery queue, where emails in the recovery queue are reprocessed so as to execute any non-executed actions. This makes for a more robust actions framework.</li>
</ul>
<p>One action for which this makes a particular difference is the “Move to Exchange Folder” action, now known as the “Deliver email to mailbox: in Exchange mailbox sub-folder” option. With the previous architecture, when for some reason or another the Exchange store is not operational, the “Move to Exchange Folder” action would fail, and “Global Actions” would kick in, i.e. the spam email would instead be saved to disk or forwarded to another mailbox as configured. With the new architecture, such emails are instead queued to the recovery queue, which is reprocessed when the Managed Attendant is restarted.</p>
<ul>
<li>The new architecture also allowed us to support configuring multiple actions for spam emails so, for example, it is now possible to deliver a copy of a spam email to a sub-folder within the user’s mailbox, as well as forwarding a copy to another mailbox and saving another copy to a folder on disk.</li>
<li>This new architecture also takes us a number of steps in the direction of supporting Exchange 2010, but that is a post in itself for another time.</li>
</ul>
<p>As can be seen, although it is a minor release, GFI MailEssentials 14.1 is a substantial update to the product. If you haven’t yet tried out the beta, I recommend you check out the GFI MailEssentials 14.1 beta forum at forums.gfi.com, or visit beta.gfi.com for details on how to join the GFI MailEssentials beta mailing list.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gfi.com/blog/architectural-gfi-mailessentials-141/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

 Served from: www.gfi.com @ 2013-08-12 11:48:56 by W3 Total Cache --