Hello,
I have upgraded EspoCRM to version 5.5.6 o 5.6.2 and had to upgrade PHP from 7.0 to 7.1… and my campaigns stopped working.
I have:
Ubuntu 16 LTS running EspoCRM with MySQL
Mailserver based on deckerized Mailcow (including Dovecot)
PHP 7.2-fpm
Symptoms:
Espo send well individual emails (including test email within Campaign/Mass mailing)
Espo reports Fail when automatically running Mass mailing within campaign. No single email is being sent from the Target list. BUT WHEN I SEND TEST EMAIL within this very Campaign/Mass mailing, IT WORKS
Test emails from the Group Emails setting work fine, mail is delivered
The following method successfully sends emails from terminal:
echo "This is the body of the email" | mail -s "This is the subject line" foo@bar.com
My view:
You are using different PHP methods for sendng individual emails (like test email) and different for mass mailing. The method for mass mailing requires too much authentication or CA cert usage as it generates the following error on Mailcow log (the same as /var/log/mail.log)
5/23/2019, 9:50:03 PM info disconnect from dev.aaa.com[94.17.10.14] ehlo=1 starttls=0/1 commands=1/2
5/23/2019, 9:50:03 PM info lost connection after STARTTLS from dev.aaa.com[94.17.10.14]
5/23/2019, 9:50:03 PM warning warning: TLS library problem: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:../ssl/record/rec_layer_s3.c:1399:SSL alert number 48:
5/23/2019, 9:50:03 PM info SSL_accept error from dev.aaa.com[94.17.10.14]: -1
5/23/2019, 9:50:03 PM info connect from dev.aaa.com[94.17.10.14]
../data/logs/espo-2019-05-24.log shows:
[2019-05-24 09:39:04] Espo.ERROR: CronManager: Failed job running, job [5ce7bb79b658c59d1]. Error Details: Job CheckEmailAccounts 5b505a31662e79556: [0] cannot connect to host ; error = fsockopen(): unable to connect to ssl://mail. aaa.com:993 (Unknown error) (errno = 0 ) [] []
To make sure that my mailserver is fine and that Espo is having trouble I have also tried to use some third party hosted mailserver for Campaign. And it is even worse with TLS. It is impossible to establish any encrypted connection. Unencypted work fine both ways.
So my view is that you need to handle the fsockopen(): error and the CA cert issues somehow.
I have upgraded EspoCRM to version 5.5.6 o 5.6.2 and had to upgrade PHP from 7.0 to 7.1… and my campaigns stopped working.
I have:
Ubuntu 16 LTS running EspoCRM with MySQL
Mailserver based on deckerized Mailcow (including Dovecot)
PHP 7.2-fpm
Symptoms:
Espo send well individual emails (including test email within Campaign/Mass mailing)
Espo reports Fail when automatically running Mass mailing within campaign. No single email is being sent from the Target list. BUT WHEN I SEND TEST EMAIL within this very Campaign/Mass mailing, IT WORKS
Test emails from the Group Emails setting work fine, mail is delivered
The following method successfully sends emails from terminal:
echo "This is the body of the email" | mail -s "This is the subject line" foo@bar.com
My view:
You are using different PHP methods for sendng individual emails (like test email) and different for mass mailing. The method for mass mailing requires too much authentication or CA cert usage as it generates the following error on Mailcow log (the same as /var/log/mail.log)
5/23/2019, 9:50:03 PM info disconnect from dev.aaa.com[94.17.10.14] ehlo=1 starttls=0/1 commands=1/2
5/23/2019, 9:50:03 PM info lost connection after STARTTLS from dev.aaa.com[94.17.10.14]
5/23/2019, 9:50:03 PM warning warning: TLS library problem: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:../ssl/record/rec_layer_s3.c:1399:SSL alert number 48:
5/23/2019, 9:50:03 PM info SSL_accept error from dev.aaa.com[94.17.10.14]: -1
5/23/2019, 9:50:03 PM info connect from dev.aaa.com[94.17.10.14]
../data/logs/espo-2019-05-24.log shows:
[2019-05-24 09:39:04] Espo.ERROR: CronManager: Failed job running, job [5ce7bb79b658c59d1]. Error Details: Job CheckEmailAccounts 5b505a31662e79556: [0] cannot connect to host ; error = fsockopen(): unable to connect to ssl://mail. aaa.com:993 (Unknown error) (errno = 0 ) [] []
To make sure that my mailserver is fine and that Espo is having trouble I have also tried to use some third party hosted mailserver for Campaign. And it is even worse with TLS. It is impossible to establish any encrypted connection. Unencypted work fine both ways.
So my view is that you need to handle the fsockopen(): error and the CA cert issues somehow.
Comment