<?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/"
	>

<channel>
	<title>Knowledge Base</title>
	<atom:link href="http://kb.philross.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://kb.philross.co.uk</link>
	<description></description>
	<pubDate>Tue, 26 Aug 2008 11:07:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configuring Exim to use Gmail as a Smarthost</title>
		<link>http://kb.philross.co.uk/2008/03/15/configuring-exim-to-use-gmail-as-a-smarthost/</link>
		<comments>http://kb.philross.co.uk/2008/03/15/configuring-exim-to-use-gmail-as-a-smarthost/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 23:50:40 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
		
		<category><![CDATA[Sysadmin]]></category>

		<category><![CDATA[Email]]></category>

		<category><![CDATA[Exim]]></category>

		<category><![CDATA[Gmail]]></category>

		<guid isPermaLink="false">http://kb.philross.co.uk/2008/03/15/configuring-exim-to-use-gmail-as-a-smarthost/</guid>
		<description><![CDATA[Add a router before or instead of the dnslookup router:
gmail_route:
&#160;&#160;driver = manualroute
&#160;&#160;transport = gmail_relay
&#160;&#160;route_list = * smtp.gmail.com
Add a transport:
gmail_relay:
&#160;&#160;driver = smtp
&#160;&#160;port = 587
&#160;&#160;hosts_require_auth = $host_address
&#160;&#160;hosts_require_tls = $host_address
Add an authenticator (replacing myaccount@gmail.com and mypassword with your own account details):
gmail_login:
&#160;&#160;driver = plaintext
&#160;&#160;public_name = LOGIN
&#160;&#160;hide client_send = : myaccount@gmail.com : mypassword
$host_address is used for hosts_require_auth and hosts_require_tls instead [...]]]></description>
			<content:encoded><![CDATA[<p>Add a router before or instead of the <code>dnslookup</code> router:</p>
<p><code>gmail_route:<br />
&nbsp;&nbsp;driver = manualroute<br />
&nbsp;&nbsp;transport = gmail_relay<br />
&nbsp;&nbsp;route_list = * smtp.gmail.com</code></p>
<p>Add a transport:</p>
<p><code>gmail_relay:<br />
&nbsp;&nbsp;driver = smtp<br />
&nbsp;&nbsp;port = 587<br />
&nbsp;&nbsp;hosts_require_auth = $host_address<br />
&nbsp;&nbsp;hosts_require_tls = $host_address<br /></code></p>
<p>Add an authenticator (replacing <code>myaccount@gmail.com</code> and <code>mypassword</code> with your own account details):</p>
<p><code>gmail_login:<br />
&nbsp;&nbsp;driver = plaintext<br />
&nbsp;&nbsp;public_name = LOGIN<br />
&nbsp;&nbsp;hide client_send = : myaccount@gmail.com : mypassword</code></p>
<p><code>$host_address</code> is used for <code>hosts_require_auth</code> and <code>hosts_require_tls</code> instead of <code>smtp.gmail.com</code> to avoid occasional <code>530 5.5.1 Authentication Required</code> errors. These are caused by the changing IP addresses in DNS queries for <code>smtp.gmail.com</code>. <code>$host_address</code> will expand to the particular IP address that was resolved by the gmail_route router.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.philross.co.uk/2008/03/15/configuring-exim-to-use-gmail-as-a-smarthost/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Truncating SQL Server Log Files</title>
		<link>http://kb.philross.co.uk/2007/09/10/truncating-sql-server-log-files/</link>
		<comments>http://kb.philross.co.uk/2007/09/10/truncating-sql-server-log-files/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 09:33:29 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
		
		<category><![CDATA[Sysadmin]]></category>

		<category><![CDATA[Microsoft SQL Server]]></category>

		<guid isPermaLink="false">http://kb.philross.co.uk/2007/09/10/truncating-sql-server-log-files/</guid>
		<description><![CDATA[SQL Server logs in a circular fashion to its transaction log files. To shrink a transaction log file it is first necessary to backup the log.
The following script backs the log up, throwing away the backup in the process and then shrinks the files in the database. Make sure you have a full backup of [...]]]></description>
			<content:encoded><![CDATA[<p>SQL Server logs in a circular fashion to its transaction log files. To shrink a transaction log file it is first necessary to backup the log.</p>
<p>The following script backs the log up, throwing away the backup in the process and then shrinks the files in the database. Make sure you have a full backup of the database before running.</p>
<p><code>declare @db varchar(50)<br />
set @db = DB_NAME()</code></p>
<p><code>backup log @db with truncate_only<br />
dbcc shrinkdatabase (@db, truncateonly)</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.philross.co.uk/2007/09/10/truncating-sql-server-log-files/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Converting Active Directory Date Time Attributes</title>
		<link>http://kb.philross.co.uk/2007/08/28/converting-active-directory-date-time-attributes/</link>
		<comments>http://kb.philross.co.uk/2007/08/28/converting-active-directory-date-time-attributes/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 09:22:28 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
		
		<category><![CDATA[Sysadmin]]></category>

		<category><![CDATA[Active Directory]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://kb.philross.co.uk/2007/08/28/converting-active-directory-date-time-attributes/</guid>
		<description><![CDATA[To convert a date time attribute in Active Directory (e.g. as used by lastLogon) to a human readable date time, you can use the w32tm command.
For example with the following LDAP record:
dn: CN=John Smith,CN=Users,DC=DC=example,DC=com
lastLogon: 128326919184182832

Running
w32tm /ntte 128326919184182832
Will give the output
148526 12:38:38.4182832 - 27/08/2007 13:38:38 (local time)

See Microsoft Knowledge Base article 555936 for more information.
]]></description>
			<content:encoded><![CDATA[<p>To convert a date time attribute in Active Directory (e.g. as used by lastLogon) to a human readable date time, you can use the w32tm command.</p>
<p>For example with the following LDAP record:</p>
<p><code>dn: CN=John Smith,CN=Users,DC=DC=example,DC=com<br />
lastLogon: 128326919184182832<br />
</code></p>
<p>Running</p>
<p><code>w32tm /ntte 128326919184182832</code></p>
<p>Will give the output</p>
<p><code>148526 12:38:38.4182832 - 27/08/2007 13:38:38 (local time)<br />
</code></p>
<p>See Microsoft Knowledge Base article <a href="http://support.microsoft.com/kb/555936">555936</a> for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.philross.co.uk/2007/08/28/converting-active-directory-date-time-attributes/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
