著者: Graeme Fowler 日付: To: exim-users 題目: Re: [exim] $header_* not defined in router?
On Mon, 2007-04-02 at 20:55 +0200, Carlo Wood wrote: > 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...
When called as verification from a RCPT ACL this is correct, yes.
> Thus, you CANNOT use $header_*: in router definitions.
Yes you can. When they're called appropriately, at the right time -
which in order to check stuff sent as part of DATA is, self-evidently,
either in the DATA ACL or any time after that.
> /me wonders why nobody told me that.
[looks back at thread]
That's because you didn't mention where the router was being run (ie. at
which point in the transaction). Now we know, and you know that you
can't do this in the RCPT ACL.
> Now I need to figure out a way to do it anyway.
Put your conditions into the DATA ACL instead, perhaps? We haven't seen
all of your config (ACLs and routers together) so it's a little tricky
to clutch at what your system will do.