[exim] Piping message in ACL DATA

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: admin
Dátum:  
Címzett: Exim Users List
Tárgy: [exim] Piping message in ACL DATA


Hello,

OK, so I found this dlfunc extension:

http://www.ols.es/exim/dlext/

pipe_message works fine, except
this ACL doesn't work as I expected:

  deny  message
= Your message is considered spam. Please follow link http://${run
hostname -i}/antispam/$message_id if you're human and would like to
confirm your message.

        condition = ${dlfunc
{/usr/sbin/exim-ext.so} {pipe_message} {/etc/domeny/testme   ...
} }

'testme' script return "false":

da7
(87.204.147.157) /var/log/exim % cat /etc/domeny/testme
#!/usr/local/bin/bash

echo -n "false"


Spec says:

condition = <string>

    This feature allows you to make up custom conditions.
If the result of expanding the string is an empty string, the number zero,
or one of the strings &ldquo;no&rdquo; or &ldquo;false&rdquo;, the
condition is false. If the result is any non-zero number, or one of the
strings &ldquo;yes&rdquo; or &ldquo;true&rdquo;, the condition is true.


Yet, the ACL lets the message through.  Anybody knows
how to make it fail message with 5xx code or accept it depending on script
exit status/std output?


Regards,
Marcin Krol