-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow different from email than smtp user
- Loading branch information
Showing
2 changed files
with
4 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 |
---|---|---|
|
@@ -42,8 +42,10 @@ Role Variables | |
* `relaymail_smtp_user`: username to authenticate with at the relaying mailserver (required) | ||
* Example: `[email protected]` | ||
* `relaymail_smtp_password`: password to authenticate with at the rayling mailserver (required) | ||
* `relaymail_force_from_address`: force the from address to be the `relaymail_smtp_user` | ||
* `relaymail_force_from_address`: force the from address to `relaymail_smtp_user` or `relaymail_from_address` if it is defined | ||
* Default: `true` | ||
* `relaymail_from_address`: optional from address to be used by `relaymail_force_from_address` instead of `relaymail_smtp_user` | ||
* Example: `user` or `[email protected]` | ||
* `relaymail_overwrite_to`: `all` overwrites the to address for all emails, `local` overwrites the to address for emails addressed to local users, `none` does never overwrite the to address | ||
* Default: `all` | ||
* `relaymail_overwrite_to_target`: email address which mails with overwritten to should be sent to (required when `relaymail_overwrite_to` is not `none`) | ||
|
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#{{ ansible_managed }} | ||
|
||
/.+/ {{ relaymail_smtp_user }} | ||
/.+/ {{ relaymail_from_address|default(relaymail_smtp_user) }} |