-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more mail config options (#4211)
Currently cozy-stack only send mail through plain SMTP or over STARTTLS connections but is unable to connect to an SSL/SMTPS server. This PR adds missing mail config option to allow sending mail through SSL connections (SMTPS) It also add an option to modify the local hostname used in HELO command to SMTP servers (required for some mail servers). This is currently hardcoded to ` localhost` which will be refused in some cases. Some config examples: - Plain SMTP on submission port : ```yaml mail: host: smtp.home port: 587 use_ssl: false disable_tls: true local_name: cozy.domain.example ``` - STARTTLS over SMTP submission port ```yaml mail: host: smtp.home port: 587 use_ssl: false disable_tls: false skip_certificate_validation: false local_name: cozy.domain.example ``` - SSL connection to SMTPS submission port ```yaml mail: host: smtp.home port: 465 use_ssl: true disable_tls: false skip_certificate_validation: false local_name: cozy.domain.example ```
- Loading branch information
Showing
6 changed files
with
50 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters