I've put something like following definition to mailetcontainer.xml,
where near of commented definition of XMLRecipientRewriteTable exists,
and it works as I nearly expected:

<mailet match="RecipientIs=k...@example.org" class="Forward">
  <forwardTo>kyle-c...@example.org</forwardTo>
  <passThrough>true</passThrough>
</mailet>

But I have an odd thing in this setup, and a question about it. my
situation:

Consider the following are my domains and holding addresses:

* example.org: managed by James
  - k...@example.org
  - kyle-c...@example.org
* example.jp: NOT managed by James
  - k...@example.jp

When I sent an email through James SMTP server, from k...@example.org to
k...@example.org (same to from), the email has been arrived to both
k...@example.org and kyle-c...@example.org, as I expected.

But when I sent an email from k...@example.org to two addresses
k...@example.org and k...@example.jp, the email has been arrived at
kyle-c...@example.org, but not to k...@example.org.

Anyone know why the email hasn't arrived to k...@example.org if the two
addresses are specified?

Thanks.

On 2/7/16 16:00, Kohei Nozaki wrote:
> Hello, I'm using James3 SNAPSHOT.
> 
> I want to configure James to forward copy of emails to another address
> (these two addresses live in same James instance), but keep emails being
> sent in original address as well.
> 
> For example, I have two following addresses in a James instance,
> 
> * f...@example.com
> * b...@example.com
> 
> When someone send an email to f...@example.com, it should be arrived to
> both addresses (f...@example.com and b...@example.com).
> 
> How can I configure James to achieve this?
> 
> Thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org

Reply via email to