2 minute read.
Last Modified 2021-03-31 15:15 EDTAn automatic script sends a nightly email to the administrator (root) account containing important information such as the health of the disks. Alert events are also emailed to the root user account. Configure the system to send these emails to the administrator’s remote email account for fast awareness and resolution of any critical issues.
Scrub Task issues and S.M.A.R.T. reports are mailed separately to the address configured in those services.
Before configuring anything else, set the root account email address.
Go to Accounts > Users, click more_vert and Edit for the root
user.
In the Email field, enter a remote email address that is regularly monitored by the system administrator, like admin@example.com and click SAVE.
The remaining configuration is done from System > Email.
General Options
Name | Description |
---|---|
From Email | The user account Email address to use for the envelope From email address. The user account Email in Accounts > Users > Edit must be configured first. |
From Name | The friendly name to show in front of the sending email address. Example: Storage System 01<it@example.com> |
Send Mail Method
Name | Description |
---|---|
SMTP | Shows SMTP configuration options. |
GMail OAuth | Shows GMail authentication options. |
Changing the Send Mail Method shows different options:
Name | Description |
---|---|
Outgoing Mail Server | Hostname or IP address of SMTP server used for sending email. |
Mail Server Port | SMTP port number. Typically 25 /465 (secure SMTP), or 587 (submission). |
Security | Choose an encryption type. Choices are Plain (No Encryption), SSL (Implicit TLS), or TLS (STARTTLS). |
SMTP Authentication | Set when the SMTP server uses authentication credentials. Shows additional credentials options. |
Username | Enter the SMTP username when the SMTP server requires authentication. |
Password | Enter the SMTP account password if needed for authentication. Only plain text characters (7-bit ASCII) are allowed in passwords. UTF or composed characters are not allowed. |
To use Gmail OAuth, select the option and click LOG IN TO GMAIL.
Log into a GMail account as normal for TrueNAS to autoconfigure the connection to GMail.
Click SEND TEST MAIL to verify the configured email settings are working. If the test email fails, double-check that the Email field of the root user is correctly configured by clicking the Edit button for the root account in Accounts > Users.