James Stephens

January 31, 2006

Configuring Vacation Mail With Procmail

Filed under: Unix Scripts — James Stephens @ 2:44 pm

If you use procmail to filter messages, setup vacation email response via your /home/USER/.procmailrc rather than the vacation program.

This is because email responses will not then be sent to senders whose emails are to be filtered, which is desirable because the sender doesn’t get to know that the email address was successful. Spammers use such replies to build databases of live email addresses.

Configure procmail as follows:

  1. Add this to the end of your /home/USER/.procmailrc:

    # Uncomment this line when you go away to send a message
    # you have saved as $HOME/.procmail/vacation.msg
    #INCLUDERC=$HOME/.procmail/rc.vacation

  2. The file $HOME/.procmail/rc.vacation is available “here”. Replace the three occurences of USER@DOMAIN in this file with your email address.

You are now ready. In order to setup a vacation email response each time you go away, do the following:

  1. Edit your vacation message $HOME/.procmail/vacation.msg as appropriate. This file may not contain any variables such as $SUBJECT or $DATE. It should be text only.
  2. Uncomment this line in your $HOME/.procmailrc file:
    #INCLUDERC=$PMDIR/rc.vacation

  3. Remove the file $HOME./vacation.cache if it exists.

3 Comments »

  1. Hi James,
    I’m still having trouble. I definitely only use text and I uncommented, however still no workie workie. Please help???
    Matt

    Comment by Panama Vacation — April 7, 2007 @ 6:39 am

  2. [...] is a good howto for setting up the vacation script using [...]

    Pingback by Under African Skies! » Blog Archive » Vacation script using Procmail — July 9, 2007 @ 2:13 pm

  3. Does this recipe assume that the vacation program is installed? As in it’s hoping to use an existing BSD as the cache database…or does it just create it’s own cache?

    Comment by John Bailo — July 31, 2007 @ 12:27 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress

of StatCounter Code -->