> On Feb 12, 2021, at 2:43 PM, Wietse Venema <wie...@porcupine.org> wrote:
> 
> sendmail -G -i -f "sender" -- recipient... < file
> 
> The -G will prevent Postfix from rewriting/adding message headers.
> It will still prepend a Received: header, but if that breaks DKIM,
> then the sender is at fault.
> 
> However, Postfix behavior is defined only for properly formed email.
> There is no warranty for messages with lines that exceeed protocol
> limits, <CR> not followed by <LF>, <LF> not preceeded by <CR>, and
> so on.

The OP mentioned starting with a queue file, and using "postcat -ebh"
to extract its content.  With a queue file in hand, one can copy it
into the "hold" queue (owner:group "postfix:postfix", mode 0700) and
then (assuming nothing else is on "hold"):

        # postfix stop
        # postsuper -s
        # postfix start
        # postsuper -H ALL

If there multiple messages on hold, release just the desired one with:

  # postqueue -j |
      jq 'select(.sender == "j...@example.org") | .queue_id)' |
      postsuper -H -

Adjust the jq "select" condition as appropriate.  Releasing a queue
file from hold does not modify its content.

-- 
        Viktor.

Reply via email to