Re: [exim] Moving a queue to another server

Top Page
Delete this message
Reply to this message
Author: Heiko Schlittermann
Date:  
To: exim-users
Subject: Re: [exim] Moving a queue to another server
Christian K via Exim-users <exim-users@???> (Do 12 Jul 2018 11:26:27 CEST):
> I am wondering if there is a good way to move all pending mails from
> one exim server to another.
> It is probably not the best idea to move the files from one spool
> directory to another (idea 1).



Why not? If you stop the Exim instance on the source host, you can just
transfer the files to the destination.

If the retry-times are important (they're not stored in the spool
*files*, but in separate files under the spool directory), just transfer
the content of the complete spool

    rsync -a $(exim -n -bP spool_directory)/ REMOTE-HOST:REMOTE-SPOOL-DIR/


> exim -MC <transport> <hostname> <sequence number> <message id>
> Another idea (3) would be to use the "fallback_hosts" option for each
> transport and trigger an new delivery attempt for every mail in the
> queue.
> Idea 2 and 3 would reset the retry time and add another received
> header, this would (probably) not be a problem.
> I'd like to avoid canceling the delivery with -Mg.


For evaluation of the other ideas more information is necessary about
things like why, how-often, …

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -