Re: [exim] Strange empty return_path variable.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Sam
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Strange empty return_path variable.
To be fully clear, this is my check_data_local_acl_file (perharps the
bug is inside):

lenny:/etc/exim4# cat check_data_local_acl_file
deny
message = Filtre-data-titre : This email look like Spam : blacklist
subject
!authenticated = *
# condition = ${if eq{$header_subject:}{The Ultimate Online
Pharmaceutical}{yes}{no}}
condition = ${if !match{$recipients:}{\Nliste-.*@???\N}{yes}{no}}
condition = ${if !match{$recipients:}{postmaster}{yes}{no}}
condition =
${lookup{$header_subject:}lsearch{/etc/exim4/acl_subject}{yes}{no}}
#
deny
message = Filtre-data-contenu : This email look like Spam : blacklist
domain
condition = ${if
!match{$recipients:}{\Nliste-.*@???\N}{yes}{no}}
condition = ${if !match{$recipients:}{postmaster}{yes}{no}}
!authenticated = *
condition =
${lookup{$message_body:}nwildlsearch{/etc/exim4/acl_body}{yes}{no}}
#
deny
message = Filtre-data-header_received : This email look like Spam
condition = ${if
!match{$recipients:}{\Nliste-.*@???\N}{yes}{no}}
condition = ${if !match{$recipients:}{postmaster}{yes}{no}}
!authenticated = *
#condition = ${if match{$h_Received:}{\Nproacti5.net\N}{yes}{no}}
condition = ${if
forany{${readfile{/etc/exim4/acl_header_received}{:}}}{match{$h_Received:}{$item}}}

Thanks.
Sam

Le 04/03/2010 09:51, Sam a écrit :
> Hello and thanks to trying help me.
>
> The config is :
> Debian-Lenny with custom kernel 2.6.32.8-Grsec
> Exim : 4.71-2~bpo50+1 (from backports to have full DKIM stable function)
> Dual config : exim1 (queue only) --> mailscanner --> exim outgoing
>
> This is my input buggy full config :
>
> http://pastebin.com/E4ESMkye
>
> It runs quite good except for the empty return_path variable at the end
> of data _acl ONLY FROM THE LAN (when I try from outside, return_path is
> non-null and my code is working :
>
> warn log_message =
> add_header = :after_received:${if eq{$return_path}{}{}{X-bounce-key:
> BOUNCE_ID;${lc:$return_path};$tod_epoch;${length_8:${md5:BOUNCE_ID;${lc:$return_path};$tod_epoch;BOUNCE_SECRET}};}}
>
> The bogus spirit efect is that if I remove this quote, it works and
> return_path is not empty even from Lan !!! :
>
> # warn
> # !verify = recipient
> # continue = ${lookup mysql{INSERT INTO black_ip (ip,last_conn)
> values('$sender_host_address','$tod_log') on duplicate key update
> last_conn='$tod_log';}}
>
> That's why I think my config is buggy somewhere.
>
> Please help me I become crazy.
>
> Thanks a lot.
> Sam.
>
>
>