server wide filter file

enginaar

Verified User
Joined
May 20, 2004
Messages
151
Location
Turkiye
Hello,

I want to do a server-wide filter file for all domains on system. I first thought that will it be ok for all domains, if i change the "condition" line to one file that i will create.

domain_filter:
driver = redirect
allow_filter
no_check_local_user
condition = "${if exists{/etc/virtual/${domain}/filter}{yes}{no}}"
user = "mail"
file = /etc/virtual/${domain}/filter
file_transport = address_file
pipe_transport = virtual_address_pipe
retry_use_local_part
no_verify

But users domain filters will be disabled if i do that.

I also want users to add or change their own filters for their domains. I mean they may be protected by both their own filter and a general filter.

Thanks.
 
Back
Top