Skip to content

Commit

Permalink
Allow different from email than smtp user
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannik committed May 14, 2020
1 parent d13ff2d commit 6228490
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
2 changes: 1 addition & 1 deletion templates/sender_canonical_maps
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) }}

0 comments on commit 6228490

Please sign in to comment.