Re: [exim] mail routed wrong - need fix

Góra strony
Delete this message
Reply to this message
Autor: Peter Bowyer
Data:  
Dla: Exim Users Mailing List
Temat: Re: [exim] mail routed wrong - need fix
On Fri, 19 Nov 2004 12:03:23 -0600, Eric <exim@???> wrote:
> Hi -
>
> I'm running a cPanel server and the /etc/valiases/domain.com file was misconfigured for one client. He now has about 4000 messages in queue trying to be delivered to the wrong address.
>
> Here's what I want to do:
> Using this command or something similar
> exim -Mar message_id email@???
> how can I add a new recipient to the mail in the queue addressed to someone@??? ?
>
> Obviously I want the new address only added to the messages addressed to someone@??? so that messages not belonging to his domain are left alone.
>
> Any ideas of how I can quickly accomplish this?


Something like e

xipick -i 'recipients =~ /email@???/'

will get you a list of message-IDs to work with - you need to create a
script which eats those and does a exim -Mar and exim -Mmd to switch
the recipient address.

Copletely untested, please treat as a set of hints to check out rather
than a laundry list of things to type.

Peter