[Exim] Can't get condition to disable hdr callback in exim 4…

Pàgina inicial
Delete this message
Reply to this message
Autor: Marc MERLIN
Data:  
A: exim-users
Assumpte: [Exim] Can't get condition to disable hdr callback in exim 4.04
So, I'm still trying to rebuild what I am currently doing with exim 3, with
exim 4 ACLs. The ACLs are real nice, but some things don't translate that
well, and I will have to hack the source for header checks to return the
real error when they fail (like exim 3 does)

My current problem is to have an override list for header from callbacks.
I think I was able to write this with the following condition (see below), but
I can't get it to work:

check_data:
  deny    !verify = header_syntax
          message = Syntax error in the headers of your message. Failed to pars


  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



Gives:
using ACL "check_data"
processing "deny"
check !verify = header_syntax
deny: condition test failed
processing "deny"
check hosts = !+localadds:!+host_disable_callback:*
cached no match for +localadds
cached no match for +host_disable_callback
host in "!+localadds:!+host_disable_callback:*"? yes (matched "*")
check !condition = ${lookup{${domain:$header_from:}}lsearch{/etc/mail/acls/nohdrcallbackdomains}}
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?

Thanks,
Marc
--
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking


Home page: http://marc.merlins.org/ | Finger marc_f@??? for PGP key