RHEL5 sendmail错误:NOQUEUE:SYSERR(nobody):无法写入队列目录/ var / spool / clientmqueue /

在我的RHEL5系统上,安装更新后,sendmail停止工作。 新版本是sendmail-8.13.8-10.el5_11。 我在日志中得到这样的错误:

NOQUEUE: SYSERR(nobody): can not write to queue directory /var/spool/clientmqueue/ 

当我尝试从命令行发送邮件时,就像这样:

 WARNING: RunAsUser for MSP ignored, check group ids (egid=53, want=51) can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=53): Permission denied 

它工作(多年)直到更新。

smmsp用户的UID和GID必须是51/51。 我的系统设置为使用53/53。 为什么,我不知道,傻。

为了解决,我不得不:

  • 在/ etc / passwd&etc / group中更改uid / gid。 删除旧的未使用的“ftp”组51。
  • chgrp smmsp /usr/sbin/sendmail.sendmail
  • chmod g + s /usr/sbin/sendmail.sendmail
  • chgrp smmsp / var / spool / clientmqueue
  • 重新启动sendmail

Redhat也说 (付费墙,对不起),你必须有“mailnull”用户设置为uid / gid 47.这已经是我的情况。 它还警告有重复的uid / gid号码,确保没有其他组或用户51。