Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How do I remove the No mail. notification on Ubuntu 10.10 Server?
This occurs when I log in, and is located underneath the message of the day

I have a separate script which uses a different messaging system than the default one

share|improve this question
2  
Yes, send yourself a mail and you'll see 'You have new mail.' instead :D Seriously though, why don't you want to be notified of the new mail upon logging in to a system? It might be well important. –  alex Mar 3 '11 at 20:24

1 Answer 1

That message is coming from the pam_mail module. Look in /etc/pam.d/* for calls to pam_mail. Replace standard or empty by quiet if you want to suppress No mail but keep the notification when there is mail. Replace by nopen to suppress the notification altogether.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.