Commit Graph

21 Commits

Author SHA1 Message Date
Thomas Lamprecht
23cd21f350 bump version to 0.3.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-04-08 12:45:28 +02:00
Thomas Lamprecht
7932ef3ec1 cargo: require proxmox-notify version 0.5.4
To ensure recent fixes and features are also available here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-04-08 12:44:17 +02:00
Maximiliano Sandoval
2155483906 cargo: port to rust 2024 edition
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2025-03-18 11:32:51 +01:00
Thomas Lamprecht
87b85a5b96 bump version to 0.3.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-19 13:19:14 +01:00
Thomas Lamprecht
62399a8e50 bump version to 0.3.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-19 12:46:03 +01:00
Thomas Lamprecht
6abe14d04b cargo: update dependcy for proxmox-notify to 0.5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-19 12:44:31 +01:00
Fabian Grünbichler
f58f921e54 bump proxmox-sys to 0.6
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-07-25 12:58:37 +02:00
Fabian Grünbichler
d4af462220 bump proxmox-notify
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-20 10:27:03 +02:00
Wolfgang Bumiller
e2efb8b87d bump version to 0.2.3
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-01-11 10:03:11 +01:00
Wolfgang Bumiller
105832c758 bump notify to 0.3.1 and sys to 0.5.3 for mail fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-01-11 08:48:50 +01:00
Thomas Lamprecht
3a41576cbc bump version to 0.2.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-21 17:31:32 +01:00
Thomas Lamprecht
0fd9c187e7 bump version to 0.2.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-17 17:58:50 +01:00
Lukas Wagner
e1088274be update d/control
proxmox-schema and proxmox-section config is not required anymore.
add new dependency to proxmox-notify.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
 [ TL: notify got bumped to 0.3 ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-17 17:56:36 +01:00
Lukas Wagner
7333224dd3 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>
2023-11-17 17:55:31 +01:00
Thomas Lamprecht
63c67a8705 bump version to 0.2.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-26 17:22:04 +02:00
Thomas Lamprecht
7dbc739814 update dependencies for current bookworm state
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-26 17:22:04 +02:00
Fabian Grünbichler
332aa4de1e build: update nix to 0.26
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-23 11:15:26 +01:00
Wolfgang Bumiller
8684dcb447 bump section config dependency to 1.0.2
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-28 09:36:00 +01:00
Wolfgang Bumiller
068e714070 bump version to 0.1.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-28 09:32:35 +01:00
Wolfgang Bumiller
5e758590d6 require proxmox-section-config 1.0.1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-11-10 11:31:22 +01:00
Fiona Ebner
28f222cd6e initial commit
It is intended to replace the current pvemailforward binary+script in
PVE and also be used in PBS. The implemenation is largely based on the
pvemailforward script to try and keep behavior mostly the same in PVE.

To read the config in PBS, the binary would need to belong to
backup:backup with setuid and setgid bits (proxmox-backup is 700 owned
by backup:backup and user.cfg is 640 owned by root:backup). To read
the configs in PVE the setgid bit for www-data would need to be set.

To avoid this issue, the helper will be a root-owned setuid binary and
set the effective UID to the real UID, after reading in the config
files.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2022-11-10 11:28:17 +01:00