dovecot IMAP not working on iOS because of Let’s Encrypt certificate problem

So I was having an issue with the mail app in my iPhones not being able to get IMAP email from my dovecot server.
Turned out I needed to change my dovecot config from this:

ssl_key = </etc/dovecot/mail.{{ domain }}.key
ssl_cert = </etc/dovecot/mail.{{ domain }}.crt
ssl_ca = </etc/dovecot/mail.{{ domain }}.chain.pem

to this:

ssl_key = </etc/dovecot/mail.{{ domain }}.key
ssl_cert = </etc/dovecot/mail.{{ domain }}.chain.pem

WARN: Duplicate profile ‘Dovecot IMAP’, using last found

So when running ‘ufw’ I was getting this error: WARN: Duplicate profile ‘Dovecot IMAP’, using last found

The issue was duplicate rules were specified in:

/etc/ufw/applications.d/dovecot-core

And:

/etc/ufw/applications.d/dovecot-imapd

The solution for me was to delete the second file (imapd) as it was covered by the previous file (core).

Configuring Akonadi for Thunderbird Maildir access

I read this and this.

Then I installed the Akonadi console:

root@tact:/home/jj5# apt-get install akonadiconsole

I opened it from K -> Applications -> Development -> Akonadi Management and Debugging Console.

Then in it I selected Agents -> Local Folders.

Then I changed: /home/jj5/.local/share/akonadi_maildir_resource_0 to my ‘important’ Thunderbird ImapMail directory.