-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add headers to SMTP client to prevent being tagged as spam (#970)
- Loading branch information
Showing
4 changed files
with
118 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Enhancement: Add required headers to SMTP client to prevent being tagged as spam | ||
|
||
Mails being sent through the client, specially through unauthenticated SMTP were | ||
being tagged as spam due to missing headers. | ||
|
||
https://github.com/cs3org/reva/pull/970 |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
title: "smtpclient" | ||
linkTitle: "smtpclient" | ||
weight: 10 | ||
description: > | ||
Configuration for the smtpclient service | ||
--- | ||
|
||
# _struct: SMTPCredentials_ | ||
|
||
{{% dir name="sender_mail" type="string" default="" %}} | ||
The email to be used to send mails. [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/smtpclient/smtpclient.go#L36) | ||
{{< highlight toml >}} | ||
[smtpclient] | ||
sender_mail = "" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="sender_password" type="string" default="" %}} | ||
The sender's password. [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/smtpclient/smtpclient.go#L37) | ||
{{< highlight toml >}} | ||
[smtpclient] | ||
sender_password = "" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="smtp_server" type="string" default="" %}} | ||
The hostname of the SMTP server. [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/smtpclient/smtpclient.go#L38) | ||
{{< highlight toml >}} | ||
[smtpclient] | ||
smtp_server = "" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="smtp_port" type="int" default=587 %}} | ||
The port on which the SMTP daemon is running. [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/smtpclient/smtpclient.go#L39) | ||
{{< highlight toml >}} | ||
[smtpclient] | ||
smtp_port = 587 | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="disable_auth" type="bool" default=false %}} | ||
Whether to disable SMTP auth. [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/smtpclient/smtpclient.go#L40) | ||
{{< highlight toml >}} | ||
[smtpclient] | ||
disable_auth = false | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
||
{{% dir name="local_name" type="string" default="" %}} | ||
The host name to be used for unauthenticated SMTP. [[Ref]](https://github.com/cs3org/reva/tree/master/pkg/smtpclient/smtpclient.go#L41) | ||
{{< highlight toml >}} | ||
[smtpclient] | ||
local_name = "" | ||
{{< /highlight >}} | ||
{{% /dir %}} | ||
|
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