Hello,
I have a similar issue with my email, not sure if it´s related.
This is my situation:
Previous version 10.
Hosting provider is X
Emial provider is X
Everything worked well sending emails.
Changes:
Upgraded to version 11
Hosting provider X
Email provider changed to Google (Gsuite)
Now, under port 465 no connectivity with server.
Port 587 there is connectivity but can´t sent messages.
What happens?
The issue lays with the hosting provider and the email provider.
Email provider needs to be the same as the hosting provider, there´s some sort of connectivity issue.
MX´s records were updated, that´s not theissue.
Apparently it´s some sort of configuration that Dolibarr needs to be able to funciton in this situation (as per my hosting provider info)
I think this is what´s mention here:
WARNING
Some email provider (like Yahoo) does not allow you to send an email from another server than the Yahoo server if the email address used as a sender is a Yahoo email (for example myemail@yahoo.com, myemail@yahoo.fr, …). If you sue the PHPmail method, it means you will use the server of your application to send emails, so some recipients (the one compatible with DMARC protocol), will ask Yahoo if they can accept your email and Yahoo will respond “no” because the server is not a Yahoo server, and some of your Emails may not be received.
If like Yahoo, your Email provider has this restriction, you must set this setup to choose the other method “SMTP/SMTPS socket library” and enter here the SMTP server and credentials provided by your Email provider.
https://wiki.dolibarr.org/index.php/Setup_EMails
We did several tryouts, just to ammusse you I mention them below:
Under another two hosting provider (amazon and I don´t remember the other) we used my email credentials (gsuite). It worked well, no issues at all.
Answer: Email provider communication with dolibarr is not the issue, credentials with gmail are fine.
Under my hosting provider we installed another dolibarr account, same issue.
Answer: My dolibarr settings are not the issue.
Now, I asked my hosting provider to change back the MX records as if I don´t have gsuite, and only tu use my hosting provider´s email platform.
Answer: It worked well, email sending was fine…
So, I either needs to change my hosting provider, or
find a work around if there´s any in dolibarr,
or change back my email provider, which is not an option.
Any comments??? thanks