Tony,
I checked Mysql, the user is added and I noticed as well a connection in Mercury-I live screen a connection from Mysql. RC imap log and Mercury imap session log show the same results.
Mercury session
19:37:53.862: --- 7 Feb 2023, 19:37:53.862 ---
19:37:53.864: Accepted connection from '192.168.200.35', port 143, timeout 120 secs.
19:37:53.866: Connection from 192.168.200.35, Tue, 07 Feb 2023 19:37<cr><lf>
19:37:53.870: << * OK mail.xxxxxx.ca IMAP4rev1 Mercury/32 v4.90.299 server ready.<cr><lf>
19:37:53.872: >> A0001 CAPABILITY<cr><lf>
19:37:53.873: << * CAPABILITY IMAP4rev1 STARTTLS AUTH=PLAIN X-MERCURY-1<cr><lf>
19:37:53.874: << A0001 OK CAPABILITY complete.<cr><lf>
19:37:53.875: >> A0002 AUTHENTICATE PLAIN<cr><lf>
19:37:53.876: << +<cr><lf>
19:37:53.878: >> AG1lcmN1cnlAeW9ya3RvbmRpZ2l0YWwuY2EAaGFycmlz<cr><lf>
19:37:53.885: << A0002 OK AUTHENTICATE completed.<cr><lf>
19:37:53.892: >> A0003 LIST "" ""<cr><lf>
19:37:53.893: << * LIST (\Noselect) "/" ""<cr><lf>
19:37:53.893: << A0003 OK LIST completed.<cr><lf>
19:37:53.969: >> A0004 LOGOUT<cr><lf>
19:37:53.977: << * BYE IMAP4rev1 server terminating connection.<cr><lf>
19:37:53.978: << A0004 OK LOGOUT completed.<cr><lf>
19:37:53.982: --- Connection closed at 7 Feb 2023, 19:37:53.982. ---
19:37:53.983:
RC imap
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] Connecting to 192.168.100.31:143...
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: * OK mail.xxxxxxx.ca IMAP4rev1 Mercury/32 v4.90.299 server ready.
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] C: A0001 CAPABILITY
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: * CAPABILITY IMAP4rev1 STARTTLS AUTH=PLAIN X-MERCURY-1
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: A0001 OK CAPABILITY complete.
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] C: A0002 AUTHENTICATE PLAIN
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: +
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] C: ****** [42]
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: A0002 OK AUTHENTICATE completed.
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] C: A0003 LIST "" ""
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: * LIST (\Noselect) "/" ""
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: A0003 OK LIST completed.
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> [3D64] C: A0004 LOGOUT
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> [3D64] S: * BYE IMAP4rev1 server terminating connection.
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> [3D64] S: A0004 OK LOGOUT completed.
RC session log
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> Session destroy: 55qbn8vu6tihcm155noi6u42i2
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> Session regenerate: 55qbn8vu6tihcm155noi6u42i2 -> jctuk09meu5d4de1kq9pa9rfr2
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> Session auth check failed for jctuk09meu5d4de1kq9pa9rfr2; timeslot = 2023-02-07 19:30:00
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> Session authentication failed for jctuk09meu5d4de1kq9pa9rfr2; invalid auth cookie sent; timeslot = 2023-02-07 19:20:00
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> Session destroy: jctuk09meu5d4de1kq9pa9rfr2
I am just wondering about the failed session authentication. And that must be the connection from Mysql as it shows in Mercury-I ive window a 0 sec. connection.
Not sure why/what this is, as other php application with sessions don't show any problems.
So, further digging is required.
Just to make sure, below is my RC config. Maybe you can compare and spot some incorrect settings ?
<?php
$config['db_dsnw'] = 'mysql://xxx:yyyyy@192.168.100.30/roundcube';
$config['default_host'] = '192.168.100.31';
$config['imap_auth_type'] = 'PLAIN';
$config['imap_dual_use_folders'] = true;
$config['smtp_server'] = '192.168.100.31';
$config['smtp_port'] = 25;
$config['smtp_auth_type'] = 'PLAIN';
$config['enable_installer'] = false;
$config['auto_create_user'] = true;
$config['support_url'] = 'https://www.xxxxxxx.ca/care.stm';
$config['des_key'] = 'ZG1OBfvVs1mtT4cpTeYRgTIO';
$config['username_domain'] = '';
$config['product_name'] = 'Webmail';
$config['identities_level'] = 3;
$config['log_file_ext'] = '.log';
$config['log_logins'] = true;
$config['imap_debug'] = true;
$config['session_debug'] = true;
$config['plugins'] = [];
$config['language'] = 'en_US';
$config['junk_mbox'] = 'spam';
$config['sent_mbox'] = 'sent';
$config['trash_mbox'] = 'trash';
$config['htmleditor'] = 2;
$config['draft_autosave'] = 0;
$config['mime_param_folding'] = 0;
Thank you for your patience and suggestions.
Johannes
Tony,
I checked Mysql, the user is added and I noticed as well a connection in Mercury-I live screen a connection from Mysql. RC imap log and Mercury imap session log show the same results.
Mercury session
````
19:37:53.862: --- 7 Feb 2023, 19:37:53.862 ---
19:37:53.864: Accepted connection from '192.168.200.35', port 143, timeout 120 secs.
19:37:53.866: Connection from 192.168.200.35, Tue, 07 Feb 2023 19:37<cr><lf>
19:37:53.870: << * OK mail.xxxxxx.ca IMAP4rev1 Mercury/32 v4.90.299 server ready.<cr><lf>
19:37:53.872: >> A0001 CAPABILITY<cr><lf>
19:37:53.873: << * CAPABILITY IMAP4rev1 STARTTLS AUTH=PLAIN X-MERCURY-1<cr><lf>
19:37:53.874: << A0001 OK CAPABILITY complete.<cr><lf>
19:37:53.875: >> A0002 AUTHENTICATE PLAIN<cr><lf>
19:37:53.876: << +<cr><lf>
19:37:53.878: >> AG1lcmN1cnlAeW9ya3RvbmRpZ2l0YWwuY2EAaGFycmlz<cr><lf>
19:37:53.885: << A0002 OK AUTHENTICATE completed.<cr><lf>
19:37:53.892: >> A0003 LIST "" ""<cr><lf>
19:37:53.893: << * LIST (\Noselect) "/" ""<cr><lf>
19:37:53.893: << A0003 OK LIST completed.<cr><lf>
19:37:53.969: >> A0004 LOGOUT<cr><lf>
19:37:53.977: << * BYE IMAP4rev1 server terminating connection.<cr><lf>
19:37:53.978: << A0004 OK LOGOUT completed.<cr><lf>
19:37:53.982: --- Connection closed at 7 Feb 2023, 19:37:53.982. ---
19:37:53.983:
````
RC imap
````
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] Connecting to 192.168.100.31:143...
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: * OK mail.xxxxxxx.ca IMAP4rev1 Mercury/32 v4.90.299 server ready.
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] C: A0001 CAPABILITY
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: * CAPABILITY IMAP4rev1 STARTTLS AUTH=PLAIN X-MERCURY-1
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: A0001 OK CAPABILITY complete.
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] C: A0002 AUTHENTICATE PLAIN
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: +
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] C: ****** [42]
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: A0002 OK AUTHENTICATE completed.
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] C: A0003 LIST "" ""
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: * LIST (\Noselect) "/" ""
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> [3D64] S: A0003 OK LIST completed.
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> [3D64] C: A0004 LOGOUT
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> [3D64] S: * BYE IMAP4rev1 server terminating connection.
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> [3D64] S: A0004 OK LOGOUT completed.
````
RC session log
````
[07-Feb-2023 19:34:41 -0600]: <55qbn8vu> Session destroy: 55qbn8vu6tihcm155noi6u42i2
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> Session regenerate: 55qbn8vu6tihcm155noi6u42i2 -> jctuk09meu5d4de1kq9pa9rfr2
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> Session auth check failed for jctuk09meu5d4de1kq9pa9rfr2; timeslot = 2023-02-07 19:30:00
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> Session authentication failed for jctuk09meu5d4de1kq9pa9rfr2; invalid auth cookie sent; timeslot = 2023-02-07 19:20:00
[07-Feb-2023 19:34:41 -0600]: <jctuk09m> Session destroy: jctuk09meu5d4de1kq9pa9rfr2
````
I am just wondering about the failed session authentication. And that must be the connection from Mysql as it shows in Mercury-I ive window a 0 sec. connection.
Not sure why/what this is, as other php application with sessions don't show any problems.
So, further digging is required.
Just to make sure, below is my RC config. Maybe you can compare and spot some incorrect settings ?
````
<?php
/* Local configuration for Roundcube Webmail */
// ----------------------------------
// SQL DATABASE
// ----------------------------------
// Database connection string (DSN) for read+write operations
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database
// Currently supported db_providers: mysql, pgsql, sqlite, mssql, sqlsrv, oracle
// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
// Note: for SQLite use absolute path (Linux): 'sqlite:////full/path/to/sqlite.db?mode=0646'
// or (Windows): 'sqlite:///C:/full/path/to/sqlite.db'
// Note: Various drivers support various additional arguments for connection,
// for Mysql: key, cipher, cert, capath, ca, verify_server_cert,
// for Postgres: application_name, sslmode, sslcert, sslkey, sslrootcert, sslcrl, sslcompression, service.
// e.g. 'mysql://roundcube:@localhost/roundcubemail?verify_server_cert=false'
$config['db_dsnw'] = 'mysql://xxx:yyyyy@192.168.100.30/roundcube';
// ----------------------------------
// IMAP
// ----------------------------------
// The IMAP host chosen to perform the log-in.
// Leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
// prefix tls:// to use STARTTLS.
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
// required to match old user data records with the new host.
$config['default_host'] = '192.168.100.31';
// IMAP authentication method (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null).
// Use 'IMAP' to authenticate with IMAP LOGIN command.
// By default the most secure method (from supported) will be selected.
$config['imap_auth_type'] = 'PLAIN';
// Some servers do not support folders with both folders and messages inside
// If your server supports that use true, if it does not, use false.
// By default it will be determined automatically (once per user session).
$config['imap_dual_use_folders'] = true;
// ----------------------------------
// SMTP
// ----------------------------------
// SMTP server host (for sending mails).
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
// prefix tls:// to use STARTTLS.
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
// To specify different SMTP servers for different IMAP hosts provide an array
// of IMAP host (no prefix or port) and SMTP server e.g. ['imap.example.com' => 'smtp.example.net']
$config['smtp_server'] = '192.168.100.31';
// SMTP port. Use 25 for cleartext, 465 for Implicit TLS, or 587 for STARTTLS (default)
$config['smtp_port'] = 25;
// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$config['smtp_auth_type'] = 'PLAIN';
// ----------------------------------
// SYSTEM
// ----------------------------------
// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
// ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
$config['enable_installer'] = false;
// Automatically register user in Roundcube database on successful (IMAP) logon.
// Set to false if only registered users should be allowed to the webmail.
// Note: If disabled you have to create records in Roundcube users table by yourself.
// Note: Roundcube does not manage/create users on a mail server.
$config['auto_create_user'] = true;
// provide an URL where a user can get support for this Roundcube installation
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['support_url'] = 'https://www.xxxxxxx.ca/care.stm';
// This key is used for encrypting purposes, like storing of imap password
// in the session. For historical reasons it's called DES_key, but it's used
// with any configured cipher_method (see below).
// For the default cipher_method a required key length is 24 characters.
$config['des_key'] = 'ZG1OBfvVs1mtT4cpTeYRgTIO';
// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['username_domain'] = '';
// Name your service. This is displayed on the login screen and in the window title
$config['product_name'] = 'Webmail';
// Set identities access level:
// 0 - many identities with possibility to edit all params
// 1 - many identities with possibility to edit all params but not email address
// 2 - one identity with possibility to edit all params
// 3 - one identity with possibility to edit all params but not email address
// 4 - one identity with possibility to edit only signature
$config['identities_level'] = 3;
// Default extension used for log file name
$config['log_file_ext'] = '.log';
// Log successful/failed logins to <log_dir>/userlogins.log or to syslog
$config['log_logins'] = true;
// Log IMAP conversation to <log_dir>/imap.log or to syslog
$config['imap_debug'] = true;
// Log session debug information/authentication errors to <log_dir>/session.log or to syslog
$config['session_debug'] = true;
// ----------------------------------
// PLUGINS
// ----------------------------------
// List of active plugins (in plugins/ directory)
$config['plugins'] = [];
// the default locale setting (leave empty for auto-detection)
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
$config['language'] = 'en_US';
// store spam messages in this mailbox
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$config['junk_mbox'] = 'spam';
// store sent message is this mailbox
// leave blank if sent messages should not be stored
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$config['sent_mbox'] = 'sent';
// move messages to this folder when deleting them
// leave blank if they should be deleted directly
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$config['trash_mbox'] = 'trash';
// compose html formatted messages by default
// 0 - never,
// 1 - always,
// 2 - on reply to HTML message,
// 3 - on forward or reply to HTML message
// 4 - always, except when replying to plain text message
$config['htmleditor'] = 2;
// save compose message every 300 seconds (5min)
$config['draft_autosave'] = 0;
// Encoding of long/non-ascii attachment names:
// 0 - Full RFC 2231 compatible (Thunderbird's default & Roundcube)
// 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (MS Outlook , OE)
// 2 - Full 2047 compatible (depreciated)
$config['mime_param_folding'] = 0;
````
Thank you for your patience and suggestions.
Johannes