Add hosts_verify_avoid_tls option to smtp transport.
[exim.git] / src / src / verify.c
index 6e3e6a3afba7ca906fb2bd5e00bc62222e1e7193..eaab14dc97bd2361070d7837fa35bedbd8e744ca 100644 (file)
@@ -601,7 +601,10 @@ else
     #ifdef SUPPORT_TLS
     if (tls_offered &&
        verify_check_this_host(&(ob->hosts_avoid_tls), NULL, host->name,
-         host->address, NULL) != OK)
+         host->address, NULL) != OK &&
+       verify_check_this_host(&(ob->hosts_verify_avoid_tls), NULL, host->name,
+         host->address, NULL) != OK
+       )
       {
       uschar buffer2[4096];
       if (  !smtps