Sending email, how to get message "Queue ID"

T

Tom

I am happily using MIME::Lite to send messages via sendmail, but I am
stuck on a problem. I need to track the status of the message to
ensure it was properly accepted by the local sendmail agent and the
remote mail host (i.e. date/time it was accepted by the remote host,
X-Status message id assigned by that host, if delivery was deferred,
etc.)

I can do this in MIME::Lite by setting the Message-ID parameter, then
parsing the sendmail maillog file for this message-ID and returning the
Queue ID. Then, following the Queue ID through the same maillog. This
seems like such a hack (and dangerous setting the Message-ID, but there
doesn't seem to be a way of just fetching it). Is there a better way?

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top