Re: Recipient rewriting

Benoit TELLIER <[email protected]> Tue, 18 Feb 2025 10:46:26 +0000
Newsgroups gmane.comp.jakarta.james.user
Message-ID <[email protected]>
Have a look at domain mappings

https://james.staged.apache.org/james-project/3.9.0/servers/distributed/operate/cli.html#_managing_mappings 

-- 

Best regards,

Benoit TELLIER

General manager of Linagora VIETNAM.
Product owner for Team-Mail product.
Chairman of the Apache James project.

Mail: [email protected]
Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)


On Feb 18, 2025 11:38 AM, from Søren Hjarlvig <[email protected]>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 (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