linux – 用户smmsp在auth.log中反复找到

运行一个托管大约10个WordPress网站ubuntu服务器

在我的身份验证日志中找到这个是正常的吗?

Oct 26 08:40:01 andre CRON[4737]: pam_unix(cron:session): session opened for user smmsp by (uid=0)
Oct 26 08:40:01 andre CRON[4737]: pam_unix(cron:session): session closed for user smmsp
Oct 26 09:00:01 andre CRON[6874]: pam_unix(cron:session): session opened for user smmsp by (uid=0)
Oct 26 09:00:01 andre CRON[6874]: pam_unix(cron:session): session closed for user smmsp

我不确定为什么会为这样的sendmail打开和关闭会话.

我看到这是syslog:

Oct 27 08:20:01 andre CRON[7664]: (smmsp) CMD (test -x /etc/init.d/sendmail &&     /usr/share/sendmail/sendmail cron-msp)
Oct 27 08:20:01 andre postfix/pickup[1272]: 1F29212C7FF: uid=107 from=<smmsp>
Oct 27 08:20:01 andre postfix/cleanup[7683]: 1F29212C7FF: message-id=<20141027082001.1F29212C7FF@andre>
Oct 27 08:20:01 andre postfix/qmgr[1274]: 1F29212C7FF: from=<smmsp@server.example.com>,size=676,nrcpt=1 (queue active)
Oct 27 08:20:01 andre postfix/local[7685]: 1F29212C7FF: to=<root@server.example.com>,orig_to=<root>,relay=local,delay=0.02,delays=0.02/0.01/0/0,dsn=2.0.0,status=sent (delivered to maildir)

这是cron.d中的内容

-rw-r--r--  1 root root  544 Feb 28  2014 PHP5
-rw-r--r--  1 root root  102 Apr  2  2012 .placeholder
-rw-r--r--  1 root root 2323 Apr 10  2014 sendmail

还跑这个:

service sendmail status
MSP: is run via cron (20m)
MTA: is not running
QUE: Same as MTA

我不确定这种行为是否正常,或者正在使用什么smmsp.

解决方法

为了将来读者在服务器故障上搜索smmsp的好处:

smmsp

smmsp(SendMail邮件提交程序)用户和组特定于Sendmail程序包,并且不会被Postfix或任何其他邮件传输代理(MTA)使用.

如果尚未为sendmail命令配置特定的非root用户,则smmsp是Sendmail使用的用户.它是作为一种安全措施引入的,因此sendmail中的漏洞无法为开发人员提供对系统的root访问权限.

Sendmail Installation and Operation Guide

The binary for sendmail is located in /usr/sbin. It should be set-group-ID smmsp

另见Sendmail,第4版(O’Reilly)的Add smmsp to /etc/passwd.

检查/删除Sendmail

根据问题中提供的信息,Postfix和Sendmail同时安装(并运行).这可以通过运行来验证,

dpkg -l | grep sendmail

要避免两个MTA之间发生冲突,请删除一个命令列出的Sendmail软件包.

看来很多其他用户认为他们删除了Sendmail,实际上只卸载了sendmail-base和sendmail包,所以他们不得不删除以下包:

aptitude purge sendmail-bin sendmail-cf sendmail-doc

这是来自另一个用户的相关帖子,他们认为他们已从系统中卸载了Sendmail:Postfix/Sendmail: Frequent emails from smmsp to root.

相关文章

在Linux上编写运行C语言程序,经常会遇到程序崩溃、卡死等异...
git使用小结很多人可能和我一样,起初对git是一无所知的。我...
1. 操作系统环境、安装包准备 宿主机:Max OSX 10.10.5 虚拟...
因为业务系统需求,需要对web服务作nginx代理,在不断的尝试...
Linux模块机制浅析 Linux允许用户通过插入模块,实现干预内核...
一、Hadoop HA的Web页面访问 Hadoop开启HA后,会同时存在两个...