You have new mail in /var/spool/mail/root 煩不煩你?

來源:互聯網
上載者:User

有時在進入系統的時候經常提示You have new mail in /var/spool/mail/root

你覺得煩人---解決方案:修改系統設定檔/etc/profile,告訴系統不要去檢查郵箱.

具體操作:
命令列輸入:echo "unset MAILCHECK" >> /etc/profile 【把unset MAILCHECK加到檔案/etc/profile 的尾部】然後重新登陸控制台就沒有這個討厭的提示了。

你覺著不煩人---你想把這封信郵件發到自己的郵箱看一下---解決方案:修改/usr/share/logwatch/default.conf/logwatch.conf設定檔

具體操作:

命令列輸入:vim  /usr/share/logwatch/default.conf/logwatch.conf

MailTo更改為想要輸送的郵件人地地址就可以了

收到那一封信,內容分為:
Named(一些不可連結的對象)
pam_unix(一些驗證對象,比如sshd)

sendmail
sendmail - largeboxes(大型郵件spool檔案)
SSHD(sshd的次數,一下描述資訊)
磁碟空間(掛載,空間使用方式)等資訊

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.