webmail 邮件发送失败

webmail 认证失败
leorain, 技术06-08 12:31
webmail-k9lcu

webmail 邮件发送失败

使用roundcubemail 的 webmail的时候,发送邮件,提示认证失败

webmail服务器报错日志如下

[17-May-2021 11:00:07 +0800]: PHP Error: STARTTLS failed (POST /?_task=mail&_unlock=loading1621220406979&_framed=1&_lang=en&_action=send)
[17-May-2021 11:00:07 +0800]: PHP Error: Invalid response code received from server (POST /?_task=mail&_unlock=loading1621220406979&_framed=1&_lang=en&_action=send)
[17-May-2021 11:00:07 +0800]: SMTP Error: Authentication failure: STARTTLS failed (Code: ) in /data/wwwroot/roundcube.xxxx.com/program/lib/Roundcube/rcube.php on line 1702 (POST /?_task=mail&_unlock=loading1621220406979&_framed=1&_lang=en&_action=send)

  • 首先验证对应有向的 mail.xxx.com 证书是否有问题

    直接打开浏览器 访问 https://mail.xxxx.com 发现证书过期

    更新证书、重启nginx、验证证书

  • 更新证书后发送,仍然报认证失败

    • 重启webmail服务器的nginx,不行

    • 以为是webmail配置有问题,修改

    $config['smtp_conn_options'] = array(
            'ssl' => array(
                    'verify_peer' => false,
                    'verify_peer_name' => false,
            ),
    );

    仍然报错

这一步想到了,这个 认证失败 其实不是webmail提示的,是 mail.xxxx.com 提示的。重启mail服务器的 postfix 和 dovcot

sudo service postfix restart 
sudo service dovcot restart

解决

原创文章,转载请注明出处~ 以上就是本文的全部内容啦,有什么疑问欢迎在下方评论区留言嗷,收到通知会及时回复~
文章浏览总量:641 (非即时 )
跳转到顶部