base.m4: Simplify the bare `smtp' router.
[exim-config] / vhost.m4
index 96b7505..41bc715 100644 (file)
--- a/vhost.m4
+++ b/vhost.m4
@@ -40,15 +40,16 @@ m4_define(<:VHOST_USER:>,
 
 SECTION(routers, route)m4_dnl
 ## If we're a front-end for some other domain, or we have special information
-## about the domain, then pass stuff along as instructed.
+## about the domain, then pass stuff along as instructed.  The hack for the
+## `transport' is very nasty; see the commentary for `smtp'.
 virtual_route:
        driver = manualroute
        self = fail
        VHOST
        condition = DOMKV(route, {true}{false})
-       route_data = DOMKV(route)
+       route_data = <;DOMKV(route)
        same_domain_copy_routing = true
-       transport = smtp
+       transport = DOMKV(tls-min-dh-bits, {smtp_dhbits_$value}{smtp})
        no_more
 
 SECTION(routers, virtual)m4_dnl