Message : you have new mail

lokomass

Member
Dec 21, 2022
22
0
6
Hi,
How can I disable this message at ssh login ?
I have a file in /var/mail/root, but I have disable all in notification menu via ihm.
I dont want any file in mail folder anymore or disable this message
Thanks for help
 
Note, this is not a Proxmox VE issue. Anyway you can basically edit the ~/.bashrc or ~/.zshrc file and add `unset MAILCHECK` at the bottom
 
I have tried this, but message is still present :(
I finally havé to remove line with pam_mail string in /etc/pam.d/sshd
 
Last edited: