This passcode is inherently limited to the service it bound to (IMAP or POP3), that's the whole point: don't expose your account password to something which only needs a finer-grained access.
Edit: that's incorrect, see replies.
Edit: that's incorrect, see replies.
-- Google, when you make an App Password