Re: [exim] Expansion of transport filters

Top Pagina
Delete this message
Reply to this message
Auteur: Tony Finch
Datum:  
Aan: Steffen Heil
CC: exim-users
Onderwerp: 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.