Dave Lugo <[EMAIL PROTECTED]> wrote:
> On Sun, 30 Sep 2007, Andreas Metzler wrote:
>> > Mailertable on sendmail has numerous entries such as this:

>> > yhoo.com        error:5.7.1:550 Check address - maybe yahoo.com

>> > I'd like to duplicate that in an exim router - but it seems that
>> > :fail: doesn't work in a manualroute router stanza.
>> [...]

>> Manualroute is exim3 iirc, the exim4 name is redirect.

> both exist in 4
[...]

Argh. I mixed up aliasfile and manualroute.

> static:
>  driver = manualroute
>  route_data = ${lookup{$domain}lsearch{CFG_DIR/routes}}
>  transport = smtp
>  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
>  hosts_randomize
>  allow_fail

How about using a redirect instead of a manualroute router? I think
this should work, it is untested though.

static:
 driver = redirect
 data = ${lookup{$domain}lsearch{CFG_DIR/routes}}
 allow_fail

And CFG_DIR/routes contains:

yhoo.com: :fail: Check address - maybe yahoo.com

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to