RE: Copying queue to another server need to re-create header
- Web: www.ontraq.com
> -----Original Message-----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:
> From: owner-postfix-users@... [mailto:owner-postfix-
> users@...] On Behalf Of Jack S
> Sent: 29 August 2012 22:42
> To: postfix-users@...
> 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 @...
> 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?
user@... user@..., user@...
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.