Gary Smith: > Hi team, > > I may have asked this years ago, but I can't find it in my email. > I have a need to retrieve the queue_id of emails submitted at time > of submission when issuing submissions with the -G option. I can > see that there is a queue_id on all of the output specified in > -vv. With that I can grab all the output and extract queue_id, > but I'm wondering if there is a better or recommended way of doing > this?
The Postfix sendmail+postdrop commands create a queue file in the maildrop directory. That is NOT the queue ID that Postfix will use during actual message deliveries. If you need the queue ID that is used during message deliveries. then you need to submit mail with SMTP (preferably, using the "submission" port). Wietse