> On Fri, 9 Jun 2000, John Aldrich wrote:
> 
> > IS there a way to get Sendmail to forward mail for certain
> > email addresses to /dev/null? I tried telling Sendmail to
> > pipe mail for [EMAIL PROTECTED] to /dev/null in both virtual user
> > table and in /etc/aliases, but when I tried to send myself
> > a test message, Sendmail refused.
> > I'd *like* to have Sendmail accept mail, but promptly dump
> > it to /dev/null (or the equivalent.)
> > Could I make a user "null" with a mailbox symlinked to
> > /dev/null, perhaps?
> >       Thanks...
> >       John

I don't run a Linux mail server however I do run one under FreeBSD using
Sendmail and have had no problems having mail for specific users sent to
/dev/null with an entry in /etc/aliases

username:       /dev/null

run newaliases

any new mail for the user hit the black hole.

The only caution is that you have to remember somehow that the user
account is aliased to /dev/null so you can remove the aliase when the
user no longer on the system. Nothing worse than rmuser and 6 months
later getting a new user with a userid that matches a /etc/aliases entry
:-)

Marcel

Reply via email to