andybrr; will that delete the users-mailbox ? i mean i don't want to delete the user but only his/hers mail plus also prevent mail coming in @ that email address.
Most servers with mail enabled will accept all mail and you need to tell the mail server what to do with the mail that can't be delivered. Try forum921 if you are using postfix.
All system users will receive mail, there is no way to stop that. If you were to delete '/var/spool/mail/$user' the file will be recreated when mail is received for the user.
You can try adding "username error:nouser" to your virtusertable *assuming you're using sendmail* which will reject mail to the specified user
An easy solution is to add aliases for the users to the aliases file, redirecting the mail to someone else like postmaster. That will prevent mail going to the mailboxes of these users.
IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.