in reply to get back into script MTAs Message-ID
It is wrong to rely on the internal MTA id. Instead create your messages with a standard-conform Message-ID header and record this field. It is possible to find stalled messages in the MTA with this piece of data.