You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Saibabu Vallurupalli <sa...@gmail.com> on 2011/07/27 19:38:45 UTC

Restrict to specific domain

Hi Eric and Team,

We finally decided to restrict emails to specific domain. i.e., we wanted to
have our organization users to exchange emails with in the same domain (
mydomain.net) and any email sent to different domain should bounce back. Is
there away we can achieve this functionality.

I greatly appreciate your help on this.

Thanks, Sai

Re: Restrict to specific domain

Posted by Saibabu Vallurupalli <sa...@gmail.com>.
Please Ignore my email. Server started.

problem is with case sensitivity I used senderHostIs instead of
SenderHostIs.

Thanks,
Sai



On Wed, Jul 27, 2011 at 3:15 PM, Saibabu Vallurupalli <
saibabu.vallurupalli@gmail.com> wrote:

> Hi Norman, Sorry to come back to you. Before sending this email I tried
> various options before sending you this email, but nothing worked. I am sure
> I am doing some simple config mistake. Please help me.
>
> I am getting the error below:
>
> ERROR 15:10:11,257 | james.mailprocessor | Unable to init matcher null:
> org.apache.mailet.MailetException: Could not load matcher (senderHostIs);
>   nested exception is:
>  java.lang.ClassNotFoundException:
> org.apache.james.transport.matchers.senderHostIs
> org.apache.mailet.MailetException: Could not load matcher (senderHostIs);
>
> mailetcontainer.xml root processor has got below:
>
> <mailet notmatch="senderHostIs=mydomain.net" class="Bounce">
>    <attachment>none</attachment>
>     </mailet>
>
> Thanks,
> Sai
>
>
>
> On Wed, Jul 27, 2011 at 2:05 PM, Norman Maurer <
> norman.maurer@googlemail.com> wrote:
>
>> in mailetcontainer.xml in the root processor.
>>
>> Bye,
>> Norman
>>
>>
>> 2011/7/27 Saibabu Vallurupalli <sa...@gmail.com>:
>> > Hi Norman, Under which processor we need to do this? I mean which
>> > configuration file and where?
>> >
>> > Thanks, Sai
>> >
>> > On Wed, Jul 27, 2011 at 1:49 PM, Norman Maurer <
>> norman.maurer@googlemail.com
>> >> wrote:
>> >
>> >> Yeah sure.. you can use something like this:
>> >>
>> >> <mailet notmatch="SenderHostIs=mydomain.net" class="Bounce">
>> >> ...
>> >> ...
>> >> </mailet>
>> >>
>> >> Bye,
>> >> Norman
>> >>
>> >>
>> >> 2011/7/27 Saibabu Vallurupalli <sa...@gmail.com>:
>> >> > Hi Eric and Team,
>> >> >
>> >> > We finally decided to restrict emails to specific domain. i.e., we
>> wanted
>> >> to
>> >> > have our organization users to exchange emails with in the same
>> domain (
>> >> > mydomain.net) and any email sent to different domain should bounce
>> back.
>> >> Is
>> >> > there away we can achieve this functionality.
>> >> >
>> >> > I greatly appreciate your help on this.
>> >> >
>> >> > Thanks, Sai
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
>> >> For additional commands, e-mail: server-dev-help@james.apache.org
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-dev-help@james.apache.org
>>
>>
>

Re: Restrict to specific domain

Posted by Saibabu Vallurupalli <sa...@gmail.com>.
Hi Norman, Sorry to come back to you. Before sending this email I tried
various options before sending you this email, but nothing worked. I am sure
I am doing some simple config mistake. Please help me.

I am getting the error below:

ERROR 15:10:11,257 | james.mailprocessor | Unable to init matcher null:
org.apache.mailet.MailetException: Could not load matcher (senderHostIs);
  nested exception is:
 java.lang.ClassNotFoundException:
org.apache.james.transport.matchers.senderHostIs
org.apache.mailet.MailetException: Could not load matcher (senderHostIs);

mailetcontainer.xml root processor has got below:

<mailet notmatch="senderHostIs=mydomain.net" class="Bounce">
   <attachment>none</attachment>
    </mailet>

Thanks,
Sai



On Wed, Jul 27, 2011 at 2:05 PM, Norman Maurer <norman.maurer@googlemail.com
> wrote:

