Thursday 04 May 2006 13:25 skrev oleg@???: > To make message to pass through virtual_user down to aliases, i have put
> UNSEEN word..everything is good, messages are working and aliases too, but
> an error message is generated with "Unrouteable address ERROR" back to
> the sender. How can i accomplish that and not get that messages???
"unseen" is not a good idea here. It generates a copy while the original will
continue down the routers as if Exim didn't see the first router,
hence "unseen". If none of the remaining routers can handle the address, a
bounce message will be generated.
But you should be fine even without "unseen". If the data lookup returns
nothing, the router declines and the next router gets the chance. If you want
some addresses to be routed to a maildir *as well* as some other address,
then you'd better either a) merge the two routers (use an SQL UNION statement
or simply two separate lookups joined together), b) let mysql_aliases return
the original address together with the aliased address(es) (and put
mysql_aliases back on top) when the original address is a virtual user (but
that would be almost the same as merging the routers), c) add a third router
that somehow handles the special case or d) make sure that the aliases table
aliases such addresses to themselves as well.