systeme:smtp:relais
**Ceci est une ancienne révision du document !**
Table des matières
Configurer un relais SMTP avec Postfix et Resend (RELAIS SMTP SANS IP PUBLIQUE)
Principe
Documenso ⇒ Postfix local (port 25) ⇒ Resend SMTP (port 587) = Internet
Créer un compte Resend
Lien : https://resend.com/
- générer une clé d'API
Installer et confoigurer Postfix
apt update apt install postfix mailutils
- Créer le fichier /etc/postfix/sasl_passwd
[smtp.resend.com]:587 apikey:re_123456789abcdef
postmap /etc/postfix/sasl_passwd chmod 600 /etc/postfix/sasl_passwd*
Configurer Postfix en “SMTP relay” vers Microsoft 365
- éditer /etc/postfix/main.cf :
nano /etc/postfix/main.cf
- Ajoute / remplace :
relayhost = [smtp.resend.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_use_tls = yes smtp_tls_security_level = encrypt smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt inet_interfaces = all inet_protocols = ipv4
systemctl restart postfix
systeme/smtp/relais.1774302882.txt.gz · Dernière modification : 2026/03/23 22:54 de techer.charles_educ-valadon-limoges.fr
