summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changes/feature_7272-msg-key-not-found1
-rw-r--r--src/leap/mx/check_recipient_access.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changes/feature_7272-msg-key-not-found b/changes/feature_7272-msg-key-not-found
new file mode 100644
index 0000000..2d82df8
--- /dev/null
+++ b/changes/feature_7272-msg-key-not-found
@@ -0,0 +1 @@
+- return a more meaningful msg if user exists but has no key (Closes: #7272)
diff --git a/src/leap/mx/check_recipient_access.py b/src/leap/mx/check_recipient_access.py
index f994e78..070ff0d 100644
--- a/src/leap/mx/check_recipient_access.py
+++ b/src/leap/mx/check_recipient_access.py
@@ -65,7 +65,7 @@ class LEAPPostFixTCPMapAccessServer(postfix.PostfixTCPMapServer):
elif pubkey is None:
self.sendCode(
TCP_MAP_CODE_TEMPORARY_FAILURE,
- postfix.quote("4.7.13 USER ACCOUNT DISABLED"))
+ postfix.quote("4.7.13 NO PUBKEY FOUND"))
else:
self.sendCode(
TCP_MAP_CODE_SUCCESS,