> in mailetcontainer.xml in the root processor.
>
> Bye,
> Norman
>
>
> 2011/7/27 Saibabu Vallurupalli <sa...@gmail.com>:
> > Hi Norman, Under which processor we need to do this? I mean which
> > configuration file and where?
> >
> > Thanks, Sai
> >
> > On Wed, Jul 27, 2011 at 1:49 PM, Norman Maurer <
> norman.maurer@googlemail.com
> >> wrote:
> >
> >> Yeah sure.. you can use something like this:
> >>
> >> <mailet notmatch="SenderHostIs=mydomain.net" class="Bounce">
> >> ...
> >> ...
> >> </mailet>
> >>
> >> Bye,
> >> Norman
> >>
> >>
> >> 2011/7/27 Saibabu Vallurupalli <sa...@gmail.com>:
> >> > Hi Eric and Team,
> >> >
> >> > We finally decided to restrict emails to specific domain. i.e., we
> wanted
> >> to
> >> > have our organization users to exchange emails with in the same domain
> (
> >> > mydomain.net) and any email sent to different domain should bounce
> back.
> >> Is
> >> > there away we can achieve this functionality.
> >> >
> >> > I greatly appreciate your help on this.
> >> >
> >> > Thanks, Sai
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> >> For additional commands, e-mail: server-dev-help@james.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>

Re: Restrict to specific domain

Posted by Norman Maurer <no...@googlemail.com>.
in mailetcontainer.xml in the root processor.

Bye,
Norman


2011/7/27 Saibabu Vallurupalli <sa...@gmail.com>:
> Hi Norman, Under which processor we need to do this? I mean which
> configuration file and where?
>
> Thanks, Sai
>
> On Wed, Jul 27, 2011 at 1:49 PM, Norman Maurer <norman.maurer@googlemail.com
>> wrote:
>
>> Yeah sure.. you can use something like this:
>>
>> <mailet notmatch="SenderHostIs=mydomain.net" class="Bounce">
>> ...
>> ...
>> </mailet>
>>
>> Bye,
>> Norman
>>
>>
>> 2011/7/27 Saibabu Vallurupalli <sa...@gmail.com>:
>> > Hi Eric and Team,
>> >
>> > We finally decided to restrict emails to specific domain. i.e., we wanted
>> to
>> > have our organization users to exchange emails with in the same domain (
>> > mydomain.net) and any email sent to different domain should bounce back.
>> Is
>> > there away we can achieve this functionality.
>> >
>> > I greatly appreciate your help on this.
>> >
>> > Thanks, Sai
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-dev-help@james.apache.org
>>
>>
>

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


Re: Restrict to specific domain

Posted by Saibabu Vallurupalli <sa...@gmail.com>.
Hi Norman, Under which processor we need to do this? I mean which
configuration file and where?

Thanks, Sai

On Wed, Jul 27, 2011 at 1:49 PM, Norman Maurer <norman.maurer@googlemail.com
> wrote:

> Yeah sure.. you can use something like this:
>
> <mailet notmatch="SenderHostIs=mydomain.net" class="Bounce">
> ...
> ...
> </mailet>
>
> Bye,
> Norman
>
>
> 2011/7/27 Saibabu Vallurupalli <sa...@gmail.com>:
> > Hi Eric and Team,
> >
> > We finally decided to restrict emails to specific domain. i.e., we wanted
> to
> > have our organization users to exchange emails with in the same domain (
> > mydomain.net) and any email sent to different domain should bounce back.
> Is
> > there away we can achieve this functionality.
> >
> > I greatly appreciate your help on this.
> >
> > Thanks, Sai
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>

Re: Restrict to specific domain

Posted by Norman Maurer <no...@googlemail.com>.
Yeah sure.. you can use something like this:

<mailet notmatch="SenderHostIs=mydomain.net" class="Bounce">
...
...
</mailet>

Bye,
Norman


2011/7/27 Saibabu Vallurupalli <sa...@gmail.com>:
> Hi Eric and Team,
>
> We finally decided to restrict emails to specific domain. i.e., we wanted to
> have our organization users to exchange emails with in the same domain (
> mydomain.net) and any email sent to different domain should bounce back. Is
> there away we can achieve this functionality.
>
> I greatly appreciate your help on this.
>
> Thanks, Sai
>

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