<?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>www.pokeroconnor.com &#187; Linux/Unix/OSX/Apache</title>
	<atom:link href="http://www.pokeroconnor.com/category/linux-unix-osx-apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pokeroconnor.com</link>
	<description></description>
	<lastBuildDate>Fri, 19 Aug 2011 18:59:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Recursive SED Script</title>
		<link>http://www.pokeroconnor.com/recursive-sed-script/</link>
		<comments>http://www.pokeroconnor.com/recursive-sed-script/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 14:55:16 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=420</guid>
		<description><![CDATA[There are often times I want to run a SED find and replace across recursive directories, and the below is a very handy script to do so, from this excellent resource. There&#8217;s plenty of other variations of it there too. #SR does global replacement in html files, replacing its first parameter by #its second parameter--use [...]]]></description>
			<content:encoded><![CDATA[<p>There are often times I want to run a SED find and replace across recursive directories, and the below is a very handy script to do so, from<a href="http://cs.simons-rock.edu/unix/sed.html"> this excellent resource</a>. There&#8217;s plenty of other variations of it there too.</p>
<p><code><br />
#SR does global replacement in html files, replacing its first parameter by<br />
#its second parameter--use with extreme caution!</code></p>
<p><code> </code></p>
<p><code>find ./ -name '*.html' -print | while read i<br />
do<br />
sed "s/$1/$2/g" $i &gt;$i.bak &amp;&amp; mv $i.bak $i<br />
done<br />
</code></p>
<p>To use this, simply execute the command via:</p>
<p><code>./SR term_to_find term_to_replace_with</code></p>
<p>As a slight tweak, and what I find more useful, is to add a third input param, for example to switch on the file names you want to replace:</p>
<p><code>#SR does global replacement in files specified in STDIN as third parameter, replacing its first parameter by<br />
#its second parameter--use with extreme caution!</code></p>
<p><code>find ./ -name "*.$3" -print | while read i<br />
do<br />
sed "s/$1/$2/g" $i &gt;$i.bak &amp;&amp; mv $i.bak $i<br />
done</code></p>
<p>For example, to replace image1.jpg with image2.jpg, in all css files, run this:</p>
<p><code>./SR image1.jpg image2.jpg css</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/recursive-sed-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Boot Issue Module Not Found</title>
		<link>http://www.pokeroconnor.com/linux-boot-issue-module-not-found/</link>
		<comments>http://www.pokeroconnor.com/linux-boot-issue-module-not-found/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 22:01:45 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=376</guid>
		<description><![CDATA[This is a common issue on Dell and HP laptops apparently, and is not a Windows issue per se. For me, it happened on a Dell machine, and it is incredibly annoying. So, if you have enabled dual-booting, with say a Windows and Linux partition, all seems fine booting into your Ubuntu install, until that [...]]]></description>
			<content:encoded><![CDATA[<p>This is a common issue on Dell and HP laptops apparently, and is not a Windows issue per se.</p>
<p>For me, it happened on a Dell machine, and it is incredibly annoying.</p>
<p>So, if you have enabled <strong>dual-booting</strong>, with say a Windows and Linux partition, all seems fine booting into your Ubuntu install, until that is, you boot up Windows,<em><strong> and then try to subsequently boot up your machine</strong></em> to either Windows or Linux.</p>
<p>What happens is a message:</p>
<p dir="ltr">module name not found, press any key</p>
<p dir="ltr">Of course pressing the &#8220;any key&#8221; does nothing, and you are unable to boot up any OS from the HDD.</p>
<p>There are a series of excellent links on this, all worth a look, as your situation may have slight differences to some mentioned scenarios within the links below:</p>
<ul>
<li>http://ubuntuforums.org/showthread.php?t=1501591</li>
<li>http://ubuntuforums.org/showthread.php?t=1560177</li>
<li>http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Windows_Writes_To_MBR</li>
<li>http://ubuntuforums.org/showthread.php?t=1343851&amp;page=2</li>
</ul>
<p>What is happening is that certain Dell software, e.g. Datasafe, modify the MBR, and your GRUB gets corrupted/needs to be re-installed.</p>
<p><span style="text-decoration: underline;"><strong>Quick Solution:</strong></span></p>
<p>As described in links above, for a quick fix to allow you boot in again, load up your Live CD, e.g. ubuntu install CD you can download easily (using a Knoppix boot for example from the CD drive), and run from the CD drive. Then, open a terminal shell, and do the following:</p>
<p><em>sudo mount /dev/sda3 /mnt</em><br />
<em>sudo grub-install &#8211;recheck &#8211;root-directory=/mnt /dev/sda</em></p>
<p>In the above, sda3 represents whatever partition your Linux install is on, so will likely be different for you &#8211; that should be the only thing you need to change above.</p>
<p>Once done, you can boot up again as per usual, until of course you log into Windows again!</p>
<p>So long-term solution is to identify all Dell proprietary software (most listed in links above and http://download.cnet.com/ccleaner/ and http://forum.notebookreview.com/dell-xps-studio-xps/406492-how-do-i-remove-dells-datasafe.html), fully delete them using CC Cleaner for example, re-boot using the Live CD GRUB trick one final time, and then you should be good!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/linux-boot-issue-module-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Restore Panels</title>
		<link>http://www.pokeroconnor.com/ubuntu-restore-panels/</link>
		<comments>http://www.pokeroconnor.com/ubuntu-restore-panels/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 21:46:18 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=372</guid>
		<description><![CDATA[Running Ubuntu 10.10, and I accidentally deleted the panel (strip of information toolbar at the top of the screen). To get it back, just do as described here, but watching out for the typos in the commands as printed there, namely: gconftool &#8211;recursive-unset /apps/panel rm -rf ~/.gconf/apps/panel pkill gnome-panel Viola!!]]></description>
			<content:encoded><![CDATA[<p>Running Ubuntu 10.10, and I accidentally deleted the panel (strip of information toolbar at the top of the screen).</p>
<p>To get it back, just do <a href="http://www.watchingthenet.com/restore-panels-in-ubuntu-back-to-their-default-settings.html">as described here</a>, but watching out for the typos in the commands as printed there, namely:</p>
<p><em>gconftool &#8211;recursive-unset /apps/panel</em></p>
<p><em>rm -rf ~/.gconf/apps/panel</em></p>
<p><em>pkill gnome-panel</em></p>
<p>Viola!!<em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/ubuntu-restore-panels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>postfix create file maildrop warning</title>
		<link>http://www.pokeroconnor.com/postfix-create-file-maildrop-warning/</link>
		<comments>http://www.pokeroconnor.com/postfix-create-file-maildrop-warning/#comments</comments>
		<pubDate>Sun, 14 Nov 2010 20:42:45 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=332</guid>
		<description><![CDATA[If you ever see the following in your logs, warning: mail_queue_enter: create file maildrop/636773.1040: Permission denied It measn postfix is not running, and you have problems! Running postfix check will likely result in: postsuper: fatal: scan_dir_push: open directory defer: Permission denied What this means is that the permissions for postfix dirs are all screwed, most [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever see the following in your logs,</p>
<p><em>warning: mail_queue_enter: create file maildrop/636773.1040: Permission denied</em></p>
<p>It measn postfix is not running, and you have problems!</p>
<p>Running<br />
<em>postfix check</em></p>
<p>will likely result in:</p>
<p><em>postsuper: fatal: scan_dir_push: open directory defer: Permission denied</em></p>
<p>What this means is that the permissions for postfix dirs are all screwed, most likely after a server restart (that&#8217;s when it normally happens for me at least).</p>
<p>You can<a href="http://inmyplace.info/2008/05/07/postfix-warning-mail_queue_enter-create-file-maildrop-permission-denied/"> confirm this</a> by doing:</p>
<p><em>postfix start</em></p>
<p>and observing:</p>
<p><em>&#8220;postfix&#8221; postsuper: fatal: scan_dir_push:<br />
open directory defer: Permission denied</em></p>
<p><a href="http://www.linuxquestions.org/questions/linux-server-73/postfix-no-start-817405/">To solve</a>, run:</p>
<p><em>postfix set-permissions</em></p>
<p>You may still have to make minor permission changes, to change owner from root to postfix for the /var/lib/postfix files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/postfix-create-file-maildrop-warning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpmyadmin cant create database error</title>
		<link>http://www.pokeroconnor.com/phpmyadmin-cant-create-database-error/</link>
		<comments>http://www.pokeroconnor.com/phpmyadmin-cant-create-database-error/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 23:02:57 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=327</guid>
		<description><![CDATA[If you&#8217;re getting the following error in phpmyadmin when creating a new database: #1006 &#8211; Can&#8217;t create database The problem is that /var/lib/mysql is probably owned by root, and ALSO in the root group. It should not be. ls -ld /var/lib/mysql probably looks like this: drwxrwxr-x 4 root root 4096 2010-11-01 23:45 /var/lib/mysql It should [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re getting the following error in phpmyadmin when creating a new database:</p>
<p><em><strong>#1006 &#8211; Can&#8217;t create database</strong></em></p>
<p>The problem is that /var/lib/mysql is probably owned by root, and ALSO in the root group. It should not be.</p>
<p>ls -ld /var/lib/mysql probably looks like this:</p>
<p>drwxrwxr-x 4 root root 4096 2010-11-01 23:45 /var/lib/mysql</p>
<p>It should be:</p>
<p>drwxrwxr-x 4 root mysql 4096 2010-11-01 23:45 /var/lib/mysql</p>
<p>So, run</p>
<p>chgrp -R mysql /var/lib/mysql</p>
<p>and you should be able to create databases now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/phpmyadmin-cant-create-database-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpmyadmin debian password protect</title>
		<link>http://www.pokeroconnor.com/phpmyadmin-debian-password-protect/</link>
		<comments>http://www.pokeroconnor.com/phpmyadmin-debian-password-protect/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 23:22:31 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=321</guid>
		<description><![CDATA[Quick one &#8211; steps to password protect your phpmyadmin on Debian. Good idea also to use a symlink to obfuscate the &#8216;phpmyadmin&#8217; url too. Eg. within the docroot of a site I wish to install phpmyadmin on, I would do: cd /var/www/site ln -s SECRET_PATH_TO_DB /usr/share/phpmyadmin/ Your phpmyadmin install is then available on site.com/SECRET_PATH_TO_DB For [...]]]></description>
			<content:encoded><![CDATA[<p>Quick one &#8211; steps to<a href="http://www.halecomm.net/blog/2010/03/htpasswd-protecting-your-phpmyadmin-installation-debian/"> password protect your phpmyadmin on Debian</a>.</p>
<p>Good idea also to use a symlink to obfuscate the &#8216;phpmyadmin&#8217; url too.</p>
<p>Eg. within the docroot of a site I wish to install phpmyadmin on, I would do:</p>
<p>cd /var/www/site</p>
<p>ln -s SECRET_PATH_TO_DB /usr/share/phpmyadmin/</p>
<p>Your phpmyadmin install is then available on site.com/SECRET_PATH_TO_DB</p>
<p>For the htaccess password protection, this is a<a href="http://www.htaccesstools.com/htpasswd-generator/"> very handy generator tool.</a> The username and password you choose for the .htpasswd protection should be saved to <strong>/usr/share/phpmyadmin/.htpasswd</strong> (swap /usr/share for whatever install path you have).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/phpmyadmin-debian-password-protect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xampp setup for mac</title>
		<link>http://www.pokeroconnor.com/xampp-setup-for-mac/</link>
		<comments>http://www.pokeroconnor.com/xampp-setup-for-mac/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 22:06:33 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=312</guid>
		<description><![CDATA[For local development I use Xampp, which I find to be very handy. It&#8217;s really simple to and quick to setup, but there were just 2 gripes I had when setting it up that took an hour or so to fix &#8211; very annoying, so just recording them here for reference. Firstly, the install is [...]]]></description>
			<content:encoded><![CDATA[<p>For local development I use <a href="http://www.apachefriends.org/en/xampp-macosx.html">Xampp</a>, which I find to be very handy. It&#8217;s really simple to and quick to setup, but there were just 2 gripes I had when setting it up that took an hour or so to fix &#8211; very annoying, so just recording them here for reference.</p>
<p>Firstly, the install is as easy as detailed on the <a href="http://www.apachefriends.org/en/xampp-macosx.html">official page</a>, and the best guide I found was <a href="http://www.acwolf.com/2009/02/24/xampp-virtual-hosts-on-a-mac/">this excellent one</a>.</p>
<p>There are a tonne of files in your /Applications/XAMPP folder, but the most usual thing is to setup a Vhost. Edit the /Applications/XAMPP/etc/extra/httpd-vhosts.conf file for that.</p>
<p><strong>BUT</strong>, the first catch is you need to ensure that the following line is <strong>uncommented</strong> in the /Applications/XAMPP/etc/httpd.conf file:</p>
<p><em> Include etc/extra/httpd-xampp.conf</em></p>
<p>Gaaahhh!!!</p>
<p>Second gripe, your htaccess or <a href="http://www.talkphp.com/general/4774-mod_rewrite-not-working.html">mod_rewrite won&#8217;t work probably</a>, so you need to make sure that<em><strong> AllowOverride None </strong></em>is changed to <em><strong>AllowOverride All </strong></em>in /Applications/XAMPP/etc/httpd.conf, e.g.</p>
<p><em>&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride All</em></p>
<p>Apart from those two minor annoyances, it was plain sailing!</p>
<p><em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/xampp-setup-for-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache and bind steps debian</title>
		<link>http://www.pokeroconnor.com/apache-and-bind-steps-debian/</link>
		<comments>http://www.pokeroconnor.com/apache-and-bind-steps-debian/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 22:52:26 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=307</guid>
		<description><![CDATA[Quick steps to adding a new site on your debian box &#8211; apache and bind changes are as follows: APACHE: 1) setup your config in sites-available e.g. /etc/apache2/sites-available/isildur1.me Perms are -rw-r&#8211;r&#8211; 1 root root 1.1K 2009-10-29 00:43 isildur1.me 2) a2ensite isildur1.me 3) /etc/init.d/apache2 reload BIND: 1) 2 reverse DNS files, e.g. 199.208.33.in-addr.arpa 200.10.79.in-addr.arpa e.g. 77              [...]]]></description>
			<content:encoded><![CDATA[<p>Quick steps to adding a new site on your debian box &#8211; apache and bind changes are as follows:</p>
<p><strong>APACHE:</strong></p>
<p>1) setup your config in <strong>sites-available</strong><br />
e.g. /etc/apache2/sites-available/isildur1.me<br />
Perms are</p>
<p>-rw-r&#8211;r&#8211; 1 root root 1.1K 2009-10-29 00:43 isildur1.me</p>
<p>2) <strong>a2ensite</strong> isildur1.me</p>
<p>3) /etc/init.d/apache2 reload</p>
<p><strong>BIND:</strong></p>
<p>1) 2 reverse DNS files, e.g.<br />
199.208.33.in-addr.arpa<br />
200.10.79.in-addr.arpa</p>
<p>e.g. 77              IN PTR  isildur1.me.</p>
<p>2) named.conf<br />
e.g.<br />
named.conf:zone &#8220;isildur1.me&#8221; {<br />
named.conf:        file &#8220;/etc/bind/isildur1.me.db&#8221;;</p>
<p>3) forward DNS file<br />
e.g.<br />
isildur1.me.db</p>
<p>4) reload or restart bind<br />
/etc/init.d/bind9</p>
<p>That&#8217;s it, then your new site, for example <a href="http://isildur1.me">Isildur1 Poker God</a> is ready.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/apache-and-bind-steps-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RSYNC Installation Guide</title>
		<link>http://www.pokeroconnor.com/rsync-installation-guide/</link>
		<comments>http://www.pokeroconnor.com/rsync-installation-guide/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 23:02:15 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[Linux/Unix/OSX/Apache]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=303</guid>
		<description><![CDATA[Here&#8217;s the best sources of info I could find on setting up RSYNC on Linux and OS X. Best info here, including useful basic commands &#8211; http://transamrit.net/docs/rsync/ Also good, with better example of command to use &#8211; http://everythinglinux.org/rsync/ Installing an rsync server on MAC OS X. Note you need to use rsync.plist instead of inet or [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the best sources of info I could find on setting up RSYNC on Linux and OS X.</p>
<ul>
<li>Best info here, including useful basic commands &#8211; <a href="http://transamrit.net/docs/rsync/">http://transamrit.net/docs/rsync/</a></li>
<li>Also good, with better example of command to use &#8211; <a href="http://everythinglinux.org/rsync/">http://everythinglinux.org/rsync/</a></li>
<li><a href="http://uucode.com/blog/2008/11/11/rsync-server-on-mac-os-x/">Installing an rsync server on MAC OS X</a>. Note you need to use rsync.plist instead of inet or xinetd.d.</li>
<li><a href="http://troy.jdmz.net/rsync/index.html">ssh usage</a></li>
<li><a href="http://www.freebsddiary.org/rsync.php">use &#8211;password-file option to automate password</a></li>
</ul>
<p>And two handy tips -</p>
<ul>
<li><a href="http://www.captain.at/howto-rsync-linux-windows.php">Strict mode = false, essential</a>!!!</li>
<li>Chmod directory of the &#8220;archive&#8221; on rsync server side, to be 777. Maybe use the sticky bit?</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/rsync-installation-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing IMAP SMTP Postfix Debian</title>
		<link>http://www.pokeroconnor.com/installing-imap-smtp-postfix-debian/</link>
		<comments>http://www.pokeroconnor.com/installing-imap-smtp-postfix-debian/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 23:42:05 +0000</pubDate>
		<dc:creator>PokerOConnor</dc:creator>
				<category><![CDATA[hosting]]></category>
		<category><![CDATA[Linux/Unix/OSX/Apache]]></category>

		<guid isPermaLink="false">http://www.pokeroconnor.com/?p=280</guid>
		<description><![CDATA[I run Debian Lenny, and have my bind server setup with mail.yourdomain.com. That&#8217;s my starting point, and the following is how to install and configure SMTP and IMAP, using Postfix and SASL. On debian you need the courier-imap package, and note it runs on port 143. apt-get install courier-imap This is a good guide to [...]]]></description>
			<content:encoded><![CDATA[<p>I run Debian Lenny, and have my bind server setup with mail.yourdomain.com. That&#8217;s my starting point, and the following is how to install and configure SMTP and IMAP, using Postfix and SASL.</p>
<p>On debian you need the courier-imap package, and note it runs on<strong> port 143.</strong></p>
<p><strong><em>apt-get install courier-imap</em></strong></p>
<p><a href="http://wiki.edseek.com/howto:exim4_courier">This is a good guide to IMAP</a> side of things.</p>
<p><em><strong>VIP</strong></em>: <a href="http://www.postfix.org/faq.html#maildir">Support for maildir-style mailboxes</a> needs to be added, so edit /etc/postfix/main.cf to add the following:</p>
<p><em>home_mailbox = Maildir/</em></p>
<p><strong>SMTP</strong></p>
<p><a href="http://www.jimmy.co.at/weblog/?p=52">This<strong> </strong>guide rules as a starter for SMTP</a>.</p>
<p>Run <strong><em>apt-get install postfix-tls sasl2-bin libsasl2 libsasl2-modules</em></strong>, and maybe <strong><em>apt-get install libsasl2-2</em></strong> but MAKE SURE you change /etc/default/saslauthd to have the following:</p>
<p>START=yes<br />
MECHANISMS=&#8221;pam&#8221;</p>
<p>Next file to edit is /etc/postfix/sasl/smtpd.conf (you have to create it):<br />
<em>pwcheck_method: saslauthd</em></p>
<p>VI: /etc/postfix/main.cf</p>
<p><em>smtpd_sasl_auth_enable = yes<br />
smtpd_sasl_security_options = noanonymous<br />
broken_sasl_auth_clients = yes</em></p>
<p><em>smtpd_recipient_restrictions =<br />
permit_sasl_authenticated,<br />
permit_mynetworks,<br />
reject_unauth_destination</em><br />
NB, back in terminal do this:</p>
<p><em>rm -r /var/run/saslauthd/<br />
mkdir -p /var/spool/postfix/var/run/saslauthd<br />
ln -s /var/spool/postfix/var/run/saslauthd /var/run<br />
chgrp sasl /var/spool/postfix/var/run/saslauthd<br />
adduser postfix sasl</em></p>
<p>Also, <a href="http://wiki.debian.org/PostfixAndSASL">copy other pam group to smtp</a>:<strong><em></em></strong></p>
<p><strong><em><br />
cd /etc/pam.d<br />
cp other smtp</em></strong></p>
<p>Restart and go:</p>
<p>/etc/init.d/postfix restart<br />
/etc/init.d/saslauthd start</p>
<p>Test your config by telnet-ing in:<br />
<strong><em>telnet localhost smtp</em></strong><br />
Trying 80.237.145.96&#8230;<br />
Connected to jimmy.co.at.<br />
Escape character is &#8216;^]&#8217;.<br />
220 kitana.jimmy.co.at ESMTP Mailserver<br />
<em>ehlo reptile.g-tec.co.at</em><br />
250-kitana.jimmy.co.at<br />
250-PIPELINING<br />
250-SIZE 10240000<br />
250-VRFY<br />
250-ETRN<br />
250-AUTH NTLM LOGIN PLAIN DIGEST-MD5 CRAM-MD5<br />
250-AUTH=NTLM LOGIN PLAIN DIGEST-MD5 CRAM-MD5<br />
250 8BITMIME<br />
<em>AUTH PLAIN amltbXkAamltbXkAcmVhbC1zZWNyZXQ=</em><br />
235 Authentication successful</p>
<p>Or maybe not successful!!!!<br />
VIP!!!!!!!!!!! May get an error in /var/log/mail.log with &#8220;<a href="http://marc.info/?l=postfix-users&amp;m=124265630126767&amp;w=2"><strong>warning: SASL authentication failure: no secret in database</strong></a>&#8220;.</p>
<p>In this case you need to set up a user and pass for SASL as follows:<br />
<a href="http://www.gsp.com/cgi-bin/man.cgi?section=8&amp;topic=saslpasswd2">saslpasswd2</a> -f /etc/sasldb2 -u yourdomain.com paul</p>
<p>Another error is &#8220;<strong>warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory</strong>&#8220;.</p>
<p>This is <a href="http://enc.com.au/myscripts/postfixmysql.html">solved here</a>, READ IT!</p>
<blockquote><p>In /etc/init.d/postfix,  around line 43 there is a list of files that are copied from their real directories into the chroot. Change the line so it looks like:<br />
FILES=&#8221;etc/localtime etc/services etc/resolv.conf etc/hosts etc/nsswitch.conf etc/sasldb2&#8243;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.pokeroconnor.com/installing-imap-smtp-postfix-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

