Re: [Exim] Conditions

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Steven Lobbezoo
Datum:  
To: Juha Saarinen
CC: exim-users
Betreff: Re: [Exim] Conditions
--
[ Picked text/plain from multipart/alternative ]
maybe this :
save "$home/mail${lookup {${local_part:$h_to:}@${domain:$h_to:}}
lsearch*@ {$home/vmails} {/$value}\
{${lookup {${domain:$h_to:}} lsearch {$home/vmails} {/$value} {}}}}\
/inbox"

works for me.

Steven



le mar 14-05-2002 à 01:41, Juha Saarinen a écrit :

    How is this condition expanded/interpreted?


    condition = ${if eq {}{${lookup{$local_part}lsearch{/etc/exim/${domain}.aliases}}}{no}{yes}}


    Does it look up the local_part in a $domain.aliases file, and returns a
    "no" if local_part is not found, or a "yes" if it is?


    I need a condition that matches both $local_part and $domain for virtual
    domains, but can't think of a good way to do it. That is, if a message is
    addressed to user@???, then use this router; if the address is
    user@???, skip and go to next router.


    --
    Juha Saarinen





    --


    ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##





--