On Wed, Feb 11, 2009 at 6:51 PM, Wietse Venema <wie...@porcupine.org> wrote:
> Curtis:
>> Hi,
>>
>> I'm looking for a safe way to re-inject an archived queue file that
>> was backed up and removed (via postsuper) from the hold queue.  (Not
>> just this once, but on a regular basis.)  I realize that it would be
>> possible to use postcat to grab the raw contents of the archived
>> message and feed it back through sendmail (after first parsing and
>> then removing the envelope information), but before I went through
>> that much trouble, I wanted to see if there was an easier way.
>>
>> On a test machine, I threw it into the incoming queue and ran
>> "postkick public qmgr I" and it seemed to deliver to all original
>> recipients of the message.  But, I have a feeling that direct
>> insertion into the incoming directory is not the right way to do this.
>>
>> If the above method is unsafe, is there a postfix command that I can
>> pipe an archived queue file to that would safely re-inject the
>> message?  Or, am I stuck with the sendmail method?
>>
>> Thanks for any advice anyone has on this...
>
> On a quiet system, put it into the maildrop directory, as a file
> that is owned by the postfix user.
>
> If you manually insert files into the incoming/active/deferred
> queues then you may lose mail. Postfix ensures that queue files
> have unique names, but that guarantee fails when you insert queue
> files in by hand.
>
>        Wietse
>

So, on a box that I know has nothing else feeding into the maildrop
queue, it would be safe to skip the step of dropping it in the idle
queue of a second instance (on the same filesystem) and running
"postsuper -s" to get a properly named queue file?  I would, of
course, use a queue file name that would never be used by postfix.

Curtis

Reply via email to