Thumbnail for How to Set Up Proxmox Email Notifications with Gmail (Web Interface Tutorial) by virtualize everything

How to Set Up Proxmox Email Notifications with Gmail (Web Interface Tutorial)

virtualize everything

9m 46s1,293 words~7 min read
YouTube auto captions
Transcript source

YouTube auto captions

This transcript was extracted from YouTube's auto-generated caption track. The transcript below is server-rendered so it can be read, searched, cited, and shared without opening the original YouTube player.

Timestamped outline
Pull quotes
[0:00]Today we're going to take a look at some configuration features inside of the Proxmox web interface that I just found out about.
[0:12]I'm sure they've been here for a while, but due to some viewer comments, I found out that these configurations can be applied to Proxmox with the web interface instead of having to use the command line.
[0:25]The first thing we're going to need to do to start configuring Proxmox to use your Google or Gmail server through the web interface is head to data center.
[0:39]At data center, we're going to scroll all the way down, and we're going to click notifications.
Use this transcript
Related transcript hubs

[0:00]Hello, and welcome to virtualize everything. Today we're going to take a look at some configuration features inside of the Proxmox web interface that I just found out about.

[0:12]I'm sure they've been here for a while, but due to some viewer comments, I found out that these configurations can be applied to Proxmox with the web interface instead of having to use the command line.

[0:25]The first thing we're going to need to do to start configuring Proxmox to use your Google or Gmail server through the web interface is head to data center.

[0:39]At data center, we're going to scroll all the way down, and we're going to click notifications. You should get a screen that looks like so.

[0:49]Now that we're here at the notification screen, we can start the steps of configuring Proxmox to work with our Gmail account.

[0:57]In order to start this step, we need to come up here to notification targets, and we need to click on Add.

[1:05]Clicking on Add, we're going to select SMTP, and we're going to give it a name. Let's call ours Gmail today.

[1:12]For server, we're going to enter smtp.gmail.com. For encryption, we're going to select STARTTLS. Port, we're going to use 587.

[1:29]Now, for our username, we're going to enter our Google account username. And for password, we're going to need to do the appropriate steps to get the app password from Google.

[1:43]At your Gmail account, you're going to want to make sure that you have two-step verification turned on. You can notice that I've already pre-configured this step.

[1:53]Then, you're going to want to view to myaccount.google.com/apppasswords and you'll get this screen here.

[2:06]If you get another screen, you may not have two-factor authentication turned on, or you may need to log out and log back in.

[2:16]Then, you should get this password. Here, at this screen, we're going to give it an app name of Proxmox.

[2:24]And once we've given it an app name, which you can choose as to whatever you would like. You could call it Dog, Cat, or Proxmox.

[2:33]We can hit create. Now, it's going to automatically generate our password. You want to copy this password.

[2:41]Head back to your Proxmox. Here in our Proxmox web interface, we're going to paste this in where it says password.

[2:48]Now for our from address, we're going to go ahead and use whatever we entered into the field of user, which should be our email address to our Gmail account.

[3:00]Recipients are going to be root@pam. And if we have any additional email addresses that we would like this information to go to, we can also enter that here in this field.

[3:15]Since we don't, we can go ahead at this point and click Add. And you can see that our new notification target has been added.

[3:26]Now, before we do any more testing, we need to understand these rules and then do some more configuration after we fully understand what's going on here below it.

[3:40]Which is we're using send mail, all emails generated by the Proxmox system to root@pam and the configured email address for root@pam.

[3:53]So, that means if we don't have the correct email address set in our system for the user account root, we won't receive any emails.

[4:05]To configure that user email address, we're going to scroll up in this bar, select users, select the root, hit edit, enter our correct email address here.

[4:18]For the sake of this video, we're going to use ve.test.video@gmail.com. Now that we've configured that email address, we can go back down here to notifications.

[4:31]Select Gmail and we want to do a test, so we'll hit Yes. And we notice that we've gotten an error message.

[4:41]So, it's saying that it couldn't communicate with Gmail, so let's go ahead, double click on Gmail and take a look at the problem.

[4:51]And right away I see that I entered stmo instead of SMTP. So let's hit Okay.

[5:00]Select Gmail again, press Test, hit Yes. And it says that it sent the test notification with no further error messages.

[5:10]Clicking Okay, we can go back to our Gmail account. And you can see that we got a test notification from the target Gmail.

[5:22]So that we know that we have everything configured. Let's see if we're getting system emails. So, to do so, let's head back to the Proxmox web interface.

[5:33]And let's make something to back up. First thing we're going to need is a CT template. To get the CT template, we're going to click local.

[5:42]CT templates, templates, select an image, press Download. When the download finishes, we can close the screen.

[5:52]Then we can go create templates, give it a password, enter the password again, and move through the steps of this wizard so that we have a so that we have a container that we can back up.

[6:08]This should trigger an email notification, allowing us to test our system. Now that it says Task Okay, we'll again close this window.

[6:18]Now that our container has been created, and we've closed the creation screen, we can go ahead, select the container, select backup, and press backup now.

[6:30]Now we should, now we should be able to enter our email address here in the send mail to, press backup. And when this backup task completes, it'll send us a notification that it has done so.

[6:48]Now that it says Task Okay, let's go ahead, close the window, open our email, and see if we've received anything.

[6:58]If all goes well, we should have received something, and we haven't. So we have more configuration to do in our Proxmox web interface.

[7:07]Let's once again select data server, scroll down, select notifications. Now that we're here at notifications, once again, let's take a look at notification matchers.

[7:23]I believe this is the problem why when we do a backup of container 100, we're not receiving an email. So let's, so let's select default matcher, click modify.

[7:37]And I believe the setting we want is targets to notify. And you can see mail to root is selected. And we want to change that to Gmail.

[7:50]We'll unselect mail to root because we don't want our mail to go to our root, we want it to go to the Gmail target.

[7:58]So we'll select Okay. And with that feature changed, let's once again go back to container 100, select backup, hit backup now, press backup.

[8:10]And now that our backup has finished, and we've gotten Task Okay, you can see we no longer sending mail to root, we're actually sending mail to the target of Gmail.

[8:22]So, that's a promising sign that we have successfully set up notifications. But let's go ahead, go to our Gmail account and verify it. But, let's close this window first.

[8:35]Now, here at our Gmail account, you can see a me, which is because it comes from the same email address. And you can see that we have successfully gotten an email about a successful backup.

[8:50]Clicking on it, we can get a report, and we can verify and look and see that everything did indeed successfully complete for the backup of container 100. And we also now know that our email notifications have been successfully set up for our Proxmox server, using the Proxmox web interface and the notifications tab underneath the data center configurations.

[9:25]I hope you enjoyed tonight's video on configuring email notifications inside of the Proxmox web interface. You're now able to start using your Gmail account to notify yourself about happenings inside of your Proxmox server.

[9:45]As always, please consider liking, sharing, and subscribing to help virtualize everything grow, and have a good night.

Need another transcript?

Paste any YouTube URL to get a clean transcript in seconds.

Get a Transcript