From 2d7abaae9933ffc9c736165123c89ba884568e93 Mon Sep 17 00:00:00 2001 From: in-seo Date: Tue, 26 Mar 2024 11:14:05 +0900 Subject: [PATCH] docs: add GMAIL SMTP Guide for Email Forwarding --- .../advanced/mail-forwarding/gmail/index.html | 2164 +++++++++++++++++ 1 file changed, 2164 insertions(+) create mode 100644 edge/config/advanced/mail-forwarding/gmail/index.html diff --git a/edge/config/advanced/mail-forwarding/gmail/index.html b/edge/config/advanced/mail-forwarding/gmail/index.html new file mode 100644 index 00000000..5c2c52ee --- /dev/null +++ b/edge/config/advanced/mail-forwarding/gmail/index.html @@ -0,0 +1,2164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Mail Forwarding | GMAIL SMTP - Docker Mailserver + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + +

GMAIL SMTP

+ +

GMAIL SMTP (Simple Message Transport Protocol) provides a simple way for cloud based applications to send and receive email.

+
+

Configuration via ENV

+

Configure a relay host in DMS to forward all your mail through GMAIL SMTP:

+ +
RELAY_HOST=smtp.gmail.com
+RELAY_PORT=587
+# Alternative to RELAY_HOST + RELAY_PORT which is compatible with LDAP:
+DEFAULT_RELAY_HOST=[smtp.gmail.com]:587
+
+RELAY_USER=someone@gmail.com
+RELAY_PASSWORD=xxx
+
+
+
+

Process of providing RELAY_PASSWORD

+

You should use your 2-step verification app password, not your gmail account password.

+

setup relay add-auth is a better alternative, which manages the credentials via a config file.

+
+
+
+

Tip

+

If you have set up GMAIL SMTP, you can Filter messages for spam and viruses before they reach external recipients

+

and also apply email security and advanced Gmail settings to outgoing messages.

+
+
+

Verify the relay host is configured correctly

+

To verify proper operation, send an email to some external account of yours and inspect the mail headers.

+

You will also see the connection to GMAIL SMTP in the mail logs:

+
postfix/smtp[910]: Trusted TLS connection established to smtp.gmail.com[64.233.188.109]:587:
+  TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
+postfix/smtp[910]: 4BCB547D9D: to=<someone@gmail.com>, relay=smtp.gmail.com[64.233.188.109]:587,
+  delay=2.9, delays=0.01/0.02/1.7/1.2, dsn=2.0.0, status=sent (250 2.0.0 OK  17... - gsmtp)
+
+
+ +
+

Tip

+

What if the email domain is fixed to a RELAY account?

+

Please refer to Send emails from a different address or alias!

+
+ + + + + + + + + + + + + + + +
+
+ + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + \ No newline at end of file