Viktor Dukhovni:
> On Wed, Oct 09, 2013 at 06:09:31PM +0200, Bernardo Pons wrote:
> 
> > If, for some reason, the files containing messages present in the incoming
> > directory had to be moved to a temp directory, is it possible to copy them
> > back to the incoming directory in order to be re-queued by Postfix?
> 
> The details depend on what you mean by "moved to".  Can you give
> a precise description of what was done to the original "incoming"
> queue files:
> 
>     - which queue files were selected for relocation?
> 
>     - how were they relocated ?
> 
>     - where did they end up (directory in the same filesystem or
>       different filesystem)?
> 
>     - were file permission bits preserved?
> 
>     - were the leaf file names preserved?
> 
> If the target filesystem is the same as the original, and the
> incoming files were simply renamed (keeping the same inode,
> permissions, and leaf file name) into a holding directory on the
> same filesystem, you can simply rename(2) them back into "incoming/".
> 
> [ I sometimes use: perl -e 'rename(@ARGV);' "$src" "$dst", to make sure
>   I'm doing a rename and not a copy.  The mv(1) command will on many
>   systems perform a copy and unlink when moving files across filesystems. ]

If moving files between different file systems (directories under
different mount points), Postfix should be stopped otherwise it may
read a queue file before it is complete.

        Wietse

Reply via email to