Turn off user email

Charles Swiger cswiger at mac.com
Fri Jan 16 14:41:35 PST 2004


On Jan 16, 2004, at 5:32 PM, Grant Peel wrote:
> Other than setting a /var/mail quota to 0 for a user, how does one 
> turn off
> mail for a UNIX user without affecting ftp or shell access?

You can configure the system not to accept mail for that user, 
something like:

To:someuser at domain.com		550 Email to someuser has been disabled

...in /etc/mail/access.  You could set up a redirect alias and point 
mail for them to some other location, or even redirect mail for that 
user to /dev/null-- or via a REJECT or DISCARD entry in the access map.

-- 
-Chuck



More information about the freebsd-questions mailing list