Package: opendkim
Version: 2.11.0~alpha-12

Hey,

Today I wanted to configure opendkim to work with postfix in chroot mode.
For this we need to change the socket path for opendkim.
First I opened /etc/default/opendkim, and there's this handy configuration;

> # Uncomment to specify an alternate socket
>
> # Note that setting this will override any Socket value in opendkim.conf
> # default:
> SOCKET=local:$RUNDIR/opendkim.sock

However this is untrue: indeed a Socket value in opendkim.conf takes
precedence. See these lines in the init.d script:

> if [ -f /etc/opendkim.conf ]; then
>         CONFIG_SOCKET=`awk '$1 == "Socket" { print $2 }'
/etc/opendkim.conf`
> fi
>
> # 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

It's quite clear that if something is in /etc/opendkim.com, we won't use
the SOCKET env variable.

Thanks!

-- 
Julien

Reply via email to