Roundcube Community Forum

 

can't configure roundcube with my mail server

Started by neibaf69, July 29, 2023, 11:31:58 AM

Previous topic - Next topic

neibaf69

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 :

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 !

Dmitry42

#1
Try here "'ssl://localhost:993'" replace "localhost" by hostname/servername/domainname from your SSL certs.
Like: ssl://imap.mydomain.com:993"

neibaf69


Dmitry42

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';

neibaf69

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...

Dmitry42

Are you check conf without SSL/TLS ?
I mean connect to localhost:143 ?