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 John Wang <ha...@hotmail.com> on 2003/07/22 06:18:47 UTC

incoming email is considered spam in james

hello, I recently set up a james server, and have the my MX record pointing to it.

However, when I send any email, the email goes to the "SPAM" folder, I have double checked that I have completely commented out the following

         <mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
            <processor> spam </processor>
         </mailet>

But still the same problem. Could anyone give me some hint? Urgent, please ...

Steve

Btw, in the following, I have servername "mail.blah.com", should I change it to "blah.com" since I'm writing to someone@blah.com instead of someone@mail.blah.com?
     
    <servernames autodetect="true" autodetectIP="true">
         <servername>localhost</servername>
         <servername>mail.blah.com</servername>
    </servernames>

RE: incoming email is considered spam in james

Posted by "Noel J. Bergman" <no...@devtech.com>.
> My email server is currently hosted in China

Your second InSpammerBlacklist mailet is detecting you:

22/07/03 14:02:52 DEBUG spoolmanager.root: Checking Mail1058853772046-0 with
org.apache.james.transport.matchers.InSpammerBlacklist@1c65216
22/07/03 14:02:52 DEBUG spoolmanager.root: Servicing Mail1058853772046-0 by
ToProcessor Mailet
22/07/03 14:02:52 DEBUG spoolmanager: Processed Mail1058853772046-0 through
root
22/07/03 14:02:52 DEBUG spoolmanager: Result was spam

> I can receive all messages from my friends in sillicon valley, but not
from China.

Your friends in the Silicon Valley aren't listed as spammers.

> The reason might be that most (if not all) DNS servers in china
> don't support "reverse DNS entries"

The reason would be that large portions of the IP address space are widely
blocked because of spam.

You can turn off the check, but you will still run into problems with
everyone else that has spam checks enabled.

What you might want to do is check www.openrbl.org to see why you are
listed.  Perhaps you can find some address space in China that isn't listed
as being a SPAM source.

	--- Noel


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


Re: incoming email is considered spam in james

Posted by John Wang <ha...@hotmail.com>.
Hi, Noel, I followed your advice and below is what I got from the log, I'm sure about the reason, however :)

My email server is currently hosted in China, the interesting finding I got is that I can receive all messages from my friends in sillicon valley, but not from China. The reason might be that most (if not all) DNS servers in china don't support "reverse DNS entries", which James might consider as spam, am I correct? If so, would you remind me how to turn down this "check" and allow anyone get through? any work around would be also cool !

Thanks a lot.

-----------------------------------

22/07/03 14:02:52 DEBUG spoolmanager: ==== Begin processing mail Mail1058853772046-0====
22/07/03 14:02:52 DEBUG spoolmanager: Processing Mail1058853772046-0 through root
22/07/03 14:02:52 DEBUG spoolmanager.root: Servicing mail: Mail1058853772046-0
22/07/03 14:02:52 DEBUG spoolmanager.root: Checking Mail1058853772046-0 with org.apache.james.transport.matchers.All@c623af
22/07/03 14:02:52 DEBUG spoolmanager.root: Servicing Mail1058853772046-0 by Postmaster aliasing mailet
22/07/03 14:02:52 DEBUG spoolmanager.root: Checking Mail1058853772046-0 with org.apache.james.transport.matchers.RelayLimit@50ca0c
22/07/03 14:02:52 DEBUG spoolmanager.root: Checking Mail1058853772046-0 with org.apache.james.transport.matchers.SenderIs@15311bd
22/07/03 14:02:52 DEBUG spoolmanager.root: Checking Mail1058853772046-0 with org.apache.james.transport.matchers.InSpammerBlacklist@b1aebf
22/07/03 14:02:52 DEBUG spoolmanager.root: Checking Mail1058853772046-0 with org.apache.james.transport.matchers.InSpammerBlacklist@1c65216
22/07/03 14:02:52 DEBUG spoolmanager.root: Servicing Mail1058853772046-0 by ToProcessor Mailet
22/07/03 14:02:52 DEBUG spoolmanager: Processed Mail1058853772046-0 through root
22/07/03 14:02:52 DEBUG spoolmanager: Result was spam
22/07/03 14:02:52 DEBUG spoolmanager: ==== Begin processing mail Mail1058853772046-0====
22/07/03 14:02:52 DEBUG spoolmanager: Processing Mail1058853772046-0 through spam
22/07/03 14:02:52 DEBUG spoolmanager.spam: Servicing mail: Mail1058853772046-0
22/07/03 14:02:52 DEBUG spoolmanager.spam: Checking Mail1058853772046-0 with org.apache.james.transport.matchers.All@8a0544
22/07/03 14:02:52 DEBUG spoolmanager.spam: Servicing Mail1058853772046-0 by ToRepository Mailet
22/07/03 14:02:52 DEBUG spoolmanager: Processed Mail1058853772046-0 through spam
22/07/03 14:02:52 DEBUG spoolmanager: Result was ghost
22/07/03 14:02:52 DEBUG spoolmanager: ==== Removed from spool mail Mail1058853772046-0====

