0 votes

Hi there

We are using the Limilabs client and sending mails through AmazonSES.

We are setting the MessageId before sending, but AmazonSES is overwriting the value before they send it on to the recipient. We need to the MessageId to stay the same, or atleast keep track of what AmazonSES is changing it to. The normal ISendMessageResult doesn't seem to contain this. Is there a method or something that we can override/hook into to get this information?

Thank you.

As you can see we set it, and then AmazonSES changes it to
Message-ID: 01000162bddda6d9-a35109f4-b743-4609-9df9-09f1271c799c-00000@email.amazonses.com
when it reaches my inbox.

Here is the log dump.

03:15:49 3.0.17312.2008
03:15:49 Checking if license file is present.
03:15:50 Connecting to 'smtp.ourSMTP:25', SSL: False.
03:15:50 S: 220 ourSMTP ESMTP
03:15:50 C: EHLO [10.73.0.50]
03:15:50 S: 250-ourSMTP
03:15:50 S: 250-SIZE 10240000
03:15:50 S: 250-AUTH LOGIN
03:15:50 S: 250 HELP
03:15:50 C: MAIL FROM:<email@domain>
03:15:50 S: 250 OK
03:15:50 C: RCPT TO:<email@domain>
03:15:50 S: 250 OK
03:15:50 C: DATA
03:15:50 S: 354 OK, send.
03:15:50 C (322 bytes): Content-Type: text/plain;
 charset="utf-8"
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0
Date: Fri, 13 Apr 2018 03:15:50 -0400
Message-ID: <af87c603-13d4-4689-b2b8-5085c9bb5ecb@mail.dll>
Subject: Amazon Tesing MessageID
From: <email@domain>
To: <email@domain>

Email Body
.

03:15:50 S: 250 Queued (0.000 seconds)
03:15:50 C: QUIT
03:15:50 S: 221 goodbye
by
Does the server return assigned MessageId in its response? Can you attach the log (https://www.limilabs.com/blog/logging-in-mail-dll )?

1 Answer

0 votes

I don't see replaced message id anywhere in the SMTP server response, so it seems to me it is not possible to get that from Amazon.

Here's more from Amazon on this:
https://forums.aws.amazon.com/message.jspa?messageID=458788

You may try using VERP to track bounces:
https://www.limilabs.com/blog/verp-variable-envelope-return-path-net

by (301k points)
...