首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OpenDKIM不会启动:“开放:必须指定milter套接字”

OpenDKIM不会启动:“开放:必须指定milter套接字”
EN

Server Fault用户
提问于 2020-07-21 22:09:08
回答 1查看 4.7K关注 0票数 3

我正在尝试使用postfix、dovecot、amavis和opendkim来安装服务器进行签名。

OpenDKIM不会启动,这是journalctl -xe的输出,在停止并启动opendkim之后:

代码语言:javascript
复制
Jul 21 21:54:17 mail systemd[1]: Starting OpenDKIM DomainKeys Identified Mail (DKIM) Milter...
-- Subject: A start job for unit opendkim.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit opendkim.service has begun execution.
--
-- The job identifier is 54385.
Jul 21 21:54:17 mail opendkim[108677]: opendkim: milter socket must be specified
Jul 21 21:54:17 mail systemd[1]: opendkim.service: Control process exited, code=exited, status=78/CONFIG
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit opendkim.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 78.
Jul 21 21:54:17 mail systemd[1]: opendkim.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit opendkim.service has entered the 'failed' state with result 'exit-code'.

我的OpenDKIM (/etc/opendkim.conf)配置如下所示:

代码语言:javascript
复制
Syslog              yes
LogResults          yes
LogWhy              yes
SyslogSuccess       yes
UMask               002
Canonicalization    relaxed/relaxed

# Only sign, don't verify (Amavis takes care of the verification)
Mode                s

KeyTable            /etc/opendkim/keytable
SigningTable        refile:/etc/opendkim/signingtable

正如您在配置中所看到的,我只希望OpenDKIM签名,而不是验证。

EN

回答 1

Server Fault用户

回答已采纳

发布于 2020-07-22 04:43:19

正如错误所述,您应该指定套接字。强制配置参数可以在opendkim.conf文档中找到:

Socket (string)指定过滤器应该建立的套接字,以接收来自sendmail(8)的连接,以便提供服务。

  • local:path,它在指定的路径上创建UNIX域套接字,或
  • inet:port[@host]inet6:port[@host],它在指定的端口和指定的协议族中创建TCP套接字。

如果不以主机名或IP地址的形式指定新主机,则套接字将侦听所有接口。文字IP地址必须括在方括号内。无论是在配置文件中还是在命令行中,此选项都是强制性的。

票数 4
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1026200

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档