Bug 158463 - MAILMERGE: LibreOffice n'a pas pu se connecter au serveur de courriel sortant
Summary: MAILMERGE: LibreOffice n'a pas pu se connecter au serveur de courriel sortant
Status: RESOLVED DUPLICATE of bug 157480
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.3.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-30 17:35 UTC by Yannick Dupagne
Modified: 2023-12-15 16:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yannick Dupagne 2023-11-30 17:35:16 UTC
Systèmes d'exploitation : Mac OS X 10.15, Linux Mint 21.2, Windows 10 et Windows 11
Version de LibreOffice : 7.6.3

démarche : Outils > Options > LibreOffice Writer > Courriel de publipostage > Tester les paramètres

J'ai fait évoluer LibreOffice de 7.5 vers 7.6.3 sur tous les ordinateurs de mon laboratoire en espérant résoudre enfin l'impossibilité d'utiliser Writer pour du publipostage. Mais cela n'a rien changé et continue à fonctionner aléatoirement :

- sous Mac OS X 10.15, Linux Mint 21.2 et Windows 10 (sauf pour une machine !), LibreOffice refuse la connexion au serveur sortant,
- sous Windows 11, cela fonctionne sans problème.

En réinstallant l'ancienne version LibreOffice 7.3 sous Linux Mint, j'ai constaté que le mailing fonctionnait sans problème. Lisant dans le rapport d'erreur que le plantage venait du programme Python mailmerge.py (je joins ce rapport ci-dessous), je l'ai partout remplacé sur les ordinateurs par le vieux mailmerge.py de la version 7.3 de LibreOffice.

Depuis lors, je n'ai plus aucun problème et le mailing fonctionne parfaitement sur toutes les plateformes.

Peut-être serait-il bon que vous vérifiiez l'application mailmerge.py de la version 7.6.3 (elle me posait déjà problème sous la version précédente).

Merci de votre attention.

Rapport d'erreur de LibreOffice sous Linux Mint 21.2:
=====================================================

LibreOffice n'a pas pu se connecter au serveur de courriel sortant. Vérifiez vos paramètres système et les paramètres de LibreOffice. Vérifiez le nom du serveur, le port et les paramètres des connexions sécurisées
--
<class 'ssl.SSLCertVerificationError'>: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1131), traceback follows
  File "/opt/libreoffice7.6/program/mailmerge.py", line 111, in connect
    self.server.starttls(context=ssl.create_default_context())
  File "/opt/libreoffice7.6/program/python-core-3.8.18/lib/smtplib.py", line 788, in starttls
    self.sock = context.wrap_socket(self.sock,
  File "/opt/libreoffice7.6/program/python-core-3.8.18/lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/opt/libreoffice7.6/program/python-core-3.8.18/lib/ssl.py", line 1073, in _create
    self.do_handshake()
  File "/opt/libreoffice7.6/program/python-core-3.8.18/lib/ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
Comment 1 Stéphane Guillou (stragu) 2023-12-15 16:16:58 UTC
Merci Yannick pour le rapport.

Below, the translated description:

-----------------------------------

Operating systems: Mac OS X 10.15, Linux Mint 21.2, Windows 10 and Windows 11
LibreOffice version: 7.6.3

procedure: Tools > Options > LibreOffice Writer > Mail merge > Test settings

I upgraded LibreOffice from 7.5 to 7.6.3 on all the computers in my laboratory hoping to finally resolve the inability to use Writer for mail merges. But that didn't change anything and continues to work randomly:

- under Mac OS X 10.15, Linux Mint 21.2 and Windows 10 (except for one machine!), LibreOffice refuses the connection to the outgoing server,
- under Windows 11, it works without problem.

By reinstalling the old version LibreOffice 7.3 under Linux Mint, I noticed that mail merge worked without problems. Reading in the error report that the crash came from the Python program mailmerge.py (I attach this report below), I replaced it everywhere on computers with the old mailmerge.py from version 7.3 of LibreOffice.

Since then, I have had no more problems and the mailing works perfectly on all platforms.

Maybe it would be good for you to check the mailmerge.py application from version 7.6.3 (it was already giving me problems under the previous version).

Thank you for your attention.

LibreOffice error report on Linux Mint 21.2:
==================================================== ===

LibreOffice was unable to connect to the outgoing email server. Check your system settings and LibreOffice settings. Check the server name, port and secure connection settings
--
<class 'ssl.SSLCertVerificationError'>: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1131), traceback follows
  File "/opt/libreoffice7.6/program/mailmerge.py", line 111, in connect
    self.server.starttls(context=ssl.create_default_context())
  File "/opt/libreoffice7.6/program/python-core-3.8.18/lib/smtplib.py", line 788, in starttls
    self.sock = context.wrap_socket(self.sock,
  File "/opt/libreoffice7.6/program/python-core-3.8.18/lib/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/opt/libreoffice7.6/program/python-core-3.8.18/lib/ssl.py", line 1073, in _create
    self.do_handshake()
  File "/opt/libreoffice7.6/program/python-core-3.8.18/lib/ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
Comment 2 Stéphane Guillou (stragu) 2023-12-15 16:17:58 UTC
This regression has been reported before, marking as duplicate of bug 157480.
Thank you!

*** This bug has been marked as a duplicate of bug 157480 ***