> On 22 Mar 2022, at 1:52 pm, Linda Pagillo <[email protected]> wrote:
>
> To answer your question Matus, We want to copy because we want to temporarily
> store a message with all of it's meta-data and have the option to resume
> processing at a later time without losing any details.
Create a Postfix instance with no pickup, queue manager or
any delivery agents in its master.cf. For good measure,
you can set:
default_transport = defer:how-about-never
local_transport = $default_transport
relay_transport = $default_transport
virtual_transport = $default_transport
# Optionally restriction authorised users
# authorized_submit_users = user1,user2,...,root,postfix
Then, you can submit messages into this instance (assumed to be "postfix-hold"):
postmulti -i postfix-hold -x sendmail -f "$sender" -it < message
Assuming the queue directory is in the file system as the default
null-client instance, you can (as either "root" or "postfix") move
a given message into the regular Postfix queue and trigger an immediate
pickup queue scan:
# mv /var/spool/postfix-hold/maildrop/$queue_id /var/spool/postfix/maildrop/.
# postkick public pickup W
--
Viktor.