proxmox/proxmox-notify
Lukas Wagner 53627a1952 notify: add 'smtp' endpoint
This commit adds a new endpoint type, namely 'smtp'. This endpoint
uses the `lettre` crate to directly send emails to SMTP relays.

The `lettre` crate was chosen since it is by far the most popular SMTP
implementation for Rust that looks like it is well maintained.
Also, it includes async support (for when we want to extend
proxmox-notify to be async).

For this new endpoint type, a new section-config type was introduced
(smtp). It has the same fields as the type for `sendmail`, with the
addition of some new options (smtp server, authentication, tls mode,
etc.).

Some of the behavior that is shared between sendmail and smtp
endpoints has been moved to a new `endpoints::common::mail` module.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-11-17 08:31:36 +01:00
..
debian bump proxmox-notify to 0.2.0 2023-07-28 11:56:56 +02:00
examples notify: factor out notification content into its own type 2023-11-17 08:31:36 +01:00
src notify: add 'smtp' endpoint 2023-11-17 08:31:36 +01:00
Cargo.toml notify: add 'smtp' endpoint 2023-11-17 08:31:36 +01:00