auth.m4, base.m4: Client authentication machinery.
[exim-config] / base.m4
diff --git a/base.m4 b/base.m4
index 6c2dc7b..523e475 100644 (file)
--- a/base.m4
+++ b/base.m4
@@ -351,7 +351,10 @@ SECTION(transports)m4_dnl
 ## `domains.conf' file.
 smtp:
        driver = smtp
+       hosts_try_auth = *
        hosts_require_tls = DOMKV(tls-peer-ca, {*}{})
+       hosts_require_auth = \
+               ${if bool {DOMKV(require-auth, {$value}{false})} {*}{}}
        tls_certificate = DOMKV(tls-certificate, {${expand:$value}}fail)
        tls_privatekey = DOMKV(tls-private-key, {${expand:$value}}fail)
        tls_verify_certificates = DOMKV(tls-peer-ca, {${expand:$value}}fail)