diff --git a/etc/alternc/templates/default/opendkim b/etc/alternc/templates/default/opendkim index 690c9030..2e309626 100644 --- a/etc/alternc/templates/default/opendkim +++ b/etc/alternc/templates/default/opendkim @@ -4,7 +4,23 @@ # Command-line options specified here will override the contents of # /etc/opendkim.conf. See opendkim(8) for a complete list of options. #DAEMON_OPTS="" +# Change to /var/spool/postfix/var/run/opendkim to use a Unix socket with +# postfix in a chroot: +#RUNDIR=/var/spool/postfix/var/run/opendkim +RUNDIR=/var/run/opendkim # # Uncomment to specify an alternate socket # Note that setting this will override any Socket value in opendkim.conf +# default: +#SOCKET=local:$RUNDIR/opendkim.sock SOCKET="inet:8891@127.0.0.1" +# listen on all interfaces on port 54321: +#SOCKET=inet:54321 +# listen on loopback on port 12345: +#SOCKET=inet:12345@localhost +# listen on 192.0.2.1 on port 12345: +#SOCKET=inet:12345@192.0.2.1 +USER=opendkim +GROUP=opendkim +PIDFILE=$RUNDIR/$NAME.pid +EXTRAAFTER= diff --git a/jessie/alternc.install b/jessie/alternc.install index bad00b3e..13eb33e3 100644 --- a/jessie/alternc.install +++ b/jessie/alternc.install @@ -598,7 +598,7 @@ grep -q "^localhost\$" /etc/opendkim/TrustedHosts || echo "localhost" >>/etc/ope grep -q "^$PUBLIC_IP\$" /etc/opendkim/TrustedHosts || echo "$PUBLIC_IP" >>/etc/opendkim/TrustedHosts # Add opendkim to service to restart -SERVICES="$SERVICES opendkim" +SERVICES="$SERVICES opendkim bind9" # hook run-parts --arg=before-reload /usr/lib/alternc/install.d @@ -606,7 +606,7 @@ run-parts --arg=before-reload /usr/lib/alternc/install.d ####################################################################### # Reload services # -for service in postfix bind9 apache2 dovecot cron proftpd ; do +for service in postfix apache2 dovecot cron proftpd ; do invoke-rc.d $service force-reload || true done