Hi,

Seems like we also receive your mails twice here :)

More seriously, I am not sure to get all you logic/requirements, but did you look at aliases which deal with mail adresse that don't have a real account. I don't have all the details in mind for james 2.3 (in james 3, we name them recipient rewrite).

Thx, Eric


On 21/02/2013 09:27, Joe Rest wrote:
Hello there!

I have got apache james 2.3.2 and this situation, please help.

In our company we have got 2 types of mails:

user mails - like joe.r...@example.com , accounts created on localhost with
remote manager tool (4555)
group mails (virtual) - like empl...@example.com, fina...@example.com,
newcarr...@example.com etc... for group of people, mail in real doesnt
exist only send mail to configured real user accounts like joe@localhost,
lisa@localhost ...


in config.xml:

...
<mailet match="RecipientIsRegex=.*(?i)r...@example.com" class="Forward">
             <forwardTo>joe@localhost</forwardTo>
             <debug> true </debug>
</mailet>
...
<mailet match="RecipientIsRegex=.*(?i)fina...@example.com"
class="ToProcessor">
             <processor> financeProc </processor>
</mailet>

<processor name="financeProc">


          <mailet match="HasMailAttributeWithValueRegex=header, (?i)
r...@example.com" class="Forward">
                   <forwardTo> joe@localhost </forwardTo>
                   <passThrough> true </passThrough>
                   <debug> true </debug>
          </mailet>

<mailet match="HasMailAttributeWithValueRegex=header, (?i)mo...@example.com"
class="Forward">
                   <forwardTo> lisa@localhost </forwardTo>
                   <passThrough> true </passThrough>
                   <debug> true </debug>
          </mailet>

</processor>
....

Problem is when someone send e-mail to me and to the group in which I am. I
get that e-mail 2 times.

It's logical i made it this way, but is it possible to avoid duplicite or
more times sent e-mail on the server side ? Custom mailet or something ?

Thanks in advance,
joe


---------------------------------------------------------------------
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