On 11/26/2011 9:21 AM, Vincenzo Romano wrote: > You say it's useless, I say I can use it to retrieve the message IDs I need. > Is there a way to get the queue ID back from sendmail?
Not possible. The sendmail command has no knowledge of the queueID that will eventually be assigned. The queueID is not -- and cannot be -- assigned until after sendmail(1) finishes processing the mail. Your best bet it so set your own Message-ID header so you know what to search for in the logs. -- Noel Jones