systeme:smtp:relais
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| systeme:smtp:relais [2026/03/23 22:38] – créée techer.charles_educ-valadon-limoges.fr | systeme:smtp:relais [2026/03/23 23:46] (Version actuelle) – [Installer et confoigurer Postfix] techer.charles_educ-valadon-limoges.fr | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Configurer un relais SMTP avec Postfix ====== | + | ====== Configurer un relais SMTP avec Postfix |
| - | ===== Installer Postfix | + | ===== Principe |
| - | < | + | |
| + | Documenso => Postfix local (port 25) => Resend SMTP (port 587) = Internet | ||
| + | |||
| + | ===== Créer un compte Resend ===== | ||
| + | Lien : https:// | ||
| + | |||
| + | |||
| + | * générer une clé d'API | ||
| + | |||
| + | ===== Installer et confoigurer Postfix ===== | ||
| + | |||
| + | < | ||
| apt update | apt update | ||
| - | apt install postfix mailutils | + | apt install postfix mailutils |
| + | </ | ||
| + | |||
| + | * Créer le fichier / | ||
| + | |||
| + | < | ||
| + | [smtp.resend.com]: | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | postmap / | ||
| + | chmod 600 / | ||
| + | </ | ||
| + | |||
| + | * copier les modules SASL dans le CHROOT | ||
| + | |||
| + | < | ||
| + | mkdir -p / | ||
| + | cp -a / | ||
| + | </ | ||
| + | ===== Configurer Postfix en “SMTP relay” vers Microsoft 365 ===== | ||
| + | |||
| + | * éditer **/ | ||
| + | |||
| + | < | ||
| + | nano / | ||
| + | </ | ||
| + | |||
| + | * Ajoute / remplace : | ||
| + | |||
| + | < | ||
| + | relayhost = [smtp.resend.com]: | ||
| + | |||
| + | smtp_sasl_auth_enable = yes | ||
| + | smtp_sasl_password_maps = hash:/ | ||
| + | smtp_sasl_security_options = noanonymous | ||
| + | |||
| + | smtp_use_tls = yes | ||
| + | smtp_tls_security_level = encrypt | ||
| + | smtp_tls_CAfile = / | ||
| + | |||
| + | inet_interfaces = all | ||
| + | inet_protocols = ipv4 | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | systemctl restart postfix | ||
| </ | </ | ||
systeme/smtp/relais.1774301887.txt.gz · Dernière modification : 2026/03/23 22:38 de techer.charles_educ-valadon-limoges.fr
