[exim] quarantine zip files in a special account excluding l…

Top Pagina
Delete this message
Reply to this message
Auteur: David W Smith
Datum:  
Aan: exim-users
Onderwerp: [exim] quarantine zip files in a special account excluding local domain email
Hi,

I quarantine zip files in a special account but this happens for both
mail sent from within the local domain and incoming email. What I would
like is for mail sent from my local domain to be ignored in terms of zip
attachments and only mail arriving at my mail server being subject to the
zip redirection policy.

I haven't been able to work out the syntax to achieve this yet and I was
wondering if anyone had a recipe or any tips on how this might be achieved.

The set up is Exim 4.44 (with exiscan-acl-4.44-28) installed on a Debian 3
Woody server.

Currently zip redirection is achieved as follows:

acl_check_mime:

   # redirection of zip files to a special account
   warn message = X-Redirect-Zip-To: [relevant email address]
        condition = ${if match \
                        {${lc:$mime_filename}} \
                        {\N( \.zip)$\N} \
                      {1}{0}}


router:

zip_redirect:
      driver = redirect
      condition = ${if def:h_X-Redirect-Zip-To: {1}{0}}
      headers_add = X-Original-Recipient: $local_part@$domain
      data = $h_X-Redirect-Zip-To:
      headers_remove = X-Redirect-Zip-To
      redirect_router = zip_redirect


So any help/pointers/ideas would be much appreciative.

David Smith

Sys Admin

University of Oxford