----- Original Message ----- 
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <se...@james.apache.org>
Sent: Tuesday, July 22, 2003 1:53 PM
Subject: RE: incoming email is considered spam in james


> > when I send any email, the email goes to the "SPAM" folder
> 
> SAR-INF/environment.xml, turn on DEBUG for the spool manager, read the log,
> see which matcher is calling it spam.
> 
> --- Noel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 

RE: mailstore failed to pass through the Initialization stage

Posted by "Noel J. Bergman" <no...@devtech.com>.
The root error is:

java.sql.SQLException: Giving up... no connections available.
	at
org.apache.james.util.mordred.JdbcDataSource.getConnection(JdbcDataSource.ja
va:208)

It couldn't access the database.

	--- Noel


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


mailstore failed to pass through the Initialization stage

Posted by Satish <sa...@nunet-tech.com>.
Hi this is my config file when I am trying to start james it is giving
following error
     <data-source name="maildb"
class="org.apache.james.util.mordred.JdbcDataSource">
<driver>sun.jdbc.odbc.JdbcOdbc</driver>

<dburl>jdbc:odbc://193.50.50.128/James;</dburl>
            <user>sa</user>
            <password>tc2100</password>
            <max>20</max>
         </data-source>
   

error----------------
Order of processing = [dnsserver, objectstorage, database-connections,
mailstore, users-store, thread-manager, connections, sockets, scheduler,
James, spoolmanager, remotemanager, pop3server, smtpserver,
nntp-repository, nntpserver, fetchpop].
ERROR   2003-07-23 16:06:55.848 [Phoenix.] (): Component named
"mailstore" failed to pass through the Initialization stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository).
ERROR   2003-07-23 16:06:55.848 [Phoenix.] (): There was an error
running phase "startup" for Block named "mailstore". (Reason: Component
named "mailstore" failed to pass through the Initialization stage.
(Reason: org.apache.avalon.framework.component.ComponentException:
Cannot find or init repository).).
org.apache.excalibur.containerkit.lifecycle.LifecycleException:
Component named "mailstore" failed to pass through the Initialization
stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository).
	at org.apache.excalibur.container    


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


RE: mailstore" failed to pass through the Initialization stage

Posted by Satish <sa...@nunet-tech.com>.
Hi smith...
<data-source name="maildb"
class="org.apache.james.util.mordred.JdbcDataSource">
            <driver>sun.jdbc.odbc.JdbcOdbc</driver>
            <dburl>jdbc:odbc:193.50.50.128;DatabaseName=James</dburl>
            <user>sa</user>
            <password>tc2100</password>
            <max>20</max>
         </data-source>
       
still I am getting this error below..



