<?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>KTechs: Adventures in Syntax</title>
	<atom:link href="http://www.ktechs.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ktechs.net</link>
	<description>Documented fixes to pesky problems</description>
	<lastBuildDate>Sat, 08 Dec 2012 01:05:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Finally Rebooted</title>
		<link>http://www.ktechs.net/archives/65</link>
		<comments>http://www.ktechs.net/archives/65#comments</comments>
		<pubDate>Sat, 20 Feb 2010 16:25:29 +0000</pubDate>
		<dc:creator>Jayson Kubilis</dc:creator>
				<category><![CDATA[Server Software]]></category>

		<guid isPermaLink="false">http://www.ktechs.net/?p=65</guid>
		<description><![CDATA[As time marches on I am in the process of upgrading my Vmware ESXi installations and the systems I keep running had some excellent uptime statistics&#8230; Here they are Server 1: 11:22:25 up 442 days, 11:41,  1 user,  load average: 2.05, 1.43, 1.80 Server 2: 11:24:30 up 442 days,  9:41,  1 user,  load average: 1.02, 1.50, [...]]]></description>
			<content:encoded><![CDATA[<p>As time marches on I am in the process of upgrading my Vmware ESXi installations and the systems I keep running had some excellent uptime statistics&#8230; Here they are <img src='http://www.ktechs.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><code>Server 1: 11:22:25 up 442 days, 11:41,  1 user,  load average: 2.05, 1.43, 1.80<br />
Server 2: 11:24:30 up 442 days,  9:41,  1 user,  load average: 1.02, 1.50, 1.33</code></p>
<p>Just some fun statistics.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ktechs.net/archives/65/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firebox x700 LCDproc driver</title>
		<link>http://www.ktechs.net/archives/58</link>
		<comments>http://www.ktechs.net/archives/58#comments</comments>
		<pubDate>Wed, 11 Mar 2009 14:08:29 +0000</pubDate>
		<dc:creator>Jayson Kubilis</dc:creator>
				<category><![CDATA[Server Software]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[lcd]]></category>
		<category><![CDATA[lcdproc]]></category>

		<guid isPermaLink="false">http://www.ktechs.net/?p=58</guid>
		<description><![CDATA[Wrote some code a while back; figured i&#8217;d get some other eyes on it.  I&#8217;ve been informed that there is a possability a charmap can be created for the hd44780 driver which would add the benifit of working buttons! My source code is here Hardware LCD spec is here]]></description>
			<content:encoded><![CDATA[<p>Wrote some code a while back; figured i&#8217;d get some other eyes on it.  I&#8217;ve been informed that there is a possability a charmap can be created for the hd44780 driver which would add the benifit of working buttons!</p>
<p>My source code is <a href="/pvt_filz/lcdproc/lcdproc.sdeclcd.tar.gz">here</a></p>
<p>Hardware LCD spec is <a href="/pvt_filz/lcdproc/LMC-S2D20-01.pdf">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ktechs.net/archives/58/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OpenLDAP compiled with Kerberos fails to start</title>
		<link>http://www.ktechs.net/archives/49</link>
		<comments>http://www.ktechs.net/archives/49#comments</comments>
		<pubDate>Thu, 19 Feb 2009 18:07:54 +0000</pubDate>
		<dc:creator>Jayson Kubilis</dc:creator>
				<category><![CDATA[Server Software]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[LDAP]]></category>

		<guid isPermaLink="false">http://www.ktechs.net/?p=49</guid>
		<description><![CDATA[After compiling openldap with kerberos support, you get the following error message when starting it bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/openldap-data: (2) Expect poor performance for suffix dc=****,dc=****. smbk5pwd: unable to initialize krb5 admin context: unable to find realm of host ****** (-1765328167). backend_startup_one: bi_db_open failed! (-1) slapd stopped. connections_destroy: nothing [...]]]></description>
			<content:encoded><![CDATA[<p>After compiling openldap with kerberos support, you get the following error message when starting it</p>
<blockquote><p><code>bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/openldap-data: (2)<br />
Expect poor performance for suffix dc=****,dc=****.<br />
smbk5pwd: unable to initialize krb5 admin context: unable to find realm of host ****** (-1765328167).<br />
backend_startup_one: bi_db_open failed! (-1)<br />
slapd stopped.<br />
connections_destroy: nothing to destroy.<br />
</code></p></blockquote>
<p>This is because you have not created a configuration for kerberos yet.</p>
<h5>To Fix:</h5>
<blockquote><p><code>cp /etc/krb5.conf.sample /etc/krb5.conf</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ktechs.net/archives/49/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Postfix + DSpam</title>
		<link>http://www.ktechs.net/archives/12</link>
		<comments>http://www.ktechs.net/archives/12#comments</comments>
		<pubDate>Sun, 25 Jan 2009 02:31:30 +0000</pubDate>
		<dc:creator>Jayson Kubilis</dc:creator>
				<category><![CDATA[Server Software]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[dspam]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">https://util.ktechs.net/wordpress/?p=12</guid>
		<description><![CDATA[Setup for postfix to allow content filtering, virus protection and honeypot inoculations.]]></description>
			<content:encoded><![CDATA[<p>My objective was to configure postfix to filter ONLY incoming email by DSpam while also allowing specific email addresses to be used as honeypot (inoculation) input to dspam.  This does not include general DSpam setup such as mysql settings.  This focuses on how I&#8217;ve configured DSpam to interface with postfix.  I&#8217;ve also not outlined the configuration in postfixes <code>master.cf</code> on the port/code that clients would connect and authenticate on.  This would not include the <code>-o content_filter=dspam:dspam</code> filter option.</p>
<ol>
<li>Compile DSpam with daemon option and other flags which fit your environment. This allows us to pipe email back to postfix using smtp.</li>
<li>Setup the postfix master.cf configuration file to include dspam standard filter, a honeypot, spam and ham dspam entries as well enabling users to forward missed spam back to the system. While were at it we will also include a instance of postfix which will receive the filtered email back from the DSpam agent.</li>
</ol>
<blockquote>
<h3>Postfix: master.cf</h3>
<p><code>0.0.0.0:25  inet  n       -       n       -       -       smtpd<br />
-o content_filter=dspam:dspam</code></p>
<p><code>&lt;sending client port&gt; inet  n       -       n       -       -       smtpd<br />
-o smtpd_use_tls=yes -o smtpd_sasl_auth_enable=yes</code></p>
<p><code>127.0.0.1:&lt;incoming port from dspam&gt; inet n	-	n	-	-       smtpd<br />
-o content_filter=<br />
-o local_recipient_maps=<br />
-o relay_recipient_maps=<br />
-o smtpd_restriction_classes=<br />
-o smtpd_delay_reject=no<br />
-o smtpd_client_restrictions=permit_mynetworks,reject<br />
-o smtpd_helo_restrictions=<br />
-o smtpd_sender_restrictions=<br />
-o smtpd_recipient_restrictions=permit_mynetworks,reject<br />
-o smtpd_data_restrictions=reject_unauth_pipelining<br />
-o smtpd_end_of_data_restrictions=<br />
-o mynetworks=127.0.0.0/8<br />
-o smtpd_error_sleep_time=0<br />
-o smtpd_soft_error_limit=1001<br />
-o smtpd_hard_error_limit=1000<br />
-o smtpd_client_connection_count_limit=0<br />
-o smtpd_client_connection_rate_limit=0<br />
-o receive_override_options=no_header_body_checks,no_unknown_recipient_checks</code></p>
<p><code>dspam   unix    -       n       n       -       10      pipe<br />
flags=Ru user=dspam argv=/usr/bin/dspam --deliver=innocent --user $recipient -i -f $sender -- $recipient </code></p>
<p><code>hspam   unix    -       n       n       -       10      pipe<br />
flags=Ru user=dspam argv=/usr/bin/dspam --class=spam --source=inoculation --user honeypot --deliver=innocent</code></p>
<p><code>spam   unix    -       n       n       -       10      pipe<br />
flags=Ru user=dspam argv=/usr/bin/dspam --class=spam --source=error --user dspam</code></p>
<p><code>notspam   unix    -       n       n       -       10      pipe<br />
flags=Ru user=dspam argv=/usr/bin/dspam --class=innocent --source=error --user dspam</code></p></blockquote>
<ol start="3">
<li>Now we need to setup postfix to route specific addresses to the spam/notspam and hspam (inoculation) interfaces.</li>
</ol>
<blockquote>
<h3>In postfix main.cf</h3>
<p><code>hash:/etc/postfix/transport_maps_spams</code></p></blockquote>
<blockquote>
<h3>In transport_maps_spams</h3>
<p><code>&lt;missed spam addr&gt;@ktechs.net	spam:nothing<br />
&lt;missed ham addr&gt;@ktechs.net	notspam:nothing<br />
&lt;a honeypot candidates addr&gt;@ktechs.net hspam:nothing</code></p></blockquote>
<ol start="4">
<li>We issue a <code>postmap /etc/postfix/transport_maps_spams</code> to create our postfix hash db file.</li>
<li>Add a setting for the honeypot email address in DSpam (likely by MySQL settings table for DSpam) to optout this user. We do this because the email when we first receive it will be filtered though DSpam then looked up in this transport map which will invoke the hspam hop.</li>
<li>Now we tell DSpam how to deliver back to postfix.
</ol>
<blockquote>
<h3>delivery portion of dspam.conf</h3>
<p><code>DeliveryHost        127.0.0.1<br />
DeliveryPort        &lt;Your delivery port in master.cf&gt;<br />
DeliveryIdent       localhost<br />
DeliveryProto       SMTP</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ktechs.net/archives/12/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
