[exim] Saving certain attachments to disk

Startseite
Nachricht löschen
Nachricht beantworten
Autor: George Stevens
Datum:  
To: exim-users
Betreff: [exim] Saving certain attachments to disk
Hi there,

I am trying to check if a mail has attachments of a particular type, if so
then save it to the disk with a unique filename and then run a program. I
am having real problems having success. The logs are not indicating much
either so i am hoping to gain some insight here.

I am using Exim 4.52 with WITH_CONTENT_SCAN=yes in Local/Makefile

Here is my config:

# ACL Section
acl_check_mime:
      accept local_parts = images
      domains            = mydomain.com
      decode             = /home/exim/attach/$mime_filename



#Router Section
attach_router:
  no_verify
  driver                 = accept
  domains                = mydomain.com
  local_part_prefix      = images
  transport              = imagetransport
  no_more



#Transport Section
imagetransport:
    driver               = pipe
    command              = /home/exim/devel/script.pl $mime_filename
    ignore_status
    user                 = exim
    group                = exim


Any assistance or referal to appropriate documentation would be greatly
appreciated.

Thanks,
George