You are not logged in.

#1 2024-01-10 12:05:04

sebastian-65
Member
Registered: 2021-11-08
Posts: 31

[SOLVED] Disabling message: You have new mail in /var/spool/mail

Since I have a quite a lot of mails in there (and for a good reason), I'm seeing this message in terminal quite often and it became distracting.

Is there any way to turn it off without turning off e-mail functionality altogether? Any tips or workarounds appreaciated.

Last edited by sebastian-65 (2024-01-14 18:35:29)


I'm not the sharpest tool in the shed. Say it to me like I'm 5, please!

Arch | ZFS | systemd | XFCE | ASUS S435 | CPU: Intel 11th gen | GPU: Intel Iris Xe Graphics

Offline

#2 2024-01-10 14:32:52

seth
Member
Registered: 2012-09-03
Posts: 51,556

Online

#3 2024-01-12 13:24:34

sebastian-65
Member
Registered: 2021-11-08
Posts: 31

Re: [SOLVED] Disabling message: You have new mail in /var/spool/mail

@seth Thank you for a tip but neither of these settings worked for me:

session    optional     pam_mail.so        noopen
session    optional     pam_mail.so        noenv

Any other clues?


I'm not the sharpest tool in the shed. Say it to me like I'm 5, please!

Arch | ZFS | systemd | XFCE | ASUS S435 | CPU: Intel 11th gen | GPU: Intel Iris Xe Graphics

Offline

#4 2024-01-12 13:39:22

seth
Member
Registered: 2012-09-03
Posts: 51,556

Re: [SOLVED] Disabling message: You have new mail in /var/spool/mail

"nopen", not "noopen"

Online

#5 2024-01-14 10:37:38

sebastian-65
Member
Registered: 2021-11-08
Posts: 31

Re: [SOLVED] Disabling message: You have new mail in /var/spool/mail

Thank you for correction, however the message is still poping up even with nopen option.


I'm not the sharpest tool in the shed. Say it to me like I'm 5, please!

Arch | ZFS | systemd | XFCE | ASUS S435 | CPU: Intel 11th gen | GPU: Intel Iris Xe Graphics

Offline

#6 2024-01-14 13:05:02

seth
Member
Registered: 2012-09-03
Posts: 51,556

Re: [SOLVED] Disabling message: You have new mail in /var/spool/mail

Does it acutally go away if you completely comment the module?
Do you have more pam_mail references in /etc/pam.d?

Online

#7 2024-01-14 18:35:09

sebastian-65
Member
Registered: 2021-11-08
Posts: 31

Re: [SOLVED] Disabling message: You have new mail in /var/spool/mail

I did found out another record in the /etc/pam.d/system-login pam_mail record and modified it. And it seems to work so far!

Thank you for your help, seth. Much appreciated!


I'm not the sharpest tool in the shed. Say it to me like I'm 5, please!

Arch | ZFS | systemd | XFCE | ASUS S435 | CPU: Intel 11th gen | GPU: Intel Iris Xe Graphics

Offline

Board footer

Powered by FluxBB