[esd-l] vacation forwarding

Jon Niesen niesenjo at egr.msu.edu
Mon Aug 28 09:47:14 PDT 2006

We use the user's .procmailrc file only instead of the .forward file. In
our setup, we use procmail to call spamassin. we filter all spam mail to
a separate mailbox, and when a user sets up vacation, we simply add
these two lines to their procmailrc file after the spam has been

:0 wc
| /usr/bin/vacation [username]

If you still send the detected spam to the user's default mailbox, you
will need to add some additional logic into procmailrc to check for your


On Mon, Aug 28, 2006 at 08:23:28AM -0700, Scott Taylor wrote:

  Hello all,
  This is a very quiet list, I like that. ;)
  I'm running a Linux mail server, Sendmail with procmail, John Harding's
  wonderful recipes, and Spamassassin.
  When I turn on vacation program through .forward ie:
   '\john, "|/usr/bin/vacation john"'
  the users gets a lot of messages about unable to send to...
   503 No recipients specified
   451 4.4.1 reply: read error from xxx.xxxxxxxx.com.
   554 5.0.0 Service unavailable
  >From looking at some of these I'm guessing they are from trying to send
  the vacation response to spammers, and poorly configured mail servers. 
  I'm swaying more toward the spammers, as there are so many.  Even though
  the users don't receive any of the SPAM, because SpamAssassin takes good
  care of it, it still hits the .forward.
  Is there any thing I can do to stop the .forward from replying to the
  spammers, or use procmail to skip the .forward when SPAM is detected?
  Thanks for any suggestions.
  esd-l mailing list
  esd-l at impsec.org

Jon Niesen

More information about the esd-l mailing list