Re: [Exim] Can't get condition to disable hdr callback in ex…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Phil Pennock
Date:  
À: exim-users
Sujet: Re: [Exim] Can't get condition to disable hdr callback in exim 4.04
On 2002-05-03 at 19:04 -0700, Marc MERLIN wrote:
>   deny    hosts = !+localadds:!+host_disable_callback:*
>           #sender_domains = !+envdomain_disable_callback:*
>          !condition = ${lookup{${domain:$header_from:}}lsearch{HDR_DOMAIN_DISABLE_CALLBACK}}
>          !verify = header_sender/callout=90s
>           message = Header sender couldn't be verified


> search_open: lsearch "/etc/mail/acls/nohdrcallbackdomains"
> search_find: file="/etc/mail/acls/nohdrcallbackdomains"
>   key="beatware.com" partial=-1
> LRU list:
>   8/etc/mail/acls/nohdrcallbackdomains
>   End
> internal_search_find: file="/etc/mail/acls/nohdrcallbackdomains"
>   type=lsearch key="beatware.com"
> file lookup required for beatware.com
>   in /etc/mail/acls/nohdrcallbackdomains
> lookup yielded:
>                 =
> check !verify = header_sender/callout=90s
> verifying From: header address xavier@???

>
>
> Of course, beatware.com is in the file
> moremagic:~# grep beatware.com /etc/mail/acls/nohdrcallbackdomains
> beatware.com
>
>
> What I am doing wrong?


Well, I'm not using Exim 4 yet, but at a guess ...

lsearch returns data. In this case, the data is present but empty.
Re-read section 9.1 of the Exim 4 spec.txt. lsearch is a key-value
list.

If changing /etc/mail/acls/nohdrcallbackdomains so that, temporarily,
the beatware.com line becomes "beatware.com yes" lets your ACL work,
then perhaps you should modify the ${lookup ...} so that it has a
{yes}{no} pair in it.

Does this solve it?
--
Smart Card (n.): Humorous birthday greeting.