0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Centos7 にてYou have new mail in /var/spool/mail/root を非表示にした

Last updated at Posted at 2020-09-07

環境

Centos7

背景

Centos7 にてYou have new mail in /var/spool/mail/root
という通知がコマンド実行の度に表示されていました。

この通知がうっとおしいので非表示の方法について調べてみます。

解決策

vi /etc/crontab
 
MAILTO=root から MAILTO=“”に変更

その後、再起動後、表示されなくなりました。

参考

以下のサイトを参照しました。ありがとうございます。
https://genchan.net/it/server/9970/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?