Early-pipe: invalidate cache on a failure of required-auth
[exim.git] / src / src / transports / smtp.c
index 5fb22bcd3a2bc9ac253df6dae631b555caa6a333..5656e790333c169ebac073aa713156cadcac6f7c 100644 (file)
@@ -1548,6 +1548,7 @@ if (  sx->esmtp
 
 if (require_auth == OK && !f.smtp_authenticated)
   {
+  invalidate_ehlo_cache_entry(sx);
   set_errno_nohost(sx->addrlist, ERRNO_AUTHFAIL,
     string_sprintf("authentication required but %s", fail_reason), DEFER,
     FALSE, &sx->delivery_start);