summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--smtp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/smtp.c b/smtp.c
index 818a733..da259ea 100644
--- a/smtp.c
+++ b/smtp.c
@@ -359,6 +359,9 @@ static int authinteract (auth_client_request_t request, char **result, int field
result[i] = identity->user;
else if (request[i].flags & AUTH_PASS && identity->pass)
result[i] = identity->pass;
+ else if (request[i].flags & AUTH_REALM)
+ /* Just supply an empty string for the domain */
+ result[i] = identity->user + strlen(identity->user);
else
return 0;
}