<?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>Martin Ahrer - Together we&#039;ll make IT &#187; debian</title>
	<atom:link href="http://www.martinahrer.at/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martinahrer.at</link>
	<description>Java Enterprise Softwareentwicklung und Consulting</description>
	<lastBuildDate>Sun, 11 Dec 2011 16:19:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<meta name="generator" content="deSignum 0.8.1" />
		<item>
		<title>SASL + Postfix with Debian Lenny</title>
		<link>http://www.martinahrer.at/2010/01/19/sasl-postfix-with-debian-lenny/</link>
		<comments>http://www.martinahrer.at/2010/01/19/sasl-postfix-with-debian-lenny/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 14:03:03 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[sasl]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=396</guid>
		<description><![CDATA[In the last days I have reinstalled a mail server on a new virtual host and upgraded from debian etch to Lenny. The initial set was done by a friend of mine following this instructions. With the upgrade to Lenny however a few adjustments were required. So I describe the new setup here. apt-get install [...]]]></description>
			<content:encoded><![CDATA[<p>In the last days I have reinstalled a mail server on a new virtual host and upgraded from debian etch to Lenny. The initial set was done by a friend of mine following this <a href="http://dertompson.com/2008/02/13/mail-server-setup-for-debian-etch/">instructions</a>. With the upgrade to Lenny however a few adjustments were required. So I describe the new setup here.<br />
<span id="more-396"></span></p>
<pre class="brush:bash">
apt-get install libsasl2-2 sasl2-bin libsasl2-modules
</pre>
<p>The postfix configuration requires the following update in<code>/etc/postfix/main.cf</code>.</p>
<pre  class="brush:bash">
# add permit_sasl_authenticated for SASL support
smtpd_recipient_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_unauth_destination,
        check_policy_service inet:127.0.0.1:60000

# add these options
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
</pre>
<p>Create <code> /etc/postfix/sasl/smtpd.conf</code> with this content</p>
<pre class="brush:bash">
pwcheck_method: saslauthd
mech_list: plain login
</pre>
<p>Then create directory <code>/var/spool/postfix/var/run/saslauthd</code></p>
<pre  class="brush:bash">
 mkdir -p /var/spool/postfix/var/run/saslauthd
</pre>
<p>Set permissions</p>
<pre  class="brush:bash">
dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd
</pre>
<p>And add postfix user to group sasl</p>
<pre  class="brush:bash">
adduser postfix sasl
</pre>
<p><code>/etc/default/saslauthd</code> Requires some modifications</p>
<pre  class="brush:bash">
START=yes
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
</pre>
<p>Finally restart some services.</p>
<pre   class="brush:bash">
/etc/init.d/saslauthd restart
/etc/init.d/postfix restart
</pre>
<p><strong>Upgrading from debian etch</strong></p>
<p>If you are upgrading and getting permission errors then you can fix these by berforming the steps above where permissions for <code>/var/spool/postfix/var/run/saslauthd</code> are set and the user group sasl is updated.</p>
<pre>
SASL authentication failure: Password verification failed
SASL PLAIN authentication failed: generic failure
SASL authentication failure: cannot connect to saslauthd server: Permission denied
SASL LOGIN authentication failed: generic failure
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2010/01/19/sasl-postfix-with-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Roundcube web mail</title>
		<link>http://www.martinahrer.at/2009/10/18/roundcube-web-mail/</link>
		<comments>http://www.martinahrer.at/2009/10/18/roundcube-web-mail/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 09:33:12 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=259</guid>
		<description><![CDATA[I have been following the roundcube webmail project since version 0.1. Back then it was quite cumbersome to install on a Linux host. With 0.3 installation has turned into a cakewalk so I decided to try it now. I only needed to update my PHP4 to PHP5, unpacked the installation package to the web root [...]]]></description>
			<content:encoded><![CDATA[<p>I have been following the <a href="http://roundcube.net/">roundcube </a>webmail project since version 0.1. Back then it was quite cumbersome to install on a Linux host. With 0.3 installation has turned into a cakewalk so I decided to try it now.</p>
<p>I only needed to update my PHP4 to PHP5, unpacked the installation package to the web root for the virtual host I created for roundcube, created a new mysql database and started the installation procedure.</p>
<p>Though it is still only a 0.3 version it has quite some impressive set of <a href="http://roundcube.net/about#features">features</a>. Of course due to its Web 2.0 nature it is a little bit slower than squirrel mail that I used earlier!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2009/10/18/roundcube-web-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My virtual host administration</title>
		<link>http://www.martinahrer.at/2009/05/31/my-virtual-host-administration/</link>
		<comments>http://www.martinahrer.at/2009/05/31/my-virtual-host-administration/#comments</comments>
		<pubDate>Sun, 31 May 2009 20:39:11 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=122</guid>
		<description><![CDATA[For more than a year I have been running my own virtual host (thanks to Tom for helping with the setup of the mail system). Before I had almost no skills regarding Linux administration. Meanwhile I&#8217;m kindof able to maintain it and add this and that. For a while a few tasks have been pending [...]]]></description>
			<content:encoded><![CDATA[<p>For more than a year I have been running my own virtual host (thanks to Tom for helping with the setup of the mail system). Before I had almost no skills regarding Linux administration. Meanwhile I&#8217;m kindof able to maintain it and add this and that. For a while a few tasks have been pending</p>
<ol>
<li><strong>Frequent logging file reports</strong></li>
<li><strong>Monthly backup</strong></li>
<li><strong>Moving backup files to some external storage service</strong></li>
</ol>
<p>Due to my pretty constrained time budget only now I was able to spend some hours on getting some task done.</p>
<p>For <strong>Frequent logging file reports</strong> I added logwatch to my system, customized it in /etc/logwatch/conf/logwatch.conf.</p>
<pre class="brush:text">
# Default person to mail reports to.  Can be a local account or a
# complete email address.
MailTo = recipient@domain
# Default person to mail reports from.  Can be a local account or a
# complete email address.
MailFrom = Logwatch

# If set to 'Yes', the report will be sent to stdout instead of being
# mailed to above person.
Print = No
</pre>
<p>I added logwatch to my daily cron jobs in /etc/cron.daily/logwatch</p>
<pre class="brush:bash">
test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0
/usr/share/logwatch/scripts/logwatch.pl
</pre>
<p>I added a /etc/cron.monthly/backup script for performing <strong>monthly backups</strong> of important system files</p>
<pre class="brush:bash">
outputFolder=/var/tmp/backup
now=`date +%Y%m%d%H%M`
hostname=`hostname`
outputFolder=$outputFolder/$hostname/$now

if [ -d $outputFolder ]
then
        echo "Backup has alread run on '$hostname'  for '$now'"
        exit 1
else
        mkdir --parents --verbose $outputFolder
fi

echo backup...
options=-cvvz
tar $options --file=$outputFolder/backup.tar.gz --exclude=/var/cache/* --exclude=/var/spool/* --exclude=/var/lock/* --exclude=/var/run/* --exclude=/var/tmp/* --exclude=/var/log/* /var /etc /home 1>$outputFolder/backup.log

echo "Backup for $hostname ready at $outputFolder/backup.tar.gz" | mail -s "Backup completed for $hostname `date`" recipient@domain
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2009/05/31/my-virtual-host-administration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

