linux系统下的varspoolmailroot经常提示我有邮件,cat后显示如下,各位高手帮忙解释一下,谢谢!

linux系统下的varspoolmailroot经常提示我有邮件,cat后显示如下,各位高手帮忙解释一下,谢谢!,第1张

修改一下/usr/share/logwatch/default.conf/logwatch.conf配置文件中的邮件信息就不会再收到信了

LogDir = /var/log

TmpDir = /var/cache/logwatch

MailTo = root

MailFrom = Logwatch

Print = No

Range = yesterday

Detail = Low

Service = All

把MailTo中的root设置为空,由于logwatch产生邮件就不会发送了

你写进crontab计划任务就好了,具体 *** 作,百度linux crontab

[root@localhost ~]# cat /etc/crontab

SHELL=/bin/bash

PATH=/sbin:/bin:/usr/sbin:/usr/bin

MAILTO=root

HOME=/

# For details see man 4 crontabs

# Example of job definition:

# .---------------- minute (0 - 59)

# | .------------- hour (0 - 23)

# | | .---------- day of month (1 - 31)

# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...

# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat

# | | | | |

# * * * * * user-name command to be executed


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/8555166.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-18
下一篇 2023-04-18

发表评论

登录后才能评论

评论列表(0条)

保存