----- Original Message -----
From: "Randahl Fink Isaksen" <[EMAIL PROTECTED]>


> All my outgoing e-mails got stuck in the spam-folder and I have now found
> out that the problem is caused by the default configuration.
> In the following part of james.conf.xml it seems the configuration states
> that only mails sent from an e-mail client running on the same machine as
> the mail server will be serviced (if the client's address is not equals to
> 127.0.0.1 then the submitted e-mail is classified as spam):
>
> <mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
> <processor> spam </processor>
> </mailet>
>
> I have tested this, and if I comment out the above lines, my e-mails get
> through, otherwise they do not.
> If I am right in my assumptions about how this part of the configuration
> works, I would like to suggest a different default configuration, namely
one
> which allows all clients from within the local network to be serviced with
> outgoing e-mail transport.
>
> Also, I would like to define such a configuration in my own james.conf.xml
> file, but I have not been able to figure out how.

The issue I see with the suggestion, is how do you define the "local
network" as a default configuration.  When you specify 127.0.0.1, the
matcher uses your local IP address, so unless the mail was sent from that
machine, it will get put in spam.

As for how RemoteAddrNotInNetwork works, first I'll apologize for not having
better documentation on the mailets and matchers.  I've been meaning to do
this for quite some time (as well as include docs on the user repositories,
using a database, and writing your own mailets), but I've just been too busy
or trying to take some time away from the computer.

If anybody has the time, it would be tremendously helpful to document the
mailets and matchers.  The code is pretty easy to read, and just knowing
what you can pass to them and the basics of what they do is very helpful.

RemoteAddrNotInNetwork (and RemoteAddrInNetwork) can take a comma delimited
list of IP addresses, e.g., "RemoteAddrNotInNetwork=127.0.0.1,10.0.0.1,
192.168.0.1".  You can also make any of these addresses end with a *, e.g.,
"RemoteAddrNotInNetwork=127.0.0.1,10.*,192.168.0.*".  Note that you can put
the wildcard at any octet level.

Hopefully this will allow you to get only the proper machines allowed to
send messages.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives:  <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to