0f6ec7
diff --git a/imap/httpd.c b/imap/httpd.c
0f6ec7
index 5dcf38dc4..d2fdeb945 100644
0f6ec7
--- a/imap/httpd.c
0f6ec7
+++ b/imap/httpd.c
0f6ec7
@@ -1729,6 +1729,25 @@ static int examine_request(struct transaction_t *txn)
0f6ec7
         txn->auth_chal.scheme = NULL;
0f6ec7
     }
0f6ec7
 
0f6ec7
+    /* Drop auth credentials, if not a backend in a Murder */
0f6ec7
+    else if (!config_mupdate_server || !config_getstring(IMAPOPT_PROXYSERVERS)) {
0f6ec7
+        syslog(LOG_DEBUG, "drop auth creds");
0f6ec7
+
0f6ec7
+        free(httpd_userid);
0f6ec7
+        httpd_userid = NULL;
0f6ec7
+
0f6ec7
+        free(httpd_extrafolder);
0f6ec7
+        httpd_extrafolder = NULL;
0f6ec7
+
0f6ec7
+        free(httpd_extradomain);
0f6ec7
+        httpd_extradomain = NULL;
0f6ec7
+
0f6ec7
+        if (httpd_authstate) {
0f6ec7
+            auth_freestate(httpd_authstate);
0f6ec7
+            httpd_authstate = NULL;
0f6ec7
+        }
0f6ec7
+    }
0f6ec7
+
0f6ec7
     /* Perform proxy authorization, if necessary */
0f6ec7
     else if (saslprops.authid &&
0f6ec7
              (hdr = spool_getheader(txn->req_hdrs, "Authorize-As")) &&