Hello. For DKIM I tried with this:
acl_smtp_dkim = acl_check_dkim
acl_check_dkim:
accept
dkim_status = fail
logwrite = DKIM test failed: $dkim_verify_reason
add_header = X-DKIM-Status: DKIM fail: (address=$sender_address domain=$dkim_cur_signer), signature is bad.
accept
dkim_status = invalid
add_header = X-DKIM-Status: DKIM invalid: $dkim_cur_signer ($dkim_verify_status); $dkim_verify_reason
logwrite = DKIM test passed (address=$sender_address domain=$dkim_cur_signer), but signature is invalid.
accept
dkim_status = pass
logwrite = DKIM test passed
add_header = X-DKIM-Status: DKIM pass: (address=$sender_address domain=$dkim_cur_signer), signature is good.
# And anything else.
accept
But how I can add header If no DKIM sign present?
>Вторник, 18 апреля 2017, 20:01 +07:00 от Jeremy Harris <jgh@???>:
>
>On 18/04/17 12:54, Фадеев Виталий Львович via Exim-users wrote:
>> For our custom scripts we want that exim would add custom headers, for example X-DKIM-Status, X-SPF-Status, X-DMARC-Status with status of checking this.
>> How I can do this?
>
>Either headers_add or add_headers. One in ACL and one in routers.
>--
>Cheers,
> Jeremy
>
>
>--
>## 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/