There was an error running phase "startup" for Block named "mailstore".
(Reason: Component named "mailstore" failed to pass through the
Initialization stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository).).
org.apache.excalibur.containerkit.lifecycle.LifecycleException:
Component named "mailstore" failed to pass through the Initialization
stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository).
	at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.fail(Lifecyc
leHelper.java:289)
	at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(Life
cycleHelper.java:159)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.star
tup(DefaultApplication.java:480)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRu
nPhase(DefaultApplication.java:428)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.runP
hase(DefaultApplication.java:364)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.star
t(DefaultApplication.java:138)
	at
org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.
java:251)
rethrown from
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository
	at
org.apache.james.core.AvalonMailStore.select(AvalonMailStore.java:311)
	at
org.apache.james.core.AvalonMailStore.initialize(AvalonMailStore.java:12
1)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:235)
	at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(Life
cycleHelper.java:144)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.star
tup(DefaultApplication.java:480)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRu
nPhase(DefaultApplication.java:428)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.runP
hase(DefaultApplication.java:364)
rethrown from
java.sql.SQLException: Giving up... no connections available.
	at
org.apache.james.util.mordred.JdbcDataSource.getConnection(JdbcDataSourc
e.java:208)
	at
org.apache.james.mailrepository.JDBCMailRepository.initialize(JDBCMailRe
pository.java:307)
	at
org.apache.james.core.AvalonMailStore.select(AvalonMailStore.java:292)
	at
org.apache.james.core.AvalonMailStore.initialize(AvalonMailStore.java:12
1)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:235)
	at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(Life
cycleHelper.java:144)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.star
tup(DefaultApplication.java:480)
INFO    2003-07-23 15:04:12.474 [Phoenix.] (): exception while
starting:Component named "mailstore" failed to pass through the
Initialization stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository).

WARN    2003-07-23 15:04:12.624 [Phoenix.] (): Failed to start
application james.
org.apache.avalon.framework.CascadingException: Failed to start
application james.
	at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(Defaul
tKernel.java:195)
	at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication
(DefaultKernel.java:254)
	at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(Def
aultDeployer.java:353)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile
(DefaultEmbeddor.java:498)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile
(DefaultEmbeddor.java:491)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile
s(DefaultEmbeddor.java:476)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefa
ultApplications(DefaultEmbeddor.java:466)
rethrown from
org.apache.avalon.phoenix.interfaces.ApplicationException: Component
named "mailstore" failed to pass through the Initialization stage.
(Reason: org.apache.avalon.framework.component.ComponentException:
Cannot find or init repository).
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.star
t(DefaultApplication.java:144)
	at
org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.
java:251)
	at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(Defaul
tKernel.java:178)
	at
org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication
(DefaultKernel.java:254)
	at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(Def
aultDeployer.java:353)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile
(DefaultEmbeddor.java:498)
	at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile
(DefaultEmbeddor.java:491)
rethrown from
org.apache.excalibur.containerkit.lifecycle.LifecycleException:
Component named "mailstore" failed to pass through the Initialization
stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository).
	at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.fail(Lifecyc
leHelper.java:289)
	at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(Life
cycleHelper.java:159)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.star
tup(DefaultApplication.java:480)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRu
nPhase(DefaultApplication.java:428)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.runP
hase(DefaultApplication.java:364)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.star
t(DefaultApplication.java:138)
	at
org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.
java:251)
rethrown from
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository
	at
org.apache.james.core.AvalonMailStore.select(AvalonMailStore.java:311)
	at
org.apache.james.core.AvalonMailStore.initialize(AvalonMailStore.java:12
1)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:235)
	at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(Life
cycleHelper.java:144)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.star
tup(DefaultApplication.java:480)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.doRu
nPhase(DefaultApplication.java:428)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.runP
hase(DefaultApplication.java:364)
rethrown from
java.sql.SQLException: Giving up... no connections available.
	at
org.apache.james.util.mordred.JdbcDataSource.getConnection(JdbcDataSourc
e.java:208)
	at
org.apache.james.mailrepository.JDBCMailRepository.initialize(JDBCMailRe
pository.java:307)
	at
org.apache.james.core.AvalonMailStore.select(AvalonMailStore.java:292)
	at
