move mail files to an alternate server
am 09.10.2007 03:53:42 von phillip.corchary
With several redundent servers behind a Load Balancer, I have mail for
one domain stuck in queue on just one server (long story) -- can I
just grep out all the q* and d* matching files for this domain and scp
them to an alternate and have them process there? Seems like it should
but.... ????
caveats? cautions? thoughts?
phil
Re: move mail files to an alternate server
am 09.10.2007 05:52:20 von dp
Phil wrote:
> With several redundent servers behind a Load Balancer, I have mail for
> one domain stuck in queue on just one server (long story) -- can I
> just grep out all the q* and d* matching files for this domain and scp
> them to an alternate and have them process there? Seems like it should
> but.... ????
>
> caveats? cautions? thoughts?
>
> phil
>
There is a tool included with the sendmail source that will help. Look for, read up
on, and understand qtool.pl - it can collect your d and q files to another location.
At that point you can tar them up, or rsync/scp/ftp them, or copy them via nfs to the
queue location of your other server(s). You might want to have sendmail on the target
system off at the time you copy them so it doesn't get confused by non-atomic file
movement.
dp