Lasse Birnbaum Jensen wrote:
> Ross Boylan wrote:
>> I have some routing rules that depend on the IP of the sending host
>> and the contents of the mail body.
>>
>> I tried using -bh to test these, but I didn't see any router output.
>> Is -bh intended only for testing ACL's, or am I missing something (I
>> invoked exim with -d+route -bh)?
also try exim -d -bt random@???
in which you can see the routers tested and the one selected for the
test address
>
> insert debug_print lines in router and transports
>
> router example
>
> localuser:
> debug_print = "Router: local user $local_part"
> driver = accept
> check_local_user
> transport = local_delivery
> cannot_route_message = Unknown user
>
>
> transport example
>
> remote_smtp:
> debug_print = "Transport: remote smtp used"
> driver = smtp
>
>> Is there any good way to test this setup? I can suppress delivery
>> with -N, but it doesn't look as if I can fake the IP address at the
>> same time.
>>
>> I'm trying to stay in testing mode since my first crack at the router
>> produced a mail loop.
>>
>> Ross Boylan
>>
>
>
--
Venlig hilsen / Best regards
Lasse Birnbaum Jensen