This shows you the differences between two versions of the page.
|
services:scs_email [2010/03/29 10:16] admin |
services:scs_email [2012/09/12 16:06] (current) admin |
||
|---|---|---|---|
| Line 164: | Line 164: | ||
| <code> | <code> | ||
| - | /jdoe | + | \jdoe |
| John Doe <jdoe@hotmail.com> | John Doe <jdoe@hotmail.com> | ||
| </code> | </code> | ||
| Line 179: | Line 179: | ||
| <code>chmod 644 ~/.forward</code> | <code>chmod 644 ~/.forward</code> | ||
| + | |||
| + | ==== Vacation Message ==== | ||
| + | |||
| + | Do you want to send an auto-reply to who-ever is sending you email? Using procmail you can set up an auto-reply with a vacation message of your choosing. It will only send one reply for any particular user ((this is done using a vacation.cache file that stores email addresses that received your vacation message, they won't be emailed a second time)). | ||
| + | |||
| + | Here's how to set it up: | ||
| + | |||
| + | * Create a .vacation message/file (chmod 644 .vacation) | ||
| + | * Create a .procmailrc file (chmod 644 .procmailrc) | ||
| + | |||
| + | The .vacation file is a plain text file that contains the vacation message that will be sent to the sender. | ||
| + | |||
| + | Here is the .procmailrc file (you can cut and paste it) ((Make sure to replace any references to hsimpson with your SCS account name)): | ||
| + | |||
| + | <code> | ||
| + | # Replace hsimpson with your account name | ||
| + | |||
| + | # This is actually two recipies. This is meant to go at the END of your .procmailrc | ||
| + | # so it doesn't trigger on mailing lists that you're filtering above. | ||
| + | |||
| + | # Will add the sender to the vacation cache if not already in the vacation cache | ||
| + | # FROM_DAEMON is a macro for a lot of "system" addresses. see the | ||
| + | # procmailrc man page fordetails | ||
| + | |||
| + | :0 Whc: vacation.lock | ||
| + | * !^FROM_DAEMON | ||
| + | * !^X-Loop: hsimpson@scs.carleton.ca | ||
| + | | formail -rD 8192 vacation.cache | ||
| + | |||
| + | # Only run this rule if the last rule didn't match, meaning it will only mail each | ||
| + | # user once. | ||
| + | |||
| + | :0 ehc # if the name was not in the cache | ||
| + | | (formail -rA"Precedence: junk" \ | ||
| + | -A"X-Loop: hsimpson@scs.carleton.ca" ; \ | ||
| + | cat $HOME/.vacation; \ | ||
| + | echo ""; \ | ||
| + | echo "-- "; cat $HOME/.signature \ | ||
| + | ) | $SENDMAIL -oi -t | ||
| + | </code> | ||
| + | |||
| + | |||
| + | To disable the vacation message rename the .procmailrc file. | ||
| + | |||
| ==== Mail Folders ==== | ==== Mail Folders ==== | ||