`
oraclhr123
  • 浏览: 28555 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

mail server sendmail

Go 
阅读更多
sendmail因权限不合理拒绝启动的解决办法 2009-09-23 17:17 今天在RHEL5.3 系统的主机上安装邮件服务器。 通过yum install装好sendmail和sendmail-cf这两个包后启动sendmail遭拒绝。# service sendmail startservice sendmail start Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': World writable directory 451 4.0.0 /etc/mail/sendmail.cf: line 588: fileclass: cannot open '/etc/mail/trusted-users': World writable directory [FAILED] Starting sm-client: /etc/mail/submit.cf: line 545: fileclass: cannot open '/etc/mail/trusted-users': World writable directory [FAILED] 经查实是与sendmail有关的文件权限设置有误,而非警告中提及的两个文件。 解决办法有两种:一为设置合理权限: # chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue 二为放松文件权限检查:替换/etc/mail/sendmail.cf 中第91行 Fw/etc/mail/local-host-names为Fw-o /etc/mail/local-host-names第588行Ft/etc/mail/trusted-users为Ft-o /etc/mail/trusted-users替换/etc/mail/submit.cf中第545行Ft/etc/mail/trusted-users为Ft-o /etc/mail/trusted-users即可顺利启动sendmail按:sendmail真是混帐,配置文件复杂也就算了,权限检查也这么婆妈。估计是早期版本安全问题一大堆给吓出来的毛病。
分享到:
评论

相关推荐

    FreeBSD-MailServer-Sendmail.pdf

    FreeBSD-MailServer-Sendmail.pdf

    mailServer Apache James / sendmail / qmail

    NULL 博文链接:https://lindows.iteye.com/blog/277800

    linux_sendmail配置详解

    ),相当于一个邮局,server端的软件,主要的功能有,接收MUA发来的邮件和把邮件发送给下一个MTA,可以说是一个邮件路由(mail router),server端的软件就属于MTA,现在开源的有sendmail,postfix,qmail等 ...

    PHP实现在windows下配置sendmail并通过mail()函数发送邮件的方法

    本文实例讲述了PHP实现在windows下配置sendmail并通过mail()函数发送邮件的方法。分享给大家供大家参考,具体如下: 1、php mail()函数在windows不能用,需要安装sendmail。 2、从http://glob.com.au/sendmail/ 下载...

    php发送mail

    * $mail = new MySendMail("邮箱", "密码"); * $mail->setServer("邮箱", "密码"); 设置smtp服务器(可以不用) * $mail->setFrom("邮箱"); 设置发件人(可以不用) ... * $mail->sendMail(); 发送

    sendmail设定

    在这个邮件伺服器的架设中,我们首先谈论Mail 与DNS 的重要相关性,然后依序介绍Mail Server 的相关名词,以及Mail Server 的运作基本流程与协定,也会谈到相关的Relay 与邮件认证机制等项目,这些项目对于未来邮件...

    基于Java的mail的邮件收发系统

    在Unix平台下以Sendmail的资格最老,但是由于Unix系统是开发源代码的,所以导致Sendmail有不少代码缺陷和漏洞,如有些代码缺陷可以让攻击者远程地利用红帽子或SlackwareLinux软件的计算机,APP漏洞,即用sendmail...

    action-send-mail:GitHub动作,可将电子邮件发送给多个收件人

    发送邮件Github Action 仅将邮件发送给多个收件人的操作。 一些功能: 纯文本正文 ... 文件附件 用法 - name : Send mail uses : dawidd6/action-send-mail@v3 ... # Required mail server ... # Required mail server pa

    java简单--邮件发送

    MAIL_SERVER=自己邮箱地址的服务器如126的邮箱服务器为:smtp.126.com 第四步骤: 在需要发送邮件的类或者JSP中实现如下操作: 1) 导包 a) import com.jzscce.ccliu.mail.SendMail; 2) 在特定的方法中调用send...

    超好用的 发邮件ocx控件

    .sendMail方法说明: 运行上述代码后,便可发送一封邮件, 第一个参数是 发信邮箱 第二个参数是 收信邮箱 第三个参数是 发信邮箱SMTP服务器地址 第四个参数是 发信邮箱密码 第五个参数是 邮件主题 第六个参数是 邮件...

    PHP mail()函数使用及配置方法

    复制代码 代码如下: [sendmail] smtp_server=smtp.qq.com smtp_port=25 error_logfile=error.log debug_logfile=debug.log auth_username=***@qq.com auth_password=*** force_sender=***@qq.com -ph

    PHP发送邮件类 SMTP

    配置好邮件服务器的相关信息,即可成功...$smtp = new smtp($MailServer,$MailPort,true,$MailId,$MailPw); $smtp->debug = false; //实例化类 $smtp->sendmail($email,$MailId, $Title, $Content, "HTML") //发送邮件

    基于Linux系统下的邮件服务器.doc

    The e-mail server is a mail system based on Postfix/Sendmail. Use the largest number of mail system in enterprise. mail system based on Postfix/Sendmail is in need of a strong technical force to ...

    基于linux系统下的邮件服务器(1).doc

    The e-mail server is a mail system based on Postfix/Sendmail. Use the largest number of mail system in enterprise. mail system based on Postfix/Sendmail is in need of a strong technical force to ...

    免安装Mail插件发送邮件类MailHelper

    md.MailServer = smtp; md.PassWord = MailServerPassWord; md.MessageContent = Body; md.Sign = "技术部"; md.Title = "邮件提醒-"; md.Recipients.Add(email); md.UserName = MailServerUserName; if ...

    mail:用于PHP的邮件

    建立邮件 $mail = new Mail();...$transport->sendMail($mail);通过外部SMTP服务器发送邮件 $transport = new CurlTransport('smtp.example.com');// Zugangsdaten für den SMTP-Server$credentials = new BasicCrede

    authd mail policy server-开源

    authd邮件策略服务器; 该服务器与postfix,sendmail以及任何其他想要链接到libauthd.a的内容进行通信。 该代码已稳定多年,但是文档将我们从“成熟”升级为“ Beta”。 这个项目在2年多以前没有任何变化

    谷搜Linux邮件群发系统.rar

    它不仅继承了Linux操作系统的高性能、高稳定、速度快、无病毒等特点,邮件服务器主要核心采用Linux的SENDMAIL或POSTFIX的SMTP25的端口,也就是相当于自己架设了一个MAIL SERVER,群发不用经过别人的代理服务器发送,...

Global site tag (gtag.js) - Google Analytics