Tracking Bounced Mails to Original Message

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
mrbtamp2018
New user
New user
Posts: 14
Joined: 2019-07-29 12:47

Tracking Bounced Mails to Original Message

Post by mrbtamp2018 » 2019-08-20 09:13

Can I trace bounced mail to its original sent message.

I tried matching the subject matter but it does not help as subject for two different emails can be same.

As single pop3 email id is used by multiple alias users for sending messages, this could help me trace the exact sender whose email has bounced.

Please help.

User avatar
katip
Senior user
Senior user
Posts: 686
Joined: 2006-12-22 07:58
Location: Istanbul

Re: Tracking Bounced Mails to Original Message

Post by katip » 2019-08-20 09:33

see In-Reply-To header in delivery failure report.
this is a unique string in Message-ID header of originally sent mail.
Katip
--
HMS 5.7.0-B2428-LTS-64-bit, MySQL 5.7.24, SA 3.4.2, ClamAV 0.101.2 + SaneS

mrbtamp2018
New user
New user
Posts: 14
Joined: 2019-07-29 12:47

Re: Tracking Bounced Mails to Original Message

Post by mrbtamp2018 » 2019-08-20 10:45

there is no In-Reply-To in delivery failure report.

Is any additional header needed to be sent at the time of sending email to get 'In-Reply-To' header in bounced back emails.

User avatar
katip
Senior user
Senior user
Posts: 686
Joined: 2006-12-22 07:58
Location: Istanbul

Re: Tracking Bounced Mails to Original Message

Post by katip » 2019-08-20 11:54

mrbtamp2018 wrote:
2019-08-20 10:45
there is no In-Reply-To in delivery failure report.
swell..
what kind of bounce are we talking about? delivery failure by remote server or by HMS?
Katip
--
HMS 5.7.0-B2428-LTS-64-bit, MySQL 5.7.24, SA 3.4.2, ClamAV 0.101.2 + SaneS

User avatar
mattg
Moderator
Moderator
Posts: 20144
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Tracking Bounced Mails to Original Message

Post by mattg » 2019-08-20 14:42

Why do multiple senders use the same account?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

mrbtamp2018
New user
New user
Posts: 14
Joined: 2019-07-29 12:47

Re: Tracking Bounced Mails to Original Message

Post by mrbtamp2018 » 2019-08-28 11:42

katip wrote:
2019-08-20 11:54
mrbtamp2018 wrote:
2019-08-20 10:45
there is no In-Reply-To in delivery failure report.
swell..
what kind of bounce are we talking about? delivery failure by remote server or by HMS?
Both

mrbtamp2018
New user
New user
Posts: 14
Joined: 2019-07-29 12:47

Re: Tracking Bounced Mails to Original Message

Post by mrbtamp2018 » 2019-08-28 11:47

mattg wrote:
2019-08-20 14:42
Why do multiple senders use the same account?
POP3 external account is configured for a domain account with multiple aliases. This multiple alias users send messages using SMTP Route for the domain. Need to trace which alias user had sent the bounced mail.

Can hmailserver identify this, as it sends message one by one after applying rules?

User avatar
katip
Senior user
Senior user
Posts: 686
Joined: 2006-12-22 07:58
Location: Istanbul

Re: Tracking Bounced Mails to Original Message

Post by katip » 2019-08-28 13:29

open for each alias user an account and force auth to send mail.
with a few scripting in Sub OnAcceptMessage(oClient, oMessage) event you trap sending user, add a pre- or suffix on subject (such as "//u-5//", unique for each user), save message, let it go.
when you see a bounce, you know it was from "user 5" who is jane, joe...
Katip
--
HMS 5.7.0-B2428-LTS-64-bit, MySQL 5.7.24, SA 3.4.2, ClamAV 0.101.2 + SaneS

Post Reply