You are not logged in.

#1 2006-01-11 19:42:42

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

How to disable login mail checking?

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

#2 2006-05-24 16:57:06

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: How to disable login mail checking?

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" smile


Mortuus in anima, curam gero cutis

Offline

Board footer

Powered by FluxBB