Setting Up Email Notifications in Proxmox!

Поділитися
Вставка
  • Опубліковано 25 сер 2024
  • Hello again!
    In today's video, I will go over email notifications in Proxmox and how you can set them up for notifications regarding the status of your Homelab!Receiving notifications via email is a great way to monitor the progress of specific tasks in your Homelab, from backing up virtual machines, to drive failures. Setting up notifications will ensure you aren't in the dark if the unforeseen happens!
    COMMANDS:
    1 ) Installing Required Packages:
    apt update
    apt install -y libsasl2-modules mailutils
    2 ) Creating the password file for Authentication:
    cd /etc/postfix
    nano sasl_passwd
    2.1 ) sasl_passwd contents (replace with your own credentials)
    smtp.gmail.com example@gmail.com:password
    3 ) Set password file permissions & Generate DB:
    chmod 600 sasl_passwd
    postmap hash:sasl_passwd
    4 ) Configure Postfix Configuration:
    nano /etc/postfix/main.cf
    4.1 ) Postfix Configuration contents:
    relayhost = smtp.gmail.com:587
    smtp_use_tls = yes
    smtp_sasl_auth_enable = yes
    smtp_sasl_security_options =
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_tls_CAfile = /etc/ssl/certs/Entrust_Root_Certification_Authority.pem
    smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cachesmtp_tls_session_cache_timeout = 3600s
    5 ) Restarting Postfix/Nodes:
    postfix reload
    reboot
    6 ) Testing email notifications (replace example with your own email address):
    echo "Test Email" | mail -s "Test Subject" example@gmail.com
    echo "Test email from Proxmox: $(hostname)" | /usr/bin/proxmox-mail-forward
    Viola! You have configured email notifications on Proxmox!
    Stay tuned for more Homelab content!
    CONNECT WITH ME!
    links.selfhost...
    Thank you so much for watching, make sure to leave a like, comment, and if you are so inclined to, SUBSCRIBE!

КОМЕНТАРІ • 5

  • @a3-82
    @a3-82 15 днів тому

    greats tutorial

  • @matthiashavrez
    @matthiashavrez 2 місяці тому +1

    I just discovered your channel and the 5 or 6 videos you have already uploaded are PACKED FULL of interesting content. I'm not kidding, your ratio of meat vs fat is up there.
    Keep up the good work, what you are doing is really good. I've been using Proxmox for 4 years, and I had never taken the time to learn how to do this, and now, thanks to you, I know how to.
    So yeah, thanks.

    • @SelfHostedToast
      @SelfHostedToast  2 місяці тому

      Wow, thank you so much for the kind words. Ultimately that is my goal for this channel, to not only share cool tech, but also to inspire others like me to do these cool things. Thank you for your support.

  • @xick98
    @xick98 2 місяці тому +4

    bro please zoom. Can't see a damn thing. Goto screen settings and set a 150% scale at least

    • @SelfHostedToast
      @SelfHostedToast  2 місяці тому +2

      I do apologize for the inconvenience, I am using a monitor 3 times the size I am used to, I will get it right hahaha