[KLUG Members] Mail

Bruce Smith members@kalamazoolinux.org
Mon, 05 Jan 2004 13:39:49 -0500


> > Is there a way to disable a users email but leave it an active
> > account on the system?
> > 
> > I don't want to delete the account and I want the user to be
> > able to login to the machine but I want mail sent to this user
> > to be handled as if the user doesn't exist.
> > 
> > I running Redhat 9 with sendmail.

Other ways:

If mail is delivered locally, you can nuke write permissions on the
user's mail queue.  i.e.:   chmod 000 /var/spool/mail/username
and that will cause it to bounce with a permission error.

Or you can add the email address in /etc/mail/virtualtable with a custom
error message, and run "make".  Here is a real entry from my file.  Send
ivan an email if you want to see the bounce message:   :-)

ivan@armintl.com        error:reject User not allowed email.

I think the "error:reject" is required, and the rest is user defined.

 - BS