Hi.
On Thu, Aug 14, 2025 at 06:29:52PM +0200, Vaclav Masin via Exim-users wrote:
> I have this set up that redirects messages incoming to a certain address over
> to a PHP script:
>
> "
> begin routers
>
> emailing:
> driver = accept
> domains = example.com
> transport = transport_script
> condition = ${if eq{$header_to:}{[email protected]}}
> unseen
The condition is inadequate: it does not meet "incoming to a certain address"
because destination address is a value of envelope-to, not To/Cc headers.
Moreover, this condition may fail for many valid cases of RFC822 syntax.
Use local_parts.
And use Exim debug mode.
--
Eugene Berdnikov
--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/