Wednesday, November 29, 2006

Disabling email notifications in Linux

In Fedora, to disable the "sendmail" service,
service sendmail stop

will suffice. But, sometimes, when you open your shell, or at other times, you may get "you have new mail in /root/***". How to deal with this. For bash, you can do the following steps. To confirm that ur shell is bash:

echo $SHELL
will confirm your shell. If the notifications are alive, then
echo $MAILCHECK
would dump some data. Just type
unset MAILCHECK
After this, the previous command should dump nothing. You are thus freed of your burning mail issue. Amen.

No comments: