The vacation program does not work on my Linux machine. How can I set it up so that it replies automatically to incoming messages while I am absent?
Do the following on your home directory: • Create a file called “vacation.msg” with your vacation message. • Create (or edit if it already exists) a file called “.procmailrc” with the following content (if the file already exists, just add the “vacation” segment). Replace the word “username” with your actual username. PATH=/bin:/usr/bin:/usr/local/bin MAILDIR=$HOME/Mail # you’d better make sure it exists SPOOLDIR=/var/spool/mail DEFAULT=$SPOOLDIR/$LOGNAME NSMAIL=$HOME/nsmail PINEMAIL=$HOME/mail SENDMAIL=/usr/sbin/sendmail LINEBUF=16384 #————- begin vacation segment ——————- SHELL=/bin/sh :0 hc * !^FROM_DAEMON * !^X-Loop: username@math.northwestern.edu | (formail -rA”Precedence: junk” \ -A”X-Loop: username@math.northwestern.edu” ; \ cat $HOME/vacation.msg \ )| $SENDMAIL -oi -t #————- end vacation segment ——————— • If you wish to disable the vacation feature after your return, rename the “.procmail” file, or remove (or comment out) the vacation se
Related Questions
- The vacation program does not work on my Linux machine. How can I set it up so that it replies automatically to incoming messages while I am absent?
- The installation program on Linux/Unix complains about an incorrect user or password on a remote machine. What should I do?
- Is there a way to test if EventTracker is receiving SYSLOG messages from my Linux/Unix machine?