]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Disabling SMTP authentication in vpopmail users with NO_SMTP flag
authorTaizo Ito <taizo.ito@hde.co.jp>
Wed, 26 Jul 2017 09:34:59 +0000 (18:34 +0900)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 6 Nov 2017 10:56:02 +0000 (12:56 +0200)
src/auth/passdb-vpopmail.c

index 63b667cbeece0bd16ba8adbd9dfdb583116f3b9b..1caaccf48bf485073b6bdd8266ad71a79167b053 100644 (file)
@@ -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;
 }