News and Announcements > General Discussion

Unable to establish SMTP connection since migrating to version 1.3.9

(1/2) > >>

leake2019:
Following a PHP upgrade to 7.2 it broke my Roundcube software. I ascertained that Roundcube 1.3.9. was PHP7.2 compatible and so went ahead and upgraded it. Since the upgrade I, along with what appears to many others, are having problems establishing an SMTP connection for outgoing mails (incoming mails are fine). The error I am receiving is a rather meaningless "SMTP Error (-1): Connection to server failed". Following suggestions by Googling the problem I have tried all combinations of ports and ssl/tls configurations but without success. It is worth pointing out that I am able to access my email through an Outlook 2017 client. My email server is a postfix/dovecot combination. I would be greatful to hear from anyone who has experienced my problem and managed to find a solution. 

JohnDoh:
It could be an SMTP certificate verification problem. May be try using $config['smtp_conn_options'] to disable cert verification and see what happens.

What version of PHP were you running before 7.2? Certificate verification was enabled by default in version 5.6.

leake2019:
Thanks for your reply. Previously I was running under php5.6. Please could you supply me with full 'smtp_conn_options' syntax to disable verification of the cert.

JohnDoh:
try something like

--- Code: ---$config['smtp_conn_options'] = array(
  'ssl' => array(
    'verify_peer_name' => false,
    'verify_peer'      => false,
  ),
);

--- End code ---

leake2019:
Unfortunatley it still gives me the same "SMTP Error (-1)" error.

The following was logged in the maillog :
postfix/smtpd[9873]: connect from localhost[127.0.0.1]
postfix/smtpd[9873]: lost connection after UNKNOWN from localhost[127.0.0.1]
postfix/smtpd[9873]: disconnect from localhost[127.0.0.1]

Does RC have its own smtpd log which may shed some light on the problem?

Navigation

[0] Message Index

[#] Next page

Go to full version