systeme:smtp:relais
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| systeme:smtp:relais [2026/03/23 22:40] – 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' | ||
| + | |||
| + | ===== Installer | ||
| < | < | ||
| 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 ===== | ===== Configurer Postfix en “SMTP relay” vers Microsoft 365 ===== | ||
| Ligne 18: | Ligne 45: | ||
| < | < | ||
| - | relayhost = [yourdomain-com.mail.protection.outlook.com]:25 | + | relayhost = [smtp.resend.com]:587 |
| - | smtp_tls_security_level | + | |
| - | smtp_tls_loglevel | + | smtp_sasl_auth_enable |
| + | smtp_sasl_password_maps | ||
| + | smtp_sasl_security_options = noanonymous | ||
| smtp_use_tls = yes | smtp_use_tls = yes | ||
| - | smtp_sasl_auth_enable | + | smtp_tls_security_level |
| + | smtp_tls_CAfile = / | ||
| + | |||
| + | inet_interfaces = all | ||
| + | inet_protocols = ipv4 | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | systemctl restart postfix | ||
| </ | </ | ||
| - | Le domaine yourdomain-com.mail.protection.outlook.com est ton MX Office 365, récupérable dans l’admin center. | ||
systeme/smtp/relais.1774302025.txt.gz · Dernière modification : 2026/03/23 22:40 de techer.charles_educ-valadon-limoges.fr
