sendmail的relay规则

上公司网站,觉得不对劲,速度慢的很明显,而带宽是没问题的。

putty上去看看, ps -aux查看, 结果sendmail 相关的process多的一塌糊涂,看来被人当成垃圾中转站了。

首先去/var/spool/mail删除邮件rm *,okay。 然后去/var/spool/mqueue,rm *。结果说Argument list too long,不行。应该是垃圾文件数量太多了吧,ls -l | wc -l,结果20000多个。这个是shell的限制, ls rm都收限。还是组合以下用管道,find /var/spool/mqueue -type f -exec rm {} , okay。

还要治标,看来仅为了方便,relay的太宽松了一些。重新vi access,把不相干的域段消失, 然后make access.db。okay了。

0 回复

发表评论

Want to join the discussion?
Feel free to contribute!

发表评论