[exim] Using exim -Mvc in ACLs

Startseite
Nachricht löschen
Nachricht beantworten
Autor: admin
Datum:  
To: exim-users
Betreff: [exim] Using exim -Mvc in ACLs
Hello everyone,

So I have this in ACL DATA:

  warn  set acl_m_sa = ${run {/etc/domeny/testme $message_exim_id $acl_m_user} {$value} }
        log_message = acl_m_user: $acl_m_user


  warn  continue = {true}
        log_message = Testme result for message $message_id: $acl_m_sa


The script is:

#-----------cut--------------
#!/usr/local/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/etc/domeny:/etc/local/bin

RES=`exim -Mvc $1 | spamc -u $2 | gawk '{if ($0 ~ /^X-Spam-Status/) {printf("%s",$0); do { getline var; printf("%s",var); } while (var !~ /version=/); }}'`

exim -Mvc $1 > /tmp/mail.tmp

echo $RES
#-----------cut--------------

Logically enough, exim -Mvc in that script should pipe message into /tmp/mail.tmp.

Yet, what I get in that file is:

"Spool read error for 1IU60k-0006EN-MK-H: No such file or directory"

That would obviously mean that while ${run ... } executed the script,
exim -Mvc couldn't deliver the message.

Anybody knows the reason why and/or how to make this work?


Regards,
Marcin Krol