Roundcube Community Forum
Release Support => Release Discussion => Topic started by: neibaf69 on July 29, 2023, 11:31:58 AM
-
Hi,
I'm french, and not good in english... I'm sorry for mistakes !
Actually, I'm using my mail server with rainloop webmail, but I want now to use roundcube.
I installed roundcube but I cannot connect to my server or sent a mail, and I don't understand where the problem is.
With thunderbird on my computer, it's ok :
- imap.mydomain.com on port 993 with SSL/TLS and normal password
- smtp.mydomain.com on port 587 with starttls and normal password
My certificate is self-signed, I founded informations on this forum..
My roundcube - on the same server that mail server - config file contains :
$config['imap_host'] = 'ssl://localhost:993';
$config['imap_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
),
);
$config['smtp_host'] = 'tls://localhost:587';
$config['smtp_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,),);
But that's not working :
- SMTP send: NOT OK(STARTTLS failed: 2.0.0 Ready to start TLS (Code: 220))
- IMAP connect: NOT OK(Login failed for postmaster@lesstations.com against localhost from XX.XX.XX.XX. Could not connect to ssl://localhost:993: Unknown reason)
Thank you !
-
Try here "'ssl://localhost:993'" replace "localhost" by hostname/servername/domainname from your SSL certs.
Like: ssl://imap.mydomain.com:993"
-
I tried, but it doesn't work...
-
Enable extended logging:
// Log IMAP conversation to <log_dir>/imap.log or to syslog
$config['imap_debug'] = true;
// Log SMTP conversation to <log_dir>/smtp.log or to syslog
$config['smtp_debug'] = true;
Compare settings for rainloop and roundcube. What imap/smtp settings use rainloop ?
May be you can setup imap without SSL: $config['imap_host'] = 'localhost:143';
-
Thank you for your help.
It doesn't work (I ever tried yesterday, but I tried again this morning).
smtp.log is :
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Connecting to tls://smtp.lesstations.com:587...
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 220 mail.lesstations.com ESMTP Postfix (Debian/GNU)
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Send: EHLO webmail2.lesstations.com
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 250-mail.lesstations.com
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 250-PIPELINING
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 250-SIZE 502400000
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 250-ETRN
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 250-STARTTLS
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 250-ENHANCEDSTATUSCODES
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 250-8BITMIME
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 250-DSN
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 250-SMTPUTF8
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 250 CHUNKING
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Send: STARTTLS
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Recv: 220 2.0.0 Ready to start TLS
[30-Jul-2023 11:13:54 +0200]: <3o295ddr> Send: QUIT
and imap.log is :
[30-Jul-2023 11:12:06 +0200]: <3o295ddr> [200C] Connecting to ssl://imap.lesstations.com:993...
[30-Jul-2023 11:15:39 +0200]: <3o295ddr> [F867] Connecting to ssl://imap.lesstations.com:993...
[30-Jul-2023 11:15:46 +0200]: <3o295ddr> [366C] Connecting to imap.lesstations.com:993...
In Rainloop, I have the same configuration as in thunderbird...
-
Are you check conf without SSL/TLS ?
I mean connect to localhost:143 ?