Re: [exim] $header_* not defined in router?

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Carlo Wood
Data:  
Para: Graeme Fowler
CC: exim-users
Asunto: Re: [exim] $header_* not defined in router?
On Mon, Apr 02, 2007 at 08:12:57PM +0200, Carlo Wood wrote:
> The rest is not relevant.


I just realized that from the full output you can see
that the DATA command (and thus all headers) have not
been processed yet at the moment that an (RCPT TO)
address is being routed...

Thus, you CANNOT use $header_*: in router definitions.

/me wonders why nobody told me that.

Now I need to figure out a way to do it anyway.

--
Carlo Wood <carlo@???>

Relevant (yeah, yeah ;) output:

[...]
SMTP<< RCPT TO: carlo@???
using ACL "acl_check_rcpt"
[...]
routing carlo@???
--------> spamtest router <--------
local_part=carlo domain=alinoe.com
checking domains
search_open: lsearch "/etc/exim4/hubbed_hosts"
search_find: file="/etc/exim4/hubbed_hosts"
key="alinoe.com" partial=2 affix=*. starflags=0
LRU list:
:/etc/exim4/hubbed_hosts
End
internal_search_find: file="/etc/exim4/hubbed_hosts"
type=lsearch key="alinoe.com"
file lookup required for alinoe.com
in /etc/exim4/hubbed_hosts
lookup yielded: taryn
alinoe.com in "partial-lsearch;/etc/exim4/hubbed_hosts"? yes (matched "partial-lsearch;/etc/exim4/hubbed_hosts")
R: spamtest: no
checking "condition"
spamtest router skipped: condition failure
[...]
routed by hubbed_hosts router
envelope to: carlo@???
transport: remote_smtp
host taryn.localdomain [192.168.2.3]
----------- end verify ------------
accept: condition test succeeded
SMTP>> 250 Accepted

SMTP<< DATA
SMTP>> 354 Enter message, ending with "." on a line by itself

search_tidyup called
host in ignore_fromline_hosts? no (option unset)
>>Headers received:

Return-path: <kbriggs_mu@???>
Envelope-to: carlo@???
Delivery-date: Sun, 01 Apr 2007 08:52:54 +0200
Message-ID: <000701c773e7$1ccfab80$439f2c33@???>
Reply-To: "Keisha Briggs" <kbriggs_mu@???>
From: "Keisha Briggs" <kbriggs_mu@???>
To: <carlo@???>
[...]
using ACL "acl_check_data"
[...]
check set acl_m0 = "Hello World"
LOG: MAIN
<= kbriggs_mu@??? H=(1wvy5i2) [201.53.35.228] U=root P=smtp S=2149
SMTP>> 250 OK id=1HYROf-0000tS-33

search_tidyup called
exec /usr/sbin/exim4 -d=0xfbb95cfd -Mc 1HYROf-0000tS-33
smtp_setup_msg entered
SMTP<< QUIT
SMTP>> 221 mail9.alinoe.com closing connection