Custom Action Objects

utkonos

Active Member
Apr 11, 2022
152
44
33
Is it possible to make custom Action Objects?

I have a rule to help users who send to variations of "donotreply" so that they get immediate feedback that they need to find a real email address and resend. The goal is to prevent them from thinking they contacted someone and then finding out later that they didn't send to who they thought they did.

One alternative is to make a custom Block Action Object that has a different message and error code from the current generic one about policy.

Another alternative is to use the Notification Action Object along with another custom Action Object called "Swallow". The Notification handles sending the error message back to the sender, and the custom Action Object does exactly the same thing as Block, but it silently eats the email and nothing more.

The former seems cleaner, with the custom Block Object just having an alternative message and error. I can see this type of feature being valuable for other use cases where the message or error code could be more specific.
 
One alternative is to make a custom Block Action Object that has a different message and error code from the current generic one about policy.
see:
https://bugzilla.proxmox.com/show_bug.cgi?id=2505

Another alternative is to use the Notification Action Object along with another custom Action Object called "Swallow". The Notification handles sending the error message back to the sender, and the custom Action Object does exactly the same thing as Block, but it silently eats the email and nothing more.
If you do not configure before-queue filtering, and don't enable 'Send NDR on Blocked E-mails' in the mail proxy options a Block should not be sent to the sender.

I hope this helps!