I have tried setting up SMTP and IMAP with a variety of settings and am unable to get anything working on my server. I have an SSL certificate on the server and can connect to it through https fine.
When I run round cubes auto configurator and test the configuration at the end, IMAP works and can log in but when I try and log into the account via "mydomain/roundcubemail", it does not work. (Pictures Below)
In configuration IMAP working in configuration
In mydomain/roundcubemail I get this error With the error: IMAP log error: IMAP Error in /usr/share/roundcubemail/program/lib/Roundcube/rcube_imap.php (184): Login failed for john@example.net from 193.61.254.32. AUTHENTICATE PLAIN: Authentication failed.
Furthermore, SMTP is failing to work with a NOT OKAY message. enter image description here
And this is the configuration that I am using
$config['db_dsnw'] = 'mysql://roundcube:MYPASSWORD@localhost/roundcube';
$config['debug_level'] = 5;
$config['sql_debug'] = true;
$config['imap_debug'] = true;
$config['ldap_debug'] = true;
$config['smtp_debug'] = true;
$config['default_host'] = array('localhost:143', 'domain:143', 'ssl://domain:993');
$config['default_port'] = 993;
$config['smtp_server'] = 'ssl://domain';
$config['smtp_port'] = 465;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['support_url'] = 'http://domain';
$config['des_key'] = 'myKey';
$config['username_domain'] = 'domain';
$config['product_name'] = 'Mail | domain';
$config['plugins'] = array();
$config['language'] = 'en_US';
$config['spellcheck_engine'] = 'pspell';
$config['draft_autosave'] = 60;
Any suggestions?