En 2024, dans exchange, pour pouvoir envoyer des courriels SMTP (Par exemple, un photocopieur), il faut s’assurer des parametres suivants:
- Activer le protocole Auth SMTP
- Activer l’utilisation des clients TLS hérités
![](https://cvallee.com/wp-content/uploads/2024-02-26-17_43_12-Exchange-Auth.png)
Pour trouver ces parametres, il faut aller:
- Centre d’administration Exchange
- Paramètres
- Flux de courrier
![](https://cvallee.com/wp-content/uploads/2024-02-26-17_03_25-Exchange-admin-center-et-1-page-supplémentaire-InPrivate-–-Microsoft-Edge.png)
Note:
Si TLS hérités est activé, il faudra alors utiliser l’hote: smtp-legacy.office365.com
Sinon: smtp.office365.com
Pour tester via Powershell:
$creds = get-credential Send-MailMessage -From adresse@domaineexchange -To someone@somewhere.com -Subject "Test Email" -Body "Test SMTP Service from Powershell on Port 587" -SmtpServer smtp.office365.com -Credential $creds -UseSsl -Port 587