1

For some reason I want to be able to send emails to literally nobody.

I mean that if I use mail nobody and send something, I want the email to be immediately discarded. Completely ignored.

How can I do that?

I tried making symlink in /var/mail/nobody pointing to /dev/null, but whenever I send something there I get "Undelivered Mail Returned to Sender".

Is there a better way?

Thanks.

(Forgive my poor English and noob unix skills)

radex
  • 155
  • 1
  • 5

1 Answers1

5

Add an entry to /etc/aliases:

nobody: /dev/null

then run newaliases.

James O'Gorman
  • 5,329
  • 2
  • 24
  • 28