feat(mail): add ACKIFY_MAIL_INSECURE_SKIP_VERIFY option #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add support for bypassing TLS certificate verification when connecting to SMTP servers with self-signed certificates.
Problem
Current behavior fails with self-signed certificates:
Use Cases
Changes
Backend
config.go): AddInsecureSkipVerifyfield, loadACKIFY_MAIL_INSECURE_SKIP_VERIFYenv var (default:false)sender.go): Configuretls.ConfigwithInsecureSkipVerifyfor both SSL (465) and STARTTLS (587)Documentation
ACKIFY_MAIL_INSECURE_SKIP_VERIFYwith security warningsSecurity
/!\ Use ONLY for:
NEVER use with internet-facing SMTP servers!
Safety:
false)Checklist
Backward Compatibility
Fully compatible - no breaking changes
Pull Request : feat(mail): ajout de l'option ACKIFY_MAIL_INSECURE_SKIP_VERIFY
Résumé
Ajout de la possibilité de contourner la vérification des certificats TLS lors de la connexion à des serveurs SMTP avec certificats auto-signés.
Problème
Le comportement actuel échoue avec les certificats auto-signés :
Cas d'usage
Modifications
Backend
config.go) : Ajout du champInsecureSkipVerify, chargement deACKIFY_MAIL_INSECURE_SKIP_VERIFY(défaut :false)sender.go) : Configuration detls.ConfigavecInsecureSkipVerifypour SSL (465) et STARTTLS (587)Documentation
ACKIFY_MAIL_INSECURE_SKIP_VERIFYavec avertissements de sécuritéSécurité
/!\ À utiliser UNIQUEMENT pour :
JAMAIS avec des serveurs SMTP exposés sur Internet !
Garanties :
false)Checklist
Rétrocompatibilité
Entièrement compatible - aucun changement cassant