[TUTORIAL] Script for Proxmox Email notifications configuration

Tonton_Jo

Member
Apr 27, 2020
4
11
8
35
Hello everybody!

EDIT: This tool is now included "Proxmox Toolbox" - Edited this post in order to update path and links.

As beginner, i had some difficulties getting Proxmox e-mail settings configuration up and running.
I recently wrote a little script to get the configuration done with ease on my youtube channel and guessed it may interest some of you.

If this post goes against any of the forum rules, all my apologies, please delete it.

The script was wrote with Gmail configuration in mind but it have been tested working with Infomaniak and should work for a wild bunch of servers.
I have wrote it with all my knowledge and love but it may be incomplete but it does work and is really easy to use.

there's a demonstration of this script there, it's in french but the script is wrote and commented in english.
https://www.youtube.com/watch?v=dmVqvROGW4Y

USAGE:
This tool is now included in Proxmox Toolbox:
Please find more informations about it in Proxmox forum, on github or watch a demonstration (and improve your french)

For Gmail, another step is needed, you need to allow less secure apps in your account settings:
https://myaccount.google.com/lesssecureapps

You can read the script there:
https://github.com/Tontonjo/proxmox_toolbox/blob/main/proxmox_toolbox.sh

Hope it helps!

Regards - Tonton Jo
 
Last edited:
Hello everybody!

As beginner, i had some difficulties getting Proxmox e-mail settings configuration up and running.
I recently wrote a little script to get the configuration done with ease on my youtube channel and guessed it may interest some of you.

If this post goes against any of the forum rules, all my apologies, please delete it.

The script was wrote with Gmail configuration in mind but it have been tested working with Infomaniak and should work for a wild bunch of servers.
I have wrote it with all my knowledge and love but it may be incomplete but it does work and is really easy to use.


there's a demonstration of this script there, it's in french but the script is wrote and commented in english.
https://www.youtube.com/watch?v=dmVqvROGW4Y

USAGE:
You can pull and execute this script using:
Code:
wget https://raw.githubusercontent.com/Tontonjo/proxmox/master/ez_proxmox_mail_configurator.sh
bash ez_proxmox_mail_configurator.sh

For Gmail, another step is needed, you need to allow less secure apps in your account settings:
https://myaccount.google.com/lesssecureapps

You can read the script there:
https://github.com/Tontonjo/proxmox/blob/master/ez_proxmox_mail_configurator.sh

Hope it helps!

Regards - Tonton Jo

@Tonton_J

It'd be nice in English, but generally clear :)

But it did not work for me.

I do use 2-steps verification in gmail and with other services use application specific password.
Is your script handling this ?

Thx !
 
@Tonton_J

It'd be nice in English, but generally clear :)

But it did not work for me.

I do use 2-steps verification in gmail and with other services use application specific password.
Is your script handling this ?

Thx !

Hello!
This script is actually not handling this: i could add support but i have no time ATM, so if you feel confident, you may want to open a PR!

For 2fa you may want to follow thoses steps: did no tried myself but looks OK
https://www.linode.com/docs/email/p...ng-gmail-and-google-apps-on-debian-or-ubuntu/
 
what if I want to stop email notifications from being sent?

I wish not to configure my smtp, and it blowns my syslog with attemps/error postfix.
 
Hello everybody!

As beginner, i had some difficulties getting Proxmox e-mail settings configuration up and running.
I recently wrote a little script to get the configuration done with ease on my youtube channel and guessed it may interest some of you.

If this post goes against any of the forum rules, all my apologies, please delete it.

The script was wrote with Gmail configuration in mind but it have been tested working with Infomaniak and should work for a wild bunch of servers.
I have wrote it with all my knowledge and love but it may be incomplete but it does work and is really easy to use.


there's a demonstration of this script there, it's in french but the script is wrote and commented in english.
https://www.youtube.com/watch?v=dmVqvROGW4Y

USAGE:
You can pull and execute this script using:
Code:
wget https://raw.githubusercontent.com/Tontonjo/proxmox/master/ez_proxmox_mail_configurator.sh
bash ez_proxmox_mail_configurator.sh

For Gmail, another step is needed, you need to allow less secure apps in your account settings:
https://myaccount.google.com/lesssecureapps

You can read the script there:
https://github.com/Tontonjo/proxmox/blob/master/ez_proxmox_mail_configurator.sh

Hope it helps!

Regards - Tonton Jo
Muito bom, funcionou perfeitamente aqui pra mim. O PROXMOX envia automaticamente emails, porem sem autenticação e com isso alguns provedores bloqueam pensando ser SPAM, com essa configuração tudo foi resolvido e vzdump agora envia os alertas perfeitamente!!! Genial!!! Parabens!!!
 
Hello everybody!

As beginner, i had some difficulties getting Proxmox e-mail settings configuration up and running.
I recently wrote a little script to get the configuration done with ease on my youtube channel and guessed it may interest some of you.

If this post goes against any of the forum rules, all my apologies, please delete it.

The script was wrote with Gmail configuration in mind but it have been tested working with Infomaniak and should work for a wild bunch of servers.
I have wrote it with all my knowledge and love but it may be incomplete but it does work and is really easy to use.


there's a demonstration of this script there, it's in french but the script is wrote and commented in english.
https://www.youtube.com/watch?v=dmVqvROGW4Y

USAGE:
You can pull and execute this script using:
Code:
wget https://raw.githubusercontent.com/Tontonjo/proxmox/master/ez_proxmox_mail_configurator.sh
bash ez_proxmox_mail_configurator.sh

For Gmail, another step is needed, you need to allow less secure apps in your account settings:
https://myaccount.google.com/lesssecureapps

You can read the script there:
https://github.com/Tontonjo/proxmox/blob/master/ez_proxmox_mail_configurator.sh

Hope it helps!

Regards - Watch Jo
Thank you very much !!!!!! Lifesaver !!! working with external my own domain smtp through port 587
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!