Re: [exim] Testing pipe transport

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: Peter Velan
CC: exim-users
Subject: Re: [exim] Testing pipe transport
On Fri, 19 May 2006, Peter Velan wrote:
>
> A robot sends a mail to exim, which target is a real external address.
> Exim has to detect it as a special one (by means of ACLs) and routes it
> to a perl script via pipe transport. My perl script creates a totally
> new message and injects this locally to exim.


Address-related things should be done by routers, not ACLs. ACLs are for
client-related stuff.

> So what I want is this: inject message locally to exim with debugging
> turned on and use eximtest.conf, but whatever happens, never deliver to
> original real address, instead deliver to a local test account. For
> sure, if - but only if! - after I made my job, then no message will
> leave exim.


I'd suggest using a macro for this. e.g. I have the following; you might
want to use something similar to change your routing in debug mode.

.ifdef DEBUG
log_selector    = +all
.else
log_selector    = -retry_defer -skip_delivery -host_lookup_failed \
          +incoming_interface +incoming_port +smtp_confirmation \
          +sender_on_delivery +return_path_on_delivery +delivery_size \
          +received_recipients +all_parents +address_rewrite \
          +tls_certificate_verified +tls_peerdn \
          +smtp_protocol_error +smtp_syntax_error \
          +deliver_time +queue_time \
          -lost_incoming_connection
.endif


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}