<?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>Surgical Diversions &#187; osx-server</title>
	<atom:link href="http://thefragens.com/blog/tag/osx-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://thefragens.com/blog</link>
	<description>My time out of the operating room.</description>
	<lastBuildDate>Tue, 24 Aug 2010 19:57:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Setting up Snow Leopard iCal Server</title>
		<link>http://thefragens.com/blog/2010/08/setting-up-snow-leopard-ical-server/</link>
		<comments>http://thefragens.com/blog/2010/08/setting-up-snow-leopard-ical-server/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 20:15:16 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[mac-osx]]></category>
		<category><![CDATA[osx-server]]></category>
		<category><![CDATA[ical-server]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=761</guid>
		<description><![CDATA[After scouring through the official documentation, and finding that lacking, Google has found the answers. Make sure Wiki Server is set to 127.0.0.1 and that Use SSL is checked. Here&#8217;s how I was finally able to get my groups into &#8230; <a href="http://thefragens.com/blog/2010/08/setting-up-snow-leopard-ical-server/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://thefragens.com/blog/2010/08/snow-leopard-sieve-rules/' rel='bookmark' title='Permanent Link: Snow Leopard Sieve Rules'>Snow Leopard Sieve Rules</a> <small>How to edit sieve rules in Snow Leopard by hand....</small></li>
<li><a href='http://thefragens.com/blog/2009/09/fail2ban-on-leopard-server/' rel='bookmark' title='Permanent Link: Fail2ban on Leopard Server'>Fail2ban on Leopard Server</a> <small>So here I am running my own server &#8212; for...</small></li>
<li><a href='http://thefragens.com/blog/2008/06/forwarding-email-in-leopard-server-part-2/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server, part 2'>Forwarding Email in Leopard Server, part 2</a> <small>I&#8217;ve previously written about problems with Leopard server and forwarding...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>After scouring through the official documentation, and finding that lacking, Google has found the answers.</p>

<p>Make sure <em>Wiki Server</em> is set to <strong>127.0.0.1</strong> and that <em>Use SSL</em> is checked. </p>

<p>Here&#8217;s how I was finally able to get my groups into iCal SL client (<strong>no SSL</strong>)</p>

<blockquote>
  <p><code>userName</code><br />
  <code>password</code><br />
  <code>server.com/principals/__uids__/wiki-groupName/</code> (no http://)</p>
</blockquote>


<p>Related posts:<ol><li><a href='http://thefragens.com/blog/2010/08/snow-leopard-sieve-rules/' rel='bookmark' title='Permanent Link: Snow Leopard Sieve Rules'>Snow Leopard Sieve Rules</a> <small>How to edit sieve rules in Snow Leopard by hand....</small></li>
<li><a href='http://thefragens.com/blog/2009/09/fail2ban-on-leopard-server/' rel='bookmark' title='Permanent Link: Fail2ban on Leopard Server'>Fail2ban on Leopard Server</a> <small>So here I am running my own server &#8212; for...</small></li>
<li><a href='http://thefragens.com/blog/2008/06/forwarding-email-in-leopard-server-part-2/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server, part 2'>Forwarding Email in Leopard Server, part 2</a> <small>I&#8217;ve previously written about problems with Leopard server and forwarding...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2010/08/setting-up-snow-leopard-ical-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dovecot Permissions</title>
		<link>http://thefragens.com/blog/2010/08/dovecot-permissions/</link>
		<comments>http://thefragens.com/blog/2010/08/dovecot-permissions/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 15:42:37 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[mac-osx]]></category>
		<category><![CDATA[osx-server]]></category>
		<category><![CDATA[dovecot]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=738</guid>
		<description><![CDATA[Well, I finally bit the bullet and installed OS X Snow Leopard Server. Most of what I absolutely need to get working is mail services. One of the peculiarities of Dovecot is that each users mail folder is owned by &#8230; <a href="http://thefragens.com/blog/2010/08/dovecot-permissions/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://thefragens.com/blog/2010/08/snow-leopard-sieve-rules/' rel='bookmark' title='Permanent Link: Snow Leopard Sieve Rules'>Snow Leopard Sieve Rules</a> <small>How to edit sieve rules in Snow Leopard by hand....</small></li>
<li><a href='http://thefragens.com/blog/2008/03/fixing-cyrus/' rel='bookmark' title='Permanent Link: Fixing cyrus'>Fixing cyrus</a> <small>Yeah, I did something stupid and had to reinstall my...</small></li>
<li><a href='http://thefragens.com/blog/2010/06/wordpress-automatic-updates/' rel='bookmark' title='Permanent Link: WordPress Automatic Updates'>WordPress Automatic Updates</a> <small>I think I finally have the automatic updates feature of...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Well, I finally bit the bullet and installed OS X Snow Leopard Server. Most of what I absolutely <strong>need</strong> to get working is mail services. One of the peculiarities of Dovecot is that each users mail folder is owned by that user. I think in Cyrus they were all owned by <em>mail</em> or <em>_cyrus</em>.</p>

<p>Anyway, I found that a couple of my files didn&#8217;t have the correct permissions and I found out by trying to open in webmail. It gave me errors I&#8217;d never seen before. Where I found better errors was in mailaccess.log where I saw a <em>dovecot</em> service with a <em>failed: Permission denied</em> error.</p>

<p>I managed to find where the files lived and as I have quite a few mail users I didn&#8217;t want to go through individually so I figured out a script to do it.</p>

<blockquote>
  <p><code>sudo ls -lA /var/spool/imap/dovecot/mail | grep -v total | awk {'printf $3": /var/spool/imap/dovecot/mail/"$9"\n"'} | xargs -n2 -p sudo chown -R</code></p>
</blockquote>

<p>The script will ask if you want to proceed with the <em>chown</em> command for each user.</p>

<p>If you find your logs reporting permissions issues with a specific account or your webmail users have errors opening mailboxes, then the following script when provided with the offending GeneratedUID will reset the permissions similar to the above. Simply replace the GUID in the script with the one listed in your logs.</p>

<blockquote>
  <p><code>dscl /LDAPv3/127.0.0.1 -list /Users GeneratedUID | grep GUID | awk {'printf $1": /var/spool/imap/dovecot/mail/"$2"\n"'} | xargs -n2 -p sudo chown -R</code></p>
</blockquote>


<p>Related posts:<ol><li><a href='http://thefragens.com/blog/2010/08/snow-leopard-sieve-rules/' rel='bookmark' title='Permanent Link: Snow Leopard Sieve Rules'>Snow Leopard Sieve Rules</a> <small>How to edit sieve rules in Snow Leopard by hand....</small></li>
<li><a href='http://thefragens.com/blog/2008/03/fixing-cyrus/' rel='bookmark' title='Permanent Link: Fixing cyrus'>Fixing cyrus</a> <small>Yeah, I did something stupid and had to reinstall my...</small></li>
<li><a href='http://thefragens.com/blog/2010/06/wordpress-automatic-updates/' rel='bookmark' title='Permanent Link: WordPress Automatic Updates'>WordPress Automatic Updates</a> <small>I think I finally have the automatic updates feature of...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2010/08/dovecot-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Verizon Thinks You&#8217;re a Spammer</title>
		<link>http://thefragens.com/blog/2010/06/verizon-thinks-youre-a-spammer/</link>
		<comments>http://thefragens.com/blog/2010/06/verizon-thinks-youre-a-spammer/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 22:38:46 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[osx-server]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=727</guid>
		<description><![CDATA[They must. Verizon now blocks port 25 and does not allow you to opt out. Why do I care? Well our hospital just opened up free WiFi everywhere and when I found I couldn&#8217;t send email I made a couple &#8230; <a href="http://thefragens.com/blog/2010/06/verizon-thinks-youre-a-spammer/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://thefragens.com/blog/2008/02/forwarding-email-in-leopard-server/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server'>Forwarding Email in Leopard Server</a> <small>OK, to put it mildly the Workgroup Manager and Email...</small></li>
<li><a href='http://thefragens.com/blog/2006/01/port-25-blocked/' rel='bookmark' title='Permanent Link: Port 25 blocked'>Port 25 blocked</a> <small>If you travel, or use your laptop at wireless hot...</small></li>
<li><a href='http://thefragens.com/blog/2002/05/router-and-airport-2/' rel='bookmark' title='Permanent Link: Router and Airport 2'>Router and Airport 2</a> <small>Well I found out my router problem was a simpler...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>They must. <a href="http://www22.verizon.com/ResidentialHelp/HighSpeed/General%2BSupport/Top%2BQuestions/QuestionsOne/124274.htm">Verizon now blocks port 25</a> and does not allow you to opt out. Why do I care? Well our hospital just opened up free WiFi everywhere and when I found I couldn&#8217;t send email I made a couple of trips to the Information Services folks.</p>

<p>They swore up and down that they weren&#8217;t blocking anything at the router. An epiphany later and we figured out it was the Verizon DSL they were using for the access points.</p>

<p>Well, the simple solution is to change email to accept SMTP on port 587. This was simple enough to fix on the server. Just uncomment the following line in <code>/etc/postfix/master.cf</code></p>

<p><code>#submission inet n       -       n       -       -       smtpd</code></p>

<p>Then <code>sudo postfix reload</code> and you&#8217;re good to go.</p>

<p>Of course I also had to change my iPhone SMTP to use port 587. The only tricky part was remembering that I have my router set to provide a basic hardware firewall, in addition to the server&#8217;s ipfw. I had to open a service and a rule on the router to let TCP traffic on port 587 through.</p>


<p>Related posts:<ol><li><a href='http://thefragens.com/blog/2008/02/forwarding-email-in-leopard-server/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server'>Forwarding Email in Leopard Server</a> <small>OK, to put it mildly the Workgroup Manager and Email...</small></li>
<li><a href='http://thefragens.com/blog/2006/01/port-25-blocked/' rel='bookmark' title='Permanent Link: Port 25 blocked'>Port 25 blocked</a> <small>If you travel, or use your laptop at wireless hot...</small></li>
<li><a href='http://thefragens.com/blog/2002/05/router-and-airport-2/' rel='bookmark' title='Permanent Link: Router and Airport 2'>Router and Airport 2</a> <small>Well I found out my router problem was a simpler...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2010/06/verizon-thinks-youre-a-spammer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Automatic Updates</title>
		<link>http://thefragens.com/blog/2010/06/wordpress-automatic-updates/</link>
		<comments>http://thefragens.com/blog/2010/06/wordpress-automatic-updates/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 23:30:50 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[osx-server]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=707</guid>
		<description><![CDATA[I think I finally have the automatic updates feature of WordPress working. Previously, when asked for my login info for the FTP connection I would get some vague connection error. It&#8217;s a permissions issue. Some permissions for files/folders need to &#8230; <a href="http://thefragens.com/blog/2010/06/wordpress-automatic-updates/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://thefragens.com/blog/2008/02/wordpress-svn/' rel='bookmark' title='Permanent Link: WordPress SVN'>WordPress SVN</a> <small>OK, since I&#8217;ve switched over to WordPress I have to...</small></li>
<li><a href='http://thefragens.com/blog/2010/08/dovecot-permissions/' rel='bookmark' title='Permanent Link: Dovecot Permissions'>Dovecot Permissions</a> <small>Well, I finally bit the bullet and installed OS X...</small></li>
<li><a href='http://thefragens.com/blog/2008/03/fixing-cyrus/' rel='bookmark' title='Permanent Link: Fixing cyrus'>Fixing cyrus</a> <small>Yeah, I did something stupid and had to reinstall my...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I think I finally have the automatic updates feature of WordPress working. Previously, when asked for my login info for the FTP connection I would get some vague connection error. It&#8217;s a permissions issue. Some permissions for files/folders need to be set for web server user, in my case Apache2, or <code>_www</code> on OS X Server.</p>

<p>The answer mostly comes from looking for <a href="http://www.chrisabernethy.com/why-wordpress-asks-connection-info/">why WordPress asks for connection information</a>. Be sure to read the comments.</p>

<p>So far, my solution seems to be something like the following.</p>

<blockquote>
  <p><code>sudo chown -R _www wordpress/wp-content*</code><br />
  <code>sudo chown _www wordpress/wp-admin/update*</code>
  <!-- > sudo chown _www wp-includes/update.php --></p>
</blockquote>

<p>Where <code>wordpress</code> is the location of the WordPress installation.</p>

<p>It seems to work, however, the information about what should be happening with the update seems to be in an endless loop. I let it run for a bit and when I check to see if the plugin or theme is updated it seems to have the newer version, but I&#8217;ve no real way to check or to know how long to let the process run. </p>

<p>Very confusing.</p>

<p>When I encounter more updates I&#8217;ll see if this really does work. BTW, updated to WordPress 3.0 for all the new goodness.</p>

<p><strong>Update</strong><br />
This works fine for plugins and themes but not for the actual WP updates. Also, I just let it run until the browser doesn&#8217;t seem to be loading the page any longer and the updates are done. Something&#8217;s clearly not working as expected with this and OS X Server but I don&#8217;t know what it is.</p>


<p>Related posts:<ol><li><a href='http://thefragens.com/blog/2008/02/wordpress-svn/' rel='bookmark' title='Permanent Link: WordPress SVN'>WordPress SVN</a> <small>OK, since I&#8217;ve switched over to WordPress I have to...</small></li>
<li><a href='http://thefragens.com/blog/2010/08/dovecot-permissions/' rel='bookmark' title='Permanent Link: Dovecot Permissions'>Dovecot Permissions</a> <small>Well, I finally bit the bullet and installed OS X...</small></li>
<li><a href='http://thefragens.com/blog/2008/03/fixing-cyrus/' rel='bookmark' title='Permanent Link: Fixing cyrus'>Fixing cyrus</a> <small>Yeah, I did something stupid and had to reinstall my...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2010/06/wordpress-automatic-updates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Server-Side Email Filtering with Sieve</title>
		<link>http://thefragens.com/blog/2010/05/server-side-email-filtering-with-sieve/</link>
		<comments>http://thefragens.com/blog/2010/05/server-side-email-filtering-with-sieve/#comments</comments>
		<pubDate>Fri, 14 May 2010 23:55:31 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[mac-osx]]></category>
		<category><![CDATA[osx-server]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[sieve]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=684</guid>
		<description><![CDATA[Another post for the peripheral brain. When I first set up my own server lo these years ago, I never really thought about email message filtering. After all, I had rules in Mail.app that would send my incoming message to &#8230; <a href="http://thefragens.com/blog/2010/05/server-side-email-filtering-with-sieve/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://thefragens.com/blog/2008/06/forwarding-email-in-leopard-server-part-2/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server, part 2'>Forwarding Email in Leopard Server, part 2</a> <small>I&#8217;ve previously written about problems with Leopard server and forwarding...</small></li>
<li><a href='http://thefragens.com/blog/2008/02/forwarding-email-in-leopard-server/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server'>Forwarding Email in Leopard Server</a> <small>OK, to put it mildly the Workgroup Manager and Email...</small></li>
<li><a href='http://thefragens.com/blog/2010/08/snow-leopard-sieve-rules/' rel='bookmark' title='Permanent Link: Snow Leopard Sieve Rules'>Snow Leopard Sieve Rules</a> <small>How to edit sieve rules in Snow Leopard by hand....</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Another post for the peripheral brain.</p>

<p>When I first set up my own server lo these years ago, I never really thought about email message filtering. After all, I had rules in Mail.app that would send my incoming message to wherever I wanted them. Besides, I was much more concerned with eliminating spam.</p>

<p>Well, that was then and spam seems under control. I was prompted to look at server-side message filtering mostly to help out my mother, who seems determined to have every single store, travel and other consumer site that will happily take your email address and send you messages daily &#8212; or more often, have a more controllable experience on her iPhone. When we originally set up her iPhone she told me she didn&#8217;t want to use it for email. Silly me, I listened and set her up with a POP account. Well now she wants email. What&#8217;s a good son to do. <img src='http://thefragens.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<p>I changed her POP account to IMAP, copied over all her messages to her new IMAP folders and thought I&#8217;d need to solve her impending problem of 100 or so messages every other day choking her inbox.</p>

<p>After a bit of Googling I found <a href="http://sieve.info">Sieve</a>. I&#8217;d actually heard of it before but never really thought about it. The <a href="http://www.netmojo.ca/2007/12/01/setting-up-sieve-and-vacation-messages-on-mac-os-x-server/">Apple Discussion Forum</a> had a nice start and pointed me on to <a href="http://www.netmojo.ca/2007/12/01/setting-up-sieve-and-vacation-messages-on-mac-os-x-server/">sources</a> I used to <a href="http://www.afp548.com/article.php?story=20080106215609968">set it up</a>.</p>

<p>Here are the salient points. From the terminal&#8230;</p>

<ol>
<li><p>Add the following lines to <code>/etc/services</code></p>

<pre><code>sudo pico /etc/services
</code></pre>

<p>Insert the following lines.</p>

<pre><code>callbook 2000/udp # callbook
callbook 2000/tcp # callbook
+ sieve 2000/udp # sieve mail filtering
+ sieve 2000/tcp # sieve mail filtering
</code></pre>

<p>You can check to see if it&#8217;s running by running</p>

<pre><code>netstat -an | grep 2000
</code></pre>

<p>with results</p>

<pre><code>tcp4 0 0 *.2000 *.* LISTEN
tcp6 0 0 *.2000 *.* LISTEN
</code></pre></li>
<li><p>Create <code>/usr/sieve</code></p>

<pre><code>sudo mkdir /usr/sieve
sudo chown _cyrus:mail /usr/sieve
</code></pre></li>
<li><p>Restart mail services</p>

<pre><code>sudo serveradmin stop mail
[ some stuff ]
sudo serveradmin start mail
[ some stuff ]
</code></pre></li>
<li>Since I&#8217;m using  OS X Server and SquirrelMail is already running, next was installing and configuring <a href="http://email.uoa.gr/avelsieve/wiki/Download">avelsieve</a>.</li>
</ol>

<p>I really did try installing the latest development version &#8212; 1.9.9 alpha. That should have been a clue. After spending way too much time with it I installed the stable version - avelsieve 1.0.1. Once copied into <code>/usr/share/squirrelmail/plugins</code> run <code>sudo perl /etc/squirrelmail/config/conf.pl</code> and activate the plugin.</p>

<p>Then it&#8217;s back to the terminal. These instructions are from <a href="http://www.afp548.com/article.php?story=20080106215609968">AFP548</a>.</p>

<pre><code>    cd /usr/share/squirrelmail/plugins/avelsieve
    sudo cp config-sample.php config.php
</code></pre>

<p>Now set the correct authentication matching SquirrelMail.<br />
Edit <code>/etc/squirrelmail/plugins/avelsieve/config.php</code> and change:</p>

<pre><code>$preferred_mech = "PLAIN";
</code></pre>

<p>to  </p>

<pre><code>$preferred_mech = "CRAM-MD5";
</code></pre>

<p>You should be running SquirrelMail with CRAM-MD5 authentication anyway.</p>

<p>Finally, edit the <code>/etc/squirrelmail/plugins/avelsieve/lib/sieve-php.lib.php</code> file. </p>

<p>Find the line:</p>

<pre><code>fputs($this-&gt;fp, "PUTSCRIPT \"$scriptname\" \{$len+}\r\n"); 
</code></pre>

<p>and change it to :</p>

<pre><code>fputs($this-&gt;fp, "PUTSCRIPT \"$scriptname\"".' {'."$len+".'}'."\r\n");
</code></pre>

<p>This fixes an error in the script allowing you to save your changes to the filters. Now go login to webmail and click on the <code>Filter</code> link to start creating your Sieve filters.</p>


<p>Related posts:<ol><li><a href='http://thefragens.com/blog/2008/06/forwarding-email-in-leopard-server-part-2/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server, part 2'>Forwarding Email in Leopard Server, part 2</a> <small>I&#8217;ve previously written about problems with Leopard server and forwarding...</small></li>
<li><a href='http://thefragens.com/blog/2008/02/forwarding-email-in-leopard-server/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server'>Forwarding Email in Leopard Server</a> <small>OK, to put it mildly the Workgroup Manager and Email...</small></li>
<li><a href='http://thefragens.com/blog/2010/08/snow-leopard-sieve-rules/' rel='bookmark' title='Permanent Link: Snow Leopard Sieve Rules'>Snow Leopard Sieve Rules</a> <small>How to edit sieve rules in Snow Leopard by hand....</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2010/05/server-side-email-filtering-with-sieve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>False Positive</title>
		<link>http://thefragens.com/blog/2010/05/false-positive/</link>
		<comments>http://thefragens.com/blog/2010/05/false-positive/#comments</comments>
		<pubDate>Wed, 05 May 2010 05:17:42 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[osx-server]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=682</guid>
		<description><![CDATA[Just a personal reminder to keep in the memory bank. When running OS X Server and SpamAssassin, if you have spam set up to be quarantined it gets stored in /var/virusmails. A method of viewing and releasing quarantined mail mostly &#8230; <a href="http://thefragens.com/blog/2010/05/false-positive/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://thefragens.com/blog/2009/03/amavisd-settings/' rel='bookmark' title='Permanent Link: Amavisd settings'>Amavisd settings</a> <small>I run my own mail server on OS X Server....</small></li>
<li><a href='http://thefragens.com/blog/2010/05/server-side-email-filtering-with-sieve/' rel='bookmark' title='Permanent Link: Server-Side Email Filtering with Sieve'>Server-Side Email Filtering with Sieve</a> <small>Another post for the peripheral brain. When I first set...</small></li>
<li><a href='http://thefragens.com/blog/2007/05/fixing-mysql-and-phpmyadmin/' rel='bookmark' title='Permanent Link: Fixing MySQL and phpMyAdmin'>Fixing MySQL and phpMyAdmin</a> <small>There seems to be a problem with how current versions...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Just a personal reminder to keep in the memory bank.</p>

<p>When running OS X Server and SpamAssassin, if you have spam set up to be quarantined it gets stored in <code>/var/virusmails</code>. A method of viewing and releasing quarantined mail mostly from the command line follows.</p>

<p>First, to do anything with the quarantined message you need to know it&#8217;s <code>mail-file</code>. That&#8217;s usually something like <code>spam-kFLGPbnGHO3a.gz</code>.</p>

<p>Using <a href="http://www.smileonmymac.com/TextExpander/touch/index.html">TextExpander&#8217;s snippets</a> and the clipboard I have the following snippets.</p>

<p>To view the quarantined message I copy the quarantined file to <code>/Users/Shared/</code> and then unzip it, read it into a new mail message to me. If it looks OK then I release it. I delete the file from <code>/Users/Shared/</code> when I&#8217;m done.</p>

<p>To send it myself I have the following snippet. The snippet begins by copying the <code>mail-file</code> to the clipboard. If you don&#8217;t have TextExpander just replace all instances of <code>%clipboard</code> with the <code>mail-file</code>.</p>

<blockquote>
  <p>sudo cp /var/virusmails/%clipboard /Users/Shared/;gunzip /Users/Shared/%clipboard;/usr/bin/mail -s &#8220;%clipboard&#8221; me@example.com &lt; /Users/Shared/&#96;echo %clipboard | sed &#8216;s/.gz//g&#8217;&#96;;rm /Users/Shared/&#96;echo %clipboard | sed &#8216;s/.gz//g&#8217;&#96;</p>
</blockquote>

<p>If I want to release the file from quarantine and send it to <code>notjunkmail</code>.</p>

<blockquote>
  <p>sudo amavisd-release %clipboard ; sudo amavisd-release %clipboard &#8220;&#8221; notjunkmail</p>
</blockquote>

<p>I did have to do a few things to get <code>amavisd-release</code> working. First, it was looking for <code>amavisd.sock</code> in the <code>/var/amavis/home</code> directory and it&#8217;s really located in the <code>/var/amavis</code> directory. It was simple to create a new directory and then create a symlink to the <code>amavisd.sock</code> file.</p>

<blockquote>
  <p>sudo mkdir /var/amavis/home; sudo ln -s /var/amavis/amavisd.sock /var/amavis/home</p>
</blockquote>

<p>Now, using only the command line and a mail app, I can check on quarantined email and release it. All this just so I can make sure that I can do this task from an iPhone or iPad. <img src='http://thefragens.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<p>FWIW, I have <a href="http://www.phi.net/amavis-blocked.tar.gz">amavis-blocked (by Uwe S. Fuerst)
a log file parser for amavisd-new 2.x, written in Perl</a> set up to send me logs each night at 23:59. That&#8217;s where I get the <code>mail-file</code> from.</p>


<p>Related posts:<ol><li><a href='http://thefragens.com/blog/2009/03/amavisd-settings/' rel='bookmark' title='Permanent Link: Amavisd settings'>Amavisd settings</a> <small>I run my own mail server on OS X Server....</small></li>
<li><a href='http://thefragens.com/blog/2010/05/server-side-email-filtering-with-sieve/' rel='bookmark' title='Permanent Link: Server-Side Email Filtering with Sieve'>Server-Side Email Filtering with Sieve</a> <small>Another post for the peripheral brain. When I first set...</small></li>
<li><a href='http://thefragens.com/blog/2007/05/fixing-mysql-and-phpmyadmin/' rel='bookmark' title='Permanent Link: Fixing MySQL and phpMyAdmin'>Fixing MySQL and phpMyAdmin</a> <small>There seems to be a problem with how current versions...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2010/05/false-positive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New IP Address</title>
		<link>http://thefragens.com/blog/2009/12/new-ip-address/</link>
		<comments>http://thefragens.com/blog/2009/12/new-ip-address/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 22:26:25 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[osx-server]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=659</guid>
		<description><![CDATA[Well, as a cost saving measure and because we really weren&#8217;t using more than one, we&#8217;ve cut back to a single IP address. Time Warner Cable is the biz Internet provider. They&#8217;ve been very helpful in setting up reverse DNS &#8230; <a href="http://thefragens.com/blog/2009/12/new-ip-address/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://thefragens.com/blog/2010/04/new-safari-version/' rel='bookmark' title='Permanent Link: New Safari Version??'>New Safari Version??</a> <small>I&#8217;ve just spent the last 40 minutes on the phone...</small></li>
<li><a href='http://thefragens.com/blog/2002/01/47/' rel='bookmark' title='Permanent Link: '></a> <small>I&#8217;ve been having problems with Airport Base Stations recently. I...</small></li>
<li><a href='http://thefragens.com/blog/2006/09/customer-service/' rel='bookmark' title='Permanent Link: Customer Service'>Customer Service</a> <small>I have to give great kudos to Wendy of the...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Well, as a cost saving measure and because we really weren&#8217;t using more than one, we&#8217;ve cut back to a single IP address. Time Warner Cable is the biz Internet provider. They&#8217;ve been very helpful in setting up reverse DNS lookups and PTR records, but at the same time the transfer to the new IP really screwed with the cable modem.</p>

<p>I spent many hours with some very nice people at TWC tech support, like Jan, but what eventually fixed the problem was changing the fixed IP I was assigned to another fixed IP.</p>

<p>Long and short is everything, mail, web, etc. seems to be back up and running.</p>


<p>Related posts:<ol><li><a href='http://thefragens.com/blog/2010/04/new-safari-version/' rel='bookmark' title='Permanent Link: New Safari Version??'>New Safari Version??</a> <small>I&#8217;ve just spent the last 40 minutes on the phone...</small></li>
<li><a href='http://thefragens.com/blog/2002/01/47/' rel='bookmark' title='Permanent Link: '></a> <small>I&#8217;ve been having problems with Airport Base Stations recently. I...</small></li>
<li><a href='http://thefragens.com/blog/2006/09/customer-service/' rel='bookmark' title='Permanent Link: Customer Service'>Customer Service</a> <small>I have to give great kudos to Wendy of the...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2009/12/new-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fail2ban on Leopard Server</title>
		<link>http://thefragens.com/blog/2009/09/fail2ban-on-leopard-server/</link>
		<comments>http://thefragens.com/blog/2009/09/fail2ban-on-leopard-server/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 23:52:25 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[osx-server]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=630</guid>
		<description><![CDATA[So here I am running my own server &#8212; for almost 2 years now. It&#8217;s been a real learning experience and I&#8217;ve tried to share. My latest add-on has been fail2ban. I got tired of looking into my logs and &#8230; <a href="http://thefragens.com/blog/2009/09/fail2ban-on-leopard-server/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://thefragens.com/blog/2008/06/forwarding-email-in-leopard-server-part-2/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server, part 2'>Forwarding Email in Leopard Server, part 2</a> <small>I&#8217;ve previously written about problems with Leopard server and forwarding...</small></li>
<li><a href='http://thefragens.com/blog/2010/05/server-side-email-filtering-with-sieve/' rel='bookmark' title='Permanent Link: Server-Side Email Filtering with Sieve'>Server-Side Email Filtering with Sieve</a> <small>Another post for the peripheral brain. When I first set...</small></li>
<li><a href='http://thefragens.com/blog/2010/08/snow-leopard-sieve-rules/' rel='bookmark' title='Permanent Link: Snow Leopard Sieve Rules'>Snow Leopard Sieve Rules</a> <small>How to edit sieve rules in Snow Leopard by hand....</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>So here I am running my own server &#8212; for almost 2 years now. It&#8217;s been a real learning experience and I&#8217;ve tried to share. My latest add-on has been <a href="http://www.fail2ban.org/wiki/index.php/Main_Page">fail2ban</a>. I got tired of looking into my logs and seeing where script kiddies or bots were trying to take control of my server. Fortunately, none have.</p>

<p>After a bit of googling, I found fail2ban. It&#8217;s a collection of python scripts.</p>

<blockquote>
  <p>Fail2ban scans log files like /var/log/pwdfail or /var/log/apache/error_log and bans IP that makes too many password failures. It updates firewall rules to reject the IP address.</p>
</blockquote>

<p>There are a few tricks I&#8217;ve discovered along the way to make it work on my installation and likely on Mac OS X Server in general.</p>

<p>First is that fail2ban creates a PID and socket file in a directory that it fails to create. Yeah, that&#8217;s a <a href="https://sourceforge.net/tracker/?func=detail&amp;aid=2013282&amp;group_id=121032&amp;atid=689044">bug</a>. Since I didn&#8217;t want to mess around with the actual scripts in the program, I created a plist that issues the <code>mkdir /var/run/fail2ban</code> command. I placed this in /System/Library/LaunchDaemons and set it to Run at Load. <a href="https://sourceforge.net/projects/lingon/files/">Lingon</a> is your friend, but&#8217;s now inactive. <img src='http://thefragens.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>

<p>After creating the file you have to use the command line to move it to the /System/Library/LaunchDaemons directory. I also created another launchd plist to reload fail2ban every day. I did this because I run multiple virtual websites and the error logs for those sites get rotated and the names have some time code or something tacked on the end of the filename.</p>

<p>OK, problem 1 solved. Next I discovered that since fail2ban is really running on a multitude of linux boxes all the different methods of IP tracking, sorting etc. were really useless on my OS X Server. I run ipfw firewall and fortunately there&#8217;s a module for that in fail2ban. Unfortunately it&#8217;s not quite set up correctly, at least it wasn&#8217;t for me. I had to tweak it a bit.</p>

<p>What this means is that your <code>action</code> is always going to be <code>ipfw</code>. I tweaked the <code>ipfw.conf</code> file a bit. Now it does the following.</p>

<ol>
<li>Logs it&#8217;s action to ipfw.log</li>
<li>Adds a rulenum to the ipfw command. I did this because some other rule in my setup was allowing the IP before my deny could take effect. By lowering the rulenum my deny now fires off first.</li>
<li>Abstracted the protocol (tcp, udp) to pass as a variable. Just in case something you want to block isn&#8217;t <code>tcp</code>.</li>
</ol>

<p>I also created another filter as I found many times some machine would excessively hit my Apache server looking for nonexistent files. Since it sounds like something a bot would do I decided to ban it. This was the simple creation of a new filter.</p>

<p>I created a <code>jail.local</code> file to hold all my prefs and through trial and error discovered that the examples of how to <code>call</code> for a jail weren&#8217;t working for me. Perhaps I just didn&#8217;t understand the examples. I soon discovered that parameters for the <code>jail action</code> needed to be passed inside of square brackets in the prefs.</p>

<p>I&#8217;m sure, if you&#8217;ve gotten this far that you&#8217;re either very confused by this whole post or that you&#8217;ve had an epiphany. To further the epiphany along <a href="http://thefragens.com/pub/fail2ban-osx.zip">I&#8217;ve uploaded my file changes</a>.</p>

<p>You should be able to figure out what file goes where from the folder structure of the upload.</p>

<p>A couple of things in summary to remember. First, turn on your server&#8217;s firewall. Then make sure you change your server&#8217;s local IP address in the files to match your own. That&#8217;s the setting for <code>localhost</code>.</p>

<p>Good luck. If you have any questions leave a comment.</p>


<p>Related posts:<ol><li><a href='http://thefragens.com/blog/2008/06/forwarding-email-in-leopard-server-part-2/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server, part 2'>Forwarding Email in Leopard Server, part 2</a> <small>I&#8217;ve previously written about problems with Leopard server and forwarding...</small></li>
<li><a href='http://thefragens.com/blog/2010/05/server-side-email-filtering-with-sieve/' rel='bookmark' title='Permanent Link: Server-Side Email Filtering with Sieve'>Server-Side Email Filtering with Sieve</a> <small>Another post for the peripheral brain. When I first set...</small></li>
<li><a href='http://thefragens.com/blog/2010/08/snow-leopard-sieve-rules/' rel='bookmark' title='Permanent Link: Snow Leopard Sieve Rules'>Snow Leopard Sieve Rules</a> <small>How to edit sieve rules in Snow Leopard by hand....</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2009/09/fail2ban-on-leopard-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amavisd settings</title>
		<link>http://thefragens.com/blog/2009/03/amavisd-settings/</link>
		<comments>http://thefragens.com/blog/2009/03/amavisd-settings/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 17:03:40 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[osx-server]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=613</guid>
		<description><![CDATA[I run my own mail server on OS X Server. For the most part I have my SpamAssassin settings tweaked pretty well. Unfortunately, there is some spam that seems to have malformed or incomplete MIME boundaries and these messages don&#8217;t &#8230; <a href="http://thefragens.com/blog/2009/03/amavisd-settings/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://thefragens.com/blog/2010/05/false-positive/' rel='bookmark' title='Permanent Link: False Positive'>False Positive</a> <small>Just a personal reminder to keep in the memory bank....</small></li>
<li><a href='http://thefragens.com/blog/2008/03/unforeseen-circumstances/' rel='bookmark' title='Permanent Link: Unforeseen Circumstances'>Unforeseen Circumstances</a> <small>Due to unforeseen circumstances I accidentally trashed my server installation....</small></li>
<li><a href='http://thefragens.com/blog/2008/06/forwarding-email-in-leopard-server-part-2/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server, part 2'>Forwarding Email in Leopard Server, part 2</a> <small>I&#8217;ve previously written about problems with Leopard server and forwarding...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I run my own mail server on OS X Server. For the most part I have my <a href="http://spamassassin.apache.org/">SpamAssassin</a> settings tweaked pretty well. Unfortunately, there is some spam that seems to have malformed or incomplete MIME boundaries and these messages don&#8217;t seem to be getting passed off from Amavisd to SpamAssassin. As such, they seem to be getting through to the recipient with a null value for the spam score.</p>

<p>After a little Googling I found <a href="http://www200.pair.com/mecham/spam/amavisd-settings.html">Amavisd critical settings</a> and I think the <code>$final_bad_header_destiny</code> is the key. The default setting is set to <code>D_PASS</code>. I&#8217;ve changed mine to <code>D_REJECT</code> now I&#8217;ll see what the logs say and see how much non-spam gets caught. Obviously, if enough good stuff doesn&#8217;t get through then I&#8217;ll have to think of something else.</p>

<p>But the obvoious question remains, <em>Why doesn&#8217;t SpamAssassin score these messages?</em></p>


<p>Related posts:<ol><li><a href='http://thefragens.com/blog/2010/05/false-positive/' rel='bookmark' title='Permanent Link: False Positive'>False Positive</a> <small>Just a personal reminder to keep in the memory bank....</small></li>
<li><a href='http://thefragens.com/blog/2008/03/unforeseen-circumstances/' rel='bookmark' title='Permanent Link: Unforeseen Circumstances'>Unforeseen Circumstances</a> <small>Due to unforeseen circumstances I accidentally trashed my server installation....</small></li>
<li><a href='http://thefragens.com/blog/2008/06/forwarding-email-in-leopard-server-part-2/' rel='bookmark' title='Permanent Link: Forwarding Email in Leopard Server, part 2'>Forwarding Email in Leopard Server, part 2</a> <small>I&#8217;ve previously written about problems with Leopard server and forwarding...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2009/03/amavisd-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subscribing to Delegated Calendars</title>
		<link>http://thefragens.com/blog/2008/12/subscribing-to-delegated-calendars/</link>
		<comments>http://thefragens.com/blog/2008/12/subscribing-to-delegated-calendars/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 21:45:25 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[mac-osx]]></category>
		<category><![CDATA[osx-server]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=583</guid>
		<description><![CDATA[OK, I&#8217;m fortunate or crazy enough to run my own server using Apple&#8217;s OS X Leopard Server software. It has been, at times, very simple and very complex to set everything up. One of the options that I use is &#8230; <a href="http://thefragens.com/blog/2008/12/subscribing-to-delegated-calendars/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://thefragens.com/blog/2010/05/server-side-email-filtering-with-sieve/' rel='bookmark' title='Permanent Link: Server-Side Email Filtering with Sieve'>Server-Side Email Filtering with Sieve</a> <small>Another post for the peripheral brain. When I first set...</small></li>
<li><a href='http://thefragens.com/blog/2007/12/leopard-server-dhcp-nat/' rel='bookmark' title='Permanent Link: Leopard Server DHCP-NAT'>Leopard Server DHCP-NAT</a> <small>Well, I&#8217;m finally getting most of the initial stuff for...</small></li>
<li><a href='http://thefragens.com/blog/2008/12/ical-exchange-time-zone-fix-chapter-3/' rel='bookmark' title='Permanent Link: iCal - Exchange Time Zone Fix - Chapter 3'>iCal - Exchange Time Zone Fix - Chapter 3</a> <small>I&#8217;ve updated the iCal-Invite-Fix script again. This time to allow...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>OK, I&#8217;m fortunate or crazy enough to run my own server using Apple&#8217;s OS X Leopard Server software. It has been, at times, very simple and very complex to set everything up. One of the options that I use is the iCal Server so that I can have shared calendars. Once I got it up and running with all the permissions worked out it&#8217;s been terrific. By terrific I mean that I haven&#8217;t had to do a single thing to keep it up and running.</p>

<p>Here&#8217;s the problem. My wife and I both have iPhone&#8217;s. I&#8217;d like to see one of her calendar&#8217;s on my iPhone and I want here to see one of mine on her iPhone. On our respective computers these calendars show up in iCal as <em>Delegates</em>. That&#8217;s how there&#8217;re suppose to show up. The problem is that only local calendars and subscribed calendars are listed in iTunes for syncing to the iPhone.</p>

<p>After a bit of googling, the <a href="http://discussions.apple.com/message.jspa?messageID=6690635#6690635">answer appeared in the Apple Discussions Board</a>. If I do a get info on the <em>Delegate</em> calendar and copy the CalDAV URL I can then subscribe to this URL, the calendar will show up in my <em>Subscriptions</em> list. I can then sync it to the iPhone. It is perhaps the simplest workaround that I&#8217;ve found. Your user must log out and log back in for iTunes to see the newly subscribed calendar.</p>

<p>However, it&#8217;s still a <a href="http://en.wikipedia.org/wiki/Kludge">kludge</a> and I await the day Apple fixes iTunes to allow for syncing any viewable calendar iCal to your iPhone.</p>


<p>Related posts:<ol><li><a href='http://thefragens.com/blog/2010/05/server-side-email-filtering-with-sieve/' rel='bookmark' title='Permanent Link: Server-Side Email Filtering with Sieve'>Server-Side Email Filtering with Sieve</a> <small>Another post for the peripheral brain. When I first set...</small></li>
<li><a href='http://thefragens.com/blog/2007/12/leopard-server-dhcp-nat/' rel='bookmark' title='Permanent Link: Leopard Server DHCP-NAT'>Leopard Server DHCP-NAT</a> <small>Well, I&#8217;m finally getting most of the initial stuff for...</small></li>
<li><a href='http://thefragens.com/blog/2008/12/ical-exchange-time-zone-fix-chapter-3/' rel='bookmark' title='Permanent Link: iCal - Exchange Time Zone Fix - Chapter 3'>iCal - Exchange Time Zone Fix - Chapter 3</a> <small>I&#8217;ve updated the iCal-Invite-Fix script again. This time to allow...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/12/subscribing-to-delegated-calendars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
