Message classification: OFFICIAL

Hi all

We need to add disclaimers to out email and also use DKIM to sign our messages. 
Each of these things work individually but if they are both configured on a 
transport then the DKIM check fails because the disclaimer is added after the 
signature has been added. The disclaimers are added using altermime in a 
transport filter (see transport below)

remote_smtp_outbound:
  debug_print = "T: remote_smtp for $local_part@$domain - Disclaimer domain = 
$acl_c_disclaimer"
  headers_add = X-disclaimer-domain: $acl_c_disclaimer
  driver = smtp
  transport_filter = /usr/bin/altermime --verbose --log-syslog --input=- 
--disclaimer=/etc/exim4/local/disclaimers/$acl_c_disclaimer/textdisclaimer 
--disclaimer-b64=/etc/exim4/local/disclaimers/$acl_c_disclaimer/disclaimer.b64 
--disclaimer-html=/etc/exim4/local/disclaimers/$acl_c_disclaimer/htmldisclaimer
  size_addition = -1
  dkim_domain = ${lc:${domain:$h_from:}}
  dkim_selector = x
  dkim_private_key = 
/etc/exim4/local/dkim_keys/$dkim_selector/dkim.$dkim_domain.key
  dkim_canon = relaxed
  dkim_sign_headers = DKIM_HEADERS_BTLS

Is there any way to add the disclaimer before the DKIM signature is generated 
that anyone knows of or a different way of adding disclaimers?

Thanks in advance

Dan Douglas


********************

This e-mail contains information intended for the addressee only.
It may be confidential and may be the subject of legal and/or professional 
privilege. 
If you are not the addressee you are not authorised to disseminate, distribute, 
copy or use this e-mail or any attachment to it.
The content may be personal or contain personal opinions and unless 
specifically stated or followed up in writing, the content cannot be taken to 
form a contract or to be an expression of the County Council's position.
Lancashire County Council reserves the right to monitor all incoming and 
outgoing email.
Lancashire County Council has taken reasonable steps to ensure that outgoing 
communications do not contain malicious software and it is your responsibility 
to carry out any checks on this email before accepting the email and opening 
attachments.
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to