Ale*_*las 14 linux sendmail ubuntu-12.04
运行托管大约 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
Run Code Online (Sandbox Code Playgroud)
我不确定为什么像这样为 sendmail 打开和关闭会话。
我看到这是系统日志:
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)
Run Code Online (Sandbox Code Playgroud)
这是 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
Run Code Online (Sandbox Code Playgroud)
还跑了这个:
service sendmail status
MSP: is run via cron (20m)
MTA: is not running
QUE: Same as MTA
Run Code Online (Sandbox Code Playgroud)
我不确定这种行为是否正常,或者 smmsp 用于什么。
Ant*_*gan 15
为了将来smmsp
在 Server Fault 上搜索的读者的利益:
的smmsp
(的SendMail消息提交计划)的用户和组是特定于Sendmail的包和不使用后缀-或任何其他邮件传输代理(MTA)。
smmsp
如果您没有为 sendmail 命令配置特定的非 root 用户来运行,则是 Sendmail 使用的默认用户。它是作为一种安全措施引入的,因此 sendmail 中的漏洞无法为利用者提供对系统的 root 访问权限。
sendmail 的二进制文件位于
/usr/sbin
. 它应该是 set-group-IDsmmsp
另请参阅从Sendmail,第 4 版 (O'Reilly)将 smmsp 添加到 /etc/passwd。
从问题中提供的信息来看,Postfix 和 Sendmail 是同时安装(并运行)的。这可以通过运行来验证,
dpkg -l | grep sendmail
Run Code Online (Sandbox Code Playgroud)
为避免两个 MTA 之间发生冲突,请删除上一个命令列出的 Sendmail 程序包。
似乎许多其他认为他们删除了 Sendmail 的用户实际上只是卸载了sendmail-base
和sendmail
软件包,因此他们不得不删除以下软件包:
aptitude purge sendmail-bin sendmail-cf sendmail-doc
Run Code Online (Sandbox Code Playgroud)
这是另一位认为已从系统中卸载 Sendmail 的用户的相关帖子:Postfix/Sendmail:Frequent emails from smmsp to root。
归档时间: |
|
查看次数: |
21934 次 |
最近记录: |