changeset 19952:23e80adaf2ef

pop3-login: XCLIENT / XOIP no longer return -ERR for untrusted IP ranges. The command is simply ignored, similarly to imap-login ID.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Wed, 23 Mar 2016 23:33:49 +0900
parents a3560297529f
children a502d38e7b70
files src/pop3-login/client.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/pop3-login/client.c	Wed Mar 23 09:01:31 2016 +0200
+++ b/src/pop3-login/client.c	Wed Mar 23 23:33:49 2016 +0900
@@ -42,8 +42,8 @@
 	bool args_ok = TRUE;
 
 	if (!client->common.trusted) {
-		client_send_reply(&client->common, POP3_CMD_REPLY_ERROR,
-				  "You are not from trusted IP");
+		client_send_reply(&client->common, POP3_CMD_REPLY_OK,
+				  "You are not from trusted IP - ignoring");
 		return TRUE;
 	}
 	for (tmp = t_strsplit(args, " "); *tmp != NULL; tmp++) {