This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new 41ab12ad88 [ENHANCEMENT] SenderHasMXRecord should handle duplicates
41ab12ad88 is described below
commit 41ab12ad88ba90fdda46f641020016fc3a289feb
Author: Benoit TELLIER <[email protected]>
AuthorDate: Fri Feb 6 21:42:42 2026 +0100
[ENHANCEMENT] SenderHasMXRecord should handle duplicates
---
.../main/java/org/apache/james/transport/matchers/SenderHasMXRecord.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/SenderHasMXRecord.java
b/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/SenderHasMXRecord.java
index 35985af0d3..10f4517e5c 100644
---
a/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/SenderHasMXRecord.java
+++
b/server/mailet/mailets/src/main/java/org/apache/james/transport/matchers/SenderHasMXRecord.java
@@ -78,6 +78,7 @@ public class SenderHasMXRecord extends GenericMatcher {
ImmutableList<String> mxRecords =
dnsService.findMXRecords(address.getDomain().asString())
.stream()
.sorted()
+ .distinct()
.collect(ImmutableList.toImmutableList());
return expectedMxRecords.equals(mxRecords);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]