I would like to disable the mailcheck in FreeBSD 9.1. My login shell is BASH, so I have tried to add
/root/.profile, but I still get those messages.
Is there a way to get rid of those messages?
In addition to Dennis' answer, FreeBSD sets the
You can change this in several ways:
That should take care of that message for root logins. If you're logging in as another user, you'll need to add that to the
You will need to check to see if
Note that the startup files are processed as follows (from the Bash Manual) (emphasis mine):
Those messages are probably periodic reports. It's quite common to set
You can delete those e-mails by starting
Disabling the mail check is usually a mistake. If a daemon is configured incorrectly to deliver mail to the local root, you want to know, it might have something important to say and you'll miss those messages if you disable the mailcheck.