Hello Kohei, I am not sure how you are "sending" mails, do you do this with a mail client like outlook, or using "telnet?".
I am asking because your sending mail server or mail client may split mails, if they go to different recipients. Also james may do this. If you send one mail to "[email protected]" and "[email protected]", this two domains could be handled by two different mailservers. So the sending server may clone the mail, and send the first to the mailserver handling "firstdomain.de" and the second to "seconddomain.de". So two mails may exist (with nearly same body, but different envelopes). Both mails will have different mail envelopes: The "to" header inside the mail body does list both recipients. The "to" header inside the mail envelope does only list one of the two recipients. If you configured james to handle both mails, and have set up the mx records also, there may arrive two mails. It is possible, depending on sending, that one mail will arrive which has to be split. Not sure. Also consider the following: If you forward a mail, a new "mail object" is created. This new mail will completely be handled again by your matchers. It will arrive as new mail in james. Try logging the mail recipients of every handled mail before and after the mailet. Greetings, Bernd -----Ursprüngliche Nachricht----- Von: Kohei Nozaki [mailto:[email protected]] Gesendet: Donnerstag, 11. Februar 2016 06:47 An: James Users List <[email protected]> Betreff: Re: How to forward email, but left a copy in original address? 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="[email protected]" class="Forward"> <forwardTo>[email protected]</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 - [email protected] - [email protected] * example.jp: NOT managed by James - [email protected] When I sent an email through James SMTP server, from [email protected] to [email protected] (same to from), the email has been arrived to both [email protected] and [email protected], as I expected. But when I sent an email from [email protected] to two addresses [email protected] and [email protected], the email has been arrived at [email protected], but not to [email protected]. Anyone know why the email hasn't arrived to [email protected] 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, > > * [email protected] > * [email protected] > > When someone send an email to [email protected], it should be arrived to > both addresses ([email protected] and [email protected]). > > How can I configure James to achieve this? > > Thanks. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
