Per-User attachment blocking [bug id 12136]

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
rfic
Posts: 37
Joined: Fri Sep 12, 2014 10:32 pm

Per-User attachment blocking [bug id 12136]

Post by rfic »

I'm aware of the request for this @ Bug 12136 – RFE : Block attachments per COS / user but as the last comment is over a year ago i'm wondering on the status of this?
Anyway, has anyone else figured/hacked a way to do this?
I was thinking of postfix using header_checks but i'm unsure if multiple conditions, like:
if /^From: user@domain.com/

if /filename="?(.*).(gif|GIF)/

REJECT Sending filename gif or GIF is blocked for your user

endif

endif
(I'm yet to test this so my syntax is probably way off)
Any postfix wizards out there? Or is there a better way to do this another way?
rfic
Posts: 37
Joined: Fri Sep 12, 2014 10:32 pm

Per-User attachment blocking [bug id 12136]

Post by rfic »

Ok, I understand now with "Send blocked attachment report" ticked under the Attachments tab in "Global Settings" that amavis is used for this now, not postfix?
Is there a way to do what I want then, with amavis?
rfic
Posts: 37
Joined: Fri Sep 12, 2014 10:32 pm

Per-User attachment blocking [bug id 12136]

Post by rfic »

old thread but bump, this has come up again.. anyone with any new ideas on it ?
Post Reply