Linux启动时在sendmail出现make: warning: Clock skew detected.的解决办法

本文介绍了解决Linux系统中因系统时间不准确而导致sendmail配置文件时间异常的问题。通过更新sendmail配置文件的时间戳,确保邮件服务正常运行。


启动Linux操作系统的时候出现:

这表示您在安装 Linux 的时候,系统时间上出现不准确了!导致于你的 sendmail 相关的设定档竟然比目前的时间还要新,它变成了魔鬼终结者,来自未来给你捣乱的。
可以使用touch /etc/mail/*  来解决问题

看,时间超前了!
[root@rac1 ~]# ls -l /etc/mail/*
-rw-r--r-- 1 root root   355 Feb 12  2010 /etc/mail/access
-rw-r----- 1 root root 12288 Sep 12  2014 /etc/mail/access.db
-rw-r--r-- 1 root root     0 Feb 12  2010 /etc/mail/domaintable
-rw-r----- 1 root root 12288 Sep 12  2014 /etc/mail/domaintable.db
-rw-r--r-- 1 root root  5521 Feb 12  2010 /etc/mail/helpfile
-rw-r--r-- 1 root root    64 Feb 12  2010 /etc/mail/local-host-names
-rw-r--r-- 1 root root     0 Feb 12  2010 /etc/mail/mailertable
-rw-r----- 1 root root 12288 Sep 12  2014 /etc/mail/mailertable.db
-rw-r--r-- 1 root root  1048 Feb 12  2010 /etc/mail/Makefile
-rw-r--r-- 1 root root 58294 Feb 12  2010 /etc/mail/sendmail.cf
-rw-r--r-- 1 root root  7205 Feb 12  2010 /etc/mail/sendmail.mc
-r--r--r-- 1 root root 41375 Feb 12  2010 /etc/mail/submit.cf
-rw-r--r-- 1 root root   940 Feb 12  2010 /etc/mail/submit.mc
-rw-r--r-- 1 root root   127 Feb 12  2010 /etc/mail/trusted-users
-rw-r--r-- 1 root root     0 Feb 12  2010 /etc/mail/virtusertable
-rw-r----- 1 root root 12288 Sep 12  2014 /etc/mail/virtusertable.db

[root@rac1 ~]# date
Thu Sep 11 22:48:00 CST 2014

[root@rac1 ~]# touch /etc/mail/*
[root@rac1 ~]# ls -l /etc/mail/*
-rw-r--r-- 1 root root   355 Sep 11 22:50 /etc/mail/access
-rw-r----- 1 root root 12288 Sep 11 22:50 /etc/mail/access.db
-rw-r--r-- 1 root root     0 Sep 11 22:50 /etc/mail/domaintable
-rw-r----- 1 root root 12288 Sep 11 22:50 /etc/mail/domaintable.db
-rw-r--r-- 1 root root  5521 Sep 11 22:50 /etc/mail/helpfile
-rw-r--r-- 1 root root    64 Sep 11 22:50 /etc/mail/local-host-names
-rw-r--r-- 1 root root     0 Sep 11 22:50 /etc/mail/mailertable
-rw-r----- 1 root root 12288 Sep 11 22:50 /etc/mail/mailertable.db
-rw-r--r-- 1 root root  1048 Sep 11 22:50 /etc/mail/Makefile
-rw-r--r-- 1 root root 58294 Sep 11 22:50 /etc/mail/sendmail.cf
-rw-r--r-- 1 root root  7205 Sep 11 22:50 /etc/mail/sendmail.mc
-r--r--r-- 1 root root 41375 Sep 11 22:50 /etc/mail/submit.cf
-rw-r--r-- 1 root root   940 Sep 11 22:50 /etc/mail/submit.mc
-rw-r--r-- 1 root root   127 Sep 11 22:50 /etc/mail/trusted-users
-rw-r--r-- 1 root root     0 Sep 11 22:50 /etc/mail/virtusertable
-rw-r----- 1 root root 12288 Sep 11 22:50 /etc/mail/virtusertable.db

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29047826/viewspace-1268067/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29047826/viewspace-1268067/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值