[Exim] Logging TLS info in received header

Top Page
Delete this message
Reply to this message
Author: Andreas Metzler
Date:  
To: exim-users
Subject: [Exim] Logging TLS info in received header
Hello,
I'd like to provide a received_header_text configuration directive
that works both for binaries compiled with and without TLS support and
that does log whether TLS was used.

Using
         ${if def:tls_cipher {\n\t(Cipher ${tls_cipher}) }}\
         ${if def:tls_peerdn {(PeerDN ${tls_peerdn}) }}\
doesn't work with non-TLS binaries:
----------------
/usr/sbin/exim -be '${if def:tls_cipher {\n\t(Cipher ${tls_cipher}) }}'
Failed: unknown variable "tls_cipher" after "def:"
----------------


Keeping received_header_text unset would solve my problem but I don't
want to use the default.

My internet provider's mailserver (CommuniGate Pro SMTP) keeps at
least part of the info (TLS=yes) in received protocol, I do not know
whether this is allowed.

Received: from [11.22.33.44] (HELO some.host.name)
by domain.at (CommuniGate Pro SMTP 3.5.9)
with ESMTP-TLS id 44489113 for email@???; Sun, 16 Mar 2003 12:36:15 +0100

           cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurl fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"