I'm going on holiday tomorrow. (Pauses to whoop gleefully.) This means setting up a holiday auto-responder on my email. Yeah, I know you folks all have your exchange-enabled outlook auto-responder wizard to do this, or your webmail can set it up with a few clicks.
But for us old-fashioned types the thing to use is the vacation program. Originally developed by the near-mythical Eric Allman it's now being developed by Chris Samuel and Brian May. (Of Queen fame? Maybe, maybe not.) Download the source from Chris's site:
http://www.csamuel.org/software/vacation
if your flavour of linux doesn't provide it. (Hint: before it would compile, I had to "yum install gdbm-devel". Your mileage may vary.)
Create a file in proper email format in your home directory, and call it .vacation.msg:
From: you@yourdomain.co.uk (Your Full Name)Subject: I am on holidayThanks for your email. Unfortunately, I am currently onholiday and so will probably not see (or reply to) youremail until the 18th of October 2010. I will, however,reply to you then (if your email needs a response).Apologies for any inconvenience this may cause.Kind regards,Donald I.
Then edit your .forward file. I have a small complication here -- my .forward file is already used in my setup to send my mail to dovecot's "deliver" program (I have a postfix/dovecot/Maildir IMAP mail setup).
Normally, if you have a blank .forward file, you can just run "vacation" with no args and it will automagically create your .forward file for you. It will look like this:
\username, "|/usr/bin/vacation username"
However, my .forward file has to look like this:
| "/usr/libexec/dovecot/deliver", "|/usr/bin/vacation donald_i"
This means the mail is sent to both deliver AND vacation. Good eh? Vacation has various other switches -- read the manpage, it's lucid and very helpful. When you're ready, running
vacation -I
from your shell will kick everything off.
Have a nice break -- and remember to edit your .forward again when you get back!
Comments
Post a Comment