svn commit: r1137881 - /james/server/trunk/src/site/xdoc/config-mailetcontainer.xml

2011-06-20 Thread eric
Author: eric
Date: Tue Jun 21 06:54:52 2011
New Revision: 1137881

URL: http://svn.apache.org/viewvc?rev=1137881&view=rev
Log:
Fix broken link, tks to Anton Melser

Modified:
james/server/trunk/src/site/xdoc/config-mailetcontainer.xml

Modified: james/server/trunk/src/site/xdoc/config-mailetcontainer.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/src/site/xdoc/config-mailetcontainer.xml?rev=1137881&r1=1137880&r2=1137881&view=diff
==
--- james/server/trunk/src/site/xdoc/config-mailetcontainer.xml (original)
+++ james/server/trunk/src/site/xdoc/config-mailetcontainer.xml Tue Jun 21 
06:54:52 2011
@@ -150,7 +150,7 @@
   pair of ("processor", "spam").
   
   Apache James Server includes a number of pre-packaged Mailets and 
Matchers.  A list of provided Mailets may be found 
-  here.  A list of provided Matchers 
may be found here.
+  here.  A list of provided 
Matchers may be found here.
 
 
   



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



svn commit: r1137880 - in /james/server/trunk/src/site/xdoc: config.xml dev-build.xml

2011-06-20 Thread eric
Author: eric
Date: Tue Jun 21 06:52:42 2011
New Revision: 1137880

URL: http://svn.apache.org/viewvc?rev=1137880&view=rev
Log:
Fix some naming and be more informative on how to build beta1 (JAMES-1219)

Modified:
james/server/trunk/src/site/xdoc/config.xml
james/server/trunk/src/site/xdoc/dev-build.xml

Modified: james/server/trunk/src/site/xdoc/config.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/src/site/xdoc/config.xml?rev=1137880&r1=1137879&r2=1137880&view=diff
==
--- james/server/trunk/src/site/xdoc/config.xml (original)
+++ james/server/trunk/src/site/xdoc/config.xml Tue Jun 21 06:52:42 2011
@@ -25,7 +25,7 @@
 
 
 
-  
+  
   
 All configuration files resides in the ./conf and ./conf/META-INF 
folder.
   You can/must configure James for the following:

Modified: james/server/trunk/src/site/xdoc/dev-build.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/src/site/xdoc/dev-build.xml?rev=1137880&r1=1137879&r2=1137880&view=diff
==
--- james/server/trunk/src/site/xdoc/dev-build.xml (original)
+++ james/server/trunk/src/site/xdoc/dev-build.xml Tue Jun 21 06:52:42 2011
@@ -20,7 +20,7 @@
 
 
  
-  Build James from Source
+  Build Apache James from Source
 
 
 
@@ -49,8 +49,9 @@
   Get the source code using SVN - this method gives you access to the 
cutting edge code 
   base.  Instructions on how to use SVN to get the James source code 
   can be found http://www.apache.org/dev/version-control.html";>here.
-  James server repository is http://svn.apache.org/repos/asf/james/server/trunk";>http://svn.apache.org/repos/asf/james/server/trunk.
-  You can download all James sources (server,...) if you check out http://svn.apache.org/repos/asf/james/current";>http://svn.apache.org/repos/asf/james/current/
+  Apache James Server beta1 repository is http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta1/";>http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta1/.
+  For information, you can download all Apache James sources (server, 
mailbox, imap, mailet...) if you check out http://svn.apache.org/repos/asf/james/current";>http://svn.apache.org/repos/asf/james/current/.
+ Watch out!: you will get a release, but what we call a "trunk", that 
is on constant development and debugging.
 
 
 We consider in this document that you have checked-out James source 
code in JAMES_SRC_HOME directory.
@@ -92,7 +93,7 @@
   subdirectory of the James source directory.  
   This directory will be deleted if you run build with the clean 
argument.
 Warning! Any changes you've made in the 'dist' 
directory 
-  will be lost after a recompilation. If you are running James fro this 
directory
+  will be lost after a recompilation. If you are running James for this 
directory
   we recommend you backup to avoid losing work. 
 
   
@@ -116,18 +117,6 @@
   Select the modules you want to import (by default, all) and click on 
Finish
 to execute the import.
 
-
-
-   
- 
-The screenshots on this page contain an outdated list of 
projects. 
- Refer to http://svn.apache.org/repos/asf/james/server/";>http://svn.apache.org/repos/asf/james/server/
 
- for the accurate list.
-   
-  
-
-
-  
   
   
   You can also import other projects from 
@@ -159,6 +148,8 @@
 from container-spring\src\main\config\james folder to 
a conf folder 
 (conf folder must be a sub-folder of the 
JAMES_SRC_HOME directory where you made the check-out).
 As non-root privilege user, you may need to change the 
SMTP/IMAP/POP3 ports to values higher than 1024.
+ For ease, you can also create 2 new eclipse projects to edit the 
files and visualize the created mails/store/...: 
+ james-server-container-spring-conf and 
james-server-container-spring-var.
  
  
 



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



svn commit: r1137860 - /james/project/trunk/project/src/site/xdoc/mail.xml

2011-06-20 Thread eric
Author: eric
Date: Tue Jun 21 04:46:08 2011
New Revision: 1137860

URL: http://svn.apache.org/viewvc?rev=1137860&view=rev
Log:
Fix broken link, tks to Anton Melser

Modified:
james/project/trunk/project/src/site/xdoc/mail.xml

Modified: james/project/trunk/project/src/site/xdoc/mail.xml
URL: 
http://svn.apache.org/viewvc/james/project/trunk/project/src/site/xdoc/mail.xml?rev=1137860&r1=1137859&r2=1137860&view=diff
==
--- james/project/trunk/project/src/site/xdoc/mail.xml (original)
+++ james/project/trunk/project/src/site/xdoc/mail.xml Tue Jun 21 04:46:08 2011
@@ -28,7 +28,7 @@
 
 
   
-Please the guidelines below before 
subscribing to our lists and join our 
+Please read the guidelines below 
before subscribing to our lists and join our 
 community.
   
 



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



svn commit: r1137856 - /james/server/trunk/src/site/xdoc/dev-build.xml

2011-06-20 Thread eric
Author: eric
Date: Tue Jun 21 04:00:27 2011
New Revision: 1137856

URL: http://svn.apache.org/viewvc?rev=1137856&view=rev
Log:
Mention normal user may change to ports higher than 1024, tks to Anton Melser 
(JAMES-1219)

Modified:
james/server/trunk/src/site/xdoc/dev-build.xml

Modified: james/server/trunk/src/site/xdoc/dev-build.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/src/site/xdoc/dev-build.xml?rev=1137856&r1=1137855&r2=1137856&view=diff
==
--- james/server/trunk/src/site/xdoc/dev-build.xml (original)
+++ james/server/trunk/src/site/xdoc/dev-build.xml Tue Jun 21 04:00:27 2011
@@ -157,7 +157,8 @@
  new folder called stage as Eclipse source 
folder).
 Copy all files (except context folder log4j.properties and 
META-INF/persistence.xml) 
 from container-spring\src\main\config\james folder to 
a conf folder 
-(conf folder must be a sub-folder of the 
JAMES_SRC_HOME directory where you made the check-out).
+(conf folder must be a sub-folder of the 
JAMES_SRC_HOME directory where you made the check-out).
+As non-root privilege user, you may need to change the 
SMTP/IMAP/POP3 ports to values higher than 1024.
  
  
 



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



svn commit: r1137855 - /james/server/trunk/src/site/xdoc/dev-build.xml

2011-06-20 Thread eric
Author: eric
Date: Tue Jun 21 03:58:49 2011
New Revision: 1137855

URL: http://svn.apache.org/viewvc?rev=1137855&view=rev
Log:
Mention correct folder for spring-beans files, tks to Anton Melser (JAMES-1219)

Modified:
james/server/trunk/src/site/xdoc/dev-build.xml

Modified: james/server/trunk/src/site/xdoc/dev-build.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/src/site/xdoc/dev-build.xml?rev=1137855&r1=1137854&r2=1137855&view=diff
==
--- james/server/trunk/src/site/xdoc/dev-build.xml (original)
+++ james/server/trunk/src/site/xdoc/dev-build.xml Tue Jun 21 03:58:49 2011
@@ -151,11 +151,11 @@
   Now you have James projects in Eclipse workspace.
   You still have to prepare the following to be able to run from 
Eclipse:
   
-Copy the spring-beans.xml, 
log4j.properties 
-and META-INF/persistence.xmlfrom 
container-spring\src\main\config\james
+Copy the context folder, 
log4j.properties 
+and META-INF folder from 
container-spring\src\main\config\james
  directory to a source folder of container-spring 
project (you can use for example a 
  new folder called stage as Eclipse source 
folder).
-Copy all files (except spring-beans.xml, log4j.properties and 
META-INF/persistence.xml) 
+Copy all files (except context folder log4j.properties and 
META-INF/persistence.xml) 
 from container-spring\src\main\config\james folder to 
a conf folder 
 (conf folder must be a sub-folder of the 
JAMES_SRC_HOME directory where you made the check-out).
  



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



svn commit: r1137854 - /james/server/trunk/src/site/xdoc/dev-build.xml

2011-06-20 Thread eric
Author: eric
Date: Tue Jun 21 03:46:31 2011
New Revision: 1137854

URL: http://svn.apache.org/viewvc?rev=1137854&view=rev
Log:
Fix jdk and maven version, tks to Anton Melser (JAMES-1219)

Modified:
james/server/trunk/src/site/xdoc/dev-build.xml

Modified: james/server/trunk/src/site/xdoc/dev-build.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/src/site/xdoc/dev-build.xml?rev=1137854&r1=1137853&r2=1137854&view=diff
==
--- james/server/trunk/src/site/xdoc/dev-build.xml (original)
+++ james/server/trunk/src/site/xdoc/dev-build.xml Tue Jun 21 03:46:31 2011
@@ -64,14 +64,14 @@
 
 To run the build you need two third-party tools.
 
-  Java Development Kit - You must have a JDK of Java version 1.5 or 
higher installed to build the 
+  Java Development Kit - You must have a JDK of Java version 1.6 or 
higher installed to build the 
   James distribution.  The exact JDKs available depend on the 
platform.  A JDK must be downloaded and
   installed before the build can run.
-  Maven 3.0.2 - This is a Java-tailored, XML-configured, extensible 
build or make system. You need ant (2.2.1+) in order
-  to build James. You can get maven 2.2.1 from http://maven.apache.org/download.html";>here.
+  Maven 3.0.2 - This is a Java-tailored, XML-configured, extensible 
build or make system. You need ant (3.0.2+) in order
+  to build James. You can get maven 3.0.2 from http://maven.apache.org/download.html";>here.
   Installation instructions for maven are also available on the same 
page http://maven.apache.org/download.html";>http://maven.apache.org/download.html.
 
-Set (on windows) or export (on Unix) MAVEN-OPTS to tune the memory 
needed by maven with "MAVEN-OPTS=-Xmx1024m -XX:MaxPermSize=128m"
+Set (on windows) or export (on Unix) MAVEN_OPTS to tune the memory 
needed by maven with "MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=128m"
 
   
   



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



svn commit: r1137807 - /james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/impl/Message.java

2011-06-20 Thread bago
Author: bago
Date: Mon Jun 20 22:34:28 2011
New Revision: 1137807

URL: http://svn.apache.org/viewvc?rev=1137807&view=rev
Log:
Update jDKIM to latest mime4j trunk (MessageFormatter => MessageWriter)

Modified:

james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/impl/Message.java

Modified: 
james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/impl/Message.java
URL: 
http://svn.apache.org/viewvc/james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/impl/Message.java?rev=1137807&r1=1137806&r2=1137807&view=diff
==
--- 
james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/impl/Message.java 
(original)
+++ 
james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/impl/Message.java 
Mon Jun 20 22:34:28 2011
@@ -29,7 +29,7 @@ import org.apache.james.jdkim.api.Header
 import org.apache.james.mime4j.MimeException;
 import org.apache.james.mime4j.MimeIOException;
 import org.apache.james.mime4j.dom.MessageBuilder;
-import org.apache.james.mime4j.dom.MessageFormatter;
+import org.apache.james.mime4j.dom.MessageWriter;
 import org.apache.james.mime4j.dom.MessageServiceFactory;
 import org.apache.james.mime4j.dom.SingleBody;
 import org.apache.james.mime4j.stream.Field;
@@ -56,7 +56,7 @@ public class Message implements Headers 
  */
 public Message(InputStream is) throws IOException, MimeException {
 MessageBuilder mb = newMessageBuilder().newMessageBuilder();
-org.apache.james.mime4j.dom.Message mImpl = mb.parse(new 
EOLConvertingInputStream(is));
+org.apache.james.mime4j.dom.Message mImpl = mb.parseMessage(new 
EOLConvertingInputStream(is));
 
 this.message = mImpl;
 }
