Re: [exim] Piping message in ACL DATA

Top Page
Delete this message
Reply to this message
Author: Magnus Holmgren
Date:  
To: exim-users
Subject: Re: [exim] Piping message in ACL DATA
On Wednesday 22 August 2007 21:47, admin@??? wrote:
> 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.


Um, can't you use $received_ip_address or something instead of running an
external program to find out your IP address?

>         condition = ${dlfunc
> {/usr/sbin/exim-ext.so} {pipe_message} {/etc/domeny/testme   ...
> } }
>
> 'testme' script return "false":
> [...]
> 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?


Well, you asked Exim to reject the message if the script returned *true*.
Since the script returns false, the conditions for the deny statement are not
fulfilled, so Exim moves on.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans