If you want to get email alerts from UniFi, which can be important to know when APs and other UniFi devices have gone offline, or reset an admin password - this can be configured within the UniFi Controller.
Contents
New Interface
On the new UniFi interface, log into your HostiFi or any other cloud hosted UniFi Controller.
Then, go to Settings
Next, go to System
Once in system, scroll down to the bottom to access the SMTP settings
In this section we have a few options. We can either use the 'Cloud' SMTP which will take care of this for us. This will use Ubiquiti's cloud service to send emails out, or we can configure our own SMTP server. Doing this will allow us to specify the sender email address, this can be useful if you have many controllers and want to receive emails from certain domains.
Configuring Mail Server Settings
You could create an email address specifically for the alerts to send from, and enter the information in the above section.
We don't recommend using your own email address because the password can be viewed by anyone with access to the settings page.
It can sometimes be tricky sometimes to get SMTP working for Gmail and other providers who have security rules in place to prevent unauthorised logins. Here is some more information on how to get Gmail working:
https://help.ubnt.com/hc/en-us/articles/226590847-UniFi-How-To-Use-a-Free-Email-Service-as-SMTP-Server-Gmail-
Instead, we recommend using a transactional email service provider like postmarkapp.com.
With Postmark you are able to use your domain name, create a new email address name on that domain, and generate different SMTP credentials for each server you want to use without having to worry about configuring security bypass settings in your primary email provider.
On the UniFi Controller, fill in the following fields with your own information.
⚠️ Note: Make sure SSL is disabled
Sending a test email
After configuring your mail server settings, you should send a test email to verify it is working correctly.
Legacy Interface
On the legacy UniFi Interface, log into your HostiFi or any other cloud hosted UniFi Controller.
Then, go to Settings
Next, click on 'Network Application'
In this section we have a few options. We can either use the 'Cloud' SMTP which will take care of this for us. This will use Ubiquiti's cloud service to send emails out, or we can configure our own SMTP server. Doing this will allow us to specify the sender email address, this can be useful if you have many controllers and want to receive emails from certain domains.
For setting up the email alerts, jump back to our Configuring Email Server Settings section.
Testing the email address is the same as the new interface version of UniFi, with a box to fill in an email.