Marcin Gryszkalis wrote:
> Hi
>
> I have "cc" router that allows creating copy of message to specified address
> (possibly remote), it's like:
>
> mysql_cc:
> driver = redirect
> data = ${lookup ...
> unseen
>
> example of routing check for mail with cc:
>
> x@???
> <-- x@???
> router = mysql_user, transport = dovecot_virtual_delivery
> x@???
> <-- x@???
> <-- x@???
> router = dnslookup, transport = remote_smtp
>
> It works well but I found that if remote delivery fails (eg. over quota) then
> whole delivery fails and message is not delivered locally too.
>
> Question is - how can I ignore remote delivery failures for these cc
> deliveries?
>
> best regards
Should be easy enough. When we still used (multiple) archive routers with
'unseen', we simply did the archiving - or in your case local delivery - FIRST,
then put the off-box delivery AFTER the 'unseen'.
You may have to duplicate some code so as to get the right things into the
sequence(s) desired, but the flow should be fairly clear.
You MIGHT also want to flag some of those as no_verify.... and 'errors_to' (a
mailadmin, not a bounce).
HTH,
Bill