How to get rid of mail message?

Colin Law clanlaw at gmail.com
Fri Feb 25 16:31:15 UTC 2022


On Fri, 25 Feb 2022 at 15:45, Bo Berglund <bo.berglund at gmail.com> wrote:
>
> I have started to see a pop-up message in my terminal with the following text:
>
> You have new mail in /var/mail/<username>
>
> If I look at this (it is actually not an  email, it is just a text file) it
> seems to contain output from an application which is scheduled to run hourly by
> at.

It sounds like they may be cron emailing you (which is the default).
This is what I did to stop that (though I was just following something
I found somewhere so it may not be the best way, or may be out of
date.
Edit /etc/rsyslog.conf and add ,cron.none to these two lines so you have

auth,authpriv.*,cron.none                      /var/log/auth.log
*.*;auth,authpriv.none,cron.none               -/var/log/syslog

Probably best to reboot then, though you could probably just restart rsyslog.

Colin




More information about the ubuntu-users mailing list