Package: opendkim
Version: 2.11.0~alpha-12
Tags: patch
AFAICS the "ReplaceHeaders" option is not accepted in opendkim.conf.
Result:
:
Apr 13 13:26:09 mailhost.example.com systemd[1]: opendkim.service: Service
RestartSec=100ms expired, scheduling restart.
Apr 13 13:26:09 mailhost.example.com systemd[1]: opendkim.service: Scheduled
restart job, restart counter is at 3.
-- Automatic restarting of the unit opendkim.service has been scheduled, as the
result for
-- Subject: A stop job for unit opendkim.service has finished
-- A stop job for unit opendkim.service has finished.
-- Subject: A start job for unit opendkim.service has begun execution
-- A start job for unit opendkim.service has begun execution.
Apr 13 13:26:09 mailhost.example.com opendkim[1842668]: opendkim:
/etc/opendkim.conf: configuration error at line 33: unrecognized parameter
Apr 13 13:26:09 mailhost.example.com systemd[1]: opendkim.service: Control
process exited, code=exited, status=78/CONFIG
-- An ExecStart= process belonging to unit opendkim.service has exited.
Apr 13 13:26:09 mailhost.example.com systemd[1]: opendkim.service: Failed with
result 'exit-code'.
-- The unit opendkim.service has entered the 'failed' state with result
'exit-code'.
-- Subject: A start job for unit opendkim.service has failed
-- A start job for unit opendkim.service has finished with a failure.
Apr 13 13:26:10 mailhost.example.com systemd[1]: opendkim.service: Service
RestartSec=100ms expired, scheduling restart.
Apr 13 13:26:10 mailhost.example.com systemd[1]: opendkim.service: Scheduled
restart job, restart counter is at 4.
-- Automatic restarting of the unit opendkim.service has been scheduled, as the
result for
-- Subject: A stop job for unit opendkim.service has finished
-- A stop job for unit opendkim.service has finished.
-- Subject: A start job for unit opendkim.service has begun execution
-- A start job for unit opendkim.service has begun execution.
Apr 13 13:26:10 mailhost.example.com opendkim[1842669]: opendkim:
/etc/opendkim.conf: configuration error at line 33: unrecognized parameter
Apr 13 13:26:10 mailhost.example.com systemd[1]: opendkim.service: Control
process exited, code=exited, status=78/CONFIG
-- An ExecStart= process belonging to unit opendkim.service has exited.
Apr 13 13:26:10 mailhost.example.com systemd[1]: opendkim.service: Failed with
result 'exit-code'.
-- The unit opendkim.service has entered the 'failed' state with result
'exit-code'.
:
See https://sourceforge.net/p/opendkim/bugs/257/ for a fix (attached).
This is important. Without this feature opendkim is not usable
together with sendmail, if masquerading is enabled.
--
Dipl.-Ing. Harald Dunkel |
Muehlenbachstr. 3 | keep it simple
52134 Herzogenrath, Germany |
+49 2407 565 105 |
diff -Naur -x opendkim-2.11.0.orig/opendkim/opendkim-config.h opendkim-2.11.0/opendkim/opendkim-config.h
--- opendkim-2.11.0.orig/opendkim/opendkim-config.h 2015-10-06 23:38:20.000000000 -0800
+++ opendkim-2.11.0/opendkim/opendkim-config.h 2017-05-28 14:27:26.544492376 -0800
@@ -147,6 +147,7 @@
{ "RemoveARFrom", CONFIG_TYPE_STRING, FALSE },
{ "RemoveOldSignatures", CONFIG_TYPE_BOOLEAN, FALSE },
#ifdef _FFR_REPLACE_RULES
+ { "ReplaceHeaders", CONFIG_TYPE_STRING, FALSE },
{ "ReplaceRules", CONFIG_TYPE_STRING, FALSE },
#endif /* _FFR_REPLACE_RULES */
{ "ReportAddress", CONFIG_TYPE_STRING, FALSE },