智伍应用 發表於 2019-6-4 21:57:04

discuz发不了信的排查点

<strong>问题描述</strong><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot">使用linux系统虚拟主机无法通过mail()函数发送邮件。</font></font></p><strong>问题分析</strong><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot">对于虚机linux系统,目前不支持mail函数。</font></font></p><strong>解决方案</strong><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot">用户可以登录到控制台开启fsockopen函数调用smtp函数发信。第一:开启fsockopen函数</font></font></p><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot">第二:discuz后台设置发送方式。</font></font></p><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot">第三:查看一下/var/spool目录的权限是否是7771)查看是否开启fsockopen函数</font></font></p><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot"><font style="color:rgb(0, 183, 211)"><img id="aimg_A6aO3" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/pic/36516/cn_zh/1468996311622/1.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /></font></font></font></p><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot">2)检查后台是否配置正确</font></font></p><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot">配置发送邮件的认证账号1.1 站长—邮件设置</font></font></p><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot"><font style="color:rgb(0, 183, 211)"><img id="aimg_L79iN" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/pic/36516/cn_zh/1468996325752/2.jpg" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /></font></font></font></p><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot">1.2 发送测试邮件</font></font></p><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot"><font style="color:rgb(0, 183, 211)"><img id="aimg_o38o8" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/pic/36516/cn_zh/1468996349215/3.jpg" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /></font></font></font></p><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot"><font style="color:rgb(0, 183, 211)"><img id="aimg_K2u3q" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/pic/36516/cn_zh/1468996625489/1.jpg" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /></font></font></font></p><p style="line-height:24px;text-indent:nullem;text-align:left"><font style="color:rgb(51, 51, 51)"><font face="PingFangSC, &amp;quot">3)若设置成功,会在收件箱收到一封邮件若无法发送,需要检查服务器上的/var/spool目录的权限是否是777,通常权限不对会造成发信失败</font></font></p><br />null<em>, </em>left<em>, </em>PingFangSC

耗子 發表於 2019-6-7 22:48:46

感谢分享!!!

fx0715 發表於 2019-6-30 18:57:07

@智伍应用——开发一个DZ版黄河粉丝宝啊

墨裔 發表於 2020-7-22 12:43:32

那么老是被腾讯企业邮箱拦截怎么破

xiyy 發表於 2022-5-15 15:32:59

教程很详细
頁: [1]
查看完整版本: discuz发不了信的排查点