elementary / switchboard-plug-onlineaccounts

Switchboard Online Accounts Plug
GNU General Public License v3.0
23 stars 16 forks source link

Verification Failed When Adding IMAP Account for Self-Hosted E-mail Server #276

Open JakeMBauer opened 12 months ago

JakeMBauer commented 12 months ago

What Happened?

When trying to add an email account to Online Accounts for use with the Mail application, I get the following error:

Could not save the email account IMAP verification failed: Could not log in. Please verify your credentials.

I have confirmed that both the credentials and server information I entered are correct, and have tried it several times just to be sure, but without success. However, trying the same information/configuration in both Thunderbird and Mutt does work.

This is the configuration I used:

Screenshot from 2023-11-01 16 57 15

This is the error I get:

Screenshot from 2023-11-01 16 58 03

And these are the relevant log entries emitted by Dovecot on my e-mail server:

1698854271

It appears as if Online Accounts is connecting and then immediately disconnecting, even though it looks like it successfully authenticated. When logging in with Thunderbird, there are only the lines containing imap-login (with corresponding log lines containing Disconnected: Logged out when I close Thunderbird).

Just in case it is relevant, my email server is running Dovecot version 2.3.20 (80a5ac675d) on OpenBSD 7.4, not Linux.

Steps to Reproduce

  1. Open Online Accounts
  2. Click "Add Account -> IMAP"
  3. Fill in the necessary information
  4. Click "Log In"

Expected Behavior

IMAP account is successfully authenticated and saved.

OS Version

7.x (Horus)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response