Sorry to revive this old thread, but I’m coming here after finding out that the deprecation is coming Autumn 2024.
It specifically names SMTP:
CalDAV, CardDAV, IMAP, SMTP, and POP will no longer work with legacy passwords (basic authentication).
Has django-gmailapi-backend fixed the out-of-band tokens? Is there another solution that has developed in the past year?