From: Taizo Ito Date: Wed, 26 Jul 2017 09:34:59 +0000 (+0900) Subject: auth: Disabling SMTP authentication in vpopmail users with NO_SMTP flag X-Git-Tag: 2.3.0.rc1~567 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea1d2fc0e87e5d2351eb83606516a8ccc5ee22c7;p=thirdparty%2Fdovecot%2Fcore.git auth: Disabling SMTP authentication in vpopmail users with NO_SMTP flag --- diff --git a/src/auth/passdb-vpopmail.c b/src/auth/passdb-vpopmail.c index 63b667cbee..1caaccf48b 100644 --- a/src/auth/passdb-vpopmail.c +++ b/src/auth/passdb-vpopmail.c @@ -50,6 +50,9 @@ static bool vpopmail_is_disabled(struct auth_request *request, if ((vpw->pw_flags & NO_POP) != 0 && strcasecmp(request->service, "POP3") == 0) return TRUE; + if ((vpw->pw_flags & NO_SMTP) != 0 && + strcasecmp(request->service, "SMTP") == 0) + return TRUE; return FALSE; }