1

Topic: Roundcube SMTP Connection Failed

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: FreeBSD 10.1
- PHP 5.6.4
- Nginx 1.6.2
- Related log if you're reporting an issue:
====

Fresh installation. For testing I've created a test@domain.tld user but cant send mails from roundcube with message "SMTP Error (220): Autentification failed".
This is the log I get:

Jan  9 17:13:55 mx postfix/smtpd[2952]: connect from unknown[192.168.0.2]
Jan  9 17:13:55 mx roundcube: Recv: 220 mx.domain.tld ESMTP Postfix
Jan  9 17:13:55 mx roundcube: Send: EHLO domain.tld
Jan  9 17:13:55 mx roundcube: Recv: 250-mx.domain.tld
Jan  9 17:13:55 mx roundcube: Recv: 250-PIPELINING
Jan  9 17:13:55 mx roundcube: Recv: 250-SIZE 15728640
Jan  9 17:13:55 mx roundcube: Recv: 250-ETRN
Jan  9 17:13:55 mx roundcube: Recv: 250-STARTTLS
Jan  9 17:13:55 mx roundcube: Recv: 250-ENHANCEDSTATUSCODES
Jan  9 17:13:55 mx roundcube: Recv: 250-8BITMIME
Jan  9 17:13:55 mx roundcube: Recv: 250 DSN
Jan  9 17:13:55 mx roundcube: Send: STARTTLS
Jan  9 17:13:55 mx roundcube: Recv: 220 2.0.0 Ready to start TLS
Jan  9 17:13:55 mx postfix/smtpd[2952]: SSL_accept error from unknown[192.168.0.2]: 0
Jan  9 17:13:55 mx roundcube: PHP Deprecated:  Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/program/lib/Net/SMTP.php on line 611
Jan  9 17:13:55 mx postfix/smtpd[2952]: warning: TLS library problem: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_pkt.c:1256:SSL alert number 48:
Jan  9 17:13:55 mx roundcube: STARTTLS failed ():
Jan  9 17:13:55 mx roundcube: Send: RSET
Jan  9 17:13:55 mx postfix/smtpd[2952]: lost connection after STARTTLS from unknown[192.168.0.2]
Jan  9 17:13:55 mx postfix/smtpd[2952]: disconnect from unknown[192.168.0.2]
Jan  9 17:13:55 mx roundcube: Recv: ^V^C^C^AM^L
Jan  9 17:13:55 mx roundcube: PHP Deprecated:  Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/program/lib/Net/SMTP.php on line 371
Jan  9 17:13:55 mx roundcube: Send: QUIT
Jan  9 17:13:55 mx roundcube: Recv: k▒^?E^\▒▒p▒^?▒b▒M-^V▒^X^F^Z7`Z▒~▒▒^D▒M-^[wQ▒▒M- J^SM-^X▒X▒3M-^U▒^VLM-^]▒▒▒M-^H^P[M-^EM-^]▒Ii▒▒▒CM-^M^X▒▒▒M-^R▒^ZM-^A^^M-^T▒-Y▒M-^U&▒^S^H▒▒▒9▒/▒_ʢM-^^|T▒f^QYx*f^Q7▒M-^P&^^
Jan  9 17:13:55 mx roundcube: PHP Deprecated:  Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/program/lib/Net/SMTP.php on line 371
Jan  9 17:13:55 mx roundcube: SMTP Error: SMTP error: Authentication failure: STARTTLS failed (Code: ) in /usr/local/www/roundcube/program/lib/Roundcube/rcube.php on line 1505 (POST /mail/?_task=mail&_unlock=loading1420816438710&_lang=ro&_framed=1?_task=mail&_action=send)

----

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

2

Re: Roundcube SMTP Connection Failed

I can reproduce this issue, looks like a PHP 5.6 related "issue", downgrading php to 5.5 fixes this issue.

You can re-download iRedMail-0.9.0 from our website, then install it on a fresh FreeBSD server. Sorry about this trouble.

3

Re: Roundcube SMTP Connection Failed

Could you guide me how to downgrade? On installation a bunch of packages where installed. Should I deinstall all? Should I deinstall and reinstall iRedMail?

4

Re: Roundcube SMTP Connection Failed

The easiest way is re-install OS then install iRedMail. Sorry about this trouble.

5

Re: Roundcube SMTP Connection Failed

Same result with php 5.5.20

6

Re: Roundcube SMTP Connection Failed

any related log in Postfix log file? Did you reinstall the server and iRedMail-0.9.0?

7

Re: Roundcube SMTP Connection Failed

It worked, needed just a restart. But how to change the password policy (length, complexity)?

8

Re: Roundcube SMTP Connection Failed

enderr wrote:

But how to change the password policy (length, complexity)?

If you change password with Roundcube, you can adapt the settings in 'plugins/password/config.inc.php' under Roundcube directory (/usr/local/www/roundcube).

9

Re: Roundcube SMTP Connection Failed

I found it  in settings.py in iredadmin.