Recipient rewriting
Søren Hjarlvig <[email protected]> Tue, 18 Feb 2025 10:38:12 +0000
| Newsgroups | gmane.comp.jakarta.james.user |
|---|---|
| Message-ID | <AM8P195MB0946B1E695199F50A2B946EFC3FA2@AM8P195MB0946.EURP195.PROD.OUTLOOK.COM> |
Hi all, I'm wondering about the simplest approach for doing recipient domain rewriting. I just need to change a single recipient domain to another domain. According to the documentation (https://james.apache.org/server/3/config-recipientrewritetable.html) this could be accomplished by adding a mapping element and adding the class attribute to recipientrewritetable element (class="org.apache.james.rrt.xml.XMLRecipientRewriteTable") in the recipientwritetable.xml configurationfile. I'm guessing the class should be "org.apache.james.rrt.file.XMLRecipientRewriteTable" since there is no "org.apache.james.rrt.xml.XMLRecipientRewriteTable": <recipientrewritetable class="org.apache.james.rrt.file.XMLRecipientRewriteTable"> <recursiveMapping>true</recursiveMapping> <mappingLimit>10</mappingLimit> <mapping>@[email protected]</mapping> </recipientrewritetable> However, it does not to seem work. Am I missing something ? Best regards Soeren