* [PATCH pve-guest-common v2 1/3] fix #5713: vzdump: add notification-mode none
2026-05-13 10:31 [PATCH guest-common/manager v2 0/3] fix #5713: vzdump: add notification-mode none Erik Fastermann
@ 2026-05-13 10:31 ` Erik Fastermann
2026-05-13 10:31 ` [PATCH pve-manager v2 2/3] " Erik Fastermann
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Erik Fastermann @ 2026-05-13 10:31 UTC (permalink / raw)
To: pve-devel; +Cc: Erik Fastermann
Optionally disable sending notification mails with the new option
none for notification-mode in vzdump.
This can be useful if you want to disable sending notifications for a
specific backup job and not change the global notification settings or
use the deprecated legacy sendmail with an empty address.
Signed-off-by: Erik Fastermann <e.fastermann@proxmox.com>
---
changes since v1:
* fix small type send -> sent
src/PVE/VZDump/Common.pm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/PVE/VZDump/Common.pm b/src/PVE/VZDump/Common.pm
index 67a4cf4..2cb48a3 100644
--- a/src/PVE/VZDump/Common.pm
+++ b/src/PVE/VZDump/Common.pm
@@ -261,9 +261,10 @@ my $confdesc = {
. " specified address(es) via the 'sendmail' command. If set to 'notification-system',"
. " a notification will be sent via PVE's notification system, and the mailto and"
. " mailnotification will be ignored. If set to 'auto' (default setting), an email will"
- . " be sent if mailto is set, and the notification system will be used if not.",
+ . " be sent if mailto is set, and the notification system will be used if not."
+ . " If set to 'none', no notification will be sent.",
optional => 1,
- enum => ['auto', 'legacy-sendmail', 'notification-system'],
+ enum => ['auto', 'legacy-sendmail', 'notification-system', 'none'],
default => 'auto',
},
tmpdir => {
--
2.47.3
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH pve-manager v2 2/3] fix #5713: vzdump: add notification-mode none
2026-05-13 10:31 [PATCH guest-common/manager v2 0/3] fix #5713: vzdump: add notification-mode none Erik Fastermann
2026-05-13 10:31 ` [PATCH pve-guest-common v2 1/3] " Erik Fastermann
@ 2026-05-13 10:31 ` Erik Fastermann
2026-05-13 10:31 ` [PATCH pve-manager v2 3/3] ui: " Erik Fastermann
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Erik Fastermann @ 2026-05-13 10:31 UTC (permalink / raw)
To: pve-devel; +Cc: Erik Fastermann
Optionally disable sending notification mails with the new option
none for notification-mode in vzdump.
This can be useful if you want to disable sending notifications for a
specific backup job and not change the global notification settings or
use the deprecated legacy sendmail with an empty address.
Signed-off-by: Erik Fastermann <e.fastermann@proxmox.com>
---
PVE/VZDump.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index defe9e0a..f51f87c1 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -496,6 +496,8 @@ sub send_notification {
my $policy = $opts->{mailnotification} // 'always';
my $mode = $opts->{"notification-mode"} // 'auto';
+ return if $mode eq 'none';
+
sanitize_task_list($tasklist);
my ($error_count, $total_size) = aggregate_task_statistics($tasklist);
--
2.47.3
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH pve-manager v2 3/3] ui: vzdump: add notification-mode none
2026-05-13 10:31 [PATCH guest-common/manager v2 0/3] fix #5713: vzdump: add notification-mode none Erik Fastermann
2026-05-13 10:31 ` [PATCH pve-guest-common v2 1/3] " Erik Fastermann
2026-05-13 10:31 ` [PATCH pve-manager v2 2/3] " Erik Fastermann
@ 2026-05-13 10:31 ` Erik Fastermann
2026-06-09 7:16 ` [PATCH guest-common/manager v2 0/3] fix #5713: " Erik Fastermann
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Erik Fastermann @ 2026-05-13 10:31 UTC (permalink / raw)
To: pve-devel; +Cc: Erik Fastermann
Add the notification-mode none in the ui dropdown for backup jobs.
Signed-off-by: Erik Fastermann <e.fastermann@proxmox.com>
---
www/manager6/window/Backup.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/www/manager6/window/Backup.js b/www/manager6/window/Backup.js
index 7c1c54de..0caada65 100644
--- a/www/manager6/window/Backup.js
+++ b/www/manager6/window/Backup.js
@@ -43,13 +43,14 @@ Ext.define('PVE.window.Backup', {
['notification-system', gettext('Use global settings')],
// TRANSLATORS: sendmail is a piece of software
['legacy-sendmail', gettext('Use sendmail (legacy)')],
+ ['none', gettext('None')],
],
fieldLabel: gettext('Notification'),
name: 'notification-mode',
value: 'notification-system',
listeners: {
change: function (field, value) {
- mailtoField.setHidden(value === 'notification-system');
+ mailtoField.setHidden(value !== 'legacy-sendmail');
},
},
});
--
2.47.3
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH guest-common/manager v2 0/3] fix #5713: vzdump: add notification-mode none
2026-05-13 10:31 [PATCH guest-common/manager v2 0/3] fix #5713: vzdump: add notification-mode none Erik Fastermann
` (2 preceding siblings ...)
2026-05-13 10:31 ` [PATCH pve-manager v2 3/3] ui: " Erik Fastermann
@ 2026-06-09 7:16 ` Erik Fastermann
2026-07-28 9:08 ` Erik Fastermann
2026-10-06 8:26 ` Lukas Wagner
5 siblings, 0 replies; 8+ messages in thread
From: Erik Fastermann @ 2026-06-09 7:16 UTC (permalink / raw)
To: pve-devel
Gentle ping. This patch series still cleanly applies on master.
On 5/13/26 12:29 PM, Erik Fastermann wrote:
> Optionally disable sending notification mails with the new option
> none for notification-mode in vzdump.
>
> Also includes an optional commit to add this to the ui.
>
>
> pve-guest-common:
>
> Erik Fastermann (1):
> fix #5713: vzdump: add notification-mode none
>
> src/PVE/VZDump/Common.pm | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
>
> pve-manager:
>
> Erik Fastermann (2):
> fix #5713: vzdump: add notification-mode none
> ui: vzdump: add notification-mode none
>
> PVE/VZDump.pm | 2 ++
> www/manager6/window/Backup.js | 3 ++-
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
>
> Summary over all repositories:
> 3 files changed, 7 insertions(+), 3 deletions(-)
>
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH guest-common/manager v2 0/3] fix #5713: vzdump: add notification-mode none
2026-05-13 10:31 [PATCH guest-common/manager v2 0/3] fix #5713: vzdump: add notification-mode none Erik Fastermann
` (3 preceding siblings ...)
2026-06-09 7:16 ` [PATCH guest-common/manager v2 0/3] fix #5713: " Erik Fastermann
@ 2026-07-28 9:08 ` Erik Fastermann
2026-10-05 14:20 ` Erik Fastermann
2026-10-06 8:26 ` Lukas Wagner
5 siblings, 1 reply; 8+ messages in thread
From: Erik Fastermann @ 2026-07-28 9:08 UTC (permalink / raw)
To: pve-devel
Gentle ping. This patch series still cleanly applies on master.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH guest-common/manager v2 0/3] fix #5713: vzdump: add notification-mode none
2026-05-13 10:31 [PATCH guest-common/manager v2 0/3] fix #5713: vzdump: add notification-mode none Erik Fastermann
` (4 preceding siblings ...)
2026-07-28 9:08 ` Erik Fastermann
@ 2026-10-06 8:26 ` Lukas Wagner
5 siblings, 0 replies; 8+ messages in thread
From: Lukas Wagner @ 2026-10-06 8:26 UTC (permalink / raw)
To: Erik Fastermann, pve-devel
On Wed May 13, 2026 at 12:31 PM CEST, Erik Fastermann wrote:
> Optionally disable sending notification mails with the new option
> none for notification-mode in vzdump.
>
> Also includes an optional commit to add this to the ui.
>
Hey Erik,
I'm very sorry for the very late reply, I completely missed this series.
If you have any other notification-related patches in the future, feel
free to ping me directly.
At first, I was a bit hesitant about whether adding a new notification
mode would be good idea. The notification mode was always a bit of a
hack, one that enabled us to support the legacy notifications
(legacy-sendmail, the ones where the user just provides an email address
at the backup job invocation/job) alongside the 'new' notification stack
based on matchers. I always planned to eventually phase out the legacy
mode, but it turned out to be quite a hard problem to automatically
migrate the old settings to an equivalent matcher-based config, which is
why the 'old' mode is still there.
Given this, I was unsure whether I wanted to build on this 'hack', but
after giving it some more thought, I think its fine. Even with the
legacy-mode phased out, the vzdump CLI should have a way to quickly opt
out from notifications (maybe it should even be the default for CLI
invocations), and using the `notification-mode` parameter is only
fitting I think.
Adding it to the UI also seems reasonable to me. I wonder if it would
make sense to also add it to backup *jobs*, but there it could make
sense to wait until a user actually requests it; we should encourage
users to set up proper notification configuration for their jobs, after
all.
I've actually thought about 'undeprecating' the legacy-mode for a while
now, as in quite a few cases is just way simpler to use if all a user
wants is to receive an email. The additional code complexity is
manageable, so maybe it should just stay as is. Just thinking out aloud
here, it's not really decided yet.
Acked-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
^ permalink raw reply [flat|nested] 8+ messages in thread