Re: [exim] Expansion of transport filters

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tony Finch
Fecha:  
A: Steffen Heil
Cc: exim-users
Asunto: Re: [exim] Expansion of transport filters
On Wed, 10 Nov 2004, Steffen Heil wrote:
>
> For me it would be better to have a transport_filter_condition, but it does
> not exist. Is there a way to simulate one?


My configuration includes:

...

begin routers

...

hermes_lmtp:
  driver        = manualroute
  no_verify
  domains        = hermes.cam.ac.uk
  host_find_failed    = defer
  route_data        = ${lookup{$local_part}cdb{USERS/cyrus.cdb}}
  retry_use_local_part
  transport        = ${if ={0}{$body_zerocount} \
                   {hermes_lmtp} {hermes_lmtp_filter} }


...

begin transports

...

hermes_lmtp:
  driver        = smtp
  gethostbyname        = true
  protocol        = lmtp


# This variant of the hermes_lmtp transport strips out any nul bytes in order
# to avoid triggering Cyrus's strict checking. We only use it when necessary
# for efficiency reasons.

hermes_lmtp_filter:
  driver        = smtp
  gethostbyname        = true
  transport_filter    = /usr/bin/tr -d \\000
  protocol        = lmtp


...

Tony.
--
f.a.n.finch <dot@???> http://dotat.at/
MALIN HEBRIDES: NORTHEAST 4 OR 5 INCREASING 6. RAIN LATER. GOOD BECOMING
MODERATE.