Re: How do you inject/reprocess an email file into the postfix queue?
On Fri, Feb 03, 2023 at 12:30:32PM -0700, Bryan Arenal wrote: > I have ~1000 emails that were previously sent from a different > platform (but failed due to a system error) and I've been asked to see > if we can re-send them with our Postfix server. Do you have accurate records of the intended envelope recipients of these messages? Note that headers may capture too many or too few recipients, either because some were already delivered and should not be addressed again, or because some (Bcc) are not listed. "Reviving" messages for redelivery can be difficult in general. In specific situations, envelope recovery may be tractable. -- Viktor.
Re: How do you inject/reprocess an email file into the postfix queue?
On 2/3/2023 1:30 PM, Bryan Arenal wrote: Hi there, I have ~1000 emails that were previously sent from a different platform (but failed due to a system error) and I've been asked to see if we can re-send them with our Postfix server. I've looked into postfix's 'sendmail' as well as dropping a test file into /var/spool/postfix/hold and trying to move it into deferred and then flush the queue but neither of those seemed to work. Is this even possible? Thank you in advance! If these files are well-formed plain text messages, you can use the postfix sendmail command to inject them. See the sendmail(1) man page for usage. http://www.postfix.org/sendmail.1.html If these files are some format other than text, you'll need to decide if it's worthwhile to find some way to convert them. If you're lucky there is some existing tool to do that. The postfix queue file format is (intentionally) not documented, and dropping files directly into a queue directory is not supported. -- Noel Jones
Re: How do you inject/reprocess an email file into the postfix queue?
Bryan Arenal: > Hi there, > > I have ~1000 emails that were previously sent from a different > platform (but failed due to a system error) and I've been asked to see > if we can re-send them with our Postfix server. > > I've looked into postfix's 'sendmail' as well as dropping a test file > into /var/spool/postfix/hold and trying to move it into deferred and > then flush the queue but neither of those seemed to work. Is this > even possible? Postfix queue files MUST be written by Postfix. You can't put non-Postfix files there. The only supported interfaces to get a message into the queue are SMTP, QMQP, or the /usr/sbin/sendmail command line. For example, you can use the Postfix sendmail command: /usr/sbin/sendmail -i -f sender recipient < inputfile where inputfile contains RFC2822-formatted text (including MIME). Wietse
How do you inject/reprocess an email file into the postfix queue?
Hi there, I have ~1000 emails that were previously sent from a different platform (but failed due to a system error) and I've been asked to see if we can re-send them with our Postfix server. I've looked into postfix's 'sendmail' as well as dropping a test file into /var/spool/postfix/hold and trying to move it into deferred and then flush the queue but neither of those seemed to work. Is this even possible? Thank you in advance!