Linux serverNETWORK ADMINISTRATIONSsmtp server liux

Proxmox-NUT Homelab HOWTO – Step 2: Setup Gmail / Test from shell, GUI and startup / shutdown

Article: https://www.alanbonnici.com/2024/07/proxmox-nut-homelab-howto-step-2-setup.html

Links

Setting up Email Notifications in Proxmox Using Gmail: https://www.naturalborncoder.com/linux/2023/05/19/setting-up-email-notifications-in-proxmox-using-gmail/
Send me an email on computer shutdown: https://askubuntu.com/questions/851946/send-me-an-email-on-computer-shutdown
Gmail: https://www.google.com
Run Jobs or Scripts Using Crontab on Boot: https://www.linode.com/docs/guides/run-jobs-or-scripts-using-crontab-on-boot/
—————————————————————————————————————————————————

The series includes this article, a 7-part video series, and a VMWare archive. This is Part 3/7.

In this HowTo, I cover the following steps:
1. Configure a VM on VMWare Workstation Pro to install Proxmox on it;
2. Install a Windows Server 2022 VM as a VM in Proxmox;
3. Install the NUT (Network UPS Tools) UPS Software.

I also configure Proxmox, Windows Server 2022, and NUT to use a Gmail SMTP relay. This will be used by Proxmox and Windows server to send emails when they start and stop. Proxmox and NUT will provide additional status information.

Windows Server is configured to start automatically when Proxmox starts and will shut down cleanly without manual intervention when Proxmox is shutdown or rebooted.

Every stage is tested out to verify that everything is working as expected. Any limitations are highlighted.

A snapshot of the VM state after every Step is taken. You can download the entire archive and run it on your own hardware.

If you decide you run the VMWare Image on your own hardware, you need to change the email address and password to your values, otherwise the SMTP relay will not work. The places that need to be modified are:
– Proxmox notifications related to root@pam;
– Postfix SMTP settings (/etc/postfix/sasl_passwd). You need to hash the file afterwards;
– Windows startup and shutdown batch file (C:sendEmail-v 156Email.cmd);
– NUT script /etc/nut/upssched.conf.

VMWare Workstation is now free for personal use.

You can download the HOWTO Proxmox-NUT VMWare from https://drive.google.com/file/d/1o_Km3r_3gAZgYO6GzZ1vBNaQ9eg-8pNE/view?usp=drive_link [15G].

The article is available at: https://www.alanbonnici.com/2024/07/proxmox-nut-homelab-howto.html.

The video series is available at: https://www.youtube.com/playlist?list=PLt_MXOexTCYX354b7wIqLRGjnB6KHvQY7&jct=eEAnqVaa8Cosm59uShOUTA.

source

by Alan C. Bonnici

linux smtp server