How can I debug what exactly is being sent and where?
The account I'm trying to connect has "two-step" authorization enabled. However, I've checked that IMAP access is enabled and that "less secure" applications are allowed to access my account.
I thought, that if two-step authentication was a problem, I should be seeing a different error message, however, what I see is:
nnimap (gmail) open error: 'NO (AUTHENTICATIONFAILED) Invalid credentials (Failure)'.
I'm absolutely sure that the details I provided in
~/.authinfo.gpg are correct.
(setq gnus-select-method '(nnimap "gmail" (nnimap-address "imap.gmail.com") (nnimap-server-port 993) (nnimap-stream ssl) (nnir-search-engine imap)))
I'm able to connect with same configuration to another GMail account (by changing the details in
auth-sources '("~/.authinfo.gpg")? Did you try with an ordinary .authinfo (without encryption)?
.authinfo.gpgworks fine. If I change the information there so that instead of accessing company's provided account, I access my personal GMail account it works.