I'm trying to set up mailx on my server. On one server (Raspbian) I am informed of new mail with a message You have new mail (or something similar). On another machine (Raspbmc), I never have this notification.On both machines, ~/.bashrc is essentially identical. /etc/mail.rc doesn't exist on the latter system, but it does on the former, with the following content.set ask askcc append dot save crtignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via Delivered-ToEDITI should also mention that I'm connecting via SSH.As implied here, I tried copying /etc/pam.d/sshd from the working Raspbian server to the broken Raspbmc server, and logging out and back in, but it didn't fix the problem. This file contains# Print the status of the user's mailbox upon successful login.session    optional     pam_mail.so standard noenv # [1]Finally, I've also confirmed that the access time of /var/mail/pi is earlier than the modification time. (The filesystem is mounted with noatime anyway.)
How can I make mailx inform me of new mail?
bash;command line;email