Web: www.ontraq.com
> -----Original Message-----
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
> us...@postfix.org] On Behalf Of Jack S
> Sent: 29 August 2012 22:42
> To: postfix-users@postfix.org
> Subject: Copying queue to another server need to re-create header
> 
> Hello all,
> 
> I have a problem that I am trying to resolve in emergency mode.
> I have a bunch of email in the derferred queue for a domain, their
> destination server will be down for a while so I need to create a way to get
> messages to them now.
> 
> My idea is to on another box create an alias that will forward @domain.com
> to a pop box somewhere.  I got this part setup and it works.
> 
> 
> Now I copy 1 messages from the deferred queue of the server to the
> deferred queue on the temp server so that it will actually process the
> message, however I believe the message delivery information is already
> within the queue file and when I try to run it and the message gets rejected.
> 
> I also tried to put in the inbound queue but that did the same thing.
> 
> Any suggestions how to get this to work?
> 
> 
> --
> Thanks!
> Joey

Why don't you just change the transport map for the domain to point to the new 
location and then use "postsuper -r ALL" to requeue the messages. If you need 
the messages to remain in the queue to be delivered to the original server at a 
later date then use virtual_alias_maps as below:

u...@example.com        u...@example.com, u...@example2.com

Set a transport route for the new domain (example2.com in the above example)

And then use postsuper -r ALL to requeue the messages.

The originals will get stuck again but the aliased addresses will be delivered 
to your POP/IMAP/whatever server.

Kind regards,

James Day

Reply via email to