ARCHIVED: On Unix systems, how do I use the email vacation program?
The vacation program is installed on almost all
Unix computers. You can use this utility to automatically
answer your incoming mail with a message that you are away. If you
have several computing accounts, you need to use vacation
only on the Unix system(s) where you actually read your mail.
Note: Be sure to unsubscribe from any mailing lists, or inform the list owner(s) that you are away. If you do not do this, your vacation program will send its message to all list subscribers, including many who do not care that you are away. Also, the auto-reply function can have the unintended effect of notifying spammers that your email address is a live address.
To use the vacation utility, from the Unix
shell prompt, follow the steps below:
- Using a text editor (e.g., Pico, Emacs, or
vi), create a text file called
.vacation.msg.
- For the first line of the file, enter:
Subject:
Then enter the subject for your automatic response.
- Leave one blank line, and then enter the body of your
message. Here is an example of a
.vacation.msgfile: Subject: Sorry. I'm on vacation. I cannot respond to your message right away because I am on vacation. If this cannot wait until January 4, when I return, please contact Darth Vader ( dvader@empire.gov ) for assistance. Otherwise, I will respond to your message upon my return. I apologize for any inconvenience caused by my absence. - You will need to create a
.forwardfile to direct your mail to the vacation program. To do so, you need to know where.vacation.msgis installed on your mail system. At the command prompt, enter: which vacationThe system should respond with the path to the vacation file. It will look something like this:
/usr/bin/vacation - Now you are ready to create the
.forwardfile. At the command prompt, enter: echo '\username, "|/usr/bin/vacation username"' > ~/.forwardReplace both instances of
usernamewith your user ID, and replace/usr/bin/vacationwith the path the system gave you in response to thewhich vacationcommand.If you already have set a forward for the account on which you are using the vacation message, edit the
\username, forwarded@address, "|/usr/bin/vacation username".forwardfile in a text editor (e.g., Pico, Emacs, or vi), and make it look like the following:Replace
usernamewith your user ID,forwarded@addresswith the email address to which you wish to forward your mail, and/usr/bin/vacationwith the path the system gave you in response to thewhich vacationcommand. - The system will now send your vacation message to anyone sending
you mail, while also keeping a copy of the incoming message in your
Inbox.
- To stop the
vacationprogram from processing your mail, remove the.forwardfile. To do so, at the command prompt, enter: rm /~.forward
For more information on using this program, at the Unix prompt, enter:
man vacationLast modified on November 01, 2008.







