You are not logged in.
I would like to disable the mail checking on each login: I am not interested in seeing "No new mail" or else each time I login in a console. In other distributions, there was a specific setting in /etc/login.defs:
MAIL_CHECK_ENAB = no
I do not find this option in the arch /etc/login.defs, nor it is mentioned in man login or man login.defs; trying to set it anyway results in login complianing about badformed configuration file.
I also tried to comment out both MAIL_DIR and QMAIL_DIR, but without success.
Is there an other method to get this result? Thanks in advance for your help.
Mortuus in anima, curam gero cutis
Offline
I have finally solved this issue, after only 4 months (it was my first issue using archlinux). Since the most part of shadow functionality is managed by pam, /etc/login.defs is not used at all. I had to edit /etc/pam.d/login. I had to comment out this line in that file:
# session optional pam_mail.so dir=/var/spool/mail standard
I am very satisfied, I hated those unuseful "No new mail"
Mortuus in anima, curam gero cutis
Offline