====== Email ======
Email Services for 42d.io and Wiki42d are setup to use Postfix. The email address in use is "dat@42d.io"
In the current setup dat@42d.io email box exists only on Google Workspaces.
===== Wiki42d =====
For Wiki42d, password email resetting is now supported.
When the Forgot password link is clicked, Dokuwiki sends an email message to the Postfix mail queu. The Postfix MTA is configured for SMTP Relay and sends email to Google Workspace and to the intended recipient.
A Captcha plugin is installed which will require the user to answer a math question after 3 failed attempts.
===== Google Workspace and DO Server Configuration for 42d.io domain =====
The following web links were used in setting this up. It's a two-step process.
=== Google Workspaces SMTP relay: Route outgoing non-Gmail messages through Google ===
[[https://support.google.com/a/answer/2956491?hl=en]]
The settings are
- Allows Senders: Only Addresses in my domains
- Authentication: Only Accept mail from Specified IP Addresses
165.22.236.60
2604:a880:cad:d0::d29:8001
- Require SMTP Authentication is checked
- TLS is NOT checked.
- In Addition, for the Google Workspace email account dat@42d.io, the__ Access For Less Secure Apps is ENABLED __(Turned On). For troubleshooting, check this setting to confirm it has not been reverted. This setting is located in the User Settings.
=== DO Server Configuration for Postfix Server to Send Email through Google Workspaces ===
[[https://www.linode.com/docs/guides/configure-postfix-to-send-mail-using-gmail-and-google-workspace-on-debian-or-ubuntu/]]
Note: Generate an App Password for Postfix was not required nor is 2-Step Verification enabled.
The Relay host is set to** smtp-relay.gmail.com** and port 587
For Troubleshooting mail, check /var/log/maillog.