Roundcube Community Forum

Release Support => Release Discussion => Topic started by: neibaf69 on July 29, 2023, 11:31:58 AM

Title: can't configure roundcube with my mail server
Post 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 :

My certificate is self-signed, I founded informations on this forum..
My roundcube - on the same server that mail server - config file contains :

Code: [Select]
$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 :

Thank you !
Title: Re: can't configure roundcube with my mail server
Post by: Dmitry42 on July 29, 2023, 12:36:17 PM
Try here "'ssl://localhost:993'" replace "localhost" by hostname/servername/domainname from your SSL certs.
Like: ssl://imap.mydomain.com:993"
Title: Re: can't configure roundcube with my mail server
Post by: neibaf69 on July 29, 2023, 02:05:10 PM
I tried, but it doesn't work...
Title: Re: can't configure roundcube with my mail server
Post by: Dmitry42 on July 29, 2023, 11:07:28 PM
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';
Title: Re: can't configure roundcube with my mail server
Post by: neibaf69 on July 30, 2023, 05:19:48 AM
Thank you for your help.

It doesn't work (I ever tried yesterday, but I tried again this morning).

smtp.log is :
Code: [Select]
[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 :
Code: [Select]
[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...
Title: Re: can't configure roundcube with my mail server
Post by: Dmitry42 on August 01, 2023, 07:02:57 AM
Are you check conf without SSL/TLS ?
I mean connect to localhost:143 ?