小编Pha*_*aoh的帖子

如何在 Debian Testing/Stretch 上为 opendkim 配置套接字

这一切都在 Debian 测试中(= Stretch 截至目前)。
我正在尝试配置opendkim,但它不会使用我想要的套接字。

根据man opendkim.confSocket可以在/etc/opendkim.conf.
我也尝试创建/etc/default/opendkim我在 Jessie 框中看到的文件,但这也不起作用。

因此,我尝试在以下行中输入/etc/opendkim.conf

Socket  inet:39172@localhost
Run Code Online (Sandbox Code Playgroud)

现在,根据/etc/init.d/opendkim,读取此文件:

if [ -f /etc/opendkim.conf ]; then
  CONFIG_SOCKET=`awk '$1 == "Socket" { print $2 }' /etc/opendkim.conf`
fi
Run Code Online (Sandbox Code Playgroud)

对我来说,到目前为止看起来不错。但是下面的代码片段,紧随其后,似乎转储了现在已读取的信息:

# This can be set via Socket option in config file, so it's not required
if [ -n "$SOCKET" -a -z "$CONFIG_SOCKET" ]; then
    DAEMON_OPTS="-p $SOCKET $DAEMON_OPTS"
fi

DAEMON_OPTS="-x /etc/opendkim.conf -u $USER -P $PIDFILE …
Run Code Online (Sandbox Code Playgroud)

debian configuration services init.d

6
推荐指数
2
解决办法
7878
查看次数

标签 统计

configuration ×1

debian ×1

init.d ×1

services ×1