3.4 KiB
SMTP Email Setup
In product evaluation setups with single-container Docker instances, email is intentionally disabled. This allows account creation and system operation without having to set up email, but it also means email notification and password reset functionality aren't available.
How to enable email
To enable email, configure an SMTP email service as follows:
-
Set up an SMTP email sending service (if you don't yet have an SMTP service with credentials)
- Any SMTP email service can be used, you just need the following information:
Server Name,Port,SMTP Username, andSMTP Password. 2. If you don't have an SMTP service, here are simple instructions to set one up with Amazon Simple Email Service (SES): 2. Go to Amazon SES console thenSMTP Settings > Create My SMTP Credentials3. Copy theServer Name,Port,SMTP Username, andSMTP Passwordfor Step 2 below. 4. From theDomainsmenu set up and verify a new domain, then enableGenerate DKIM Settingsfor the domain. 5. Choose an sender address likemattermost@example.comand clickSend a Test Emailto verify setup is working correctly.
- Any SMTP email service can be used, you just need the following information:
-
Configure SMTP settings
- Open the System Console by logging into an existing team and accessing "System Console" from the main menu.
- Alternatively, if a team doesn't yet exist, go to
http://dockerhost:8065/in your browser, create a team, then from the main menu click System Console
- Alternatively, if a team doesn't yet exist, go to
- Go to the Email Settings tab and configure the following:
- Allow Sign Up With Email:
true - Send Email Notifications:
true - Require Email Verification:
true - Notification Display Name: Display name on email account sending notifications
- Notification Email Address: Email address displayed on email account used to send notifications
- SMTP Username:
SMTP Usernamefrom Step 1 - SMTP Password:
SMTP Passwordfrom Step 1 - SMTP Server:
SMTP Serverfrom Step 1 - SMTP Port:
SMTP Portfrom Step 1 - Connection Security:
TLS (Recommended) - Then click Save
- Allow Sign Up With Email:
- Open the System Console by logging into an existing team and accessing "System Console" from the main menu.
-
Restart Mattermost
- Use
ps -Ato find the process ID ("pid") for service namedplatformand stop it usingkill [pid] - The service should restart automatically. Run
ps -Ato verify theplatformis running again - Use the reset password page (E.g. example.com/teamname/reset_password) to test that email is now working by entering your email and clicking Reset my password.
- Note: The next time users log out, or when their session tokens expire, each will be required to verify their email address.
- Use
Troubleshooting SMTP
If you have issues with your SMTP install, from your Mattermost team site go to the main menu and open System Console -> Logs to look for error messages related to your setup. You can do a search for the error code to narrow down the issue. Sometimes ISPs require nuanced setups for SMTP and error codes can hint at how to make the proper adjustments.
For example, if System Console -> Logs has an error code reading:
Connection unsuccessful: Failed to add to email address - 554 5.7.1 <unknown[IP-ADDRESS]>: Client host rejected: Access denied
Search for 554 5.7.1 error and Client host rejected: Access denied.