CentOS 5.x | 发邮件
我注意到有关从 sendmail.mc 推送更改的不一致信息
一些文档建议更改 sendmail.mc 文件需要两个步骤:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf 其他文档表明重建过程已经作为服务重启的一部分完成。
如果需要第 1 步,我可以获得确认吗?
更新:如果我在 init 脚本中 grep for make,输出显示:
[root@foo ~]# grep make /etc/init.d/sendmail
if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
make all -C /etc/mail -s > /dev/null
makemap hash /etc/mail/$i < /etc/mail/$i
if [ -x /usr/bin/make -a -f /etc/mail/Makefile ]; then
make all -C /etc/mail -s > /dev/null
makemap hash /etc/mail/$i < /etc/mail/$i
Run Code Online (Sandbox Code Playgroud)
在 CentOS 中,您可以:
/etc/mail/make
service sendmail restart
Run Code Online (Sandbox Code Playgroud)
您还需要sendmail-cf安装软件包。简单的重新启动不会从 .mc 重建 .cf。
但是(我正在查看 CentOS 6 机器)init 脚本updateconf在启动 sendmail 时调用例程,因此在 6.x 中您只需重新启动。什么是输出
grep make /etc/init.d/sendmail
Run Code Online (Sandbox Code Playgroud)
在你的机器上?
在 Debian 中sendmailconfig,如果需要,在重新启动之前重建 .cf。
| 归档时间: |
|
| 查看次数: |
18747 次 |
| 最近记录: |