Hi,

i'm having a small problem with multiply routers,

if the condition inside "userforward" hits, "virtual_user" is not used, but may also hit if it would be considered

My config:

----------------------------------------------------------------------------------------------
autoresponder:
  driver = redirect
  domains = +local_domains
condition = ${if eq{1}{${lookup mysql{SELECT '1' FROM mail_config WHERE address = '${quote_mysql:${local_part}@${domain}}' and type in ( 'Responder') }}}{yes}{no}} data = "${lookup mysql{ SELECT concat('|',mc.target) FROM mail_config as mc where mc.address = '${quote_mysql:${local_part}@${domain}}' and mc.type in ( 'Responder') }}"
  no_verify
  no_expn
  pipe_transport = address_pipe
  reply_transport = address_reply
#  check_ancestor
#  unseen
  more
  redirect_router = autoresponder

userforward:
  driver = redirect
  domains = +local_domains
condition = ${if eq{1}{${lookup mysql{SELECT '1' FROM mail_config WHERE address = '${quote_mysql:${local_part}@${domain}}' and type in ( 'Forwarder') }}}{yes}{no}} data = ${lookup mysql{ SELECT target FROM mail_config WHERE address = '${quote_mysql:${local_part}@${domain}}' and type in ( 'Forwarder') }}
  allow_fail
  no_verify
  no_expn
# check_ancestor
  file_transport = address_file
#  pipe_transport = address_pipe
  reply_transport = address_reply
#  unseen
  more
  redirect_router = autoresponder

virtual_user:
  driver = redirect
  no_verify
  domains = +local_domains
  allow_fail
  allow_defer
#  check_ancestor
data = ${lookup mysql{ SELECT concat(target,'/Maildir/') FROM mail_config WHERE address = '${quote_mysql:${local_part}@${domain}}' and type in ( 'Popkonto','Imapkonto') }}
  directory_transport = address_directory
user = ${lookup mysql{ SELECT username FROM mail_config WHERE address = '${quote_mysql:${local_part}@${domain}}' and type in ( 'Popkonto','Imapkonto') }}
  group = mail
# unseen
  more
  redirect_router = autoresponder
----------------------------------------------------------------------------------------------

any of those routers could generate a hit and i want all of the hits to be processed , which means, if a forwarder targetadress and a mailbox is found in the database, it should be send the mail to both
adresses.

Instead it sends it just to the forwardadresse, cause it's found first.

any suggestions whats wrong here ?

best regards,
 M.Schwarz


--
## List details at https://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