]> git.proxmox.com Git - proxmox-mail-forward.git/commit
feed forwarded mails into proxmox_notify
authorLukas Wagner <l.wagner@proxmox.com>
Tue, 14 Nov 2023 12:59:59 +0000 (13:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 16:55:31 +0000 (17:55 +0100)
commit7333224dd37afd9c448cc66236d55c3a277422d8
tree234634313e255894afd5756ca78e23989af2a506
parent401b9e98f5d035875cc33c40f93f3107f92ee248
feed forwarded mails into proxmox_notify

This allows us to send notifications for events from daemons that are
not under our control, e.g. zed, smartd, cron. etc...

For mail-based notification targets (sendmail, soon smtp) the mail is
forwarded as is, including all headers.
All other target types will try to parse the email to extra subject
and text body.

On PBS, where proxmox-notify is not yet fully integrated,
we simply add a default target/matcher to an empty config. That way
the behavior should be unchanged - mails will be forwarded to
root@pam.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Cargo.toml
src/main.rs