[Exim] Multiple Routers for 1 message

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: scofield rock
Fecha:  
A: exim-users
Asunto: [Exim] Multiple Routers for 1 message
Hello all, I am new to the list. This message is to
the Config gurus out there. This is on Exim-4.10 using
mysql and v3 sleepycat DB

I want to be able to have a message delivered locally
and also have it forward it to another mail account. I
have both working (forwarding and local delivery)
seperatly using mysql queries but when I run a message
through the system that satisfies both routers it will
only deliver it to the first router. Here is a section
of my config


// begin config

begin routers

# This router routes to remote hosts over SMTP by
explicit IP address,
# when an email address is given in "domain literal"
form, for example,
# <user@???>. The RFCs require this
facility. However, it is
# little-known these days, and has been exploited by
evil people seeking
# to abuse SMTP relays. Consequently it is commented
out in the default
# configuration. If you uncomment this router, you
also need to uncomment
# allow_domain_literals above, so that Exim can
recognize the syntax of
# domain literal addresses.

mysql_user:
   driver = accept
   condition = \
   ${if eq {} {${lookup mysql {select id from users \
    where address='$local_part@$domain'}}} \
   {no}{yes}}
   retry_use_local_part
   transport = mysql_delivery


sql_virtuals:
driver = redirect
condition = ${lookup mysql{select goto from virtual
where address =
'${quote_mysql:$local_part@$domain}'}{$value}{no}}
data = ${lookup mysql{select goto from virtual
where address =
'${quote_mysql:$local_part@$domain}'}{$value}{no}}
redirect_router = sql_virtuals_part2
retry_use_local_part
repeat_use = false

sql_virtuals_part2:
driver = accept
condition = ${lookup mysql{select if(count(*),
"yes", "no") from virtual where goto =
'${quote_mysql:$local_part@$domain}'}{yes}{no}}
transport = virtual_smtp


// end

i have tried 'self = pass' at the end of the first
router with no luck.

If anyone give me some insight on how to do this it
would be greatly appreciated.

Thanks,
Rock Scofield

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com