On Thu, Feb 11, 2021 at 07:49:30AM -0500, Wietse Venema wrote:
> > So we thought it could be possible to somehow "import" such an affected
> > message directly into postfix queue to leave out swaks which may fix
> > something in the message. Is there such a postfix command to "import" a
> > file as message directly into postfix queues?
>
> sendmail -f sender recipient... < file
Make that:
sendmail -i -f "sender" -- recipient... < file
just in case:
* The file contains lines starting with "."
* If the sender is expanded from a variable, make sure
to double-quote it, and use: '-f "$sender"', rather
than '-f"$sender"', just in case the sender address is empty.
* The first recipient address starts with a "-"
- Such a recipient is bounced, unless "allow_min_user"
is changed. from its default value.
--
Viktor.