[pve-devel] [PATCH v4 many 00/11] notifications: add SMTP endpoint

Lukas Wagner l.wagner at proxmox.com
Thu Nov 9 11:23:47 CET 2023


On 11/8/23 16:52, Dietmar Maurer wrote:
>> This patch series adds support for a new notification endpoint type,
>> smtp. As the name suggests, this new endpoint allows PVE to talk
>> to SMTP server directly, without using the system's MTA (postfix).
> 
> Isn't this totally unreliable? What if the server responds with a
> temporary error code? (An MTA retries several times).

The notification system has no mechanism yet for queuing/retries,
so yes, at the moment a SMTP endpoint would indeed be less reliable than 
a 'sendmail' endpoint. I'm not sure though if I would call it
'totally unreliable'.
The same thing applies for gotify/webhook endpoints - if the network or 
Gotify server is down, a notification cannot be sent.
A queuing/retry mechanism could be added at some point, but this would 
require some bigger changes, as the notification system is completely 
stateless right now.

-- 
- Lukas





More information about the pve-devel mailing list