Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
fester112:email [2016/06/11 13:59] – external edit A User Not Logged in | fester112:email [2020/05/12 20:55] (current) – [Configuration Of A Gmail Account With 2 Step Verification] robthered | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Email Notifications ====== | ====== Email Notifications ====== | ||
- | The FreeNAS OS and the IPMI monitor | + | The FreeNAS OS and the IPMI monitor can give you warnings and other types of useful information delivered straight to your email account. This is an incredibly useful feature (not to mention important to the security of your data--it' |
===== Setting Up Email Notifications From The FreeNAS Web GUI ===== | ===== Setting Up Email Notifications From The FreeNAS Web GUI ===== | ||
- | Start by deciding which User from the “Accounts” → “Users” page you wish to use for this facility. Incidentally, you do not need to restrict yourself to just one user you can utilise as many as you like. | + | You'll first need to set an email address |
- | Fester uses the **root** account for this so go to the “Accounts” page (1) and click on the “Users” button (2). | + | {{: |
- | {{: | + | In the “Email” text box type in the email account you want to use to receive the messages from your server (Fester uses a Gmail account for this e.g. [email protected]). |
- | Now select the “root” account (1) by clicking on it (it should turn blue when you do) and then click on the “Modify User” button (2). | + | {{: |
- | {{: | + | Now scroll down this window and click on the “Save” button. |
- | In the “E-mail:” text box type in the email account you want to use to receive the messages from your server (Fester uses a Gmail account for this e.g. [email protected]). | + | {{: |
- | {{: | + | Now click " |
- | Now scroll down this window and click on the “OK” button. | + | {{:fester112:pasted:20190527-000026.png}} |
- | + | ||
- | {{:fester:c130eb4b9186ea4c5101ece667f556e0.png}} | + | |
- | + | ||
- | Now go to the “System” page (1) and click on the “Email” button (2). | + | |
- | + | ||
- | {{:fester:3575ea3231c7b273b2020da6db1a4195.png}} | + | |
To setup email notifications we must use an email address for one of the user accounts on the FreeNAS server (not your actual external email address e.g. [email protected]). This is an internal email address (i.e. for the server only) and it follows a specific syntax. Here is how it works. | To setup email notifications we must use an email address for one of the user accounts on the FreeNAS server (not your actual external email address e.g. [email protected]). This is an internal email address (i.e. for the server only) and it follows a specific syntax. Here is how it works. | ||
Line 31: | Line 25: | ||
**[email protected]** | **[email protected]** | ||
- | The hostname of your server can be found in the “System” → “Information” page and looks something like this. | + | The hostname of your server can be found in the “Dashboard” page and looks something like this. |
- | {{:fester:bc71d8a78875a148d5de553acd327f86.png}} | + | {{:fester112:pasted: |
Here is an example hostname. | Here is an example hostname. | ||
- | {{:fester:9e5c640ded950660055deef0d5cb12f1.png}} | + | {{:fester112:pasted: |
So in Fester’s case the internal email address would take this form. | So in Fester’s case the internal email address would take this form. | ||
- | **root@TestNAS1.local** | + | **root@freenas.local** |
So armed with this information we can now go ahead and start configuring the “Email” page. | So armed with this information we can now go ahead and start configuring the “Email” page. | ||
- | In the “From email:” text box (1) type the internal email address you want (Fester’s is root@TestNAS1.local). | + | In the “From email:” text box type the internal email address you want (Fester’s is root@freenas.local). |
- | In the “Outgoing mail server:” text box (2) type in the mail server of the email service you use. If you don’t know it you can usually get it from looking on the mail service provider’s website (Fester uses Gmail so this would be set to **smtp.gmail.com**). | + | In the “Outgoing mail server:” text box type in the mail server of the email service you use. If you don’t know it you can usually get it from looking on the mail service provider’s website (Fester uses Gmail so this would be set to **smtp.gmail.com**). |
The Gmail service uses port 25 for plain text email, port 465 for SSL encrypted email and port 587 for TLS encrypted email. | The Gmail service uses port 25 for plain text email, port 465 for SSL encrypted email and port 587 for TLS encrypted email. | ||
- | In the “Port to connect to:” text box (3) type in the port you need, again if you don’t know it you can usually get it from the mail service provider’s website (Fester uses SSL encryption therefore the port number is 465). | + | In the “Port to connect to:” text box type in the port you need, again if you don’t know it you can usually get it from the mail service provider’s website (Fester uses SSL encryption therefore the port number is 465). |
- | + | ||
- | In the “TLS/ | + | |
- | Put a tick in the “Use SMTP Authentication:” tick box (5) if this is required. | + | In the “TLS/SSL:” drop down selection |
- | In the “Username:” text box (6) type in the user name only (not the complete email address) of the external email address you want to use for notifications (in Fester’s case this is **Festerservermail**). | + | Put a tick in the “Use SMTP Authentication:” tick box if this is required. |
- | Next type in the password for your external email account | + | In the “Username: |
- | Now click the “Save” button | + | Next type in the password for your external email account |
- | Do not click on the “Send Test Mail” button | + | Now click the “Save” button. |
- | {{: | + | Do not click on the “Send Test Mail” button yet as there is a little more work to be done. |
The next part applies specifically to Gmail. If you are using a different mail service provider I can’t help you. | The next part applies specifically to Gmail. If you are using a different mail service provider I can’t help you. | ||
Line 83: | Line 75: | ||
===== Configuration Of A Gmail Account With 2 Step Verification ===== | ===== Configuration Of A Gmail Account With 2 Step Verification ===== | ||
- | Unfortunately Fester cannot help you because he doesn’t know how. | + | In order to do this, you need to create an application password. |
- | If anyone would like to provide the information with some copyright free screen shots I will try to include them in the guide or you could replace this or any section with your own? | + | This will create a revoke-able app password that only allows access |
===== Setting Up Email Notifications From The IPMI Web GUI ===== | ===== Setting Up Email Notifications From The IPMI Web GUI ===== |