85-enable-antivirus-check 553 Bytes
Newer Older
Steve Kemp's avatar
Added  
Steve Kemp committed
1
2
3
4
5
6
7
  # Test to see if a domain needs virus scanning, 
  warn    domains    = +vhost_domains
          condition  = ${if and{\
                         {exists{VHOST_DIR/${domain}/VHOST_CONFIG_DIR/antivirus}} \
                         {!eq{$acl_m2}{tag}} \
                       }}

Paul Cammish's avatar
Paul Cammish committed
8
          set acl_m2 = ${if match{${extract{smode}{${stat:VHOST_DIR/${domain}/VHOST_CONFIG_DIR/antivirus}}}}{\Nr\N}{\
Steve Kemp's avatar
Added  
Steve Kemp committed
9
10
11
                          ${if match{${readfile{VHOST_DIR/${domain}/VHOST_CONFIG_DIR/antivirus}}}{^tag}{tag}{reject}}\
                       }{reject}}