[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] How to Forward email to /dev/null
- Subject: Re: [cobalt-users] How to Forward email to /dev/null
- From: Tim Dunn <tdunn@xxxxxxxxxxxxxxxxxxx>
- Date: Wed Jul 17 20:55:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> > > > > Also I would like to trash the messages as
> > > > > soon as it arrives or send it to /dev/null...
> > Original poster wanted to trash the inbound mail, not forward or stash it.
>
> To trash incoming email forward it (in the GUI) to "nobody". The GUI will
> not let you forward to "/dev/null" but the aliases file configures "nobody"
> to forward to "/dev/null". Vacation responses will still be sent even if the
> email is being trashed.
KISS. If you have the following as your .forward:
"|/usr/bin/vacation"
the mail does *not* get stored. Only a reply is sent. The standard
invocation line in .forward is:
\tdunn, "|/usr/bin/vacation"
which *does* store the mail. The leading '\' tells sendmail to not
process the .forward file (no loops, please), and instead, just store
it the specified user's mailspool.
tim
--
Sysadmin Rule #14: If it's not on fire, it's a software issue.