X-ExOTA-AR with x509_client_trust

This commit is contained in:
Dominik Chilla 2020-12-04 18:01:07 +01:00
parent 2cec47322b
commit 78e82b5157
2 changed files with 8 additions and 3 deletions

View File

@ -157,6 +157,8 @@ services:
MILTER_TRUSTED_AUTHSERVID: 'my-auth-serv-id'
MILTER_X509_ENABLED: 'some_value'
MILTER_X509_TRUSTED_CN: 'mail.protection.outlook.com'
MILTER_ADD_HEADER: 'some_value'
MILTER_AUTHSERVID: 'my-auth-serv-id'
volumes:
- "./data/:/data/:ro"
- "./socket/:/socket/:rw"

View File

@ -284,9 +284,12 @@ class ExOTAMilter(Milter.Base):
)
if g_milter_add_header:
try:
self.addheader("X-ExOTA-Authentication-Results", "{0};\n exota=pass header.d={1} dkim={2}".format(
g_milter_authservid, self.hdr_from_domain, policy.is_dkim_enabled()
))
self.addheader("X-ExOTA-Authentication-Results",
"{0};\n exota=pass header.d={1} dkim={2} x509_client_trust={3}".format(
g_milter_authservid, self.hdr_from_domain, policy.is_dkim_enabled(),
g_milter_x509_enabled
)
)
logging.debug(self.mconn_id + "/" + str(self.getsymval('i')) +
"/EOM: AR-header added"
)