Postfix 中的 SASL 身份验证

Postfix 中的 SASL 身份验证

我在启动 saslauthd 服务时遇到问题。当我尝试启动 saslauthd 时,出现以下错误:

[root@WQCogDev5 sysconfig]$ systemctl status saslauthd
â saslauthd.service - SASL authentication daemon.
   Loaded: loaded (/usr/lib/systemd/system/saslauthd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2018-01-15 18:06:16 IST; 6s ago
  Process: 15621 ExecStart=/usr/sbin/saslauthd -m $SOCKETDIR -a $MECH $FLAGS (code=exited, status=233/RUNTIME_DIRECTORY)
 Main PID: 15621 (code=exited, status=233/RUNTIME_DIRECTORY)

Jan 15 18:06:16 CTSC01024827401 systemd[1]: Started SASL authentication daemon..
Jan 15 18:06:16 CTSC01024827401 systemd[1]: Starting SASL authentication daemon....
Jan 15 18:06:16 CTSC01024827401 systemd[1]: saslauthd.service: main process exited, code=exited, status=233/RUNTIME_DIRECTORY
Jan 15 18:06:16 CTSC01024827401 systemd[1]: Unit saslauthd.service entered failed state.
Jan 15 18:06:16 CTSC01024827401 systemd[1]: saslauthd.service failed.
[root@WQCogDev5 sysconfig]$ /usr/sbin/saslauthd -m $SOCKETDIR -a $MECH $FLAGS
saslauthd[15653] :set_run_path    : -m requires an absolute pathname
[root@WQCogDev5 sysconfig]$ vi saslauthd
[root@WQCogDev5 sysconfig]$ /usr/sbin/saslauthd -m /run/saslauthd -a pam $FLAGS
saslauthd[15698] :main            : could not lock pid lock file: /run/saslauthd/saslauthd.pid.lock
saslauthd[15698] :main            : fcntl: Resource temporarily unavailable
[root@WQCogDev5 sysconfig]$

我想在 Postfix 中实现 sasl 身份验证。您能帮我解决上述错误并使 saslauthd 正常运行吗?

相关内容