Problems with Proxmox notification emails and matcher rules

m.rosales

New Member
Sep 1, 2025
2
0
1
I’m trying to set up some notification scripts using the new Proxmox Notifications system, but I’ve run into a couple of problems.

When I send a test mail to root like this:
Code:
mail -s "Test subject" "root@localhost" <<EOF
Test mail content
EOF

I do get the message, the subject looks fine, but the body doesn’t appear directly in the email. Instead, it comes attached as a separate .eml file.
Is there a way to make the text show directly in the email instead of as an attachment?

My second issue is with creating a Notification Matcher. If I configure a rule like this:
Code:
Match field: type=system-mail
then mails sent to root don’t arrive at all. But if I leave the default matcher active, they work fine.

Any advice would be greatly appreciated. Thanks in advance!

Best regards,
 
For the first problem, that behavior was due to a bug in the package proxmox-mail-forward. Updating to the latest version fixes it and the message body will now be included correctly instead of being sent as an .eml file.


As for the second issue, you’re right — there was a bug where forwarded mails didn’t have the type property set, so they couldn’t be matched with type=system-mail. This has already been corrected starting from proxmox-mail-forward 0.2.3.


Please update your system and verify with:
Code:
pveversion -v
to confirm the package version. Once updated, the matcher should work as expected.