Merge pull request #271 from simple-login/postfix-tls

Enable TLS on Postfix submission
This commit is contained in:
Son Nguyen Kim 2020-08-28 12:28:23 +02:00 committed by GitHub
commit 0b2b653a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

1
.venv Normal file
View File

@ -0,0 +1 @@
app

View File

@ -428,7 +428,6 @@ Finally, restart Postfix
sudo systemctl restart postfix
```
### Run SimpleLogin Docker containers
To run the server, you need a config file. Please have a look at [config example](example.env) for an example to create one. Some parameters are optional and are commented out by default. Some have "dummy" values, fill them up if you want to enable these features (Paddle, AWS, etc).
@ -584,6 +583,7 @@ Below are pointers to different topics:
- [SES - Amazon Simple Email Service](docs/ses.md)
- [Upgrade existing SimpleLogin installation](docs/upgrade.md)
- [Enforce SPF](docs/enforce-spf.md)
- [Postfix TLS](docs/postfix-tls.md)
## Contributing

15
docs/postfix-tls.md Normal file
View File

@ -0,0 +1,15 @@
In case your Postfix server is on another server, it's recommended to enable TLS on Postfix submission to
secure the connection between SimpleLogin email handler and Postfix.
This can be enabled by adding those lines at the end of `/etc/postfix/master.cf`
```
submission inet n - y - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_tls_auth_only=yes
```
Make sure to set the `POSTFIX_SUBMISSION_TLS` variable to `true` in the SimpleLogin `simplelogin.env` file.