Category Archives: code

chroot’d SFTP on Mac OS X server

So here you are finding that you need to grant someone else SFTP access to your server. There are lots of reasons to do this, in my case it’s because I needed to grant access to someone’s web designer. We … Continue reading

Posted in code, osx-server | Tagged , | 5 Comments

Fail2ban Problems and Solutions

If you use Fail2ban then you are probably aware of the fact that you must add a rule number to the ipfw deny rule for actionban in ipfw.conf. If you don’t add a rule number then there is no way … Continue reading

Posted in code, osx-server | Tagged , , | 1 Comment

Checking Fail2ban regex

I’ve just stumbled across a great command in Fail2ban to check whether or not your filter will actually score a hit from your log file. From the command line. fail2ban-regex /path/to/logfile /etc/fail2ban/filter.d/myfilter.conf regex_to_ignore As an example. fail2ban-regex /var/log/secure.log /etc/fail2ban/filter.d/sshd.conf (myusername|myIPaddress) … Continue reading

Posted in code, osx-server | Tagged , , | Leave a comment

Fail2ban and OS X Server, part deux

As some of you might know I run my own installation of OS X Server. I’ve since updated it to Snow Leopard Server and I think I’ve got most of it running well. As I check my server logs frequently … Continue reading

Posted in code, computer, osx-server | Tagged , , , | 2 Comments

Server-Side Email Filtering with Sieve

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 … Continue reading

Posted in code, mac-osx, osx-server | Tagged , , , , , | Leave a comment

Don’t Send iCal Replies

I came across a great hint in Mac OS X Hints today. It seems that there’s an easy way to interrupt the process of sending an email reply when accepting iCal invites. As I tend to play around with iCal … Continue reading

Posted in AppleScript, code, computer, mac-osx | Tagged , , , | 14 Comments

Fail2ban on Leopard Server

So here I am running my own server — for almost 2 years now. It’s been a real learning experience and I’ve tried to share. My latest add-on has been fail2ban. I got tired of looking into my logs and … Continue reading

Posted in code, osx-server | Tagged , , | 7 Comments

VoodooPad Pro Blogging

Please note that VoodooPad Pro has been renamed to VoodooPad. It’s time to package up all my VoodooPad blogging scripts and assorted web export plugins so that I can Remember what the heck I was thinking. Remember what all these … Continue reading

Posted in code, mac-osx | Tagged , , | 2 Comments

iCal - Exchange Time Zone Fix - Chapter 3

I’ve updated the iCal-Invite-Fix script again. This time to allow for adding multiple Exchange servers to the script so that you should only need a single script. The set-up is slightly more complex. As the image above shows there are … Continue reading

Posted in AppleScript, code, mac-osx | Tagged , , | 6 Comments

Importing Mail Message Attachments into Aperture

So I’ve just gotten my new Unibody MacBook and Aperture. Immediately I find myself wanting for a Quick Look > Add to Aperture just like there is for iPhoto. Unfortunately it’s nowhere to be found. Fortunately Aperture is scriptable. Version … Continue reading

Posted in AppleScript, code, mac-osx | Tagged , , | Leave a comment