# Problème avec postfix

**URL:** <https://www.debian-fr.org/t/probleme-avec-postfix/87883>\
**Category:** Support Debian\
**Tags:** mail\
**Created:** [Février 16, 2023, 7:40 UTC](https://www.debian-fr.org/t/probleme-avec-postfix/87883 "2023-02-16T19:40:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliot34](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/e/3e96dc/32.png) [@eliot34](https://www.debian-fr.org/u/eliot34)\
**Post date:** [Février 16, 2023, 7:40 UTC](https://www.debian-fr.org/t/probleme-avec-postfix/87883/1 "2023-02-16T19:40:44Z")

</div>

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 «&nbsp;Centreon&nbsp;» et l’envoi automatique par mail des alertes.

J’ai donc un problème avec Postfix.  
J’ai suivi [ce tutoriel](https://technique.arscenic.org/la-gestion-des-emails/postfix-serveur-smtp/article/installer-et-configurer-postfix#:~:text=Liens%20compl%C3%A9mentaires-,Installer%20Postfix,get%20install%20postfix%20sasl2%2Dbin) pour l’installer et [celui-ci](https://docs.centreon.com/fr/docs/administration/postfix/) 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 :

```auto
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.

---

<div class="post-metadata">

**Author:** ![PmGs](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/p/dfb087/32.png) [@PmGs](https://www.debian-fr.org/u/PmGs)\
**Post date:** [Février 17, 2023, 6:46 UTC](https://www.debian-fr.org/t/probleme-avec-postfix/87883/2 "2023-02-17T06:46:38Z")

</div>

Bonjour,

Postfix est très bien documenté avec exemples [http://www.postfix.org](https://ici)

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

[http://www.postfix.org/TLS\_README.html](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.

---

<div class="post-metadata">

**Author:** ![Sputnik93](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sputnik93](https://www.debian-fr.org/u/Sputnik93)\
**Post date:** [Février 17, 2023, 9:16 UTC](https://www.debian-fr.org/t/probleme-avec-postfix/87883/3 "2023-02-17T09:16:05Z")

</div>

Bonjour,

> [@eliot34](#):
>
> `cannot load Certification Authority data, CAfile="/etc/ssl/certs/ca-bundle.crt", CApath="/etc/ssl/certs": disabling TLS support`

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.

---

<div class="post-metadata">

**Author:** ![eliot34](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/e/3e96dc/32.png) [@eliot34](https://www.debian-fr.org/u/eliot34)\
**Post date:** [Octobre 13, 2023, 7:28 UTC](https://www.debian-fr.org/t/probleme-avec-postfix/87883/4 "2023-10-13T19:28:02Z")

</div>

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](https://www.it-connect.fr/configurer-postfix-pour-envoyer-des-mails-avec-gmail/)  
et  
[celui la](https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-18-04-fr)  
Après avoir fait les tests, je reçois bien les mails tests.  
Et maintenant, je recois donc les notif de mon Centreon 🙂

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Octobre 14, 2023, 6:33 UTC](https://www.debian-fr.org/t/probleme-avec-postfix/87883/5 "2023-10-14T06:33:48Z")

</div>

> [@eliot34](#):
>
> J’ai donc désinstalé et réinstallé postfix afin de repartir sur une base seine.

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