<?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>Gargleblaster.org &#187; freeBSD</title>
	<atom:link href="http://www.gargleblaster.org/tag/freebsd/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gargleblaster.org</link>
	<description></description>
	<lastBuildDate>Wed, 16 Jun 2010 08:34:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mysterious crashes of netatalk on freeBSD 8</title>
		<link>http://www.gargleblaster.org/2010/02/14/mysterious-crashes-of-netatalk-on-freebsd-8.html</link>
		<comments>http://www.gargleblaster.org/2010/02/14/mysterious-crashes-of-netatalk-on-freebsd-8.html#comments</comments>
		<pubDate>Sun, 14 Feb 2010 08:25:13 +0000</pubDate>
		<dc:creator>Merlijn</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[denyhosts]]></category>
		<category><![CDATA[freeBSD]]></category>
		<category><![CDATA[netatalk]]></category>

		<guid isPermaLink="false">http://www.gargleblaster.org/2010/02/14/mysterious-crashes-of-netatalk-on-freebsd-8.html</guid>
		<description><![CDATA[I experienced mysterious crashes of the netatalk daemon installed on a freeBSD8 box. The apfd was advertised with mdnsresponder, but at the moment I tried connecting to the shares, the afpd crashed. Nothing showed in the usual logs. I tried several debugging modes, but nothing seemed to give any clue where I had to find [...]]]></description>
			<content:encoded><![CDATA[<p>I experienced mysterious crashes of the netatalk daemon installed on a freeBSD8 box. The apfd was advertised with mdnsresponder, but at the moment I tried connecting to the shares, the afpd crashed. Nothing showed in the usual logs. I tried several debugging modes, but nothing seemed to give any clue where I had to find the cause of the crashes.<br />
I took another look the /var/log directory, wondering which logfile could provide me with any clue.</p>
<p>Turned out that auth.log was giving information:<br />
<code><br />
Feb 14 08:35:06 zaphod afpd[9740]: twist Erlkoenig.gargleblaster.org to /bin/echo "You are not welcome to use afpd from Erlkoenig.gargleblaster.org."<br />
</code></p>
<p>Aha! this ringed a bell! I recently installed <a href="http://www.freshports.org/security/denyhosts/">denyhosts</a>, which uses hosts.allow.</p>
<p>A quick look in hosts.allow gave :</p>
<p><code><br />
# The rest of the daemons are protected.<br />
ALL : ALL \<br />
         : severity auth.info \<br />
         : twist /bin/echo "You are not welcome to use %d from %h."<br />
</code> </p>
<p>So adding:<br />
<code><br />
#netatalk<br />
afpd: ALL: allow<br />
</code><br />
Did the trick&#8230; netatalk is working as expected again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gargleblaster.org/2010/02/14/mysterious-crashes-of-netatalk-on-freebsd-8.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mailman on freeBSD with Postfix</title>
		<link>http://www.gargleblaster.org/2005/09/24/mailman-on-freebsd-with-postfix.html</link>
		<comments>http://www.gargleblaster.org/2005/09/24/mailman-on-freebsd-with-postfix.html#comments</comments>
		<pubDate>Sat, 24 Sep 2005 17:34:18 +0000</pubDate>
		<dc:creator>Merlijn</dc:creator>
				<category><![CDATA[freeBSD]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://www.gargleblaster.org/?p=177</guid>
		<description><![CDATA[One of my co-workers asked me if I could help him with sending emails to over 100 people. On certain planets this would be considered as spamming, but all the addresses are prospects or exisiting customers. Until now, he was used to send the mails one by one. But the address list grew larger and [...]]]></description>
			<content:encoded><![CDATA[<p>One of my co-workers asked me if I could help him with sending emails to over 100 people.<br />
On certain planets this would be considered as spamming, but all the addresses are prospects or exisiting customers.  Until now, he was used to send the mails one by one. But the address list grew larger and larger.</p>
<p>So time for me to enter the next step in mailserver-administration: Setting up a mailinglist.<br />
In the early days of the net, I have been a co-adminstrator of a <a href="http://www.greatcircle.com/majordomo/">majordomo</a>-list. But nowadays every list on the internet seems to be managed by <a href="http://www.gnu.org/software/mailman/"> Mailman</a>.  And since I don&#8217;t really dig perl, Mailman seemed an obvious choice.</p>
<div align="center">
<img src="http://www.gargleblaster.org/images2/logo-lg.jpg" alt="mailman logo" />
</div>
<p>Using ports, Mailman was very quickly installed. Some fiddling with apache-conf later and it seemed up and running.<br />
However, making it run along side with the several virtual domains (in fact, even masquarading the FQDN of the mailserver to the mailing-domain) took some extra care.</p>
<p>But overriding these values in Mailman/mm_cfg.py seemed to work:</p>
<pre>
MTA = 'Postfix'
DEFAULT_EMAIL_HOST = 'domain.ex'
DEFAULT_URL_HOST = 'host.subnet.domain.ex'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
DEFAULT_URL_PATTERN = 'http://%s/mailman/'
PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['domain1.ex', 'domain2.ex']
</pre>
<p>And in /etc/postfix/main.cf:</p>
<pre>
owner_request_special = no
recipient_delimiter = +

# for making virtual domains work
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf, hash:/usr/local/mailman/data/virtual-mailman

#for making the obvious Mailman aliases work
alias_maps = mysql:/etc/postfix/mysql-aliases.cf, hash:/usr/local/mailman/data/aliases
</pre>
<p>After this ( and a good deal of coffee later) all seemed to work. Creating the lists, add some co-workers as testing guinee-pigs, everything seemed fine.</p>
<p>Created the list for external use, loaded 50+ emailaddresses and wrote up the announcement email.<br />
clikckerdeclickerdie<br />
&#8220;send&#8221;</p>
<p>not.<br />
The maillog was flooded with &#8220;554 relaying not allowed&#8221; messages.<br />
Lesson learned: configure and test your Mailman configuration with addresses outside your own domain.<br />
Solution was to fiddle around with postfix relay options.</p>
<p>I changed it in /etc/postfix/main.cf to:</p>
<pre>
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination
</pre>
<p>Make sure 127.0.0.1/8 belongs to mynetworks.</p>
<p>and tadaaa! A working mailinglist :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gargleblaster.org/2005/09/24/mailman-on-freebsd-with-postfix.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally&#8230; sasl with virtual accounts in mysql working!</title>
		<link>http://www.gargleblaster.org/2005/09/18/finally-sasl-with-virtual-accounts-in-mysql-working.html</link>
		<comments>http://www.gargleblaster.org/2005/09/18/finally-sasl-with-virtual-accounts-in-mysql-working.html#comments</comments>
		<pubDate>Sun, 18 Sep 2005 18:32:14 +0000</pubDate>
		<dc:creator>Merlijn</dc:creator>
				<category><![CDATA[BOFH]]></category>
		<category><![CDATA[freeBSD]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[SASL]]></category>

		<guid isPermaLink="false">http://www.gargleblaster.org/?p=175</guid>
		<description><![CDATA[*sigh* This bothered me from the moment I got my new postfix mailserver. Everything worked&#8230;tls/amavisd-new/courier/plain-sasl/postfix all with mysql. But somehow I didn&#8217;t get sasl working with the virtual user accounts in mysql. I tried almost everything and nothing worked. Once in a while I tried to get it working again, but every time it ended [...]]]></description>
			<content:encoded><![CDATA[<p>*sigh*<br />
This bothered me from the moment I got my new postfix mailserver.<br />
Everything worked&#8230;tls/amavisd-new/courier/plain-sasl/postfix all with mysql. But somehow I didn&#8217;t get sasl working with the virtual user accounts in mysql. I tried almost everything and nothing worked.<br />
Once in a while I tried to get it working again, but every time it ended in a dissapointment.<br />
Until today! Jippie!</p>
<p>The missing link turned out to be using the &#8220;-r &#8221; option in saslauthd.sh.<br />
From the saslauthd man pages:</p>
<pre>
     -r      Combine the realm with the login (with an '@' sign in between).
             e.g.  login: "foo" realm: "bar" will get passed as login:
             "foo@bar".  Note that the realm will still be passed, which may
             lead to unexpected behavior.
</pre>
<p>On freeBSD, add this to rc.conf:</p>
<pre>
saslauthd_flags="-r -a getpwent"
</pre>
<p>And in /usr/local/lib/sasl2/smtpd.conf:</p>
<pre>
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sql
sql_engine: mysql
mech_list: login plain crammd6 digestmd5
sql_user: sql-user
sql_passwd: sql-pass
sql_database: postfix
sql_select: SELECT clear FROM postfix_users WHERE email = '%u@%r'
sql_verbose: yes
</pre>
<p>And don&#8217;t forget to restart the saslauthd after editing this file.</p>
<pre>
# saslauthd -v
saslauthd 2.1.21
authentication mechanisms: sasldb getpwent kerberos5 pam rimap
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.gargleblaster.org/2005/09/18/finally-sasl-with-virtual-accounts-in-mysql-working.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Entering the world of version control</title>
		<link>http://www.gargleblaster.org/2005/08/20/entering-the-world-of-version-control.html</link>
		<comments>http://www.gargleblaster.org/2005/08/20/entering-the-world-of-version-control.html#comments</comments>
		<pubDate>Sat, 20 Aug 2005 08:42:46 +0000</pubDate>
		<dc:creator>Merlijn</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[freeBSD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.gargleblaster.org/?p=170</guid>
		<description><![CDATA[Doing PHP development for several years now, I never really understood version control and how to integrate it with my web-application development. For &#8220;traditional&#8221; programming, it is clear. You create a repository, all the developers keep in sync and commit their updates. But being the whole development team yourself and have code that for 100% [...]]]></description>
			<content:encoded><![CDATA[<p>Doing PHP development for several years now, I never really understood version control and how to integrate it with my web-application development. For &#8220;traditional&#8221; programming, it is clear. You create a repository, all the developers keep in sync and commit their updates. But being the whole development team yourself and have code that for 100% depends on the database stopped me from  even try to set up a version control system.<br />
Until last week. I just finished a project and was starting a new one, when I decided that this was the ideal moment for fiddling around with version control. I happened to have a golden oldie compaq proliant 1850R with RAID 5 disks AND a fresh install of freeBSD 5.4. Ideal for the task of becoming a CVS server&#8230;.eh&#8230; cvs? subversion? </p>
<p>Being a total version control newbie, I did my googling and reading.<br />
In one sentence: CVS is old and insecure, Subversion is hot and the talk of the town. CVS compares to Subversion as telnet to ssh.<br />
And the fun thing? installing and setting up took me 1,5 hour. Using ports<br />
there are basically two ports to install: Apache2 and Subversion.<br />
Below are links to the pages I used for setting up my subversion server, but here are some hints/notes: (not a howto or tutorial! read the pages!)</p>
<p>Create a svn user and group, and adjust the umask of that user. I used: umask 002.</p>
<p>Build apache2 with WITH_BERKELEYDB=db42.<br />
I have changed httpd.conf to have apache2 runs as svn user and group, this spares you from read/write issues when using Subversion with webdav.</p>
<p>Build Subversion with -DWITH_SVNSERVE_WRAPPER -DWITH_MOD_DAV_SVN.</p>
<p>Su -l to the SVN user, create the repository and import your initial project layout, confiure apache to serve the repository with webDAV and&#8230;you&#8217;re free to go!</p>
<p>It kicks ass!<br />
I do my webdevelopment on my mac offcourse and I found svnX to be a fantastic client wrapper. 2, 3 hours after installing and setting up my first version control, I found myself wondering how I ever lived (eh..ok developed) without it.</p>
<p>The links I used:<br />
<a href="http://www.onlamp.com/pub/a/bsd/2005/05/12/FreeBSD_Basics.html">onlamp &#8211; Setting up a Secure Subversion Server</a><br />
<a href="http://svnbook.red-bean.com/"> the SVN book (free!)<a /></p>
<p></a><a href="http://www.macdevcenter.com/pub/a/mac/2004/08/10/subversion.html"> macdev center- making the jump to subversion</a><br />
<a href="http://www.onlamp.com/pub/a/onlamp/2004/08/19/subversiontips.html">onLamp &#8211; top ten tips for Subversion users</a><br />
<a href="http://www.uncc.org/svntools/clients/macosx/">OS X Subversion client package</a> (you need this for being able to use a gui front-end as svnX.<br />
<a href="http://www.lachoseinteractive.net/en/community/subversion/svnx/features/"> svnX </a><br />
<a href="http://phiki.waterwave.ch/phiki.php3?VersionsSystems">Versions Systems link collection</a></p>
<p>And because I always forget the exact procedure:<br />
<a href="http://www.bsdguides.org/guides/freebsd/webserver/apache_ssl_php_mysql.php">Apache+SSL on freeBSD</a></p>
<p>Recent addition is this article from RedHat, a introduction suited for both CVS users and those new to version control.</p>
<p><a href="http://www.redhat.com/magazine/010aug05/features/subversion/">CVS is out, Subversion is in</a> found with <a href="http://digg.com/linux_unix/Get_rid_of_CVS,_replace_it_with_Subversion">digg.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gargleblaster.org/2005/08/20/entering-the-world-of-version-control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading freeBSD</title>
		<link>http://www.gargleblaster.org/2005/03/06/upgrading-freebsd.html</link>
		<comments>http://www.gargleblaster.org/2005/03/06/upgrading-freebsd.html#comments</comments>
		<pubDate>Sun, 06 Mar 2005 17:38:16 +0000</pubDate>
		<dc:creator>Merlijn</dc:creator>
				<category><![CDATA[BOFH]]></category>
		<category><![CDATA[freeBSD]]></category>
		<category><![CDATA[upgrading]]></category>

		<guid isPermaLink="false">http://www.gargleblaster.org/?p=142</guid>
		<description><![CDATA[Keeping mission critical machines up2date is always a burden for a sysadmin. Esp. if you are an allround sysadmin, responsible for all kind of servers. On freeBSD, this has become quite easy. There has is a new tool in town: portsnap. Setup is easy. See this article on TaoSecurity. After installing it boils down to [...]]]></description>
			<content:encoded><![CDATA[<p>Keeping mission critical machines up2date is always a burden for a sysadmin.<br />
Esp. if you are an allround sysadmin, responsible for all kind of servers.<br />
On freeBSD, this has become quite easy.<br />
There has is a new tool in town: <a href="http://www.daemonology.net/portsnap/">portsnap.</a></p>
<p>Setup is easy. See this article on <a href="http://www.taosecurity.com/keeping_freebsd_applications_up-to-date.html">TaoSecurity</a>.<br />
After installing it boils down to this:</p>
<p>cd /usr/ports<br />
portsnap fetch<br />
portsnap update<br />
make fetchindex<br />
portsdb -u<br />
portversion -v -l &#8220;<&#8221;<br />
Check /usr/ports/UPDATING for information relating to my applications<br />
portupgrade -varR</p>
<p>Total control :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gargleblaster.org/2005/03/06/upgrading-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
