Author Topic: can't configure roundcube with my mail server  (Read 7593 times)

Offline neibaf69

  • Newbie
  • *
  • Posts: 3
can't configure roundcube with my mail server
« 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 :

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 :
  • 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 !

Offline Dmitry42

  • Full Member
  • ***
  • Posts: 232
Re: can't configure roundcube with my mail server
« Reply #1 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"
« Last Edit: July 29, 2023, 12:41:14 PM by Dmitry42 »

Offline neibaf69

  • Newbie
  • *
  • Posts: 3
Re: can't configure roundcube with my mail server
« Reply #2 on: July 29, 2023, 02:05:10 PM »
I tried, but it doesn't work...

Offline Dmitry42

  • Full Member
  • ***
  • Posts: 232
Re: can't configure roundcube with my mail server
« Reply #3 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';

Offline neibaf69

  • Newbie
  • *
  • Posts: 3
Re: can't configure roundcube with my mail server
« Reply #4 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...

Offline Dmitry42

  • Full Member
  • ***
  • Posts: 232
Re: can't configure roundcube with my mail server
« Reply #5 on: August 01, 2023, 07:02:57 AM »
Are you check conf without SSL/TLS ?
I mean connect to localhost:143 ?