Re: [Exim] Exim 4 - String Expansion - Lookup

Pàgina inicial
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
A: Marc Perkel
CC: exim-users
Assumpte: Re: [Exim] Exim 4 - String Expansion - Lookup
Marc Perkel wrote:
> Upgraded to Exim 4 and this broke. What am I doing wrong and what do I
> need to do to fix it?
>
>
> bounce_spam_personal:
> driver = redirect
> allow_defer
> allow_fail
> data = :fail: "unknown user \"$local_part\" in domain \"$domain\""
> require_files =
> ${lookup{$local_part}lsearch{/etc/vmail/passwd.$domain}{${extract{5}{:}{$value}}/.bouncelist}}
>
> retry_use_local_part
> senders =
> ${lookup{$local_part}lsearch{/etc/vmail/passwd.$domain}{${extract{5}{:}{$value}}/.bouncelist}}


Could you tell us WHAT fails?
Some debug-output?
Some logentries?

Sorry, but I lost my magic sphere ;)

Just a guess, do you get errors about missing files?
This is because exim first checks the sender, and then the require_files
directive, IIRC this was the same in exim3.

but you can try this

BOUNCELIST = \
${lookup{$local_part}lsearch{/etc/vmail/passwd.$domain}{${extract{5}{:}{$value}}/.bouncelist}}

bounce_spam_personal:
driver = redirect
senders = ${if exists {BOUNCELIST} {BOUNCELIST}}
allow_fail
data = :fail: unknown user "$local_part" in domain "$domain"


ciao