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 Steve Iolone <st...@gmail.com> on 2006/01/04 23:01:34 UTC

Perl and Java Mailets?

I've been trying to limit spam that I get on my private James server, and
have been thinking about not accepting mail from specific countries.
I've never programed with Java, so I already have a pretty steep learning
curve.  I have found a perl module that will return the country code for a
specified IP.
-- IP::Country . - which I've installed and tested. I've then found a pretty
simple description on how to invoke perl from Java
http://perl.active-venture.com/jpl/docs/Tutorial-callingperl.html ..    I've
read how to write a custom matcher,
http://james.apache.org/custom_matcher_2_1.html - but I'm too much a Java
novice.  I guess I'm looking for a more simplistic example of building and
installing a matcher..any pointers?
Thanks... Steve


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


Country Matcher (was Perl and Java Mailets?)

Posted by "Noel J. Bergman" <no...@devtech.com>.
Noel J. Bergman wrote:
> > I wrote a RemoteInCountry matcher some ages ago that uses GeoIP.
> Any chance on looking at the code?

Yes, but it is raw.  I had written it with some expectation of better
matcher configuration support, and hardcoded some things in the meantime.
It is also my playground for a base matcher that checks not only the
immediate mail relay, but also those listed in Received: headers.

I'll see about changing the parameter parsing, and putting it into the next
release.

	--- Noel


Re: Perl and Java Mailets?

Posted by Steve Iolone <st...@gmail.com>.
Noel J. Bergman wrote:
>> I've been trying to limit spam that I get on my private James server, and
>> have been thinking about not accepting mail from specific countries.
>>     
>
> I wrote a RemoteInCountry matcher some ages ago that uses GeoIP.
>
> 	--- Noel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>   
Any chance on looking at the code?

Steve

RE: Perl and Java Mailets?

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I've been trying to limit spam that I get on my private James server, and
> have been thinking about not accepting mail from specific countries.

I wrote a RemoteInCountry matcher some ages ago that uses GeoIP.

	--- Noel

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