dovecot-2.0: lda: If destination user isn't found, exit with EX_...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 13 12:48:32 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/69a3dfe6dba3
changeset: 12098:69a3dfe6dba3
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 13 10:48:28 2010 +0100
description:
lda: If destination user isn't found, exit with EX_NOUSER, not EX_TEMPFAIL.

diffstat:

 src/lda/main.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 0003c55ccb75 -r 69a3dfe6dba3 src/lda/main.c
--- a/src/lda/main.c	Wed Sep 08 17:38:49 2010 +0100
+++ b/src/lda/main.c	Mon Sep 13 10:48:28 2010 +0100
@@ -338,10 +338,14 @@
 	service_flags |= MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT;
 	storage_service = mail_storage_service_init(master_service, set_roots,
 						    service_flags);
-	if (mail_storage_service_lookup_next(storage_service, &service_input,
-					     &service_user, &ctx.dest_user,
-					     &errstr) <= 0)
-		i_fatal("%s", errstr);
+	ret = mail_storage_service_lookup_next(storage_service, &service_input,
+					       &service_user, &ctx.dest_user,
+					       &errstr);
+	if (ret <= 0) {
+		if (ret < 0)
+			i_fatal("%s", errstr);
+		return EX_NOUSER;
+	}
 
 #ifdef SIGXFSZ
         lib_signals_ignore(SIGXFSZ, TRUE);


More information about the dovecot-cvs mailing list