Re: [exim] lookup syntax question

Top Page
Delete this message
Reply to this message
Author: Heiko Schlittermann
Date:  
To: exim-users
Subject: Re: [exim] lookup syntax question
Hi,

Gary Stainburn <gary.stainburn@???> (Mo 28 Apr 2014 16:44:28 CEST):
> Hi again folks.
>
> I have a lookup of aliases in non-standard (not our core) domains. The first
> one *always* works as expected.


> Version 2:
>
> condition = ${lookup{$local_part}lsearch{/etc/aliases.d/$domain}{yes}{no}}
>
> The fill clause is:
>   deny    message = unknown recipient $local_part in $domain
>       log_message = unknown recipient $local_part in $domain from 
> $sender_address
>         domains = +non_std_domains
>         condition = ${lookup{$local_part}lsearch{/etc/aliases.d/$domain}{yes}{no}}

>
> Even though the user exists, the lookup sometimes fails - for the same
> $local_part value
>
> Here is a log entry:
>
> 2014-04-28 15:22:33 H=smarthost2.mail.uk.easynet.net [212.135.6.12]
> F=<xxxxxxx.xxxxl@???> rejected RCPT <lllll@ddddddddddddd>: unknown
> recipient lllll in ddddddddddddd from xxxxxxxxxxxxl@???


Maybe I'm wrong, but the ACL denies the message if the user is
*found*!

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
 gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-