@@ -92,9 +92,9 @@ public class Message implements Headers 
 
 private List convertFields(List res) {
 List res2 = new LinkedList();
-MessageFormatter mf;
+MessageWriter mw;
 try {
-mf = newMessageBuilder().newMessageFormatter();
+mw = newMessageBuilder().newMessageWriter();
 } catch (MimeException e1) {
 return res2;
 }
@@ -102,7 +102,7 @@ public class Message implements Headers 
 ByteArrayOutputStream bos = new ByteArrayOutputStream();
 String field = null;
 try {
-mf.writeField(f, bos);
+mw.writeField(f, bos);
 // writeField always ends with CRLF and we don't want it.
 byte[] fieldbytes = bos.toByteArray();
 field = new String(fieldbytes, 0, fieldbytes.length - 2);



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



[jira] [Resolved] (MAILBOX-89) Allow the MessageMapper to handle Message fetching by pass the datatype which need to get fetched to it

2011-06-20 Thread Norman Maurer (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAILBOX-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Norman Maurer resolved MAILBOX-89.
--

   Resolution: Fixed
Fix Version/s: 0.3
 Assignee: Norman Maurer  (was: Robert Burrell Donkin)

done

> Allow the MessageMapper to handle Message fetching by pass the datatype which 
> need to get fetched to it
> ---
>
> Key: MAILBOX-89
> URL: https://issues.apache.org/jira/browse/MAILBOX-89
> Project: James Mailbox
>  Issue Type: Improvement
>Reporter: Robert Burrell Donkin
>Assignee: Norman Maurer
> Fix For: 0.3
>
>
> ATM fetch retrieves and parses the full contents of every message whether 
> this data is needed or not. This is very slow.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



svn commit: r1137741 - in /james/mailbox/trunk: jcr/src/main/java/org/apache/james/mailbox/jcr/mail/ jpa/src/main/java/org/apache/james/mailbox/jpa/mail/ maildir/src/main/java/org/apache/james/mailbox

2011-06-20 Thread norman
Author: norman
Date: Mon Jun 20 18:44:25 2011
New Revision: 1137741

URL: http://svn.apache.org/viewvc?rev=1137741&view=rev
Log:
Allow the MessageMapper to handle Message fetching by pass the datatype which 
need to get fetched to it. See MAILBOX-89

Modified:

james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/mail/JCRMessageMapper.java

james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java

james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java

james/mailbox/trunk/memory/src/main/java/org/apache/james/mailbox/inmemory/mail/InMemoryMessageMapper.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/AbstractMessageMapper.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapper.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/LazyMessageSearchIndex.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/ListeningMessageSearchIndex.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/SimpleMessageSearchIndex.java

Modified: 
james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/mail/JCRMessageMapper.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/mail/JCRMessageMapper.java?rev=1137741&r1=1137740&r2=1137741&view=diff
==
--- 
james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/mail/JCRMessageMapper.java
 (original)
+++ 
james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/mail/JCRMessageMapper.java
 Mon Jun 20 18:44:25 2011
@@ -252,14 +252,12 @@ public class JCRMessageMapper extends Ab
 }
 }
 
+
 /*
  * (non-Javadoc)
- * 
- * @see
- * 
org.apache.james.mailbox.store.mail.MessageMapper#findInMailbox(org.apache
- * .james.imap.mailbox.MessageRange)
+ * @see 
org.apache.james.mailbox.store.mail.MessageMapper#findInMailbox(org.apache.james.mailbox.store.mail.model.Mailbox,
 org.apache.james.mailbox.MessageRange, 
org.apache.james.mailbox.store.mail.MessageMapper.FetchType, 
org.apache.james.mailbox.store.mail.MessageMapper.MessageCallback)
  */
-public void findInMailbox(Mailbox mailbox, MessageRange set, 
MessageCallback callback) throws MailboxException {
+public void findInMailbox(Mailbox mailbox, MessageRange set, 
FetchType fType, MessageCallback callback) throws MailboxException {
 try {
 List> results;
 long from = set.getUidFrom();

Modified: 
james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java?rev=1137741&r1=1137740&r2=1137741&view=diff
==
--- 
james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java
 (original)
+++ 
james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java
 Mon Jun 20 18:44:25 2011
@@ -115,10 +115,12 @@ public class JPAMessageMapper extends Ab
 entityManager = null;
 }
 }
-/**
- * @see 
org.apache.james.mailbox.store.mail.MessageMapper#findInMailbox(org.apache.james.mailbox.MessageRange)
+
+/*
+ * (non-Javadoc)
+ * @see 
org.apache.james.mailbox.store.mail.MessageMapper#findInMailbox(org.apache.james.mailbox.store.mail.model.Mailbox,
 org.apache.james.mailbox.MessageRange, 
org.apache.james.mailbox.store.mail.MessageMapper.FetchType, 
org.apache.james.mailbox.store.mail.MessageMapper.MessageCallback)
  */
-public void findInMailbox(Mailbox mailbox, MessageRange set, 
MessageCallback callback) throws MailboxException {
+public void findInMailbox(Mailbox mailbox, MessageRange set, 
FetchType fType, MessageCallback callback) throws MailboxException {
 try {
 List> results;
 long from = set.getUidFrom();

Modified: 
james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java?rev=1137741&r1=1137740&r2=1137741&view=diff
==
--- 
james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java
 (original)
+++ 
james/mailbox/trunk/maildi

[jira] [Resolved] (JAMES-1251) Problem sending to second MX Host

2011-06-20 Thread Norman Maurer (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Norman Maurer resolved JAMES-1251.
--

Resolution: Fixed

I was able to reproduce it and write a testcase. Fix is now in trunk. Thanks 
again for your help

> Problem sending to second MX Host
> -
>
> Key: JAMES-1251
> URL: https://issues.apache.org/jira/browse/JAMES-1251
> Project: JAMES Server
>  Issue Type: Bug
>  Components: SMTPServer
>Affects Versions: 3.0-beta1
> Environment: Linux OpenSuse 11.2
>Reporter: Nicola Salvemini
>Assignee: Norman Maurer
> Fix For: 3.0-beta1
>
>
> Hello!
> I have problems sending email with James 3.0-M3.
> Suppose to send an email to destinat...@testdomain.com and suppose
> testdomain.com domain has two mx record: mx1.tesdomain.com
> (192.168.1.1) and mx2.testdomain.com (192.168.1.2).
> If, for any reason, the destination SMTP server mx1.tesdomain.com is
> down, James does not retry to send on mx2.testdomain.com.
> As normal behavior I would expect that James tried to send on
> mx2.testdomain.com but instead, sending the next runs again on
> mx1.testdomain.com.
> Regards,
> Nicola.
> INFO  09:31:56,578 | james.smtpserver | ID=468922697 Connection established 
> from localhost (127.0.0.1)
> DEBUG 09:31:56,579 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesWelcomeMessageHandler disconnect=false
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: helo test
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: HELO
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.HeloCmdHandler: 250 [localhost. Hello 
> test (localhost [127.0.0.1])]
> DEBUG 09:32:04,762 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: mail from:
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: MAIL
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesMailCmdHandler: 250 [2.1.0 Sender 
>  OK]
> DEBUG 09:32:18,985 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: rcpt to:
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: RCPT
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler: result=8 (DECLINED)
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook: result=8 (DECLINED)
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook: result=8 
> (DECLINED)
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,294 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook: result=8 
> (DECLINED)
> DEBUG 09:32:43,294 | jam

svn commit: r1137737 - in /james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava: brandilyncollins.com.zone dnstest.com.zone pippo.com.zone test-zone.com.zone

2011-06-20 Thread norman
Author: norman
Date: Mon Jun 20 18:39:06 2011
New Revision: 1137737

URL: http://svn.apache.org/viewvc?rev=1137737&view=rev
Log:
Add license headers. Related to JAMES-1269

Modified:

james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/brandilyncollins.com.zone

james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/dnstest.com.zone

james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/pippo.com.zone

james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/test-zone.com.zone

Modified: 
james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/brandilyncollins.com.zone
URL: 
http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/brandilyncollins.com.zone?rev=1137737&r1=1137736&r2=1137737&view=diff
==
--- 
james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/brandilyncollins.com.zone
 (original)
+++ 
james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/brandilyncollins.com.zone
 Mon Jun 20 18:39:06 2011
@@ -1,3 +1,21 @@
+;
+;  Licensed to the Apache Software Foundation (ASF) under one
+;  or more contributor license agreements.  See the NOTICE file
+;  distributed with this work for additional information
+;  regarding copyright ownership.  The ASF licenses this file
+;  to you under the Apache License, Version 2.0 (the
+;  "License"); you may not use this file except in compliance
+;  with the License.  You may obtain a copy of the License at
+;
+;http://www.apache.org/licenses/LICENSE-2.0
+
+;  Unless required by applicable law or agreed to in writing,
+;  software distributed under the License is distributed on an
+;  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+;  KIND, either express or implied.  See the License for the
+;  specific language governing permissions and limitations
+;  under the License.
+;
 brandilyncollins.com.  14440   IN  SOA ns1.hyperdrivedns.net. 
admin.hyperdrivedns.com. 2004121207 14400 7200 360 86400
 brandilyncollins.com.  14400   IN  MX  0 
mail.brandilyncollins.com.
 brandilyncollins.com.  14400   IN  NS  ns1.hyperdrivedns.net.

Modified: 
james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/dnstest.com.zone
URL: 
http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/dnstest.com.zone?rev=1137737&r1=1137736&r2=1137737&view=diff
==
--- 
james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/dnstest.com.zone
 (original)
+++ 
james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/dnstest.com.zone
 Mon Jun 20 18:39:06 2011
@@ -1,3 +1,21 @@
+;
+;  Licensed to the Apache Software Foundation (ASF) under one
+;  or more contributor license agreements.  See the NOTICE file
+;  distributed with this work for additional information
+;  regarding copyright ownership.  The ASF licenses this file
+;  to you under the Apache License, Version 2.0 (the
+;  "License"); you may not use this file except in compliance
+;  with the License.  You may obtain a copy of the License at
+;
+;http://www.apache.org/licenses/LICENSE-2.0
+
+;  Unless required by applicable law or agreed to in writing,
+;  software distributed under the License is distributed on an
+;  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+;  KIND, either express or implied.  See the License for the
+;  specific language governing permissions and limitations
+;  under the License.
+;
 dnstest.com.   14440   IN  SOA ns1.hyperdrivedns.net. 
admin.hyperdrivedns.com. 2004121207 14400 7200 360 86400
 dnstest.com.   14400   IN  MX  0 
dnstest.com.inbound.mxlogic.net.
 dnstest.com.   14400   IN  NS  ns1.hyperdrivedns.net.

Modified: 
james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/pippo.com.zone
URL: 
http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/pippo.com.zone?rev=1137737&r1=1137736&r2=1137737&view=diff
==
--- 
james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/pippo.com.zone
 (original)
+++ 
james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/pippo.com.zone
 Mon Jun 20 18:39:06 2011
@@ -1,3 +1,21 @@
+;
+;  Licensed to the Apache Software Foundation (A

svn commit: r1137715 - in /james/server/trunk/dnsservice-dnsjava/src: main/java/org/apache/james/dnsservice/dnsjava/ test/java/org/apache/james/dnsservice/dnsjava/ test/resources/org/apache/james/dnss

2011-06-20 Thread norman
Author: norman
Date: Mon Jun 20 17:37:37 2011
New Revision: 1137715

URL: http://svn.apache.org/viewvc?rev=1137715&view=rev
Log:
Make sure all found MX-Records are returned. See JAMES-1251

Added:

james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/one-mx.bar.zone

james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/three-mx.bar.zone

james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/two-mx.differentprio.zone

james/server/trunk/dnsservice-dnsjava/src/test/resources/org/apache/james/dnsservice/dnsjava/two-mx.sameprio.zone
Modified:

james/server/trunk/dnsservice-dnsjava/src/main/java/org/apache/james/dnsservice/dnsjava/DNSJavaService.java

james/server/trunk/dnsservice-dnsjava/src/test/java/org/apache/james/dnsservice/dnsjava/DNSJavaServiceTest.java

Modified: 
james/server/trunk/dnsservice-dnsjava/src/main/java/org/apache/james/dnsservice/dnsjava/DNSJavaService.java
URL: 
http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/main/java/org/apache/james/dnsservice/dnsjava/DNSJavaService.java?rev=1137715&r1=1137714&r2=1137715&view=diff
==
--- 
james/server/trunk/dnsservice-dnsjava/src/main/java/org/apache/james/dnsservice/dnsjava/DNSJavaService.java
 (original)
+++ 
james/server/trunk/dnsservice-dnsjava/src/main/java/org/apache/james/dnsservice/dnsjava/DNSJavaService.java
 Mon Jun 20 17:37:37 2011
@@ -293,32 +293,40 @@ public class DNSJavaService implements D
 int currentPrio = -1;
 List samePrio = new ArrayList();
 for (int i = 0; i < mxAnswers.length; i++) {
-boolean same = true;
-
+boolean same = false;
+boolean lastItem = i + 1 == mxAnswers.length;
 MXRecord mx = mxAnswers[i];
 if (i == 0) {
 currentPrio = mx.getPriority();
-samePrio.add(mx.getTarget().toString());
 } else {
 if (currentPrio == mx.getPriority()) {
-samePrio.add(mx.getTarget().toString());
+same = true;
 } else {
 same = false;
 }
 }
-// see if we need to insert the elements now
-if (same == false || i + 1 == mxAnswers.length) {
+
+String mxRecord = mx.getTarget().toString();
+if (same) {
+samePrio.add(mxRecord);
+} else {
+// shuffle entries with same prio
+// JAMES-913
+Collections.shuffle(samePrio);
+servers.addAll(samePrio);
+
+samePrio.clear();
+samePrio.add(mxRecord);
+
+}
+
+if (lastItem) {
 // shuffle entries with same prio
 // JAMES-913
 Collections.shuffle(samePrio);
 servers.addAll(samePrio);
-
-if (same == false && i + 1 < mxAnswers.length) {
-samePrio.clear();
-samePrio.add(mx.getTarget().toString());
-}
 }
-logger.debug(new StringBuffer("Found MX record 
").append(mx.getTarget().toString()).toString());
+logger.debug(new StringBuffer("Found MX record 
").append(mxRecord).toString());
 }
 return servers;
 }

Modified: 
james/server/trunk/dnsservice-dnsjava/src/test/java/org/apache/james/dnsservice/dnsjava/DNSJavaServiceTest.java
URL: 
http://svn.apache.org/viewvc/james/server/trunk/dnsservice-dnsjava/src/test/java/org/apache/james/dnsservice/dnsjava/DNSJavaServiceTest.java?rev=1137715&r1=1137714&r2=1137715&view=diff
==
--- 
james/server/trunk/dnsservice-dnsjava/src/test/java/org/apache/james/dnsservice/dnsjava/DNSJavaServiceTest.java
 (original)
+++ 
james/server/trunk/dnsservice-dnsjava/src/test/java/org/apache/james/dnsservice/dnsjava/DNSJavaServiceTest.java
 Mon Jun 20 17:37:37 2011
@@ -37,6 +37,7 @@ import org.xbill.DNS.Zone;
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.net.URL;
+import java.util.ArrayList;
 import java.util.Collection;
 
 import junit.framework.TestCase;
@@ -94,6 +95,59 @@ public class DNSJavaServiceTest extends 
 assertEquals("mail.test-zone.com.", res.iterator().next());
 }
 
+
+/**
+ * Test for JAMES-1251
+ */
+public void testTwoMXSamePrio() throws Exception {
+dnsServer.setResolver(null);
+dnsServer.setCache(new ZoneCache("two-mx.sameprio."));
+// a.setSearchPath(new String[] { "searchdomain.com." });
+Collection records = 
dnsServer.findMXRecords("two-mx.sameprio.");
+assertEquals(2, records.size());
+

Re: Webmail plan

2011-06-20 Thread Ioan Eugen Stan
2011/6/20 Barry :
> Hi, I can't find a webmail solution in James website. Does James team have
> the plan about webmail?
>
> Thanks,
> Barry
>

Hi,

Have you looked at Hupa? http://james.apache.org/hupa/index.html


-- 
Ioan Eugen Stan
http://ieugen.blogspot.com/

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



[jira] [Commented] (JAMES-1251) Problem sending to second MX Host

2011-06-20 Thread Norman Maurer (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051949#comment-13051949
 ] 

Norman Maurer commented on JAMES-1251:
--

Hi there,

no need to worry. I will have a look later. Thanks again for your feedback!

> Problem sending to second MX Host
> -
>
> Key: JAMES-1251
> URL: https://issues.apache.org/jira/browse/JAMES-1251
> Project: JAMES Server
>  Issue Type: Bug
>  Components: SMTPServer
>Affects Versions: 3.0-beta1
> Environment: Linux OpenSuse 11.2
>Reporter: Nicola Salvemini
>Assignee: Norman Maurer
> Fix For: 3.0-beta1
>
>
> Hello!
> I have problems sending email with James 3.0-M3.
> Suppose to send an email to destinat...@testdomain.com and suppose
> testdomain.com domain has two mx record: mx1.tesdomain.com
> (192.168.1.1) and mx2.testdomain.com (192.168.1.2).
> If, for any reason, the destination SMTP server mx1.tesdomain.com is
> down, James does not retry to send on mx2.testdomain.com.
> As normal behavior I would expect that James tried to send on
> mx2.testdomain.com but instead, sending the next runs again on
> mx1.testdomain.com.
> Regards,
> Nicola.
> INFO  09:31:56,578 | james.smtpserver | ID=468922697 Connection established 
> from localhost (127.0.0.1)
> DEBUG 09:31:56,579 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesWelcomeMessageHandler disconnect=false
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: helo test
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: HELO
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.HeloCmdHandler: 250 [localhost. Hello 
> test (localhost [127.0.0.1])]
> DEBUG 09:32:04,762 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: mail from:
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: MAIL
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesMailCmdHandler: 250 [2.1.0 Sender 
>  OK]
> DEBUG 09:32:18,985 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: rcpt to:
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: RCPT
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler: result=8 (DECLINED)
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook: result=8 (DECLINED)
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook: result=8 
> (DECLINED)
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,294 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook: result=8 
> (DECLINED)
> DEB

Re: Conf problem...?

2011-06-20 Thread math math
Hi Eric,

nop, i didn't change the domainlist.xml
looks like this :


  false
  false
  localhost


in my conf dir, i ve userrepository.xml
with true
and also userrepository23.xml
with false


To run the cli project, i ve just run the
org.apache.james.cli.ServerCmd.main method with program args like this :
--host localhost adddomain xxx
--host localhost adduser mat@xxx yyy

Sending and recieving mails now works perfectly!! happy to test this beta
version ;)

Thanks for your great help!

Mat


2011/6/20 Eric Charles 

> So you explicitly changed the virtualHosting in domainlist.xml from true to
> false ?
>
> To run cli with project loaded in eclipse, simply create a class that
> invokes the ServerCmd.main with the correct args array. I also made that
> this weekend but didn't committed the classe because it's not really a
> 'main' nor a 'test'.
>
> Maybe we should forsee a 'maven exec:java ' so that we don't develop
> the same things. I will open a jira for that.
>
> Tks,
> - Eric
>
>
>
> On 20/06/11 12:51, math math wrote:
>
>> No i m not using virtualHosting.
>> actually developping with eclipse and will run those commands using the
>> james-cli project.
>>
>> Thanks for your help ;)
>> Bye,
>> Mat.
>>
>>
>> 2011/6/20 Norman 
>> Maurer
>> >
>>
>>  ./james-cli --host localhost --adddomain localhost
>>> ./james-cli --host localhost--adddomain 127.0.0.1
>>>
>>>
>>> Bye,
>>> Norman
>>>
>>> Ps: Do you use virtualhosting ?
>>>
>>>
>>> 2011/6/20 math math**:
>>>
 I guess no, how to do that??
 Tks,
 Mat.

 2011/6/20 Norman 
 Maurer
 >

  Do you have "localhost" added to your DomainList (via jmx or
> james-cli)?
>
> Bye,
> Norman
>
>
> 2011/6/20 math math**:
>
>> sure :
>>
>> domainlist.xml:
>>
>> 
>>  true
>>  true
>>  localhost
>> 
>>
>>
>>
>  --**--**
>>> --**-
>>>
 mailetcontainer.xml:
>>
>> 
>>
>>  
>>Postmaster@**localhost
>>  
>>
>>  
>>  20
>>  
>>
>>  
>>
>>  
>>  
>>  
>>transport
>>  
>>  > match="InSpammerBlacklist=dnsb**l.njabl.org
>> ."
>> class="ToProcessor">
>>spam
>>550 Requested action not taken: rejected - see
>> http://njabl.org/
>>   
>>   
>>transport
>>   
>> 
>>
>>
>>  
>>X-UserIsAuth
>>true
>>  
>>  
>>
>>
>>
>  **DefaultRecipientRewriteTable>> recipientrewritetable>
>>>
  
>>  
>>  
>>
>>  
>>  
>>local-address-**error
>>550 - Requested action not taken: no such user
>>
> here
>
>>  
>>  
>>outgoing
>>5 minutes
>>10 minutes
>>45 minutes
>>2 hours
>>3 hours
>>6 hours
>>25
>>0
>>10
>>true
>>bounces
>>  
>>
>>
>>
>>  
>>file://var/**mail/error/
>>  
>>
>>
>>
>>  
>>file://var/**mail/spam/
>>  
>>
>>
>>
>>  
>>file://var/**mail/address-error/> repositoryPath>
>>  
>>
>>
>>
>>  
>>file://var/**mail/relay-denied/> repositoryPath>
>>  
>>
>>
>>
>>  
>>false
>>  
>>
>>  
>> 
>>
>> 2011/6/20 Norman 
>> Maurer
>> >
>>
>>  Hi there,
>>>
>>> can you show use your domainlist.xml  and your mailetcontainer.xml.
>>>
>>>
>>> Thanks,
>>> Norman
>>>
>>>
>>> 2011/6/20 math math**:
>>>
 Hi there,

 after few month using successfully james 3M2 in dev mode, i m

>>> trying
>>>
 now
>
>> to
>>>
 use James 3beta 1.
 New James launching is quite fine in Eclipse ans mysql database...

>>> But
>>>
  when
>>>
 i m trying to send mail from localhost to localhost, it does nt

>>> work,
>>>
 i
>
>> don
>>>
 't see new message in mailbox  here is what i got after trying

>>> multiple
>>>
 configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1

 INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection

>>> established
>>>
 from 127.0.0.1 (127.0.0.1)
 INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully

>>> spooled
>
>> mail Mail1308563045397-7836577b-**dca2-4ce3-9ac3-60b4259b05bc f

[jira] [Commented] (JAMES-1251) Problem sending to second MX Host

2011-06-20 Thread Nicola Salvemini (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051945#comment-13051945
 ] 

Nicola Salvemini commented on JAMES-1251:
-

Hi Norman,

MX-Records have following priority:
10 mail-av.extdomain.net
20 smtp-avas.extdomain.net

I can't check with different prios because "extdomain.net" doesn't exist! It's 
just a fake name to disguise one's true and I can't change DNS configuration 
for it.

> Problem sending to second MX Host
> -
>
> Key: JAMES-1251
> URL: https://issues.apache.org/jira/browse/JAMES-1251
> Project: JAMES Server
>  Issue Type: Bug
>  Components: SMTPServer
>Affects Versions: 3.0-beta1
> Environment: Linux OpenSuse 11.2
>Reporter: Nicola Salvemini
>Assignee: Norman Maurer
> Fix For: 3.0-beta1
>
>
> Hello!
> I have problems sending email with James 3.0-M3.
> Suppose to send an email to destinat...@testdomain.com and suppose
> testdomain.com domain has two mx record: mx1.tesdomain.com
> (192.168.1.1) and mx2.testdomain.com (192.168.1.2).
> If, for any reason, the destination SMTP server mx1.tesdomain.com is
> down, James does not retry to send on mx2.testdomain.com.
> As normal behavior I would expect that James tried to send on
> mx2.testdomain.com but instead, sending the next runs again on
> mx1.testdomain.com.
> Regards,
> Nicola.
> INFO  09:31:56,578 | james.smtpserver | ID=468922697 Connection established 
> from localhost (127.0.0.1)
> DEBUG 09:31:56,579 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesWelcomeMessageHandler disconnect=false
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: helo test
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: HELO
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.HeloCmdHandler: 250 [localhost. Hello 
> test (localhost [127.0.0.1])]
> DEBUG 09:32:04,762 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: mail from:
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: MAIL
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesMailCmdHandler: 250 [2.1.0 Sender 
>  OK]
> DEBUG 09:32:18,985 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: rcpt to:
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: RCPT
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler: result=8 (DECLINED)
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook: result=8 (DECLINED)
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook: result=8 
> (DECLINED)
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.sm

Webmail plan

2011-06-20 Thread Barry
Hi, I can't find a webmail solution in James website. Does James team have
the plan about webmail?

Thanks,
Barry


[jira] [Issue Comment Edited] (JAMES-1251) Problem sending to second MX Host

2011-06-20 Thread Norman Maurer (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051927#comment-13051927
 ] 

Norman Maurer edited comment on JAMES-1251 at 6/20/11 11:55 AM:


Does the MX-Records have the priority ? If so can you check with different 
prios ?

  was (Author: norman):
Could you show me your RemoteDelivery configuration ?


  
> Problem sending to second MX Host
> -
>
> Key: JAMES-1251
> URL: https://issues.apache.org/jira/browse/JAMES-1251
> Project: JAMES Server
>  Issue Type: Bug
>  Components: SMTPServer
>Affects Versions: 3.0-beta1
> Environment: Linux OpenSuse 11.2
>Reporter: Nicola Salvemini
>Assignee: Norman Maurer
> Fix For: 3.0-beta1
>
>
> Hello!
> I have problems sending email with James 3.0-M3.
> Suppose to send an email to destinat...@testdomain.com and suppose
> testdomain.com domain has two mx record: mx1.tesdomain.com
> (192.168.1.1) and mx2.testdomain.com (192.168.1.2).
> If, for any reason, the destination SMTP server mx1.tesdomain.com is
> down, James does not retry to send on mx2.testdomain.com.
> As normal behavior I would expect that James tried to send on
> mx2.testdomain.com but instead, sending the next runs again on
> mx1.testdomain.com.
> Regards,
> Nicola.
> INFO  09:31:56,578 | james.smtpserver | ID=468922697 Connection established 
> from localhost (127.0.0.1)
> DEBUG 09:31:56,579 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesWelcomeMessageHandler disconnect=false
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: helo test
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: HELO
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.HeloCmdHandler: 250 [localhost. Hello 
> test (localhost [127.0.0.1])]
> DEBUG 09:32:04,762 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: mail from:
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: MAIL
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesMailCmdHandler: 250 [2.1.0 Sender 
>  OK]
> DEBUG 09:32:18,985 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: rcpt to:
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: RCPT
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler: result=8 (DECLINED)
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook: result=8 (DECLINED)
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook: result=8 
> (DECLINED)
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 0

[jira] [Created] (JAMES-1276) Add a mvn exec:java goal to invoke cli

2011-06-20 Thread Eric Charles (JIRA)
Add a mvn exec:java goal to invoke cli
--

 Key: JAMES-1276
 URL: https://issues.apache.org/jira/browse/JAMES-1276
 Project: JAMES Server
  Issue Type: New Feature
Reporter: Eric Charles


Would be fine to type in the server cli module "mvn exec:java -h localhost -p 
 addUser user pwd" (not sure anymore how to pass params to exec:java)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



Re: Conf problem...?

2011-06-20 Thread Eric Charles
So you explicitly changed the virtualHosting in domainlist.xml from true 
to false ?


To run cli with project loaded in eclipse, simply create a class that 
invokes the ServerCmd.main with the correct args array. I also made that 
this weekend but didn't committed the classe because it's not really a 
'main' nor a 'test'.


Maybe we should forsee a 'maven exec:java ' so that we don't develop 
the same things. I will open a jira for that.


Tks,
- Eric


On 20/06/11 12:51, math math wrote:

No i m not using virtualHosting.
actually developping with eclipse and will run those commands using the
james-cli project.

Thanks for your help ;)
Bye,
Mat.


2011/6/20 Norman Maurer


./james-cli --host localhost --adddomain localhost
./james-cli --host localhost--adddomain 127.0.0.1


Bye,
Norman

Ps: Do you use virtualhosting ?


2011/6/20 math math:

I guess no, how to do that??
Tks,
Mat.

2011/6/20 Norman Maurer


Do you have "localhost" added to your DomainList (via jmx or james-cli)?

Bye,
Norman


2011/6/20 math math:

sure :

domainlist.xml:


  true
  true
  localhost






---

mailetcontainer.xml:



  
Postmaster@localhost
  

  
  20
  

  

  
  
  
transport
  
  
spam
550 Requested action not taken: rejected - see
http://njabl.org/
   
   
transport
   
 


  
X-UserIsAuth
true
  
  





DefaultRecipientRewriteTable

  
  
  

  
  
local-address-error
550 - Requested action not taken: no such user

here

  
  
outgoing
5 minutes
10 minutes
45 minutes
2 hours
3 hours
6 hours
25
0
10
true
bounces
  



  
file://var/mail/error/
  



  
file://var/mail/spam/
  



  
file://var/mail/address-error/
  



  
file://var/mail/relay-denied/
  



  
false
  

  


2011/6/20 Norman Maurer


Hi there,

can you show use your domainlist.xml  and your mailetcontainer.xml.


Thanks,
Norman


2011/6/20 math math:

Hi there,

after few month using successfully james 3M2 in dev mode, i m

trying

now

to

use James 3beta 1.
New James launching is quite fine in Eclipse ans mysql database...

But

when

i m trying to send mail from localhost to localhost, it does nt

work,

i

don

't see new message in mailbox  here is what i got after trying

multiple

configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1

INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection

established

from 127.0.0.1 (127.0.0.1)
INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully

spooled

mail Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc from
mat@127.0.0.1 on 127.0.0.1 for [mat@127.0.0.1]
INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection

closed

for

127.0.0.1 (127.0.0.1)
INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records

for

domain 127.0.0.1.
INFO  11:44:05,639 | james.mailetcontext | Temporary problem

looking

up

mail

server for host: 127.0.0.1
INFO  11:44:05,639 | james.mailetcontext | Temporary exception

delivering

mail

(Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1:

INFO  11:44:05,639 | james.mailetcontext | Storing message
Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1

into

outgoing after 0 retries

don't understand what s this "Couldn't resolve MX records for

domain

127.0.0.1." . Never saw that before with james M2


and here is what i got when sending from mat@localhost to

mat@localhost:



INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection

established

from 127.0.0.1 (127.0.0.1)
INFO  11:47:21,487 | james.smtpserver | ID=644415964 Successfully

spooled

mail Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134 from
mat@localhost on 127.0.0.1 for [mat@localhost]
INFO  11:47:21,501 | james.smtpserver | ID=644415964 Connection

closed

for

127.0.0.1 (127.0.0.1)
INFO  11:47:21,641 | james.dnsservice | Couldn't resolve MX records

for

domain localhost.
ERROR 11:47:21,642 | james.dnsservice | Couldn't resolve IP address

for

host

localhost.
INFO  11:47:21,642 | james.mailetcontext | Temporary problem

looking

up

mail

server for host: localhost
INFO  11:47:21,642 | james.mailetcontext | Temporary exception

delivering

mail

(Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost:

INFO  11:47:21,642 | james.mailetcontext | Storing message
Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost

into

outgoing after 0 retries

==>  sending @localhost i can see messages in "sent" folder !! but

not

in

"inbox" folder with thunderbird :(

here is my dnsservice.xml


fal

[jira] [Commented] (JAMES-1251) Problem sending to second MX Host

2011-06-20 Thread Norman Maurer (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051927#comment-13051927
 ] 

Norman Maurer commented on JAMES-1251:
--

Could you show me your RemoteDelivery configuration ?



> Problem sending to second MX Host
> -
>
> Key: JAMES-1251
> URL: https://issues.apache.org/jira/browse/JAMES-1251
> Project: JAMES Server
>  Issue Type: Bug
>  Components: SMTPServer
>Affects Versions: 3.0-beta1
> Environment: Linux OpenSuse 11.2
>Reporter: Nicola Salvemini
>Assignee: Norman Maurer
> Fix For: 3.0-beta1
>
>
> Hello!
> I have problems sending email with James 3.0-M3.
> Suppose to send an email to destinat...@testdomain.com and suppose
> testdomain.com domain has two mx record: mx1.tesdomain.com
> (192.168.1.1) and mx2.testdomain.com (192.168.1.2).
> If, for any reason, the destination SMTP server mx1.tesdomain.com is
> down, James does not retry to send on mx2.testdomain.com.
> As normal behavior I would expect that James tried to send on
> mx2.testdomain.com but instead, sending the next runs again on
> mx1.testdomain.com.
> Regards,
> Nicola.
> INFO  09:31:56,578 | james.smtpserver | ID=468922697 Connection established 
> from localhost (127.0.0.1)
> DEBUG 09:31:56,579 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesWelcomeMessageHandler disconnect=false
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: helo test
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: HELO
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.HeloCmdHandler: 250 [localhost. Hello 
> test (localhost [127.0.0.1])]
> DEBUG 09:32:04,762 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: mail from:
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: MAIL
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesMailCmdHandler: 250 [2.1.0 Sender 
>  OK]
> DEBUG 09:32:18,985 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: rcpt to:
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: RCPT
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler: result=8 (DECLINED)
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook: result=8 (DECLINED)
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook: result=8 
> (DECLINED)
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,294 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook: result=8 
> (DECLINED)
> DEBUG 09:32:43,294 | james.smtpser

[jira] [Commented] (JAMES-1251) Problem sending to second MX Host

2011-06-20 Thread Nicola Salvemini (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051925#comment-13051925
 ] 

Nicola Salvemini commented on JAMES-1251:
-

Same problem!

DEBUG 12:46:40,237 | james.mailspooler |  Begin processing mail 
Mail1308566800235-e35aaef2-c2fa-48dc-aa2b-76cd0e5087ef
DEBUG 12:46:40,238 | james.mailprocessor | Call MailProcessor root
DEBUG 12:46:40,243 | james.mailprocessor | Call MailProcessor transport
INFO  12:46:40,276 | james.mailetcontext | Remotely delivering mail 
Mail1308566800235-e35aaef2-c2fa-48dc-aa2b-76cd0e5087ef
INFO  12:46:40,278 | james.mailetcontext | Sending mail to 
[m.f...@extdomain.net, p...@extdomain.net] on host extdomain.net
DEBUG 12:46:40,280 | james.mailprocessor | End of mailetprocessor for state 
root reached
INFO  12:46:40,280 | james.mailetcontext | Remote delivery thread (0) will 
process mail 
Mail1308566800235-e35aaef2-c2fa-48dc-aa2b-76cd0e5087ef-to-extdomain.net
INFO  12:46:40,280 | james.mailetcontext | Attempting to deliver 
Mail1308566800235-e35aaef2-c2fa-48dc-aa2b-76cd0e5087ef-to-extdomain.net
DEBUG 12:46:40,281 | james.dnsservice | Found MX record mail-av.extdomain.net.
DEBUG 12:46:40,281 | james.dnsservice | Found MX record smtp-avas.extdomain.net.
INFO  12:46:40,281 | james.mailetcontext | Attempting delivery of 
Mail1308566800235-e35aaef2-c2fa-48dc-aa2b-76cd0e5087ef-to-extdomain.net to host 
mail-av.extdomain.net. at 192.168.1.1 from i...@mydomain.net for addresses 
[m.f...@extdomain.net, p...@extdomain.net]
INFO  12:46:40,287 | james.mailetcontext | Could not connect to SMTP host: 
192.168.1.1, port: 25
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:286)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
at 
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
at javax.mail.Service.connect(Service.java:295)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at 
org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:890)
at 
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:718)
at java.lang.Thread.run(Thread.java:662)
INFO  12:46:40,287 | james.mailetcontext | Temporary exception delivering mail 
(Mail1308566800235-e35aaef2-c2fa-48dc-aa2b-76cd0e5087ef-to-extdomain.net: 
javax.mail.MessagingException: No mail server(s) available at this time.
at 
org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:1182)
at 
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:718)
at java.lang.Thread.run(Thread.java:662)

> Problem sending to second MX Host
> -
>
> Key: JAMES-1251
> URL: https://issues.apache.org/jira/browse/JAMES-1251
> Project: JAMES Server
>  Issue Type: Bug
>  Components: SMTPServer
>Affects Versions: 3.0-beta1
> Environment: Linux OpenSuse 11.2
>Reporter: Nicola Salvemini
>Assignee: Norman Maurer
> Fix For: 3.0-beta1
>
>
> Hello!
> I have problems sending email with James 3.0-M3.
> Suppose to send an email to destinat...@testdomain.com and suppose
> testdomain.com domain has two mx record: mx1.tesdomain.com
> (192.168.1.1) and mx2.testdomain.com (192.168.1.2).
> If, for any reason, the destination SMTP server mx1.tesdomain.com is
> down, James does not retry to send on mx2.testdomain.com.
> As normal behavior I would expect that James tried to send on
> mx2.testdomain.com but instead, sending the next runs again on
> mx1.testdomain.com.
> Regards,
> Nicola.
> INFO  09:31:56,578 | james.smtpserver | ID=468922697 Connection established 
> from localhost (127.0.0.1)
> DEBUG 09:31:56,579 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesWelcomeMessageHandler disconnect=false
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: helo test
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: HELO
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.HeloCmdHandler: 250 [localhost. Hello 
> test (localho

Re: Conf problem...?

2011-06-20 Thread Norman Maurer
Let me know if you still have issues ;)

Bye,
Norman


2011/6/20 math math :
> No i m not using virtualHosting.
> actually developping with eclipse and will run those commands using the
> james-cli project.
>
> Thanks for your help ;)
> Bye,
> Mat.
>
>
> 2011/6/20 Norman Maurer 
>
>> ./james-cli --host localhost --adddomain localhost
>> ./james-cli --host localhost--adddomain 127.0.0.1
>>
>>
>> Bye,
>> Norman
>>
>> Ps: Do you use virtualhosting ?
>>
>>
>> 2011/6/20 math math :
>> > I guess no, how to do that??
>> > Tks,
>> > Mat.
>> >
>> > 2011/6/20 Norman Maurer 
>> >
>> >> Do you have "localhost" added to your DomainList (via jmx or james-cli)?
>> >>
>> >> Bye,
>> >> Norman
>> >>
>> >>
>> >> 2011/6/20 math math :
>> >> > sure :
>> >> >
>> >> > domainlist.xml:
>> >> >
>> >> > 
>> >> >  true
>> >> >  true
>> >> >  localhost
>> >> > 
>> >> >
>> >> >
>> >>
>> ---
>> >> > mailetcontainer.xml:
>> >> >
>> >> > 
>> >> >
>> >> >  
>> >> >    Postmaster@localhost
>> >> >  
>> >> >
>> >> >  
>> >> >     20 
>> >> >  
>> >> >
>> >> >  
>> >> >    
>> >> >      
>> >> >      
>> >> >      
>> >> >        transport
>> >> >      
>> >> >      > >> > class="ToProcessor">
>> >> >        spam
>> >> >        550 Requested action not taken: rejected - see
>> >> > http://njabl.org/ 
>> >> >       
>> >> >       
>> >> >        transport
>> >> >       
>> >> >     
>> >> >
>> >> >    
>> >> >      
>> >> >        X-UserIsAuth
>> >> >        true
>> >> >      
>> >> >      
>> >> >
>> >> >
>> >>
>> DefaultRecipientRewriteTable
>> >> >      
>> >> >      
>> >> >      
>> >> >
>> >> >      
>> >> >      
>> >> >        local-address-error
>> >> >        550 - Requested action not taken: no such user
>> >> here
>> >> >      
>> >> >      
>> >> >        outgoing
>> >> >        5 minutes
>> >> >        10 minutes
>> >> >        45 minutes
>> >> >        2 hours
>> >> >        3 hours
>> >> >        6 hours
>> >> >        25
>> >> >        0
>> >> >        10
>> >> >        true
>> >> >        bounces
>> >> >      
>> >> >    
>> >> >
>> >> >    
>> >> >      
>> >> >        file://var/mail/error/
>> >> >      
>> >> >    
>> >> >
>> >> >    
>> >> >      
>> >> >        file://var/mail/spam/
>> >> >      
>> >> >    
>> >> >
>> >> >    
>> >> >      
>> >> >        file://var/mail/address-error/
>> >> >      
>> >> >    
>> >> >
>> >> >    
>> >> >      
>> >> >        file://var/mail/relay-denied/
>> >> >      
>> >> >    
>> >> >
>> >> >    
>> >> >      
>> >> >        false
>> >> >      
>> >> >    
>> >> >  
>> >> > 
>> >> >
>> >> > 2011/6/20 Norman Maurer 
>> >> >
>> >> >> Hi there,
>> >> >>
>> >> >> can you show use your domainlist.xml  and your mailetcontainer.xml.
>> >> >>
>> >> >>
>> >> >> Thanks,
>> >> >> Norman
>> >> >>
>> >> >>
>> >> >> 2011/6/20 math math :
>> >> >> > Hi there,
>> >> >> >
>> >> >> > after few month using successfully james 3M2 in dev mode, i m
>> trying
>> >> now
>> >> >> to
>> >> >> > use James 3beta 1.
>> >> >> > New James launching is quite fine in Eclipse ans mysql database...
>> But
>> >> >> when
>> >> >> > i m trying to send mail from localhost to localhost, it does nt
>> work,
>> >> i
>> >> >> don
>> >> >> > 't see new message in mailbox  here is what i got after trying
>> >> >> multiple
>> >> >> > configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1
>> >> >> >
>> >> >> > INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection
>> >> >> established
>> >> >> > from 127.0.0.1 (127.0.0.1)
>> >> >> > INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully
>> >> spooled
>> >> >> > mail Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc from
>> >> >> > mat@127.0.0.1 on 127.0.0.1 for [mat@127.0.0.1]
>> >> >> > INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection
>> closed
>> >> >> for
>> >> >> > 127.0.0.1 (127.0.0.1)
>> >> >> > INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records
>> >> for
>> >> >> > domain 127.0.0.1.
>> >> >> > INFO  11:44:05,639 | james.mailetcontext | Temporary problem
>> looking
>> >> up
>> >> >> mail
>> >> >> > server for host: 127.0.0.1
>> >> >> > INFO  11:44:05,639 | james.mailetcontext | Temporary exception
>> >> delivering
>> >> >> > mail
>> >> >> (Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1:
>> >> >> > INFO  11:44:05,639 | james.mailetcontext | Storing message
>> >> >> > Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1
>> >> into
>> >> >> > outgoing after 0 retries
>> >> >> >
>> >> >> > don't understand what s this "Couldn't resolve MX records for
>> domain
>> >> >> > 127.0.0.1." . Never saw that before with james M2
>> >> >> >
>> >> >> >
>> >> >> > and here is what i got when sending from mat@localhost to
>> >> mat@localhost:
>> >> >> >
>> >> >> >
>> >> >> > INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection
>> >> >> established
>> >> >> > from 

Re: Conf problem...?

2011-06-20 Thread math math
No i m not using virtualHosting.
actually developping with eclipse and will run those commands using the
james-cli project.

Thanks for your help ;)
Bye,
Mat.


2011/6/20 Norman Maurer 

> ./james-cli --host localhost --adddomain localhost
> ./james-cli --host localhost--adddomain 127.0.0.1
>
>
> Bye,
> Norman
>
> Ps: Do you use virtualhosting ?
>
>
> 2011/6/20 math math :
> > I guess no, how to do that??
> > Tks,
> > Mat.
> >
> > 2011/6/20 Norman Maurer 
> >
> >> Do you have "localhost" added to your DomainList (via jmx or james-cli)?
> >>
> >> Bye,
> >> Norman
> >>
> >>
> >> 2011/6/20 math math :
> >> > sure :
> >> >
> >> > domainlist.xml:
> >> >
> >> > 
> >> >  true
> >> >  true
> >> >  localhost
> >> > 
> >> >
> >> >
> >>
> ---
> >> > mailetcontainer.xml:
> >> >
> >> > 
> >> >
> >> >  
> >> >Postmaster@localhost
> >> >  
> >> >
> >> >  
> >> > 20 
> >> >  
> >> >
> >> >  
> >> >
> >> >  
> >> >  
> >> >  
> >> >transport
> >> >  
> >> >   >> > class="ToProcessor">
> >> >spam
> >> >550 Requested action not taken: rejected - see
> >> > http://njabl.org/ 
> >> >   
> >> >   
> >> >transport
> >> >   
> >> > 
> >> >
> >> >
> >> >  
> >> >X-UserIsAuth
> >> >true
> >> >  
> >> >  
> >> >
> >> >
> >>
> DefaultRecipientRewriteTable
> >> >  
> >> >  
> >> >  
> >> >
> >> >  
> >> >  
> >> >local-address-error
> >> >550 - Requested action not taken: no such user
> >> here
> >> >  
> >> >  
> >> >outgoing
> >> >5 minutes
> >> >10 minutes
> >> >45 minutes
> >> >2 hours
> >> >3 hours
> >> >6 hours
> >> >25
> >> >0
> >> >10
> >> >true
> >> >bounces
> >> >  
> >> >
> >> >
> >> >
> >> >  
> >> >file://var/mail/error/
> >> >  
> >> >
> >> >
> >> >
> >> >  
> >> >file://var/mail/spam/
> >> >  
> >> >
> >> >
> >> >
> >> >  
> >> >file://var/mail/address-error/
> >> >  
> >> >
> >> >
> >> >
> >> >  
> >> >file://var/mail/relay-denied/
> >> >  
> >> >
> >> >
> >> >
> >> >  
> >> >false
> >> >  
> >> >
> >> >  
> >> > 
> >> >
> >> > 2011/6/20 Norman Maurer 
> >> >
> >> >> Hi there,
> >> >>
> >> >> can you show use your domainlist.xml  and your mailetcontainer.xml.
> >> >>
> >> >>
> >> >> Thanks,
> >> >> Norman
> >> >>
> >> >>
> >> >> 2011/6/20 math math :
> >> >> > Hi there,
> >> >> >
> >> >> > after few month using successfully james 3M2 in dev mode, i m
> trying
> >> now
> >> >> to
> >> >> > use James 3beta 1.
> >> >> > New James launching is quite fine in Eclipse ans mysql database...
> But
> >> >> when
> >> >> > i m trying to send mail from localhost to localhost, it does nt
> work,
> >> i
> >> >> don
> >> >> > 't see new message in mailbox  here is what i got after trying
> >> >> multiple
> >> >> > configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1
> >> >> >
> >> >> > INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection
> >> >> established
> >> >> > from 127.0.0.1 (127.0.0.1)
> >> >> > INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully
> >> spooled
> >> >> > mail Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc from
> >> >> > mat@127.0.0.1 on 127.0.0.1 for [mat@127.0.0.1]
> >> >> > INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection
> closed
> >> >> for
> >> >> > 127.0.0.1 (127.0.0.1)
> >> >> > INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records
> >> for
> >> >> > domain 127.0.0.1.
> >> >> > INFO  11:44:05,639 | james.mailetcontext | Temporary problem
> looking
> >> up
> >> >> mail
> >> >> > server for host: 127.0.0.1
> >> >> > INFO  11:44:05,639 | james.mailetcontext | Temporary exception
> >> delivering
> >> >> > mail
> >> >> (Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1:
> >> >> > INFO  11:44:05,639 | james.mailetcontext | Storing message
> >> >> > Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1
> >> into
> >> >> > outgoing after 0 retries
> >> >> >
> >> >> > don't understand what s this "Couldn't resolve MX records for
> domain
> >> >> > 127.0.0.1." . Never saw that before with james M2
> >> >> >
> >> >> >
> >> >> > and here is what i got when sending from mat@localhost to
> >> mat@localhost:
> >> >> >
> >> >> >
> >> >> > INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection
> >> >> established
> >> >> > from 127.0.0.1 (127.0.0.1)
> >> >> > INFO  11:47:21,487 | james.smtpserver | ID=644415964 Successfully
> >> spooled
> >> >> > mail Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134 from
> >> >> > mat@localhost on 127.0.0.1 for [mat@localhost]
> >> >> > INFO  11:47:21,501 | james.smtpserver | ID=6444

[jira] [Resolved] (PROTOCOLS-23) Incorrect counting on connection limit

2011-06-20 Thread Norman Maurer (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTOCOLS-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Norman Maurer resolved PROTOCOLS-23.


   Resolution: Fixed
Fix Version/s: 1.4.1

Fixed... Thanks for the patch!

> Incorrect counting on connection limit
> --
>
> Key: PROTOCOLS-23
> URL: https://issues.apache.org/jira/browse/PROTOCOLS-23
> Project: JAMES Protocols
>  Issue Type: Bug
>Reporter: TzeKai Lee
>Assignee: Norman Maurer
> Fix For: 1.4.1
>
> Attachments: ConnectionLimit.patch
>
>
> The counter in ConnectionLimitUpstreamHandler and 
> ConnectionPerIpLimitUpstreamHandler will decrease one more than expected when 
> the connection reaches limit, therefore the handler can not really limit 
> connection numbers.
> Say, if the limit is set to 2, connections will go like 0 -> 1 -> 2 -> 
> refused -> 3 -> refused -> 4.
> And the total connection limit counter is offseted by 1.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



svn commit: r1137589 - in /james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection: ConnectionLimitUpstreamHandler.java ConnectionPerIpLimitUpstreamHandler.java

2011-06-20 Thread norman
Author: norman
Date: Mon Jun 20 10:19:50 2011
New Revision: 1137589

URL: http://svn.apache.org/viewvc?rev=1137589&view=rev
Log:
Correctly count connections for limit them. Thanks to TzeKai Lee for the patch. 
See PROTOCOLS-23

Modified:

james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection/ConnectionLimitUpstreamHandler.java

james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection/ConnectionPerIpLimitUpstreamHandler.java

Modified: 
james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection/ConnectionLimitUpstreamHandler.java
URL: 
http://svn.apache.org/viewvc/james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection/ConnectionLimitUpstreamHandler.java?rev=1137589&r1=1137588&r2=1137589&view=diff
==
--- 
james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection/ConnectionLimitUpstreamHandler.java
 (original)
+++ 
james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection/ConnectionLimitUpstreamHandler.java
 Mon Jun 20 10:19:50 2011
@@ -54,11 +54,10 @@ public class ConnectionLimitUpstreamHand
 @Override
 public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) 
throws Exception {
 if (maxConnections > 0) {
-int currentCount = connections.getAndIncrement();
+int currentCount = connections.incrementAndGet();
 
 if (currentCount > maxConnections) {
 ctx.getChannel().close();
-connections.decrementAndGet();
 }
 }
 

Modified: 
james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection/ConnectionPerIpLimitUpstreamHandler.java
URL: 
http://svn.apache.org/viewvc/james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection/ConnectionPerIpLimitUpstreamHandler.java?rev=1137589&r1=1137588&r2=1137589&view=diff
==
--- 
james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection/ConnectionPerIpLimitUpstreamHandler.java
 (original)
+++ 
james/protocols/trunk/impl/src/main/java/org/jboss/netty/handler/connection/ConnectionPerIpLimitUpstreamHandler.java
 Mon Jun 20 10:19:50 2011
@@ -80,7 +80,6 @@ public class ConnectionPerIpLimitUpstrea
 Integer count = atomicCount.incrementAndGet();
 if (count > maxConnectionsPerIp) {
 ctx.getChannel().close();
-atomicCount.decrementAndGet();
 }
 }
 }
@@ -101,4 +100,4 @@ public class ConnectionPerIpLimitUpstrea
 }
 super.channelClosed(ctx, e);
 }
-}
\ No newline at end of file
+}



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



Re: Conf problem...?

2011-06-20 Thread Norman Maurer
./james-cli --host localhost --adddomain localhost
./james-cli --host localhost--adddomain 127.0.0.1


Bye,
Norman

Ps: Do you use virtualhosting ?


2011/6/20 math math :
> I guess no, how to do that??
> Tks,
> Mat.
>
> 2011/6/20 Norman Maurer 
>
>> Do you have "localhost" added to your DomainList (via jmx or james-cli)?
>>
>> Bye,
>> Norman
>>
>>
>> 2011/6/20 math math :
>> > sure :
>> >
>> > domainlist.xml:
>> >
>> > 
>> >  true
>> >  true
>> >  localhost
>> > 
>> >
>> >
>> ---
>> > mailetcontainer.xml:
>> >
>> > 
>> >
>> >  
>> >    Postmaster@localhost
>> >  
>> >
>> >  
>> >     20 
>> >  
>> >
>> >  
>> >    
>> >      
>> >      
>> >      
>> >        transport
>> >      
>> >      > > class="ToProcessor">
>> >        spam
>> >        550 Requested action not taken: rejected - see
>> > http://njabl.org/ 
>> >       
>> >       
>> >        transport
>> >       
>> >     
>> >
>> >    
>> >      
>> >        X-UserIsAuth
>> >        true
>> >      
>> >      
>> >
>> >
>> DefaultRecipientRewriteTable
>> >      
>> >      
>> >      
>> >
>> >      
>> >      
>> >        local-address-error
>> >        550 - Requested action not taken: no such user
>> here
>> >      
>> >      
>> >        outgoing
>> >        5 minutes
>> >        10 minutes
>> >        45 minutes
>> >        2 hours
>> >        3 hours
>> >        6 hours
>> >        25
>> >        0
>> >        10
>> >        true
>> >        bounces
>> >      
>> >    
>> >
>> >    
>> >      
>> >        file://var/mail/error/
>> >      
>> >    
>> >
>> >    
>> >      
>> >        file://var/mail/spam/
>> >      
>> >    
>> >
>> >    
>> >      
>> >        file://var/mail/address-error/
>> >      
>> >    
>> >
>> >    
>> >      
>> >        file://var/mail/relay-denied/
>> >      
>> >    
>> >
>> >    
>> >      
>> >        false
>> >      
>> >    
>> >  
>> > 
>> >
>> > 2011/6/20 Norman Maurer 
>> >
>> >> Hi there,
>> >>
>> >> can you show use your domainlist.xml  and your mailetcontainer.xml.
>> >>
>> >>
>> >> Thanks,
>> >> Norman
>> >>
>> >>
>> >> 2011/6/20 math math :
>> >> > Hi there,
>> >> >
>> >> > after few month using successfully james 3M2 in dev mode, i m trying
>> now
>> >> to
>> >> > use James 3beta 1.
>> >> > New James launching is quite fine in Eclipse ans mysql database... But
>> >> when
>> >> > i m trying to send mail from localhost to localhost, it does nt work,
>> i
>> >> don
>> >> > 't see new message in mailbox  here is what i got after trying
>> >> multiple
>> >> > configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1
>> >> >
>> >> > INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection
>> >> established
>> >> > from 127.0.0.1 (127.0.0.1)
>> >> > INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully
>> spooled
>> >> > mail Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc from
>> >> > mat@127.0.0.1 on 127.0.0.1 for [mat@127.0.0.1]
>> >> > INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection closed
>> >> for
>> >> > 127.0.0.1 (127.0.0.1)
>> >> > INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records
>> for
>> >> > domain 127.0.0.1.
>> >> > INFO  11:44:05,639 | james.mailetcontext | Temporary problem looking
>> up
>> >> mail
>> >> > server for host: 127.0.0.1
>> >> > INFO  11:44:05,639 | james.mailetcontext | Temporary exception
>> delivering
>> >> > mail
>> >> (Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1:
>> >> > INFO  11:44:05,639 | james.mailetcontext | Storing message
>> >> > Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1
>> into
>> >> > outgoing after 0 retries
>> >> >
>> >> > don't understand what s this "Couldn't resolve MX records for domain
>> >> > 127.0.0.1." . Never saw that before with james M2
>> >> >
>> >> >
>> >> > and here is what i got when sending from mat@localhost to
>> mat@localhost:
>> >> >
>> >> >
>> >> > INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection
>> >> established
>> >> > from 127.0.0.1 (127.0.0.1)
>> >> > INFO  11:47:21,487 | james.smtpserver | ID=644415964 Successfully
>> spooled
>> >> > mail Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134 from
>> >> > mat@localhost on 127.0.0.1 for [mat@localhost]
>> >> > INFO  11:47:21,501 | james.smtpserver | ID=644415964 Connection closed
>> >> for
>> >> > 127.0.0.1 (127.0.0.1)
>> >> > INFO  11:47:21,641 | james.dnsservice | Couldn't resolve MX records
>> for
>> >> > domain localhost.
>> >> > ERROR 11:47:21,642 | james.dnsservice | Couldn't resolve IP address
>> for
>> >> host
>> >> > localhost.
>> >> > INFO  11:47:21,642 | james.mailetcontext | Temporary problem looking
>> up
>> >> mail
>> >> > server for host: localhost
>> >> > INFO  11:47:21,642 | james.mailetcontext | Temporary exception
>> delivering
>> >> > mail
>> >> (Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost:
>> >> > INFO 

Re: Conf problem...?

2011-06-20 Thread math math
I guess no, how to do that??
Tks,
Mat.

2011/6/20 Norman Maurer 

> Do you have "localhost" added to your DomainList (via jmx or james-cli)?
>
> Bye,
> Norman
>
>
> 2011/6/20 math math :
> > sure :
> >
> > domainlist.xml:
> >
> > 
> >  true
> >  true
> >  localhost
> > 
> >
> >
> ---
> > mailetcontainer.xml:
> >
> > 
> >
> >  
> >Postmaster@localhost
> >  
> >
> >  
> > 20 
> >  
> >
> >  
> >
> >  
> >  
> >  
> >transport
> >  
> >   > class="ToProcessor">
> >spam
> >550 Requested action not taken: rejected - see
> > http://njabl.org/ 
> >   
> >   
> >transport
> >   
> > 
> >
> >
> >  
> >X-UserIsAuth
> >true
> >  
> >  
> >
> >
> DefaultRecipientRewriteTable
> >  
> >  
> >  
> >
> >  
> >  
> >local-address-error
> >550 - Requested action not taken: no such user
> here
> >  
> >  
> >outgoing
> >5 minutes
> >10 minutes
> >45 minutes
> >2 hours
> >3 hours
> >6 hours
> >25
> >0
> >10
> >true
> >bounces
> >  
> >
> >
> >
> >  
> >file://var/mail/error/
> >  
> >
> >
> >
> >  
> >file://var/mail/spam/
> >  
> >
> >
> >
> >  
> >file://var/mail/address-error/
> >  
> >
> >
> >
> >  
> >file://var/mail/relay-denied/
> >  
> >
> >
> >
> >  
> >false
> >  
> >
> >  
> > 
> >
> > 2011/6/20 Norman Maurer 
> >
> >> Hi there,
> >>
> >> can you show use your domainlist.xml  and your mailetcontainer.xml.
> >>
> >>
> >> Thanks,
> >> Norman
> >>
> >>
> >> 2011/6/20 math math :
> >> > Hi there,
> >> >
> >> > after few month using successfully james 3M2 in dev mode, i m trying
> now
> >> to
> >> > use James 3beta 1.
> >> > New James launching is quite fine in Eclipse ans mysql database... But
> >> when
> >> > i m trying to send mail from localhost to localhost, it does nt work,
> i
> >> don
> >> > 't see new message in mailbox  here is what i got after trying
> >> multiple
> >> > configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1
> >> >
> >> > INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection
> >> established
> >> > from 127.0.0.1 (127.0.0.1)
> >> > INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully
> spooled
> >> > mail Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc from
> >> > mat@127.0.0.1 on 127.0.0.1 for [mat@127.0.0.1]
> >> > INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection closed
> >> for
> >> > 127.0.0.1 (127.0.0.1)
> >> > INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records
> for
> >> > domain 127.0.0.1.
> >> > INFO  11:44:05,639 | james.mailetcontext | Temporary problem looking
> up
> >> mail
> >> > server for host: 127.0.0.1
> >> > INFO  11:44:05,639 | james.mailetcontext | Temporary exception
> delivering
> >> > mail
> >> (Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1:
> >> > INFO  11:44:05,639 | james.mailetcontext | Storing message
> >> > Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1
> into
> >> > outgoing after 0 retries
> >> >
> >> > don't understand what s this "Couldn't resolve MX records for domain
> >> > 127.0.0.1." . Never saw that before with james M2
> >> >
> >> >
> >> > and here is what i got when sending from mat@localhost to
> mat@localhost:
> >> >
> >> >
> >> > INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection
> >> established
> >> > from 127.0.0.1 (127.0.0.1)
> >> > INFO  11:47:21,487 | james.smtpserver | ID=644415964 Successfully
> spooled
> >> > mail Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134 from
> >> > mat@localhost on 127.0.0.1 for [mat@localhost]
> >> > INFO  11:47:21,501 | james.smtpserver | ID=644415964 Connection closed
> >> for
> >> > 127.0.0.1 (127.0.0.1)
> >> > INFO  11:47:21,641 | james.dnsservice | Couldn't resolve MX records
> for
> >> > domain localhost.
> >> > ERROR 11:47:21,642 | james.dnsservice | Couldn't resolve IP address
> for
> >> host
> >> > localhost.
> >> > INFO  11:47:21,642 | james.mailetcontext | Temporary problem looking
> up
> >> mail
> >> > server for host: localhost
> >> > INFO  11:47:21,642 | james.mailetcontext | Temporary exception
> delivering
> >> > mail
> >> (Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost:
> >> > INFO  11:47:21,642 | james.mailetcontext | Storing message
> >> > Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost
> into
> >> > outgoing after 0 retries
> >> >
> >> > ==> sending @localhost i can see messages in "sent" folder !! but not
> in
> >> > "inbox" folder with thunderbird :(
> >> >
> >> > here is my dnsservice.xml
> >> >
> >> > 
> >> >false
> >> >true

svn commit: r1137578 - in /james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox: inmemory/host/InMemoryHostSystem.java maildir/host/MaildirHostSystem.java

2011-06-20 Thread norman
Author: norman
Date: Mon Jun 20 10:10:51 2011
New Revision: 1137578

URL: http://svn.apache.org/viewvc?rev=1137578&view=rev
Log:
Adjust tests

Modified:

james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/inmemory/host/InMemoryHostSystem.java

james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/maildir/host/MaildirHostSystem.java

Modified: 
james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/inmemory/host/InMemoryHostSystem.java
URL: 
http://svn.apache.org/viewvc/james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/inmemory/host/InMemoryHostSystem.java?rev=1137578&r1=1137577&r2=1137578&view=diff
==
--- 
james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/inmemory/host/InMemoryHostSystem.java
 (original)
+++ 
james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/inmemory/host/InMemoryHostSystem.java
 Mon Jun 20 10:10:51 2011
@@ -26,14 +26,14 @@ import org.apache.james.imap.processor.m
 import org.apache.james.imap.tester.ImapHostSystem;
 import org.apache.james.imap.tester.base.HostSystem;
 import org.apache.james.mailbox.MailboxException;
-import org.apache.james.mailbox.inmemory.InMemoryMailboxManager;
 import org.apache.james.mailbox.inmemory.InMemoryMailboxSessionMapperFactory;
-import org.apache.james.mailbox.inmemory.InMemorySubscriptionManager;
 import org.apache.james.mailbox.store.MockAuthenticator;
+import org.apache.james.mailbox.store.StoreMailboxManager;
+import org.apache.james.mailbox.store.StoreSubscriptionManager;
 
 public class InMemoryHostSystem extends ImapHostSystem {
 
-private InMemoryMailboxManager mailboxManager;
+private StoreMailboxManager mailboxManager;
 private MockAuthenticator userManager; 
 private InMemoryMailboxSessionMapperFactory factory;
 
@@ -59,10 +59,10 @@ public class InMemoryHostSystem extends 
 private void initFields() throws MailboxException {
 userManager = new MockAuthenticator();
 factory = new InMemoryMailboxSessionMapperFactory();
-mailboxManager = new InMemoryMailboxManager(factory, userManager);
+mailboxManager = new StoreMailboxManager(factory, userManager);
 mailboxManager.init();
 
-final ImapProcessor defaultImapProcessorFactory = 
DefaultImapProcessorFactory.createDefaultProcessor(mailboxManager, new 
InMemorySubscriptionManager(factory));
+final ImapProcessor defaultImapProcessorFactory = 
DefaultImapProcessorFactory.createDefaultProcessor(mailboxManager, new 
StoreSubscriptionManager(factory));
 configure(new DefaultImapDecoderFactory().buildImapDecoder(),
 new DefaultImapEncoderFactory().buildImapEncoder(),
 defaultImapProcessorFactory);

Modified: 
james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/maildir/host/MaildirHostSystem.java
URL: 
http://svn.apache.org/viewvc/james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/maildir/host/MaildirHostSystem.java?rev=1137578&r1=1137577&r2=1137578&view=diff
==
--- 
james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/maildir/host/MaildirHostSystem.java
 (original)
+++ 
james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/maildir/host/MaildirHostSystem.java
 Mon Jun 20 10:10:51 2011
@@ -28,19 +28,19 @@ import org.apache.james.imap.processor.m
 import org.apache.james.imap.tester.ImapHostSystem;
 import org.apache.james.imap.tester.base.HostSystem;
 import org.apache.james.mailbox.MailboxException;
-import org.apache.james.mailbox.maildir.MaildirMailboxManager;
 import org.apache.james.mailbox.maildir.MaildirMailboxSessionMapperFactory;
 import org.apache.james.mailbox.maildir.MaildirStore;
-import org.apache.james.mailbox.maildir.MaildirSubscriptionManager;
 import org.apache.james.mailbox.store.JVMMailboxPathLocker;
 import org.apache.james.mailbox.store.MockAuthenticator;
+import org.apache.james.mailbox.store.StoreMailboxManager;
+import org.apache.james.mailbox.store.StoreSubscriptionManager;
 
 public class MaildirHostSystem extends ImapHostSystem {
 
 public static final String META_DATA_DIRECTORY = "target/user-meta-data";
 private static final String MAILDIR_HOME = "target/Maildir";
 
-private final MaildirMailboxManager mailboxManager;
+private final StoreMailboxManager mailboxManager;
 private final MockAuthenticator userManager;
 private final MaildirMailboxSessionMapperFactory 
mailboxSessionMapperFactory;
 
@@ -50,10 +50,11 @@ public class MaildirHostSystem extends I
 
 public MaildirHostSystem() throws MailboxException {
 userManager = new MockAuthenticator();
-MaildirStore store = new MaildirStore(MAILDIR_HOM

svn commit: r1137573 - in /james/mailbox/trunk: jcr/src/main/java/org/apache/james/mailbox/jcr/ jcr/src/main/java/org/apache/james/mailbox/jcr/mail/ jpa/src/main/java/org/apache/james/mailbox/jpa/mail

2011-06-20 Thread norman
Author: norman
Date: Mon Jun 20 10:07:03 2011
New Revision: 1137573

URL: http://svn.apache.org/viewvc?rev=1137573&view=rev
Log:
Its now possible to directly use StoreMailboxManager and StoreMessageManager, 
so we can remove some of its sub-classes. Part of MAILBOX-98

Added:

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/SimpleMessageMetaData.java
  - copied, changed from r1135926, 
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/SimpleMessageMetaData.java
Removed:

james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/AbstractJCRMapper.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/SimpleMessageMetaData.java
Modified:

james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/AbstractJCRScalingMapper.java

james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/mail/JCRMessageMapper.java

james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java

james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java

james/mailbox/trunk/memory/src/main/java/org/apache/james/mailbox/inmemory/mail/InMemoryMessageMapper.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreSubscriptionManager.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailbox.java

james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMessage.java

james/mailbox/trunk/tool/src/main/java/org/apache/james/mailbox/copier/MailboxCopierImpl.java

Modified: 
james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/AbstractJCRScalingMapper.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/AbstractJCRScalingMapper.java?rev=1137573&r1=1137572&r2=1137573&view=diff
==
--- 
james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/AbstractJCRScalingMapper.java
 (original)
+++ 
james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/AbstractJCRScalingMapper.java
 Mon Jun 20 10:07:03 2011
@@ -20,25 +20,99 @@ package org.apache.james.mailbox.jcr;
 
 import javax.jcr.Node;
 import javax.jcr.RepositoryException;
+import javax.jcr.Session;
 
 import org.apache.jackrabbit.commons.JcrUtils;
+import org.apache.james.mailbox.MailboxException;
 import org.apache.james.mailbox.MailboxSession;
+import org.apache.james.mailbox.store.transaction.TransactionalMapper;
+import org.slf4j.Logger;
 
 /**
- * Abstract base class for Mapper's which support scaling 
+ * Abstract base class for Mapper's which support scaling. This supports Level 
1 Implementations of JCR. So no real transaction management is used. 
+ * 
+ * The Session.save() will get called on commit() method,  
session.refresh(false) on rollback, and session.refresh(true) on begin()
  *
  */
-public abstract class AbstractJCRScalingMapper extends AbstractJCRMapper{
+public abstract class AbstractJCRScalingMapper extends TransactionalMapper 
implements JCRImapConstants {
+public final static String MAILBOXES_PATH =  "mailboxes";
 
+private final MailboxSessionJCRRepository repository;
 private final int scaling;
+
+private MailboxSession mSession;
 private final static char PAD ='_';
 
 public AbstractJCRScalingMapper(MailboxSessionJCRRepository repository, 
MailboxSession mSession, int scaling) {
-super(repository, mSession);
 this.scaling = scaling;
+
+this.mSession = mSession;
+this.repository = repository;
+}
+
+/**
+ * Return the logger
+ * 
+ * @return logger
+ */
+protected Logger getLogger() {
+return mSession.getLog();
+}
+
+/**
+ * Return the JCR Session
+ * 
+ * @return session
+ */
+protected Session getSession() throws RepositoryException{
+return repository.login(mSession);
+}
+
+/**
+ * Begin is not supported by level 1 JCR implementations, however we 
refresh the session
+ */
+protected void begin() throws MailboxException {  
+try {
+getSession().refresh(true);
+} catch (RepositoryException e) {
+// do nothin on refresh
+}
+// Do nothing
 }
 
 /**
+ * Just call save on the underlying JCR Session, because level 1 JCR 
implementation does not offer Transactions
+ */
+protected void commit() throws MailboxException {
+try {
+if (getSession().hasPendingChanges()) {
+getSession().save();
+}
+ 

Re: Conf problem...?

2011-06-20 Thread Norman Maurer
Do you have "localhost" added to your DomainList (via jmx or james-cli)?

Bye,
Norman


2011/6/20 math math :
> sure :
>
> domainlist.xml:
>
> 
>  true
>  true
>  localhost
> 
>
> ---
> mailetcontainer.xml:
>
> 
>
>  
>    Postmaster@localhost
>  
>
>  
>     20 
>  
>
>  
>    
>      
>      
>      
>        transport
>      
>       class="ToProcessor">
>        spam
>        550 Requested action not taken: rejected - see
> http://njabl.org/ 
>       
>       
>        transport
>       
>     
>
>    
>      
>        X-UserIsAuth
>        true
>      
>      
>
> DefaultRecipientRewriteTable
>      
>      
>      
>
>      
>      
>        local-address-error
>        550 - Requested action not taken: no such user here
>      
>      
>        outgoing
>        5 minutes
>        10 minutes
>        45 minutes
>        2 hours
>        3 hours
>        6 hours
>        25
>        0
>        10
>        true
>        bounces
>      
>    
>
>    
>      
>        file://var/mail/error/
>      
>    
>
>    
>      
>        file://var/mail/spam/
>      
>    
>
>    
>      
>        file://var/mail/address-error/
>      
>    
>
>    
>      
>        file://var/mail/relay-denied/
>      
>    
>
>    
>      
>        false
>      
>    
>  
> 
>
> 2011/6/20 Norman Maurer 
>
>> Hi there,
>>
>> can you show use your domainlist.xml  and your mailetcontainer.xml.
>>
>>
>> Thanks,
>> Norman
>>
>>
>> 2011/6/20 math math :
>> > Hi there,
>> >
>> > after few month using successfully james 3M2 in dev mode, i m trying now
>> to
>> > use James 3beta 1.
>> > New James launching is quite fine in Eclipse ans mysql database... But
>> when
>> > i m trying to send mail from localhost to localhost, it does nt work, i
>> don
>> > 't see new message in mailbox  here is what i got after trying
>> multiple
>> > configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1
>> >
>> > INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection
>> established
>> > from 127.0.0.1 (127.0.0.1)
>> > INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully spooled
>> > mail Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc from
>> > mat@127.0.0.1 on 127.0.0.1 for [mat@127.0.0.1]
>> > INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection closed
>> for
>> > 127.0.0.1 (127.0.0.1)
>> > INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records for
>> > domain 127.0.0.1.
>> > INFO  11:44:05,639 | james.mailetcontext | Temporary problem looking up
>> mail
>> > server for host: 127.0.0.1
>> > INFO  11:44:05,639 | james.mailetcontext | Temporary exception delivering
>> > mail
>> (Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1:
>> > INFO  11:44:05,639 | james.mailetcontext | Storing message
>> > Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1 into
>> > outgoing after 0 retries
>> >
>> > don't understand what s this "Couldn't resolve MX records for domain
>> > 127.0.0.1." . Never saw that before with james M2
>> >
>> >
>> > and here is what i got when sending from mat@localhost to mat@localhost:
>> >
>> >
>> > INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection
>> established
>> > from 127.0.0.1 (127.0.0.1)
>> > INFO  11:47:21,487 | james.smtpserver | ID=644415964 Successfully spooled
>> > mail Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134 from
>> > mat@localhost on 127.0.0.1 for [mat@localhost]
>> > INFO  11:47:21,501 | james.smtpserver | ID=644415964 Connection closed
>> for
>> > 127.0.0.1 (127.0.0.1)
>> > INFO  11:47:21,641 | james.dnsservice | Couldn't resolve MX records for
>> > domain localhost.
>> > ERROR 11:47:21,642 | james.dnsservice | Couldn't resolve IP address for
>> host
>> > localhost.
>> > INFO  11:47:21,642 | james.mailetcontext | Temporary problem looking up
>> mail
>> > server for host: localhost
>> > INFO  11:47:21,642 | james.mailetcontext | Temporary exception delivering
>> > mail
>> (Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost:
>> > INFO  11:47:21,642 | james.mailetcontext | Storing message
>> > Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost into
>> > outgoing after 0 retries
>> >
>> > ==> sending @localhost i can see messages in "sent" folder !! but not in
>> > "inbox" folder with thunderbird :(
>> >
>> > here is my dnsservice.xml
>> >
>> > 
>> >    false
>> >    true
>> >    5
>> > 
>> >
>> -
>> > domainlist.xml :
>> >
>> > 
>> >  true
>> >  true
>> >  localhost
>> > 
>> >
>> -
>> > imapserver.xml
>> >
>> > 
>> >  localhost:143
>> >  200
>> > 

Conf problem...?

2011-06-20 Thread math math
Hi there,

after few month using successfully james 3M2 in dev mode, i m trying now to
use James 3beta 1.
New James launching is quite fine in Eclipse ans mysql database... But when
i m trying to send mail from localhost to localhost, it does nt work, i don
't see new message in mailbox  here is what i got after trying multiple
configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1

INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection established
from 127.0.0.1 (127.0.0.1)
INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully spooled
mail Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc from
mat@127.0.0.1 on 127.0.0.1 for [mat@127.0.0.1]
INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection closed for
127.0.0.1 (127.0.0.1)
INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records for
domain 127.0.0.1.
INFO  11:44:05,639 | james.mailetcontext | Temporary problem looking up mail
server for host: 127.0.0.1
INFO  11:44:05,639 | james.mailetcontext | Temporary exception delivering
mail (Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1:
INFO  11:44:05,639 | james.mailetcontext | Storing message
Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1 into
outgoing after 0 retries

don't understand what s this "Couldn't resolve MX records for domain
127.0.0.1." . Never saw that before with james M2


and here is what i got when sending from mat@localhost to mat@localhost :


INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection established
from 127.0.0.1 (127.0.0.1)
INFO  11:47:21,487 | james.smtpserver | ID=644415964 Successfully spooled
mail Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134 from
mat@localhost on 127.0.0.1 for [mat@localhost]
INFO  11:47:21,501 | james.smtpserver | ID=644415964 Connection closed for
127.0.0.1 (127.0.0.1)
INFO  11:47:21,641 | james.dnsservice | Couldn't resolve MX records for
domain localhost.
ERROR 11:47:21,642 | james.dnsservice | Couldn't resolve IP address for host
localhost.
INFO  11:47:21,642 | james.mailetcontext | Temporary problem looking up mail
server for host: localhost
INFO  11:47:21,642 | james.mailetcontext | Temporary exception delivering
mail (Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost:
INFO  11:47:21,642 | james.mailetcontext | Storing message
Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost into
outgoing after 0 retries

==> sending @localhost i can see messages in "sent" folder !! but not in
"inbox" folder with thunderbird :(

here is my dnsservice.xml


false
true
5

-
domainlist.xml :


  true
  true
  localhost

-
imapserver.xml


  localhost:143
  200
  
  

  
  
  false

  
  false

  
  
  65536

  
  10485760
  
   0 
   0 
  

-
smtpserver.xml


  localhost:25
  200
  
  
  360
   0 
   0 
  127.0.0.0/8
  false
  false
  0
  true
  



  



Doest anyone have any clue to help me?

Another question : how to make runnable standalone james with those
sources??

Thanks,

Mat.


Re: Conf problem...?

2011-06-20 Thread math math
sure :

domainlist.xml:


  true
  true
  localhost


---
mailetcontainer.xml:



  
Postmaster@localhost
  

  
 20 
  

  

  
  
  
transport
  
  
spam
550 Requested action not taken: rejected - see
http://njabl.org/ 
   
   
transport
   
 


  
X-UserIsAuth
true
  
  

DefaultRecipientRewriteTable
  
  
  

  
  
local-address-error
550 - Requested action not taken: no such user here
  
  
outgoing
5 minutes
10 minutes
45 minutes
2 hours
3 hours
6 hours
25
0
10
true
bounces
  



  
file://var/mail/error/
  



  
file://var/mail/spam/
  



  
file://var/mail/address-error/
  



  
file://var/mail/relay-denied/
  



  
false
  

  


2011/6/20 Norman Maurer 

> Hi there,
>
> can you show use your domainlist.xml  and your mailetcontainer.xml.
>
>
> Thanks,
> Norman
>
>
> 2011/6/20 math math :
> > Hi there,
> >
> > after few month using successfully james 3M2 in dev mode, i m trying now
> to
> > use James 3beta 1.
> > New James launching is quite fine in Eclipse ans mysql database... But
> when
> > i m trying to send mail from localhost to localhost, it does nt work, i
> don
> > 't see new message in mailbox  here is what i got after trying
> multiple
> > configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1
> >
> > INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection
> established
> > from 127.0.0.1 (127.0.0.1)
> > INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully spooled
> > mail Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc from
> > mat@127.0.0.1 on 127.0.0.1 for [mat@127.0.0.1]
> > INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection closed
> for
> > 127.0.0.1 (127.0.0.1)
> > INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records for
> > domain 127.0.0.1.
> > INFO  11:44:05,639 | james.mailetcontext | Temporary problem looking up
> mail
> > server for host: 127.0.0.1
> > INFO  11:44:05,639 | james.mailetcontext | Temporary exception delivering
> > mail
> (Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1:
> > INFO  11:44:05,639 | james.mailetcontext | Storing message
> > Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1 into
> > outgoing after 0 retries
> >
> > don't understand what s this "Couldn't resolve MX records for domain
> > 127.0.0.1." . Never saw that before with james M2
> >
> >
> > and here is what i got when sending from mat@localhost to mat@localhost:
> >
> >
> > INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection
> established
> > from 127.0.0.1 (127.0.0.1)
> > INFO  11:47:21,487 | james.smtpserver | ID=644415964 Successfully spooled
> > mail Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134 from
> > mat@localhost on 127.0.0.1 for [mat@localhost]
> > INFO  11:47:21,501 | james.smtpserver | ID=644415964 Connection closed
> for
> > 127.0.0.1 (127.0.0.1)
> > INFO  11:47:21,641 | james.dnsservice | Couldn't resolve MX records for
> > domain localhost.
> > ERROR 11:47:21,642 | james.dnsservice | Couldn't resolve IP address for
> host
> > localhost.
> > INFO  11:47:21,642 | james.mailetcontext | Temporary problem looking up
> mail
> > server for host: localhost
> > INFO  11:47:21,642 | james.mailetcontext | Temporary exception delivering
> > mail
> (Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost:
> > INFO  11:47:21,642 | james.mailetcontext | Storing message
> > Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost into
> > outgoing after 0 retries
> >
> > ==> sending @localhost i can see messages in "sent" folder !! but not in
> > "inbox" folder with thunderbird :(
> >
> > here is my dnsservice.xml
> >
> > 
> >false
> >true
> >5
> > 
> >
> -
> > domainlist.xml :
> >
> > 
> >  true
> >  true
> >  localhost
> > 
> >
> -
> > imapserver.xml
> >
> > 
> >  localhost:143
> >  200
> >  
> >  
> >
> >  
> >  
> >  false
> >
> >  
> >  false
> >
> >  
> >  
> >  65536
> >
> >  
> >  10485760
> >  
> >   0 
> >   0 
> >  
> > 
> >
> -
> > smtpserver.xml
> >
> > 
> >  loca

Re: Conf problem...?

2011-06-20 Thread Norman Maurer
Hi there,

can you show use your domainlist.xml  and your mailetcontainer.xml.


Thanks,
Norman


2011/6/20 math math :
> Hi there,
>
> after few month using successfully james 3M2 in dev mode, i m trying now to
> use James 3beta 1.
> New James launching is quite fine in Eclipse ans mysql database... But when
> i m trying to send mail from localhost to localhost, it does nt work, i don
> 't see new message in mailbox  here is what i got after trying multiple
> configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1
>
> INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection established
> from 127.0.0.1 (127.0.0.1)
> INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully spooled
> mail Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc from
> mat@127.0.0.1 on 127.0.0.1 for [mat@127.0.0.1]
> INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection closed for
> 127.0.0.1 (127.0.0.1)
> INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records for
> domain 127.0.0.1.
> INFO  11:44:05,639 | james.mailetcontext | Temporary problem looking up mail
> server for host: 127.0.0.1
> INFO  11:44:05,639 | james.mailetcontext | Temporary exception delivering
> mail (Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1:
> INFO  11:44:05,639 | james.mailetcontext | Storing message
> Mail1308563045397-7836577b-dca2-4ce3-9ac3-60b4259b05bc-to-127.0.0.1 into
> outgoing after 0 retries
>
> don't understand what s this "Couldn't resolve MX records for domain
> 127.0.0.1." . Never saw that before with james M2
>
>
> and here is what i got when sending from mat@localhost to mat@localhost :
>
>
> INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection established
> from 127.0.0.1 (127.0.0.1)
> INFO  11:47:21,487 | james.smtpserver | ID=644415964 Successfully spooled
> mail Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134 from
> mat@localhost on 127.0.0.1 for [mat@localhost]
> INFO  11:47:21,501 | james.smtpserver | ID=644415964 Connection closed for
> 127.0.0.1 (127.0.0.1)
> INFO  11:47:21,641 | james.dnsservice | Couldn't resolve MX records for
> domain localhost.
> ERROR 11:47:21,642 | james.dnsservice | Couldn't resolve IP address for host
> localhost.
> INFO  11:47:21,642 | james.mailetcontext | Temporary problem looking up mail
> server for host: localhost
> INFO  11:47:21,642 | james.mailetcontext | Temporary exception delivering
> mail (Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost:
> INFO  11:47:21,642 | james.mailetcontext | Storing message
> Mail1308563241482-faf28f09-e439-4b00-9491-26cf6de8e134-to-localhost into
> outgoing after 0 retries
>
> ==> sending @localhost i can see messages in "sent" folder !! but not in
> "inbox" folder with thunderbird :(
>
> here is my dnsservice.xml
>
> 
>    false
>    true
>    5
> 
> -
> domainlist.xml :
>
> 
>  true
>  true
>  localhost
> 
> -
> imapserver.xml
>
> 
>  localhost:143
>  200
>  
>  
>
>  
>  
>  false
>
>  
>  false
>
>  
>  
>  65536
>
>  
>  10485760
>  
>       0 
>       0 
>  
> 
> -
> smtpserver.xml
>
> 
>  localhost:25
>  200
>  
>  
>  360
>   0 
>   0 
>  127.0.0.0/8
>  false
>  false
>  0
>  true
>  
>    
>    
>
>  
> 
>
>
> Doest anyone have any clue to help me?
>
> Another question : how to make runnable standalone james with those
> sources??
>
> Thanks,
>
> Mat.
>

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



[jira] [Commented] (JAMES-1251) Problem sending to second MX Host

2011-06-20 Thread Norman Maurer (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051886#comment-13051886
 ] 

Norman Maurer commented on JAMES-1251:
--

Could you please try this one:

https://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-container-spring/3.0-beta2-SNAPSHOT/james-server-container-spring-3.0-beta2-20110619.104925-61-bin.tar.gz

> Problem sending to second MX Host
> -
>
> Key: JAMES-1251
> URL: https://issues.apache.org/jira/browse/JAMES-1251
> Project: JAMES Server
>  Issue Type: Bug
>  Components: SMTPServer
>Affects Versions: 3.0-beta1
> Environment: Linux OpenSuse 11.2
>Reporter: Nicola Salvemini
>Assignee: Norman Maurer
> Fix For: 3.0-beta1
>
>
> Hello!
> I have problems sending email with James 3.0-M3.
> Suppose to send an email to destinat...@testdomain.com and suppose
> testdomain.com domain has two mx record: mx1.tesdomain.com
> (192.168.1.1) and mx2.testdomain.com (192.168.1.2).
> If, for any reason, the destination SMTP server mx1.tesdomain.com is
> down, James does not retry to send on mx2.testdomain.com.
> As normal behavior I would expect that James tried to send on
> mx2.testdomain.com but instead, sending the next runs again on
> mx1.testdomain.com.
> Regards,
> Nicola.
> INFO  09:31:56,578 | james.smtpserver | ID=468922697 Connection established 
> from localhost (127.0.0.1)
> DEBUG 09:31:56,579 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesWelcomeMessageHandler disconnect=false
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: helo test
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: HELO
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.HeloCmdHandler: 250 [localhost. Hello 
> test (localhost [127.0.0.1])]
> DEBUG 09:32:04,762 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: mail from:
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: MAIL
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesMailCmdHandler: 250 [2.1.0 Sender 
>  OK]
> DEBUG 09:32:18,985 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: rcpt to:
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: RCPT
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler: result=8 (DECLINED)
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook: result=8 (DECLINED)
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook: result=8 
> (DECLINED)
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:3

[jira] [Reopened] (JAMES-1251) Problem sending to second MX Host

2011-06-20 Thread Nicola Salvemini (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicola Salvemini reopened JAMES-1251:
-


The problem is still present in beta2-SNAPSHOT_102020-60

> Problem sending to second MX Host
> -
>
> Key: JAMES-1251
> URL: https://issues.apache.org/jira/browse/JAMES-1251
> Project: JAMES Server
>  Issue Type: Bug
>  Components: SMTPServer
>Affects Versions: 3.0-beta1
> Environment: Linux OpenSuse 11.2
>Reporter: Nicola Salvemini
>Assignee: Norman Maurer
> Fix For: 3.0-beta1
>
>
> Hello!
> I have problems sending email with James 3.0-M3.
> Suppose to send an email to destinat...@testdomain.com and suppose
> testdomain.com domain has two mx record: mx1.tesdomain.com
> (192.168.1.1) and mx2.testdomain.com (192.168.1.2).
> If, for any reason, the destination SMTP server mx1.tesdomain.com is
> down, James does not retry to send on mx2.testdomain.com.
> As normal behavior I would expect that James tried to send on
> mx2.testdomain.com but instead, sending the next runs again on
> mx1.testdomain.com.
> Regards,
> Nicola.
> INFO  09:31:56,578 | james.smtpserver | ID=468922697 Connection established 
> from localhost (127.0.0.1)
> DEBUG 09:31:56,579 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesWelcomeMessageHandler disconnect=false
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: helo test
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: HELO
> DEBUG 09:32:04,761 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.HeloCmdHandler: 250 [localhost. Hello 
> test (localhost [127.0.0.1])]
> DEBUG 09:32:04,762 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: mail from:
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: MAIL
> DEBUG 09:32:18,984 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.JamesMailCmdHandler: 250 [2.1.0 Sender 
>  OK]
> DEBUG 09:32:18,985 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> disconnect=false
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler 
> received: rcpt to:
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 Lookup command handler 
> for command: RCPT
> DEBUG 09:32:43,287 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.fastfail.ValidRcptHandler: result=8 (DECLINED)
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,291 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.AuthRequiredToRelayRcptHook: result=8 (DECLINED)
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook
> DEBUG 09:32:43,292 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 
> org.apache.james.smtpserver.SenderAuthIdentifyVerificationRcptHook: result=8 
> (DECLINED)
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@6a1fee11
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook
> DEBUG 09:32:43,293 | james.smtpserver | ID=468922697 executing hook 
> org.apache.james.protocols.smtp.core.log.HookResultLogger@2ae61f87
> DEBUG 09:32:43,294 | james.smtpserver | ID=468922697 
> org.apache.james.protocols.smtp.core.PostmasterAbuseRcptHook: result=8 
> (DECLINED)
> DEBUG 09:32:43,294 | james.smtpserver | ID=468922697 executing hook 
> org.apache

[jira] [Updated] (PROTOCOLS-23) Incorrect counting on connection limit

2011-06-20 Thread TzeKai Lee (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTOCOLS-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

TzeKai Lee updated PROTOCOLS-23:


Attachment: ConnectionLimit.patch

The patch should fix this issue.

> Incorrect counting on connection limit
> --
>
> Key: PROTOCOLS-23
> URL: https://issues.apache.org/jira/browse/PROTOCOLS-23
> Project: JAMES Protocols
>  Issue Type: Bug
>Reporter: TzeKai Lee
>Assignee: Norman Maurer
> Attachments: ConnectionLimit.patch
>
>
> The counter in ConnectionLimitUpstreamHandler and 
> ConnectionPerIpLimitUpstreamHandler will decrease one more than expected when 
> the connection reaches limit, therefore the handler can not really limit 
> connection numbers.
> Say, if the limit is set to 2, connections will go like 0 -> 1 -> 2 -> 
> refused -> 3 -> refused -> 4.
> And the total connection limit counter is offseted by 1.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



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



[jira] [Created] (PROTOCOLS-23) Incorrect counting on connection limit

2011-06-20 Thread TzeKai Lee (JIRA)
Incorrect counting on connection limit
--

 Key: PROTOCOLS-23
 URL: https://issues.apache.org/jira/browse/PROTOCOLS-23
 Project: JAMES Protocols
  Issue Type: Bug
Reporter: TzeKai Lee
Assignee: Norman Maurer


The counter in ConnectionLimitUpstreamHandler and 
ConnectionPerIpLimitUpstreamHandler will decrease one more than expected when 
the connection reaches limit, therefore the handler can not really limit 
connection numbers.
Say, if the limit is set to 2, connections will go like 0 -> 1 -> 2 -> refused 
-> 3 -> refused -> 4.
And the total connection limit counter is offseted by 1.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



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