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 Eike Kettner <ei...@gmail.com> on 2013/03/22 10:19:03 UTC

Recipient rewriting and the * wildcard

Hello,

I have a question regarding the recipient rewrite feature (that I
really like). I created a mapping "webmaster@* --> eike", where "eike"
is my local account. What I tried to achieve is, that mails to the
webmaster are delivered to me. But it turned out that this isn't a
good idea, since mails to webmasters of other domains are now
delivered to me, too -- which I don't want. For example one of my
users sent a mail to "webmaster@other-non-local-domain.org" and it
went in my inbox...

Is there a wild-card for "match local domains only" or is there
another solution to this? For now I removed the "@*" mappings and
created one per local domain.

Thanks and regards,
Eike

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


Re: Recipient rewriting and the * wildcard

Posted by Eike Kettner <ei...@gmail.com>.
Hi Eric,

thank you for your reply. I will look into it once I have some time
and get back with any results/questions that may occur.

Regards,
Eike

2013/3/24 Eric Charles <er...@apache.org>:
> Hi Eike,
>
> To my knowledge, there is nothing such as 'only for local domains".
> It could be easily developed I think (somewhere in [1]), but it is not
> available out-of-the box.
>
> Contributions welcome :)
>
> You could use a single rewrite with a regexp (still having to have a large
> regexp if you manage many domains).
>
> Thx, Eric
>
>
> [1]
> https://svn.apache.org/repos/asf/james/server/trunk/data/data-library/src/main/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTable.java
>
>
>
> On 22/03/2013 09:19, Eike Kettner wrote:
>>
>> Hello,
>>
>> I have a question regarding the recipient rewrite feature (that I
>> really like). I created a mapping "webmaster@* --> eike", where "eike"
>> is my local account. What I tried to achieve is, that mails to the
>> webmaster are delivered to me. But it turned out that this isn't a
>> good idea, since mails to webmasters of other domains are now
>> delivered to me, too -- which I don't want. For example one of my
>> users sent a mail to "webmaster@other-non-local-domain.org" and it
>> went in my inbox...
>>
>> Is there a wild-card for "match local domains only" or is there
>> another solution to this? For now I removed the "@*" mappings and
>> created one per local domain.
>>
>> Thanks and regards,
>> Eike
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

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


Re: Recipient rewriting and the * wildcard

Posted by Eric Charles <er...@apache.org>.
Hi Eike,

To my knowledge, there is nothing such as 'only for local domains".
It could be easily developed I think (somewhere in [1]), but it is not 
available out-of-the box.

Contributions welcome :)

You could use a single rewrite with a regexp (still having to have a 
large regexp if you manage many domains).

Thx, Eric


[1] 
https://svn.apache.org/repos/asf/james/server/trunk/data/data-library/src/main/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTable.java


On 22/03/2013 09:19, Eike Kettner wrote:
> Hello,
>
> I have a question regarding the recipient rewrite feature (that I
> really like). I created a mapping "webmaster@* --> eike", where "eike"
> is my local account. What I tried to achieve is, that mails to the
> webmaster are delivered to me. But it turned out that this isn't a
> good idea, since mails to webmasters of other domains are now
> delivered to me, too -- which I don't want. For example one of my
> users sent a mail to "webmaster@other-non-local-domain.org" and it
> went in my inbox...
>
> Is there a wild-card for "match local domains only" or is there
> another solution to this? For now I removed the "@*" mappings and
> created one per local domain.
>
> Thanks and regards,
> Eike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

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