Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.52k stars 2.81k forks source link

Bug v17 when sending emails to @gmail.com #24332

Closed WilliamThx closed 4 months ago

WilliamThx commented 1 year ago

Bug

Dolibarr version 17 SPF and DKIM are set correctly on mail server

Bug: when emails are sent by dolibarr (order, invoice, test) to a person using @gmail.com address, the email does not reach destination.

When emails are sent with Wordpress with the same mail server, emails are correctly received by @gmaill.com

My Dolibar v16 set-up did not have this issue

Environment Version

17

Environment OS

CentOS

Environment Web server

No response

Environment PHP

7.4

Environment Database

mySQL

Environment URL(s)

No response

Expected and actual behavior

No response

Steps to reproduce the behavior

No response

Attached files

No response

WilliamThx commented 1 year ago

Problem occurs when SMTP socket library is used It did work well when Swift Mailer socket library is used

ksar-ksar commented 1 year ago

Hello,

Do you have any error message back from gmail ? Or on the mail server ?

WilliamThx commented 1 year ago

Hello no nothing back from gmail.CheersWilliamLe 26 mars 2023 à 21:17, ksar @.***> a écrit : Hello, Do you have any error message back from gmail ? Or on the mail server ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

FlorentLeterme commented 1 year ago

I am experiencing the same issue with Dolibarr version 17.0.1. It seems that only sending emails (gmail) from Dolibarr to Gmail addresses is not functioning properly. I receive a confirmation that the email has been sent successfully, but I do not see anything in my Gmail inbox at gmail.com.

Elron72 commented 1 year ago

Hello, after having the same problem I found something else. This problem is with Microsoft email services. Also accounts not Gmail but using Microsoft 365 email services. Thanks

tranKILL commented 1 year ago

Same thing here, Dolibarr 17.0.2. Was working on .com, and now that the email are on the real url server it don't work (.be). If someone got something..

Dolibarr (check server ok, says sended but nothing is send even in spam) : Nom d'hôte ou adresse IP du serveur SMTP/SMTPS (Par défaut dans php.ini: localhost) | SSL0.OVH.NET Nom d'hôte ou adresse IP du serveur SMTP/SMTPS (Par défaut dans php.ini: 25) | 465 Méthode d'authentification | Utiliser mot de passe ID SMTP (si le serveur d'envoi nécessite une authentification) | @.be Mot de passe SMTP (si le serveur d'envoi nécessite une authentification) | ***** Utilisation du chiffrement TLS (SSL) | Oui Utiliser le cryptage TTS (STARTTLS) | Non Autoriser les certificats auto-signés | Non

OVH : SPF "v=spf1 ip4:146.59.209.152 ~all"

tranKILL commented 1 year ago

Same thing here, Dolibarr 17.0.2. Was working on .com, and now that the email are on the real url server it don't work (.be). If someone got something..

Dolibarr (check server ok, says sended but nothing is send even in spam) : Nom d'hôte ou adresse IP du serveur SMTP/SMTPS (Par défaut dans php.ini: localhost) | SSL0.OVH.NET Nom d'hôte ou adresse IP du serveur SMTP/SMTPS (Par défaut dans php.ini: 25) | 465 Méthode d'authentification | Utiliser mot de passe ID SMTP (si le serveur d'envoi nécessite une authentification) | @.be Mot de passe SMTP (si le serveur d'envoi nécessite une authentification) | ***** Utilisation du chiffrement TLS (SSL) | Oui Utiliser le cryptage TTS (STARTTLS) | Non Autoriser les certificats auto-signés | Non

OVH : SPF "v=spf1 ip4:146.59.209.152 ~all"

Seems to be corrected with Swift mailer, and DKIM :

Méthode d'envoi d'email Swift Mailer socket library
Nom d'hôte ou adresse IP du serveur SMTP/SMTPS (Par défaut dans php.ini: localhost) SSL0.OVH.NET
Nom d'hôte ou adresse IP du serveur SMTP/SMTPS (Par défaut dans php.ini: 25) 465
Méthode d'authentification Utiliser mot de passe
ID SMTP (si le serveur d'envoi nécessite une authentification) @
Mot de passe SMTP (si le serveur d'envoi nécessite une authentification) ***
Utilisation du chiffrement TLS (SSL) Oui
Utiliser le cryptage TTS (STARTTLS) Non
Autoriser les certificats auto-signés Non
Utiliser DKIM pour signer les emails Oui
Nom de domaine pour la signature DKIM Your.Domain
Nom du sélecteur DKIM YourSelector
Clé privée pour générer la signature DKIM -----BEGIN RSA PRIVATE KEY----- ND...r4HT -----END RSA PRIVATE KEY-----

Use one of these DKIM generator : https://easydmarc.com/tools/dkim-record-generator

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 10 days (you should still be able to re-open it if required).