Hello,
I’m trying to integrate Mailcow with Nextcloud as seamlessly as possible. A lot of things are already working, including the scripts for generating app passwords in Nextcloud and Mailcow. I’ll be using the Nextcloud Mail app instead of SOGO…
I’m still having a small issue with Thunderbird’s auto-configuration. When searching for available calendars and contact lists (caldav + carddav), Thunderbird tries to log in to /remote.php/dav/ using the email address and fails with the given (imap/smtp) password.
Is it correct that app passwords in Nextcloud are linked only to the user account and not to the email address?
the developer docs explain it: Login Flow — Nextcloud latest Developer Manual latest documentation
now I need to know how to create an app password with occ for the email instead of the uid. seems like occ always creates the app password for the uid.
I’ll look in the database…
it is as I supposed
my workaround is to update the database after creating the app password via occ:
update oc_authtoken set login_name=‘mailaddress’ where uid=‘uid’ and name=‘cli’;