I know this is not the answer you are looking for, but...
2006/10/5, Timothy Murphy <tim at birdsnest.maths.tcd.ie>:
> I see there is a sendmail option to re-direct all email to non-existent users
> to a specified user, and I'm thinking of sending all this email to "nobody",
> and then running a cron job to delete all nobody's email.
> [Thinks: Is a user with "nologin" shell allowed to receive email?]
>> But is there any sendmail setting which will directly delete such email,
> or send it to /dev/null?
Postfix (know nothing about sendmail) will allow you to reject
messages to unknown local recipients
# The unknown_local_recipient_reject_code specifies the SMTP server
unknown_local_recipient_reject_code = 550
I hope it helps in some way
--
Andres Jimenez
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!