You can also enable Application Passwords in Gmail and use those via classic auth.
Also allow user to enable less secure apps, enable less secure apps as the user, then add the app passwords.
Scott
On Thursday, 21/11/2024 at 08:07 Jan Naumann via dovecot wrote:
On 20.11.24 23:49, Joseph Tam via dovecot wrote:
I just did this for my alpine mail reader, and it's not so simple. It may be simpler to use a mail reader that has XOAUTH2 built in, then connect to both Gmail and your mail account, then drag and drop all your mailboxes.
If you want to do it the hard way, the document for alpine might be useful for a single Gmail account, at least to set up the Gmail end.
https://alpineapp.email/alpine/alpine-info/misc/ xoauth2.html#SettingUpGmail
After that, you have to do some rigamrole to use these IDs to create the credentials you can use for IMAP authentication.
(Applicable only for alpine but show the interaction) https://alpineapp.email/alpine/alpine-info/misc/ AuthorizeAlpineGmail.html
The answer from Aki Tuomi [1] to use the Google OAUTH was already very
helpful for me. It worked out fine for me to copy the Bearer token from there. The use of copy the messages in Thunderbird was my backup option as well.
Good luck. Joseph Tam
Best, Jan
[1] https://dovecot.org/mailman3/archives/list/dovecot@dovecot.org/message/TYAK5...
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org