-
-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] mail_outbound_static: Forward port #1044
Signed-off-by hbrunn
- Loading branch information
1 parent
b9e124e
commit 6ea9a17
Showing
10 changed files
with
69 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 |
---|---|---|
|
@@ -53,6 +53,9 @@ being appended into the proper Sender header instead. To accomplish this we: | |
smtp_from and smtp_whitelist_domain values will be used if there is not mail | ||
server configured in the system. | ||
|
||
* If your server doesn't support catchall too, you can activate `Reply To The Same Address` | ||
flag, so 'Reply-To' in your message will be the same as 'From'. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
|
@@ -64,6 +67,7 @@ Usage | |
* Navigate to an Outbound Email Server | ||
* Set the `Email From` option to an email address | ||
* Set the `Domain Whitelist` option with the domain whitelist | ||
* Set the `Reply to the same address` option to modify 'Reply-To' message field | ||
|
||
Bug Tracker | ||
=========== | ||
|
@@ -81,6 +85,7 @@ Credits | |
Authors | ||
~~~~~~~ | ||
|
||
* Solvti sp. z o.o. | ||
* brain-tec AG | ||
* LasLabs | ||
* Adhoc SA | ||
|
@@ -97,6 +102,7 @@ Contributors | |
* `Quartile <https://www.quartile.co>`__: | ||
|
||
* Yoshi Tashiro | ||
* Sergei Ruzki <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
* `Quartile <https://www.quartile.co>`__: | ||
|
||
* Yoshi Tashiro | ||
* Sergei Ruzki <[email protected]> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
* Navigate to an Outbound Email Server | ||
* Set the `Email From` option to an email address | ||
* Set the `Domain Whitelist` option with the domain whitelist | ||
* Set the `Reply to the same address` option to modify 'Reply-To' message field |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,3 +367,24 @@ def test_10_not_valid_smtp_from(self): | |
mail_server.smtp_from = "." | ||
|
||
mail_server.smtp_from = "[email protected]" | ||
|
||
def test_11_from_outgoing_server_with_catchall(self): | ||
self._init_mail_server_domain_whilelist_based() | ||
domain = "example.com" | ||
email_from = "test@%s" % domain | ||
|
||
self.message.replace_header("From", email_from) | ||
reply_to_address = self.message["Reply-To"] | ||
message = self._send_mail(self.message) | ||
self.assertEqual(message["Reply-To"], reply_to_address) | ||
|
||
def test_12_from_outgoing_server_no_catchall(self): | ||
self._init_mail_server_domain_whilelist_based() | ||
domain = "example.com" | ||
email_from = "test@%s" % domain | ||
expected_mail_server = self.mail_server_domainone | ||
|
||
self.message.replace_header("From", email_from) | ||
expected_mail_server.reply_to_the_same_address = True | ||
message = self._send_mail(self.message) | ||
self.assertEqual(message["Reply-To"], expected_mail_server.smtp_from) |
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