Issue with log only IMAP?

Hi,
I was wondering if someone could shed some light on the issue im having. Trying to log only though IMAP as the email server i recently installed the version next cloud 14 cant seem to get it working this is my config.php

    <?php
$CONFIG = array (
 'instanceid' => 'oc5pfx5kjof1',
  'passwordsalt' => 'VO/3mB2FoxOl9pvN1d01/h5kBZ9zb8',
 'secret' => 'BiHT8x3XpkTkdHk2tuGSLOFQnOi5F5fHpQdDZuLeQKV4Xxeg',
 'trusted_domains' => 
 array (
  0 => 'mail.mydomain.com',
 ),
 'datadirectory' => '/usr/share/nginx/nextcloud/data',
 'dbtype' => 'mysql',
'version' => '14.0.2.2',
 'overwrite.cli.url' => 'https://mail.mydomain.com',
'dbname' => 'mail',
 'dbhost' => 'localhost',
 'dbport' => '',
 'dbtableprefix' => 'oc_',
 'dbuser' => 'mailuser',
'dbpassword' => 'mypass',
  'installed' => true,
 'user_backends' => array(
  array(
      'class' => 'OC_User_IMAP',
      'arguments' => array(
        '{mail.mydomain.com:993/imap/ssl}', 'mydomain.com'
       ),
      ),
   ),
 );

I checked the logs but did not see nothing odd

Thank you

I’m a novice at Nextcloud, but my config.php looks a little different:

'user_backends' =>
 array (
   0 =>
   array (
     'class' => 'OC_User_IMAP',
     'arguments' =>
     array (
       0 => '{example.com:993/imap/ssl}',
     ),
   ),
 ),

I don’t know if my setup is “the” correct format, or one of a few possible formats. (It does work, though.)

Thanks that did the trick

Dont want to necro post, but for some odd reason it stop working? for the example.com wouldnt it be mail.mydomain.com or localhost?
edit: i was looking at the logs found this

User backend OC_User_IMAP not found

It should be whatever your mail server is. (It would only be localhost if your mail server is running on the same machine as Nextcloud is.)

From the log message I would guess that either the mail server name is entered wrong, or else the mail server isn’t accessible from the Nextcloud server (firewall issue, etc).

One test would be to open up a command shell on the Nextcloud server and run:

telnet mail.example.com 993

(replacing mail.example.com with your mail server, of course). You should get a connect (although you won’t see anything beyond “Connected to mail.example.com”). If you don’t get a connect, either you have the wrong name for your mail server, or else it’s not reachable over the network from your Nextcloud server.

Thanks for the reply i had to enable the plugins on nextcloud for the external storage and logins. then i had to install apt install php7.0-imap
but i still cannot log in i checked the logs and get failure

had to reboot the server some odd reason