-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from Oefenweb/make-sasl-more-configurable
Make SASL more configurable
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,10 @@ None | |
* `postfix_mynetworks` [default: `['127.0.0.0/8', '[::ffff:127.0.0.0]/104', '[::1]/128']`]: The list of "trusted" remote SMTP clients that have more privileges than "strangers" | ||
* `postfix_inet_interfaces` [default: `all`]: Network interfaces to bind ([see](http://www.postfix.org/postconf.5.html#inet_interfaces)) | ||
* `postfix_inet_protocols` [default: `all`]: The Internet protocols Postfix will attempt to use when making or accepting connections ([see](http://www.postfix.org/postconf.5.html#inet_protocols)) | ||
* `postfix_sasl_auth_enable` [default: `true`]: Enable SASL authentication in the SMTP client | ||
* `postfix_relayhost` [default: `false` (no relay host)]: Hostname to relay all email to | ||
* `postfix_relayhost_port` [default: 587]: Relay port (on `postfix_relayhost`, if set) | ||
* `postfix_sasl_security_options` [default: `noanonymous`]: SMTP client SASL security options | ||
* `postfix_relaytls` [default: `false`]: Use TLS when sending with a relay host | ||
* `postfix_sasl_user` [default: `postmaster@{{ ansible_domain }}`]: SASL relay username | ||
* `postfix_sasl_password` [default: `k8+haga4@#pR`]: SASL relay password **Make sure to change!** | ||
|
@@ -69,6 +71,20 @@ For AWS SES support: | |
postfix_sasl_password: ASDFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | ||
``` | ||
For MailHog support: | ||
```yaml | ||
--- | ||
- hosts: all | ||
roles: | ||
- postfix | ||
vars: | ||
postfix_aliases: | ||
- { user: root, alias: [email protected] } | ||
postfix_relayhost: "{{ ansible_lo['ipv4']['address'] }}" | ||
postfix_relayhost_port: 1025 | ||
postfix_sasl_auth_enable: false | ||
``` | ||
#### License | ||
MIT | ||
|
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