You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Joe Rest <jo...@gmail.com> on 2013/02/19 17:22:33 UTC
multiple same e-mails
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.rest@example.com , accounts created on localhost with
remote manager tool (4555)
group mails (virtual) - like employs@example.com, finance@example.com,
newcarrier@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)rest@example.com" class="Forward">
<forwardTo>joe@localhost</forwardTo>
<debug> true </debug>
</mailet>
...
<mailet match="RecipientIsRegex=.*(?i)finance@example.com"
class="ToProcessor">
<processor> financeProc </processor>
</mailet>
<processor name="financeProc">
<mailet match="HasMailAttributeWithValueRegex=header, (?i)
rest@example.com" class="Forward">
<forwardTo> joe@localhost </forwardTo>
<passThrough> true </passThrough>
<debug> true </debug>
</mailet>
<mailet match="HasMailAttributeWithValueRegex=header, (?i)moore@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