📧 SMTP server guides
The SMTP plugin supports any SMTP server. Here are some commonly used services to help speed up your configuration.
Note
If you are using a self hosted SMTP server ssh into the container and verify (e.g. via ping) that your server is reachable from within the NetAlertX container. See also how to ssh into the container if you are running it as a Home Assistant addon.
Gmail
-
Create an app password by following the instructions from Google, you need to Enable 2FA for this to work. https://support.google.com/accounts/answer/185833
-
Specify the following settings:
SMTP_RUN='on_notification'
SMTP_SKIP_TLS=True
SMTP_FORCE_SSL=True
SMTP_PORT=465
SMTP_SERVER='smtp.gmail.com'
SMTP_PASS='16-digit passcode from google'
SMTP_REPORT_TO='some_target_email@gmail.com'
Brevo
Brevo allows for 300 free emails per day as of time of writing.
- Create an account on Brevo: https://www.brevo.com/free-smtp-server/
- Click your name -> SMTP & API
- Click Generate a new SMTP key
- Save the details and fill in the NetAlertX settings as below.
SMTP_SERVER='smtp-relay.brevo.com'
SMTP_PORT=587
SMTP_SKIP_LOGIN=False
SMTP_USER='user@email.com'
SMTP_PASS='xsmtpsib-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxx'
SMTP_SKIP_TLS=False
SMTP_FORCE_SSL=False
SMTP_REPORT_TO='some_target_email@gmail.com'
SMTP_REPORT_FROM='NetAlertX <user@email.com>'
GMX
- Go to your GMX account https://account.gmx.com
- Under Security Options enable 2FA (Two-factor authentication)
- Under Security Options generate an Application-specific password
- Home -> Email Settings -> POP3 & IMAP -> Enable access to this account via POP3 and IMAP
- In NetAlertX specify these settings:
SMTP_RUN='on_notification'
SMTP_SERVER='mail.gmx.com'
SMTP_PORT=465
SMTP_USER='gmx_email@gmx.com'
SMTP_PASS='<your Application-specific password>'
SMTP_SKIP_TLS=True
SMTP_FORCE_SSL=True
SMTP_SKIP_LOGIN=False
SMTP_REPORT_FROM='gmx_email@gmx.com' # this has to be the same email as in SMTP_USER
SMTP_REPORT_TO='some_target_email@gmail.com'