Problème avec postfix

Tags: #<Tag:0x00007f63f4709360>

Bonjour à tous.

Je ne suis pas spécialement débutant sur Debian mais c’est la première fois que j’utilise postfix et je n’arrive pas à résoudre mon problème.

Je l’utilise dans le cadre de l’installation de la solution de supervision « Centreon » et l’envoi automatique par mail des alertes.

J’ai donc un problème avec Postfix.
J’ai suivi ce tutoriel pour l’installer et celui-ci pour la configuration des mails dans centreon.
Sauf qu’en faisant le test cité dans le tuto de centreon, le mail test ne part pas et voici ce que je trouve dans le log :

Feb 16 18:23:15 SRV-DEBIAN postfix/pickup[193193]: B369934385E: uid=0 from=<root>
Feb 16 18:23:15 SRV-DEBIAN postfix/cleanup[193676]: B369934385E: message-id=<20230216172315.B369934385E@SRV-DEBIAN.bloch.local>
Feb 16 18:23:15 SRV-DEBIAN postfix/qmgr[193195]: B369934385E: from=<root@SRV-DEBIAN.bloch.local>, size=429, nrcpt=1 (queue active)
Feb 16 18:23:15 SRV-DEBIAN postfix/smtp[193678]: cannot load Certification Authority data, CAfile="/etc/ssl/certs/ca-bundle.crt", CApath="/etc/ssl/certs": disabling TLS support
Feb 16 18:23:15 SRV-DEBIAN postfix/smtp[193678]: warning: TLS library problem: error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:69:fopen('/etc/ssl/certs/ca-bundle.crt','r'):
Feb 16 18:23:15 SRV-DEBIAN postfix/smtp[193678]: warning: TLS library problem: error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:76:
Feb 16 18:23:15 SRV-DEBIAN postfix/smtp[193678]: warning: TLS library problem: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib:../crypto/x509/by_file.c:199:
Feb 16 18:23:15 SRV-DEBIAN postfix/smtp[193678]: B369934385E: to=<laurent.lazzarini@ac-montpellier.fr>, relay=smtp.ac-montpellier.fr[195.83.225.86]:587, delay=0.18, delays=0.02/0.02/0.11/0.03, dsn=5.7.0, status=bounced (host smtp.ac-mon>
Feb 16 18:23:15 SRV-DEBIAN postfix/cleanup[193676]: E7483343861: message-id=<20230216172315.E7483343861@SRV-DEBIAN.bloch.local>
Feb 16 18:23:15 SRV-DEBIAN postfix/bounce[193679]: B369934385E: sender non-delivery notification: E7483343861
Feb 16 18:23:15 SRV-DEBIAN postfix/qmgr[193195]: E7483343861: from=<>, size=2610, nrcpt=1 (queue active)
Feb 16 18:23:15 SRV-DEBIAN postfix/qmgr[193195]: B369934385E: removed
Feb 16 18:23:15 SRV-DEBIAN postfix/local[193680]: E7483343861: to=<mod_loc@SRV-DEBIAN.bloch.local>, orig_to=<root@SRV-DEBIAN.bloch.local>, relay=local, delay=0.02, delays=0/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Feb 16 18:23:15 SRV-DEBIAN postfix/qmgr[193195]: E7483343861: removed

Je vois qu’il y a une soucis avec la librairie TLS mais je ne comprend pas l’erreur.

Merci d’avance pour votre aide.

Bonjour,

Postfix est très bien documenté avec exemples http://www.postfix.org

As-tu réellement besoin d’une communication cryptée? Commence déjà par une config simple, TLS rajoute son lot de « complexités » et cet extrait

http://www.postfix.org/TLS_README.html
NOTE: By turning on TLS support in Postfix, you not only get the ability to encrypt mail and to authenticate remote SMTP clients or servers. You also turn on hundreds of thousands of lines of OpenSSL library code. Assuming that OpenSSL is written as carefully as Wietse’s own code, every 1000 lines introduces one additional bug into Postfix.

Bonjour,

question bête, mais as-tu vérifié que ce fichier (/etc/ssl/certs/ca-bundle.crt) est bien accessible et contient bien le nécessaire ?

Il est ajouté à la config postfix par ton tuto sur Centreon, mais ton premier tuto sur l’installation postfix n’aborde pas du tout TLS et les certificats.

Bonjour à tous.

Je fais suite et fin à mon soucis avec postfix.
Après une mise en pause de cette question, je m’y suis remis et procédé plus radicalement.
J’ai donc désinstalé et réinstallé postfix afin de repartir sur une base seine.
Ensuite, j’ai utilisé deux tutos :
Celui ci
et
celui la
Après avoir fait les tests, je reçois bien les mails tests.
Et maintenant, je recois donc les notif de mon Centreon :slight_smile:

Eh oui la configuration de Postfix n’est pas un long fleuve tranquille. :grin:

2 J'aime