Skip to content

Conversation

@dino2gnt
Copy link
Contributor

@dino2gnt dino2gnt commented Dec 23, 2025

Typing up a very old loose end...

When multiple nodes have a configured MailTransportMonitor service all sharing the same destination mailbox, the email subject is not sufficiently unique and collides with emails from other nodes. The deletion logic will then delete emails that actually belong to other pollers, causing those services to be marked down. This change tacks the nodeId of the polled node onto the subject and the MTM header, keeping each node's subjects distinct, so they will not collide and step on each other's test emails.

This is probably extremely low risk - I don't think the MailTransportMonitor has many (or maybe any) users. (hello, fellow graybeards, here wondering why your MTM subjects changed!)

Ancient history trivia - this was the first time I ever attempted to write Java, and might be the first jira issue I ever created. I ran this modification in production, monitoring mail transport latency between internal Exchange servers in different countries.

All Contributors

External References

Copy link
Contributor

@marshallmassengill marshallmassengill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it.

Copy link
Member

@indigo423 indigo423 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use the MailTransportMonitor with perspective monitoring, the NodeID wouldn't be sufficient enough and you need also the monitoring location.

@dino2gnt
Copy link
Contributor Author

dino2gnt commented Jan 4, 2026

If you use the MailTransportMonitor with perspective monitoring, the NodeID wouldn't be sufficient enough and you need also the monitoring location.

There are limitations to this fix, but this is an improvement over the original state.

If the service is on two interfaces of the same node, it's also insufficiently unique.

Copy link
Contributor

@cgorantla cgorantla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants