You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

升级Ubuntu 24.04后saslauthd服务无法启动导致SMTP认证失败求助

升级Ubuntu 24.04后saslauthd服务无法启动导致SMTP认证失败求助

各位好,我最近把Ubuntu系统升级到24.04后遇到了个头疼的问题:和Virtualmin一起运行的saslauthd服务始终没法正常启动,直接导致SMTP认证失败——目前我还能正常收邮件,但发邮件时会弹出以下错误:

454 4.7.0 Temporary authentication failure: generic failure

我尝试过用系统服务命令启动saslauthd,结果一直超时失败:

  • 执行systemctl status saslauthd时,显示服务状态为inactive (dead)
  • 运行systemctl start saslauthd后,系统提示:

Job for saslauthd.service failed because a timeout was exceeded. See "systemctl status saslauthd.service" and "journalctl -xeu saslauthd.service" for details.

而且我注意到,启动过程中/var/spool/postfix/var/run/saslauthd目录会生成一些文件,但超时失败后这个目录又会变回空的。

不过我找到了两个临时解决办法:

  1. 直接用命令手动启动saslauthd,执行后认证功能就恢复正常了:
    /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -r -n 5
    
  2. 创建一个软链接后,就能通过systemctl正常启动服务了:
    ln -s /var/spool/postfix/var/run/saslauthd /var/run
    

现在想问问有没有更彻底的解决办法,或者有没有人遇到过类似问题,能帮忙分析下根源在哪里?

备注:内容来源于stack exchange,提问作者Tomasz

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 09:04:32