by R.I. Pienaar | Mar 14, 2006 | Code
I hate vacation messages but business people tend to want them. They’re easy to do by the user on Exchange but it’s a bit harder on pure IMAP/POP based services since it’s not all integrated into one with the mail client.
Exim can do vacation messages using its Autoreply Transport. It supports all the usual stuff like only notifying a specific sender once every couple of days etc.
To get this going requires two bits of config, first you need a router. Routers in the exim configuration is processed top-down as they appear in the config file, so you’ll want to put the vacation handling above any localuser handling, virtual hosting etc.
A sample router is shown below, it’s for local users and they just have to put a .vacation file in their home directory to activate the functionality, the .vacation file should contain the text they want mailed. You can easily adapt the location of this to be in your virtual mail hierarchy by changing the file locations below:
uservacation:
driver = accept
domains = +local_domains
require_files = $home/.vacation
# do not reply to errors or lists
condition = ${if or { \
{match {$h_precedence:} {(?i)junk|bulk|list}} \
{eq {$sender_address} {}} \
} {no} {yes}}
# do not reply to errors or bounces or lists
senders = ! ^.*-request@.*:\
! ^bounce-.*@.*:\
! ^.*-bounce@.*:\
! ^owner-.*@.*:\
! ^postmaster@.*:\
! ^webmaster@.*:\
! ^listmaster@.*:\
! ^mailer-daemon@.*:\
! ^root@.*
no_expn
transport = uservacation_transport
unseen
no_verify
You’ll notice that it does not autoreply to certain people, the kind of from addresses that mailing lists typically use, it will also ignore bounce messages.
Once you have the router configured you’ll need a transport, this will call the autoreply transport and do the hard work. It will use a Berkley style database in ~/.vacation.db to store the list of people it has contacted in the last 14 days. Users can just delete this file if they want to reset it all.
uservacation_transport:
driver = autoreply
file = $home/.vacation
file_expand
once = $home/.vacation.db
# to use a flat file instead of a db specify once_file_size
#once_file_size = 2K
once_repeat = 14d
from = $local_part@$domain
to = $sender_address
subject = "Re: $h_subject"
That should do it, in a virtual domain setup you could easily integrate this into a web interface that maintains the text files required, there are other features like a standard prefix before each vacation message etc, refer to the Exim Documentation for details on these.
by R.I. Pienaar | Mar 3, 2006 | Usefull Things
Brad, in an unprecedented display of usefulness, has written up a nice little guide about using Truecrypt to protect your files, short and sweet.
I’ve previously blogged about Truecrypt you can read a bit of background on these entries:
On The Fly Encryption (OTFE)
Truecrypt Version 4
by R.I. Pienaar | Feb 27, 2006 | Uncategorized
Over the last few days I’ve come across a couple of really spiffy mac related apps, I just have to share.
If you’re a del.icio.us user you’ve probably wanted better integration between the Mac and del.icio.us, enter Delibar it sits in your menu bar and provides convenient drop down access to your bookmarks.
Some more del.icio.us related goodies, this time to integrate your search results into Spotlight, now I’m not a big Spotlight user but this might just get me to use it. Delimport will suck down all your bookmarks regularly and let you find them using spotlight, it searches tags, descriptions, headings etc.
I’ve previously linked to some Firefox Intel Mac builds, they’ve been lagging a bit and not getting updates but it seems now there will be regularly nightlys for Firefox, you can get them here. They’re fast, looks pretty and are tracking the head so they’re essentially 2.0 betas. So far I’m happy with mine, even my extensions worked which is surprising.
For users on Laptops and older Macs they might be running out of drive space, not a problem on my nice 150Gig SATA disk so I did not try these instructions but if you’re having problems have a look at this blog post that might help. Essentially default OS X installs comes with support for every language known to man (including Klingon!?) it also installs tons of printer drivers, removing these will clear up several Gigs worth.
by R.I. Pienaar | Feb 26, 2006 | Usefull Things
Most people who read this probably know by now I’m a bit of a mapping geek, I’ve been keeping track of my comings and goings since around 2000 using my trusty Magellan GPS 315. A few years back though I had a bit of a set back when years of tracks and waypoints covering 4 continents got lost when my Laptop got stolen and due to some unfortunate choice in application everything I had was useless since Fugawi requires a Dongle and won’t give me a new one.
A lot has changed since and I’ve mostly moved my whole life online to various services like Flickr. It means that my desktop becomes totally portable since no data resides on it and backups can be centralized etc.
There is a gap in the GPS tracks world though a few online services exist like MotionBased.com but with heavy restrictions for free usage.
I’m busy writing a online application that will allow uploading of GPS tracks in the open GPX format for online storing, tracking, graphing and so forth. The idea is to allow for basic storage of tracks and waypoints for the hiker etc but also to cater to runners, cyclists etc who would like to track statistics over time using GPS units.
Key requirement is for the data to be available to blogs and other personal sites, you can store your data on the my system and it will allow you to display it on your own site if you choose, but only for tracks that you actually mark publicly available.
A quick demo of the data it provides, the below is pulled in directly from the database as it stands at the moment, the links to maps and graphs will work. The graphs especially requires some work still.
(If you do not see a table with information above this then please visit this entry directly via a browser, you’ll need to have javascript enabled, it also seems some services like Bloglines strip out the javascript!?)
The above is from a walk that I took along the London South Bank on Saturday. The few data anomalies are due to bad GPS reception etc, I obviously did not walk on water, I’ll look into ways to normalize the data at import time. This demonstrates though that any blogger can import the data using just one line of code into their own blogs ๐
by R.I. Pienaar | Feb 21, 2006 | Front Page
Just a heads-up that I’m moving my feeds to Feedburner to get a better understanding of my readership, it should be seemless if you’re RSS reader impliment the basic HTTP redirects etc. If however you do notice problems please let me know and I’ll try to fix them.
I’ll post more later on about my experiences using Feedburner so far I’m quite pleased as it seems to be answering a question I’ve had for ages, more later.