Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


(Forgive my poor English and noob unix skills)

share|improve this question
up vote 5 down vote accepted

Add an entry to /etc/aliases:

nobody: /dev/null

then run newaliases.

share|improve this answer
This answer is the correct one. See also for details. – Avery Payne Dec 19 '11 at 21:17
Thanks a lot. Didn't think it's that simple ;) – radex Dec 19 '11 at 21:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.