1

Topic: Roundcube sending quit after negotiate

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
1.4.2
- Deployed with iRedMail Easy or the downloadable installer?
Installer
- Linux/BSD distribution name and version:
Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
Mysql
- Web server (Apache or Nginx):
Nginx
- Manage mail accounts with iRedAdmin-Pro?
No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I am using roundcube, but it is sending quit during SMTP.

[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Connecting to tls://localhost:587...
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 220 szzx.work ESMTP Postfix
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Send: EHLO mail.szzx.work
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 250-szzx.work
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 250-PIPELINING
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 250-SIZE 15728640
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 250-ETRN
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 250-STARTTLS
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 250-ENHANCEDSTATUSCODES
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 250-8BITMIME
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 250-DSN
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 250 SMTPUTF8
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Send: STARTTLS
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Recv: 220 2.0.0 Ready to start TLS
[09-Oct-2021 15:25:31 +0000]: <80jdp0q9> Send: QUIT
Trash below

Here's roundcube config

$config['smtp_server'] = 'tls://localhost';

$config['smtp_conn_options'] = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer' => false,'allow_self_signed' => true,'verify_depth' => 3,'cafile' => '/etc/ssl/certs/iRedMail.crt', ), );
// SMTP username (if required) if you use %u as the username Roundcube                                                          // will use the current username for login
//
$config['smtp_user'] = '%u@%s';

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Roundcube sending quit after negotiate

What's the issue here? Can not send email with Roundcube? Any error on web UI?

3

Re: Roundcube sending quit after negotiate

Cannot send mail from webui, the error from webui is simple: SMTP auth fail.
After playing with the config i managed to fix it.

4

Re: Roundcube sending quit after negotiate

songsammy wrote:

Cannot send mail from webui, the error from webui is simple: SMTP auth fail.
After playing with the config i managed to fix it.

Here's my config,hope it will be helpful for others.

//
$config['smtp_server'] = 'tls://localhost';

$config['smtp_conn_options'] = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false,'allow_self_signed' => true,'verify_depth' => 3,'cafile' => '/etc/ssl/certs/iRedMail.crt', ), );
// SMTP username (if required) if you use %u as the username Roundcube                                                          // will use the current username for login
//
$config['smtp_user'] = '%u';                                                                                                    // SMTP password (if required) if you use %p as the password Roundcube                                                          // will use the current user's password for login               i
$config['smtp_pass'] = '%p';
$config['smtp_debug'] = true;
$config['smtp_auth_type'] = plain;