org.apache.james.core.AvalonMailStore.initialize(AvalonMailStore.java:12
1)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:235)
	at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(Life
cycleHelper.java:144)
	at
org.apache.avalon.phoenix.components.application.DefaultApplication.star
tup(DefaultApplication.java:480)
WARN    2003-07-23 15:04:12.644 [Phoenix.] (): Error deleting Work
Directory "E:\jamesmail\james-2.1.1\work\james-1058952845144". (Reason:
File
E:\jamesmail\james-2.1.1\work\james-1058952845144\SAR-INF\lib\mm.mysql-2
.0.14.jar unable to be deleted.)
java.io.IOException: File
E:\jamesmail\james-2.1.1\work\james-1058952845144\SAR-INF\lib\mm.mysql-2
.0.14.jar unable to be deleted.
	at
org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:638)
	at
org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:806
)
	at
org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:76
2)
	at
org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:630)
	at
org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:806
)
	at
org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:76
2)
	at
org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:630)
WARN    2003-07-23 15:04:16.420 [Phoenix.] (): Failed to stop
application james as it is not initialized/started.


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


RE: mailstore" failed to pass through the Initialization stage

Posted by Lindsay Smith <li...@wapdat.com>.
Have you configured a datasource?
You need a section similar to this below in you config.xml

         <data-source name="maildb"
class="org.apache.james.util.mordred.JdbcDataSource">
            <driver>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver>

<dburl>jdbc:microsoft:sqlserver://192.168.0.20:1433;DatabaseName=development
_v17;SelectMethod=Cursor</dburl>
            <user>xxxxx</user>
            <password>xxxxx</password>
            <max>20</max>
         </data-source>

Also remember you will need to put the driver jar(s) in James, (lib
directory)



-----Original Message-----
From: Satish [mailto:satish@nunet-tech.com]
Sent: 23 July 2003 10:01
To: 'James Users List'
Subject: mailstore" failed to pass through the Initialization stage


Hi I am trying to use db as mail storage system. The following error
occurred while starting james. What could be the reason
Component named "mailstore" failed to pass through the Initialization
stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository).
Thanks,
Satish varma ch.



---------------------------------------------------------------------
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


mailstore" failed to pass through the Initialization stage

Posted by Satish <sa...@nunet-tech.com>.
Hi I am trying to use db as mail storage system. The following error
occurred while starting james. What could be the reason
Component named "mailstore" failed to pass through the Initialization
stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository).
Thanks,
Satish varma ch.



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


RE: incoming email is considered spam in james

Posted by "Noel J. Bergman" <no...@devtech.com>.
> when I send any email, the email goes to the "SPAM" folder

SAR-INF/environment.xml, turn on DEBUG for the spool manager, read the log,
see which matcher is calling it spam.

	--- Noel


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


RE: incoming email is considered spam in james

Posted by Lindsay Smith <li...@wapdat.com>.
In servernames you will have to put in "blah.com" for James to realise that
its one of the domains that James looks after.

from the comments in config.xml ...
servernames identifies the DNS namespace served by this instance of James.



-----Original Message-----
From: John Wang [mailto:haocheng00@hotmail.com]
Sent: 22 July 2003 05:19
To: server-user@james.apache.org
Subject: incoming email is considered spam in james


hello, I recently set up a james server, and have the my MX record pointing
to it.

However, when I send any email, the email goes to the "SPAM" folder, I have
double checked that I have completely commented out the following

         <mailet match="RemoteAddrNotInNetwork=127.0.0.1"
class="ToProcessor">
            <processor> spam </processor>
         </mailet>

But still the same problem. Could anyone give me some hint? Urgent, please
...

Steve

Btw, in the following, I have servername "mail.blah.com", should I change it
to "blah.com" since I'm writing to someone@blah.com instead of
someone@mail.blah.com?

    <servernames autodetect="true" autodetectIP="true">
         <servername>localhost</servername>
         <servername>mail.blah.com</servername>
    </servernames>


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