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)

link|improve this question
feedback

1 Answer

up vote 5 down vote accepted

Add an entry to /etc/aliases:

nobody: /dev/null

then run newaliases.

link|improve this answer
1  
This answer is the correct one. See also postfix.org/aliases.5.html 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
feedback

Your Answer

 
or
required, but never shown

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