Re: Unable to send messages, relay denied. IMAP does work ok.

2023-07-18 Thread Marc Chamberlin
Ping? Hope I didn't get lost in all the smoke around here!  Benoit, Jean,
anyone with any more good ideas? Hope so, cuz I am stuck and Google just
doesn't want to toss out anything useful yet.. Sigh...

   Marc

On Mon, Jul 10, 2023 at 10:39 PM Marc Chamberlin 
wrote:

>
>
> On Mon, Jul 10, 2023 at 6:12 PM Benoit TELLIER 
> wrote:
>
>> Hello Marc,
>>
>> Be also sure to turn off autoDetect* in domainlist.xml :
>>
>>
>>
>> 
>>
>> false
>>
>> false
>>
>> localhost
>>
>> 
>>
>> Hi Benoit Tellier, and thanks for taking the time to reply and share your
>> thoughts. The configuration for  in domainlist.xml is set as
>> you described it should be. So no changes needed.
>
>
>
>>
>> Similarily you could share your dnsserver.xml file.
>>
>
> Certainly! You will find it attached - Marc
>
>>
>> Regards,
>>
>> --
>>
>>
>> Best regards,
>>
>>
>>
>> Benoit TELLIER
>>
>>
>>
>> General manager of Linagora VIETNAM.
>>
>> Product owner for Team-Mail product.
>>
>> Chairman of the Apache James project.
>>
>>
>>
>> Mail: btell...@linagora.com
>>
>> Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)
>>
>>
>>
>>


Re: Unable to send messages, relay denied. IMAP does work ok.

2023-07-10 Thread Marc Chamberlin
On Mon, Jul 10, 2023 at 6:12 PM Benoit TELLIER 
wrote:

> Hello Marc,
>
> Be also sure to turn off autoDetect* in domainlist.xml :
>
>
>
> 
>
> false
>
> false
>
> localhost
>
> 
>
> Hi Benoit Tellier, and thanks for taking the time to reply and share your
> thoughts. The configuration for  in domainlist.xml is set as
> you described it should be. So no changes needed.



>
> Similarily you could share your dnsserver.xml file.
>

Certainly! You will find it attached - Marc

>
> Regards,
>
> --
>
>
> Best regards,
>
>
>
> Benoit TELLIER
>
>
>
> General manager of Linagora VIETNAM.
>
> Product owner for Team-Mail product.
>
> Chairman of the Apache James project.
>
>
>
> Mail: btell...@linagora.com
>
> Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)
>
>
>
>


  



















   
   
   
127.0.0.1   
192.168.10.100  
192.168.10.50   



   
   
   false
   false

   
   5
  
   
   
   


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

Re: Unable to send messages, relay denied. IMAP does work ok.

2023-07-10 Thread Marc Chamberlin
68.10.10
INFO   | jvm 1| 2023/07/10 21:21:10 | 2023-07-10 21:21:10,574 INFO  |
org.apache.james.protocols.smtp.core.log.HookResultLogger |
org.apache.james.smtpserver.AuthRequiredToRelayRcptHook: result= (DENY
Connected)
INFO   | jvm 1| 2023/07/10 21:21:10 | 2023-07-10 21:21:10,586 INFO  |
org.apache.james.protocols.netty.BasicChannelUpstreamHandler | Connection
closed for 192.168.10.10
INFO   | jvm 1| 2023/07/10 21:21:10 | 2023-07-10 21:21:10,963 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-NOOP: 0 ms.
INFO   | jvm 1| 2023/07/10 21:21:10 | 2023-07-10 21:21:10,966 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-GETQUOTAROOT: 0 ms.
INFO   | jvm 1| 2023/07/10 21:21:11 | 2023-07-10 21:21:10,980 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-FETCH: 8 ms.
INFO   | jvm 1| 2023/07/10 21:21:13 | 2023-07-10 21:21:13,031 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-IDLE: 0 ms.
INFO   | jvm 1| 2023/07/10 21:21:34 | 2023-07-10 21:21:34,832 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-APPEND: 34 ms.
INFO   | jvm 1| 2023/07/10 21:21:34 | 2023-07-10 21:21:34,837 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-NOOP: 0 ms.
INFO   | jvm 1| 2023/07/10 21:21:35 | 2023-07-10 21:21:35,094 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-NOOP: 0 ms.
INFO   | jvm 1| 2023/07/10 21:21:35 | 2023-07-10 21:21:35,100 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-GETQUOTAROOT: 0 ms.
INFO   | jvm 1| 2023/07/10 21:21:35 | 2023-07-10 21:21:35,117 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-FETCH: 14 ms.
INFO   | jvm 1| 2023/07/10 21:21:35 | 2023-07-10 21:21:35,197 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-FETCH: 16 ms.
INFO   | jvm 1| 2023/07/10 21:21:35 | 2023-07-10 21:21:35,479 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-STORE: 73 ms.
INFO   | jvm 1| 2023/07/10 21:21:35 | 2023-07-10 21:21:35,528 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-FETCH: 13 ms.
INFO   | jvm 1| 2023/07/10 21:21:36 | 2023-07-10 21:21:35,987 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-LOGOUT: 0 ms.
INFO   | jvm 1| 2023/07/10 21:21:36 | 2023-07-10 21:21:35,987 INFO  |
org.apache.james.imapserver.netty.ImapChannelUpstreamHandler | Connection
closed for 192.168.10.10
INFO   | jvm 1| 2023/07/10 21:21:47 | 2023-07-10 21:21:47,598 INFO  |
org.apache.james.imapserver.netty.ImapChannelUpstreamHandler | Connection
established from 192.168.10.10
INFO   | jvm 1| 2023/07/10 21:21:47 | 2023-07-10 21:21:47,613 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-CAPABILITY: 0 ms.
INFO   | jvm 1| 2023/07/10 21:21:47 | 2023-07-10 21:21:47,615 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-AUTHENTICATE: 0 ms.
INFO   | jvm 1| 2023/07/10 21:21:47 | 2023-07-10 21:21:47,623 INFO  |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-CAPABILITY: 0 ms.

After this nothing further seems to be happening with my attempt to send an
email, from my laptop - 192.168.10.10, until I shut down the James server.
Then I saw 8 lines, all repeating the same thing -

INFO   | jvm 1| 2023/07/10 21:22:06 | 2023-07-10 21:22:06,272 INFO  |
org.apache.james.imapserver.netty.ImapChannelUpstreamHandler | Connection
closed for 192.168.10.10

Dunno if this is helpful or not, hope so... Marc...

>
> Jean
>
>
>
>
>
> On Mon, Jul 10, 2023 at 7:59 PM Marc Chamberlin  >
> wrote:
>
> > Jean Helou - Thanks for your help and suggestions, much appreciated!  OK,
> > I stopped the James server, deleted all log files for James, restarted
> the
> > server, and then tried to send an email. Attached you will find the
> > james-server-sample.log file that captured what happened.  HTHs...
> >
> > On Sat, Jul 8, 2023 at 12:14 AM Jean Helou  wrote:
> >
> >> Hello marc
> >>
> >> You wouldn't happen to have a session output and/or logs.
> >> It makes diagnosing the problem much easier and would help pinpoint the
> >> configuration setting that's incorrect.
> >>
> >> Have you changed the mailet container config by any chance ?
> >>
> >
> > Yes, there has been some changes made, but nothing out of the ordinary,
> as
> > far as I can remember, such as setting the postmaster email address etc.,
> > Tell you what, I will attach the mailetcontainer as well, with some
> > sensitive information removed or obscured.
> >
> > Again, HTHs, and thanks for your thoughts and taking the time to
> > reply..Marc...
> >
> >>
> >>
> >>
> > -
> > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> > For additional commands, e-mail: server-user-h...@james.apache.org
>


Re: Unable to send messages, relay denied. IMAP does work ok.

2023-07-10 Thread Marc Chamberlin
Jean Helou - Thanks for your help and suggestions, much appreciated!  OK, I
stopped the James server, deleted all log files for James, restarted the
server, and then tried to send an email. Attached you will find the
james-server-sample.log file that captured what happened.  HTHs...

On Sat, Jul 8, 2023 at 12:14 AM Jean Helou  wrote:

> Hello marc
>
> You wouldn't happen to have a session output and/or logs.
> It makes diagnosing the problem much easier and would help pinpoint the
> configuration setting that's incorrect.
>
> Have you changed the mailet container config by any chance ?
>

Yes, there has been some changes made, but nothing out of the ordinary, as
far as I can remember, such as setting the postmaster email address etc.,
Tell you what, I will attach the mailetcontainer as well, with some
sensitive information removed or obscured.

Again, HTHs, and thanks for your thoughts and taking the time to reply..
Marc...

>
>
>
2023-07-10 09:51:34,135 INFO  | org.apache.james.container.spring.context.JamesServerApplicationContext | Refreshing org.apache.james.container.spring.context.JamesServerApplicationContext@229225e5: startup date [Mon Jul 10 09:51:34 PDT 2023]; root of context hierarchy
2023-07-10 09:51:36,970 INFO  | org.apache.james.container.spring.context.JamesServerApplicationContext | Bean 'logprovider' of type [class org.apache.james.container.spring.lifecycle.LogProviderImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2023-07-10 09:51:37,255 INFO  | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | JamesMailStore init...
2023-07-10 09:51:37,261 INFO  | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | Registering Repository instance of class org.apache.james.mailrepository.file.FileMailRepository to handle file protocol requests
2023-07-10 09:51:37,262 INFO  | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | Registering Repository instance of class org.apache.james.mailrepository.jdbc.JDBCMailRepository to handle db protocol requests
2023-07-10 09:51:37,262 INFO  | org.apache.james.container.spring.bean.factory.mailrepositorystore.MailRepositoryStoreBeanFactory | Registering Repository instance of class org.apache.james.mailrepository.jdbc.JDBCMailRepository to handle dbfile protocol requests
2023-07-10 09:51:37,382 INFO  | org.apache.james.dnsservice.dnsjava.DNSJavaService | DNS Server is: 127.0.0.1
2023-07-10 09:51:37,382 INFO  | org.apache.james.dnsservice.dnsjava.DNSJavaService | DNS Server is: 192.168.10.100
2023-07-10 09:51:37,382 INFO  | org.apache.james.dnsservice.dnsjava.DNSJavaService | DNS Server is: 192.168.10.50
2023-07-10 09:51:37,397 INFO  | org.apache.james.dnsservice.dnsjava.DNSJavaService | Registered cache, resolver and search paths as DNSJava defaults
2023-07-10 09:51:37,413 INFO  | org.apache.james.domainlist.lib.AbstractDomainList | Set autodetect to: false
2023-07-10 09:51:37,413 INFO  | org.apache.james.domainlist.lib.AbstractDomainList | Set autodetectIP to: true
2023-07-10 09:51:37,978 WARN  | org.apache.activemq.broker.BrokerService | Memory Usage for the Broker (1024mb) is more than the maximum available for the JVM: 512 mb - resetting to 70% of maximum available: 358 mb
2023-07-10 09:51:39,945 INFO  | org.apache.james.queue.activemq.EmbeddedActiveMQ | Started embedded activeMq
2023-07-10 09:51:40,318 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
2023-07-10 09:51:40,330 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet PostmasterAlias instantiated.
2023-07-10 09:51:40,334 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher RelayLimit=30 instantiated.
2023-07-10 09:51:40,336 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet Null instantiated.
2023-07-10 09:51:40,339 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher HasMailAttribute=spamChecked instantiated.
2023-07-10 09:51:40,342 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToProcessor instantiated.
2023-07-10 09:51:40,342 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
2023-07-10 09:51:40,350 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet SetMailAttribute instantiated.
2023-07-10 09:51:40,353 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher SMTPAuthSuccessful instantiated.
2023-07-10 09:51:40,353 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Mailet ToProcessor instantiated.
2023-07-10 09:51:40,354 INFO  | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Matcher All instantiated.
2023-07-10 09:51:40,354 

Re: Unable to send messages, relay denied. IMAP does work ok.

2023-07-10 Thread Marc Chamberlin
On Sat, Jul 8, 2023 at 12:14 AM Jean Helou  wrote:

> Hello marc
>
> You wouldn't happen to have a session output and/or logs.
> It makes diagnosing the problem much easier and would help pinpoint the
> configuration setting that's incorrect.
>
> Have you changed the mailet container config by any chance ?
>
> Jean
>
> Le sam. 8 juil. 2023 à 08:30, David Matthews 
> a
> écrit :
>
> > hi Marc
> >
> > I'm not a james expert, but as a generic observation, since any mail
> > exchanger should allow local users to send mail (but indeed prevent
> > relaying from other sources unless explicitly deciding to allow them), I
> > suggest reverting to standard config and starting from there.
> >
> > There is a write up of an even more ancient James version here (using
> > maildir)
> >
> >  https://dmatthews.org/java_email.html
> >
> > where I did have configs with everything working.
> >
> > If you don't get more specific help from someone else, that may be worth
> a
> > look.
> >
> > --
> > David Matthews
> > m...@dmatthews.org
> >
> >
> > -
> > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> > For additional commands, e-mail: server-user-h...@james.apache.org
> >
> >
>


Unable to send messages, relay denied. IMAP does work ok.

2023-07-07 Thread Marc Chamberlin
Hello Apache James mail list.  Yes, I know from Google searches that
getting a "relay denied" error message is a rather common experience but so
far I don't have nor found a solution to this error message; when I try to
send from any one of several accounts that my James server has been set up
to handle.

I have an older version of James version 3.4.0 which I plan to upgrade
soon. I first want to upgrade my OS (OpenSuSE 15.3) and then I need to
figure out what to do about the fact AFAIK that support for the maildir
format has been dropped, and how do I import all of my users mail into one
of the new supported mailbox providers.

That said, at the moment I tried to do some reconfiguration of my Apache
James 3.4.0 server and in the process I somehow screwed up James' ability
to send email. And I don't know what I did wrong so now I am trying to
debug it. The basic problem is that James is refusing to send emails to
anyone except local users, saying relaying is denied. Sigh.

I will start with showing the contents of my smtpserver.xml, with comments
and sensitive information removed. (thank you Emacs!) and ask if anyone can
see if I did something bad -



   
 smtpserver1
 0.0.0.0:10025
 200
 
   file://conf/keystore
   secret

 org.bouncycastle.jce.provider.BouncyCastleProvider
   SunX509
 
smtp.mydomain.com
360
0
0
forUnauthorizedAddresses
127.0.0.0/8, 192.168.10.0/128,
192.168.10.128/128
true
0
true
Welcome to APACHE-JAMES SMTP Server hosted on
smtp.mydomain.com



   




   
 smtpserver2
 0.0.0.0:10465
 200
 
   file://conf/keystore
   secret

 org.bouncycastle.jce.provider.BouncyCastleProvider
   SunX509
 
smtp.mydomain.com
360
0
0
forUnauthorizedAddresses
127.0.0.0/24, 192.168.10.0/128,
192.168.10.128/128
false
0
true
Welcome to APACHE-JAMES SMTP Server hosted on
smtp.mydomain.com


 
 

   



   
 smtpserver3
 0.0.0.0:10587
 
   file://conf/keystore
   secret

 org.bouncycastle.jce.provider.BouncyCastleProvider
   SunX509
 
smtp.mydomain.com
360
0
0
forUnauthorizedAddresses
127.0.0.0/24, 192.168.10.0/128,
192.168.10.128/128false
0
 true
Welcome to APACHE-JAMES SMTP Server hosted on
smtp.mydomain.com
 







Thanks in advance for any and all ideas and helpful suggestions! Much
appreciate it!

Marc...


Re: How to monitor IMAP protocol?

2023-05-02 Thread Marc Chamberlin
Hello again Benoit,  I will intersperse my answers within your 
questions/suggestions below



On 5/1/23 21:47, Benoit TELLIER wrote:

Hello Marc,

The Spring server is definitly not my cup of tea but I will try helping.

 => Which James release are you running exactly?
Good question! I don't see any way to get the server to report it's 
exact version or other identification numbers. The cli does not document 
a query for retrieving it. So the best I can report is what the package 
descriptor says when I downloaded it. - james-server-app-3.4.0-SNAPSHOT


 => Just in case provide a James thread dump when the issue arise 
(jstack PID)...
I placed a copy of the output on paste.opensuse.org - 
https://paste.opensuse.org/pastes/5888be1d6c4d


Also moder Spring versions uses Log4J 2 , whose configuration do not 
follow the syntax shown here. CF 
https://github.com/apache/james-project/blob/james-project-3.7.4/server/apps/spring-app/src/main/resources/log4j2.xml


Um I guess I am not following you, and am not sure what you are 
recommending me to do. Are you saying that the syntax I used in the 
log4j.properties file is wrong? I just took a "monkey see, monkey do" 
approach when I set up the log4j.properties file using the example that 
was given.




Hope it helps...

It does, again thanks for helping me, much appreciated!    Marc...


Best regards,

Benoit TELLIER

On 02/05/2023 11:15, Marc Chamberlin wrote:
Hi Benoit, and thanks a million for your reply.  Yes, I have used 
telnet to make a connection on both the imap and smtp ports that my 
Apache James email server is listening on. I have successfully 
simulated sending and receiving emails by manually typing in the 
appropriate commands with lots of joy! Seems to work OK when making 
telnet connections just fine.


However, what I am seeing when using Thunderbird as an email client, 
is that when doing something multiple times, the connection and 
commands work for a little while then things freeze up. For example, 
when fetching emails from the imap service, I get a few emails and 
then it hangs up. Ditto for running filters, the filters run for a 
bit, move a few emails, then hangs up. I don't know what the magic 
is, for getting back on track reliably, either. Sometimes restarting 
James and/or Thunderbird does the trick, but more often it keeps on 
failing for awhile and when I come back later it is running OK again. 
(again for a little while) So I would like to see what is going on 
with the imap and smtp communication layer itself to see if I can get 
any ideas.


I have looked at the Apache James log files also, of course, and no 
joy discovering anything useful yet. One thing I do note is that only 
the james-server.log and the wrapper.log files contain any 
information. There are other files created, such as an imapserver.log 
file, but it does not contain anything. I wonder if I have a 
misconfiguration somewhere that is not allowing logging info to be 
directed to these other files. I can't find any thing wrong with my 
configuration files either, so for now I have set that problem aside 
while I try to pursue the more serious problem of some kind of a 
spotty connection issue. Maybe getting those other log files working 
would provide me with the information I need to solve this?


I also see in the two log files that do contain information, 
exception errors with walk-back stack traces, but those seem 
unrelated to what I am doing at the time. (I get a LOT of bots doing 
brute force attacks against my server and a lot of these exception 
errors seem to be related to those attacks.)


I am using the Spring wiring for Apache James, and believe with log4j 
logging. I will show the relevant property setting from the 
log4j.properties files for the imap service. Why nothing is showing 
up in the imapserver.log file is above my pay grade to grok.


log4j.appender.IMAPSERVER=org.apache.log4j.DailyRollingFileAppender
log4j.appender.IMAPSERVER.File=../log/imapserver.log
log4j.appender.IMAPSERVER.DatePattern='.'-MM-dd
log4j.appender.IMAPSERVER.layout=org.apache.log4j.PatternLayout
log4j.appender.IMAPSERVER.layout.ConversionPattern=%-5p 
%d{HH:mm:ss,SSS} | %c | %m%n

... more stuff not shown here
log4j.logger.james=DEBUG, CONS, FILE
log4j.logger=DEBUG, CONS, FILE
... more stuff not shown here
log4j.logger.james.imapserver=DEBUG, IMAPSERVER

HTH...  Marc


On 5/1/23 08:14, Benoit TELLIER wrote:

Hello Mark

 -> James should output error logs. Be it logback for Guice or Log4J 
for spring
 -> Our arsenal also have awesome metrics integrated wit Prometheux 
stack (guice only) or in logs


For your case, have you tried some commands yourself in telnet? I 
suspect a connection problem, for instance firewall...


Best regards,

Benoit

On 01/05/2023 00:19, Marc Chamberlin wrote:
Hello, After doing a bit or reorganization of where the location of 
installation files for Apache James, and or some updates I received 
from Linux OpenSu

Re: How to monitor IMAP protocol?

2023-05-01 Thread Marc Chamberlin
Hi Benoit, and thanks a million for your reply.  Yes, I have used telnet 
to make a connection on both the imap and smtp ports that my Apache 
James email server is listening on. I have successfully simulated 
sending and receiving emails by manually typing in the appropriate 
commands with lots of joy! Seems to work OK when making telnet 
connections just fine.


However, what I am seeing when using Thunderbird as an email client, is 
that when doing something multiple times, the connection and commands 
work for a little while then things freeze up. For example, when 
fetching emails from the imap service, I get a few emails and then it 
hangs up. Ditto for running filters, the filters run for a bit, move a 
few emails, then hangs up. I don't know what the magic is, for getting 
back on track reliably, either. Sometimes restarting James and/or 
Thunderbird does the trick, but more often it keeps on failing for 
awhile and when I come back later it is running OK again. (again for a 
little while) So I would like to see what is going on with the imap and 
smtp communication layer itself to see if I can get any ideas.


I have looked at the Apache James log files also, of course, and no joy 
discovering anything useful yet. One thing I do note is that only the 
james-server.log and the wrapper.log files contain any information. 
There are other files created, such as an imapserver.log file, but it 
does not contain anything. I wonder if I have a misconfiguration 
somewhere that is not allowing logging info to be directed to these 
other files. I can't find any thing wrong with my configuration files 
either, so for now I have set that problem aside while I try to pursue 
the more serious problem of some kind of a spotty connection issue. 
Maybe getting those other log files working would provide me with the 
information I need to solve this?


I also see in the two log files that do contain information, exception 
errors with walk-back stack traces, but those seem unrelated to what I 
am doing at the time. (I get a LOT of bots doing brute force attacks 
against my server and a lot of these exception errors seem to be related 
to those attacks.)


I am using the Spring wiring for Apache James, and believe with log4j 
logging. I will show the relevant property setting from the 
log4j.properties files for the imap service. Why nothing is showing up 
in the imapserver.log file is above my pay grade to grok.


log4j.appender.IMAPSERVER=org.apache.log4j.DailyRollingFileAppender
log4j.appender.IMAPSERVER.File=../log/imapserver.log
log4j.appender.IMAPSERVER.DatePattern='.'-MM-dd
log4j.appender.IMAPSERVER.layout=org.apache.log4j.PatternLayout
log4j.appender.IMAPSERVER.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} 
| %c | %m%n

... more stuff not shown here
log4j.logger.james=DEBUG, CONS, FILE
log4j.logger=DEBUG, CONS, FILE
... more stuff not shown here
log4j.logger.james.imapserver=DEBUG, IMAPSERVER

HTH...  Marc


On 5/1/23 08:14, Benoit TELLIER wrote:

Hello Mark

 -> James should output error logs. Be it logback for Guice or Log4J 
for spring
 -> Our arsenal also have awesome metrics integrated wit Prometheux 
stack (guice only) or in logs


For your case, have you tried some commands yourself in telnet? I 
suspect a connection problem, for instance firewall...


Best regards,

Benoit

On 01/05/2023 00:19, Marc Chamberlin wrote:
Hello, After doing a bit or reorganization of where the location of 
installation files for Apache James, and or some updates I received 
from Linux OpenSuSE 15.3 x64, something broke and I am now 
experiencing some behavioral issues with my Thunderbird client -


Thunderbird - version 91.11.0 (64-bit)
Apache James - version 3.4

For example, I cannot seem to move some emails out of my Inbox 
folder, and put them in another sub-folder. I don't see any error 
messages, either from Thunderbird itself, nor in any of the log files 
from the Apache James server. And the moved emails do disappears from 
the Inbox folder temporarily only to reappear back in the Inbox 
folder a little later. Another symptom that has show up is 
Thunderbird keeps reporting that it cannot save a copy of my draft 
emails while I am composing it.


So my question is, what is the best way to monitor the IMAP protocol 
communication that is going on between my Thunderbird email client, 
and the Apache James server? Can I capture it via the log files for 
Apache James or must I learn how to use a low level network monitor 
such as Wireshark? If the latter, are there any gurus around to show 
me how to capture just the IMAP communication?


As always, much appreciate any thoughts and advise and thanks for 
taking the time to help me!    Marc C


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

How to monitor IMAP protocol?

2023-04-30 Thread Marc Chamberlin
Hello,  After doing a bit or reorganization of where the location of 
installation files for Apache James, and or some updates I received from 
Linux OpenSuSE 15.3 x64, something broke and I am now experiencing some 
behavioral issues with my Thunderbird client -


Thunderbird - version 91.11.0 (64-bit)
Apache James - version 3.4

For example, I cannot seem to move some emails out of my Inbox folder, 
and put them in another sub-folder. I don't see any error messages, 
either from Thunderbird itself, nor in any of the log files from the 
Apache James server. And the moved emails do disappears from the Inbox 
folder temporarily only to reappear back in the Inbox folder a little 
later. Another symptom that has show up is Thunderbird keeps reporting 
that it cannot save a copy of my draft emails while I am composing it.


So my question is, what is the best way to monitor the IMAP protocol 
communication that is going on between my Thunderbird email client, and 
the Apache James server? Can I capture it via the log files for Apache 
James or must I learn how to use a low level network monitor such as 
Wireshark? If the latter, are there any gurus around to show me how to 
capture just the IMAP communication?


As always, much appreciate any thoughts and advise and thanks for taking 
the time to help me!    Marc C

--

*"The Truth is out there" - Spooky*

*_   _   .   .   .       .   .   .   _ _       .   _   _   _   _   .     
  .   .   .           _   .   .       .           .   _   _       .   _ 
      _ _   .   .   .       .   _   _   .       _   .   .   _   .   _   
_           _   _       .   _       .   _   .     _   .   _   . *


Computers: the final frontier.
These are the voyages of the user Marc.
His mission: to explore strange new hardware.
To seek out new software and new applications.
To boldly go where no Marc has gone before!

(/This email is digitally signed and the OpenPGP electronic signature is 
added as an attachment. If you know how, you can use my public key to 
prove this email indeed came from me and has not been modified in 
transit. My public key, which can be used for sending encrypted email to 
me also, can be found at - 
https://keys.openpgp.org/search?q=m...@marcchamberlin.com or just ask me 
for it and I will send it to you as an attachment. If you don't 
understand all this geek speak, no worries, just ignore this explanation 
and ignore the OpenPGP signature key attached to this email (it will 
look like gibberish if you open it) and/or ask me to explain it further 
if you like./)


OpenPGP_signature
Description: OpenPGP digital signature


Re: Upgrading James, how to merge maildirs

2022-01-24 Thread Marc Chamberlin
Hi Benoit, and thank you for your response. Looking though some of the 
past postings on this mail list it appears top posting is the norm so I 
will follow suit. I have done a brief survey of the technologies you 
have mentioned and here are my questions back and responses to some of 
your observations.


1. About the Maildir implementation, I was unaware that it is being 
deprecated. There is no mention of that on the James website as far as I 
can see. Nor does the code itself inform me that MailDir is being 
deprecated when I configure James to use it. So in light of this, my 
expectation as a user was that MailDir was being supported and 
maintained. Sorry I don't read every thread on this email list so I 
missed this discussion about MailDir. I will miss MailDir, felt it was 
reliable and popular, and didn't rely on some external tool, such as a 
database server. I have found that database servers are unreliable, do 
not follow the KISS principal, and often difficult to migrate from one 
OS release to the next. But since MailDir is being deprecated, I will 
look into using the JPA/MySQL back end. (since I already use MySQL for 
other purposes, I don't want to have to learn and grok some other 
database server such as Derby)


2. While the IMAPSync tool you mentioned does seem like a possible way 
to do migrations, I have a few questions -


    Doesn't this method require two instances of the James email server 
to be running? Seems like that might be difficult to do on a single 
host. If I set up James on a different server, so that I can run two 
instances of James at the same time, it seems like I will have to move 
my database twice, once to a different system in  either the same 
database configuration, or into the new database configuration, then 
back  to the original James server with an internet facing port. Then I 
will have to repeat this process with the other version of James which 
has a database that has diverged. I don't  think this will be an easy "3 
minute process" as you mentioned!


And that brings up another concern. will the IMAPSync process handle the 
merge of my two diverged databases correctly? Will this process detect 
and not transfer identical emails from one server to the other, or will 
I have a lot of double copies of emails in my new instance of James? If 
so, I and my users will end up with an enormous number of duplicate 
emails that will have to be deleted, by hand! YUCK!!!


I will look forward to your reply and suggestions, but at this point I 
am uneasy about following your suggestion to use IMAPSync, as a means to 
accomplish the merge of my two variants of email databases.  Thanks 
again in advance!


   Marc

On 1/23/22 21:26, Benoit TELLIER wrote:

Hello Marc,

First and foremost, Maildir implementation is long unmaintained, and
prove to be vulnerable [1].

We put great efforts to provide smooth migrations for all mailbox
implementation. According to your sayings we failed to do so. If this
was needed this w=shows the lack of attention the MailDir implementation
did receive.

We discussed a few month before to drop MailDir implementation as part
of 3.7.0 release (Maildir would still be supported on 3.6.x branch). [2]
I know the MailDir word is appealing as it is the de-facto
implementation in most email servers and on-filesystem yet it was buggy,
brittle, unmaintained, vulnerable, and thus did not keep it up with the
promise in its name.

SOHO/HomeOperator are invited to switch to the 0-dependency alternative
which is the JPA implementation with an embedded database like derby. I
recommend a clean IMAPSync to do the MailDir-JPA implementation, [3]
which can be done in a matter of minutes.

Might you encounter issues on this journey I would be happy to help.

[1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=2021-40525
[2] https://www.mail-archive.com/server-dev@james.apache.org/msg70909.html
[3]
https://github.com/apache/james-project/blob/master/server/apps/distributed-app/docs/modules/ROOT/pages/operate/migrating.adoc
(also applies for JPA <-> MailDir migration)

Best regards,

Benoit TELLIER

On 23/01/2022 06:49, Marc Chamberlin wrote:

Hello,  I am a small SOHO/Home operator of a James server, running it
on OpenSuSE 15.2 and am in the midst of trying to upgrade it from a
snapshot version of 3.4 to 3.6, but before jumping that far, I
downloaded and installed the released version of 3.4 thinking that
upgrading from the snapshot version to 3.4 released version would be
the safest first step. It hasn't gone well and I have been jumping
back and forth between these two versions while discovering and fixing
problems as they show up. (Mostly things like missing jar files or
wrong versions of them, and miss-configurations)  Anywise I am now
noticing a divergence in the maildir databases, new folders added,
emails in one version but not in the other etc.

So I am wondering if there is a tool or some other means to do a merge
by hand. I trie

Upgrading James, how to merge maildirs

2022-01-22 Thread Marc Chamberlin
Hello,  I am a small SOHO/Home operator of a James server, running it on 
OpenSuSE 15.2 and am in the midst of trying to upgrade it from a 
snapshot version of 3.4 to 3.6, but before jumping that far, I 
downloaded and installed the released version of 3.4 thinking that 
upgrading from the snapshot version to 3.4 released version would be the 
safest first step. It hasn't gone well and I have been jumping back and 
forth between these two versions while discovering and fixing problems 
as they show up. (Mostly things like missing jar files or wrong versions 
of them, and miss-configurations)  Anywise I am now noticing a 
divergence in the maildir databases, new folders added, emails in one 
version but not in the other etc.


So I am wondering if there is a tool or some other means to do a merge 
by hand. I tried/attempted some obvious things such as simply copying 
maildir folders across from one database to the other and updating the 
subscription lists but that alone didn't work. So I could use some 
guidance and/or pointers to documentation that describes how James 
models, uses, and makes changes to it's maildir database. The James 
website does not provide much in the way of documentation nor has Google 
been helpful.


Thanks in advance for taking the time to help me with this issue and/or 
provide advice.    Marc



--

*"The Truth is out there" - Spooky*

*_   _   .   .   .       .   .   .   _ _       .   _   _   _   _   .     
  .   .   .           _   .   .       .           .   _   _       .   _ 
      _ _   .   .   .       .   _   _   .       _   .   .   _   .   _   
_           _   _       .   _       .   _   .     _   .   _   . *


Computers: the final frontier.
These are the voyages of the user Marc.
His mission: to explore strange new hardware.
To seek out new software and new applications.
To boldly go where no Marc has gone before!

(/This email is digitally signed and the electronic signature is 
attached. If you know how, you can use my public key to prove this email 
indeed came from me and has not been modified in transit. My public key, 
which can be used for sending encrypted email to me also, can be found 
at - https://keys.openpgp.org/search?q=m...@marcchamberlin.com or just 
ask me for it and I will send it to you as an attachment. If you don't 
understand all this geek speak, no worries, just ignore this explanation 
and ignore the signature key attached to this email (it will look like 
gibberish if you open it) and/or ask me to explain it further if you like./)


OpenPGP_0xD23D75B63BF0E8B7.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Mail list support?

2021-08-12 Thread Marc Chamberlin
Thanks Benoit, Garry for your responses and sorry for the delay in responding 
myself. I will be happy to take a look at the mail list code (existing and 
developing) as my time permits, and sharing and working with you on it. It has 
been awhile since I last developed some of my own mailets and matchers so I 
will need to get back up to speed. 

Before I embark on such an adventure, can you tell me if Apache James is set up 
to work in the Eclipse IDE? I much prefer working with an IDE rather than using 
stand-alone tools. If not, does anyone have Emacs set up to meet the coding 
standards and requirements for Apache James? If so I could use any jump start 
config files needed to work in either of these environments?

   Thanks, Marc


On 8/7/21 11:50 PM, btell...@apache.org wrote:
> Hello Marc,
>
> There is a lot to say, but we would, I guess, gladly accept mailing list
> lie contributions on the master development branch in a separated module.
>
> I personally would enjoy providing professional support implementing
> such a feature if needed.
>
> Mailing list support is however out of scope for the current version -
> no ETA should be expected out of it.
>
> James is also a flexible email platform: everyone can develop their own
> mailet/matchers and implement mailing lists without it ever needing to
> land on the mainstream James project.
>
> That being said, I have doubts about the
> one-mail-server-to-rule-them-all approach IMO have some limits. Mailing
> list are well handled by mature software (eg: mailman) easy to use in
> combination with any email server, including James. I hardly see the
> need to include yet-another complex feature in the scope of Apache
> James, but that is my own opinion (however I agree documentation / links
> to tutorials on that set up could be handy - contribution welcome there
> too). I would rather invest on our strength as a project, and rely on
> tier software to complement our weaknesses. Mailing list but also spam
> detection, and why not mail exchange (MX) are IMO good examples of where
> James benefits from being coupled with other systems. (If you have a
> hammer, maybe you should not use it on screws.)
>
> Note that we have some feature covering some of the very basics:
> Recipient Rewrite Table allows some kind of group alias but client
> subscription / resignation, header setup are not taken into account by
> this approach. Also concerning archiving PonyMail hosted by the ASF
> allows to do so.
>
> On 08/08/2021 09:29, Marc Chamberlin wrote:
>> Hello - I am still limping along with James 2.3.2 and every year or
>> two I come back to the Apache James website to see if mail lists are
>> supported yet with the appropriate mailets and matchers necessary, in
>> the latest version of Apache James. And every year or two I am
>> disappointed that the documentation for mailets and matchers has not
>> changed and it appears that only a couple of experimental matchers are
>> supplied as part of the standard set of mailets. Not having support
>> for mail lists is a show stopper for me/us and for a number of other
>> reasons I would like to upgrade our servers to the current version of
>> James, but can't.
>>
>> My questions are, is mail lists feature ever going to be supported by
>> James, if so what is the expected ETA, or should I give up on James
>> and invest my time and energy in some other mail server? Is there
>> undocumented support for mail lists that I don't know about? It seems
>> weird that only a couple of matchers are supplied and even weirder
>> still that the James team is apparently not using it's own current
>> server to support it's own mail list for this list - 
>> server-user@james.apache.org!
> We are volunteers, and rely on the ASF INFRA team for all project
> resource management: website, code base, build, JIRA, and yes mails.
>
> It's handy, and the INFRA people does an amazing job at managing all of
> this! I admit that it is tempting to rely on them rather than setting up
> our own custom stuff...
>
> Use your own dogfood - I know - that's what I do as part of my job in my
> company, but I personally would lack time to support James adoption
> within the ASF.
>
> Note: there had been previous discussion on backing the ASF mail stack
> with James servers. I can't recall why this didn't happen - that was
> before I on-boarded the project.
>
> Cheers,
>
> Benoit
>>     Thanks in advance for thoughts and suggestions!    Marc C
>> -- 
>>
>> *"The Truth is out there" - Spooky*
>>
>> *_   _   .   .   .       .   .   .   _   _       .   _   _   _   _   .
>>       .   .   .           _   .   .       .           .   _   _      

Mail list support?

2021-08-07 Thread Marc Chamberlin
Hello - I am still limping along with James 2.3.2 and every year or two
I come back to the Apache James website to see if mail lists are
supported yet with the appropriate mailets and matchers necessary, in
the latest version of Apache James. And every year or two I am
disappointed that the documentation for mailets and matchers has not
changed and it appears that only a couple of experimental matchers are
supplied as part of the standard set of mailets. Not having support for
mail lists is a show stopper for me/us and for a number of other reasons
I would like to upgrade our servers to the current version of James, but
can't.

My questions are, is mail lists feature ever going to be supported by
James, if so what is the expected ETA, or should I give up on James and
invest my time and energy in some other mail server? Is there
undocumented support for mail lists that I don't know about? It seems
weird that only a couple of matchers are supplied and even weirder still
that the James team is apparently not using it's own current server to
support it's own mail list for this list -  server-user@james.apache.org!

    Thanks in advance for thoughts and suggestions!    Marc C
-- 

*"The Truth is out there" - Spooky*

*_   _   .   .   .       .   .   .   _   _       .   _   _   _   _   .  
    .   .   .           _   .   .       .           .   _   _       .  
_       _   _   .   .   .       .   _   _   .       _   .   .   _      
.   _   _           _   _       .   _       .   _   .       _   .   _   . *

Computers: the final frontier.
These are the voyages of the user Marc.
His mission: to explore strange new hardware.
To seek out new software and new applications.
To boldly go where no Marc has gone before!

(/This email is digitally signed and the electronic signature is
attached. If you know how, you can use my public key to prove this email
indeed came from me and has not been modified in transit. My public key,
which can be used for sending encrypted email to me also, can be found
at - https://keys.openpgp.org/search?q=m...@marcchamberlin.com or just
ask me for it and I will send it to you as an attachment. If you don't
understand all this geek speak, no worries, just ignore this explanation
and ignore the signature key attached to this email (it will look like
gibberish if you open it) and/or ask me to explain it further if you like./)


OpenPGP_signature
Description: OpenPGP digital signature


Re: Need help with James 3.4, smtpserver, and keystore file.

2020-01-06 Thread Marc Chamberlin
d is only composed of lower case letters and numbers. No
punctuation characters are used.

I don't know if this is applicable but in my internet searches looking
for discussions about the same or similar error messages that I am
seeing, I am seeing some references to problems with the tools from
BouncyCastle.  Here are a couple of links, perhaps you or some other
guru could check these out and see if I am perhaps experiencing the same
or similar issue as these folks are talking about -

https://stackoverflow.com/questions/53542198/adding-bouncycastle-provider-breaks-keystore-load

https://github.com/bcgit/bc-java/issues/586

This is above my pay grade to understand so again many thanks and I
appreciate yours and any other help offered...    Marc...

>
> Sent from my iPhone
>
>> On Dec 28, 2019, at 9:35 PM, Marc Chamberlin 
>>  wrote:
>>
>> Hello again,  It appears that I have managed to make a bit of progress
>> on my own since my original post. For some odd reason I got past the
>> FileNotFound exception by changing (adding) execute permission to the
>> directory containing the keystore file. So now it is set as follows -
>>
>> quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # ll -d
>> keystore.privateFiles
>> drwxrwxrwx 2 james mail 4096 Dec 27 22:11 keystore.privateFiles
>>
>> It is a puzzler (at least to me) why adding execute permissions would
>> allow James to find my Keystore file. But I immediately hit another
>> snag, James is not correctly applying the password to access the
>> keystore file and throwing another exception. The smtpserver.xml is
>> configured as follows -
>>
>>  
>>   
>> file:/mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore
>>mypassword
>>   
>> org.bouncycastle.jce.provider.BouncyCastleProvider
>>SunX509
>>  
>>
>> To test the keystore file I executed the following command and it worked
>> fine -
>>
>> quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # keytool
>> -list -v -keystore
>> /mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore -storetype
>> PKCS12 -storepass mypassword
>>
>> The exception and stack walkback I am getting from James is shown
>> below.  I am continuing to Google for answers but no joy so far...
>> Anyone here got any ideas? Thanks again in advance... Marc.
>>
>> 
>>
>> INFO   | jvm 1| 2019/12/28 17:13:27 | WARN  17:13:26,963 |
>> org.apache.james.container.spring.context.JamesServerApplicationContext
>> | Exception encountered during context initialization - cancelling
>> refresh attempt:
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'smtpserver': Invocation of init method failed; nested
>> exception is java.io.IOException: keystore password was incorrect
>> INFO   | jvm 1| 2019/12/28 17:13:27 | INFO  17:13:26,964 |
>> org.apache.james.mailetcontainer.impl.JamesMailSpooler | start dispose() ...
>> INFO   | jvm 1| 2019/12/28 17:13:27 | INFO  17:13:26,964 |
>> org.apache.james.mailetcontainer.impl.JamesMailSpooler | thread shutdown
>> completed.
>> INFO   | jvm 1| 2019/12/28 17:13:27 |
>> INFO   | jvm 1| 2019/12/28 17:13:27 | WrapperSimpleApp: Encountered
>> an error running main:
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'smtpserver': Invocation of init method failed; nested
>> exception is java.io.IOException: keystore password was incorrect
>> INFO   | jvm 1| 2019/12/28 17:13:27 |
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'smtpserver': Invocation of init method failed; nested
>> exception is java.io.IOException: keystore password was incorrect
>> INFO   | jvm 1| 2019/12/28 17:13:27 |   at
>> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
>> INFO   | jvm 1| 2019/12/28 17:13:27 |   at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396)
>> INFO   | jvm 1| 2019/12/28 17:13:27 |   at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507)
>> INFO   | jvm 1| 2019/12/28 17:13:27 |   at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>> INFO   | jvm 1| 2019/12/2

Re: Need help with James 3.4, smtpserver, and keystore file.

2019-12-28 Thread Marc Chamberlin
Hello again,  It appears that I have managed to make a bit of progress
on my own since my original post. For some odd reason I got past the
FileNotFound exception by changing (adding) execute permission to the
directory containing the keystore file. So now it is set as follows -

quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # ll -d
keystore.privateFiles
drwxrwxrwx 2 james mail 4096 Dec 27 22:11 keystore.privateFiles

It is a puzzler (at least to me) why adding execute permissions would
allow James to find my Keystore file. But I immediately hit another
snag, James is not correctly applying the password to access the
keystore file and throwing another exception. The smtpserver.xml is
configured as follows -

 
  
file:/mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore
   mypassword
  
org.bouncycastle.jce.provider.BouncyCastleProvider
   SunX509
 

To test the keystore file I executed the following command and it worked
fine -

quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # keytool
-list -v -keystore
/mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore -storetype
PKCS12 -storepass mypassword

The exception and stack walkback I am getting from James is shown
below.  I am continuing to Google for answers but no joy so far...
Anyone here got any ideas? Thanks again in advance... Marc.



INFO   | jvm 1    | 2019/12/28 17:13:27 | WARN  17:13:26,963 |
org.apache.james.container.spring.context.JamesServerApplicationContext
| Exception encountered during context initialization - cancelling
refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smtpserver': Invocation of init method failed; nested
exception is java.io.IOException: keystore password was incorrect
INFO   | jvm 1    | 2019/12/28 17:13:27 | INFO  17:13:26,964 |
org.apache.james.mailetcontainer.impl.JamesMailSpooler | start dispose() ...
INFO   | jvm 1    | 2019/12/28 17:13:27 | INFO  17:13:26,964 |
org.apache.james.mailetcontainer.impl.JamesMailSpooler | thread shutdown
completed.
INFO   | jvm 1    | 2019/12/28 17:13:27 |
INFO   | jvm 1    | 2019/12/28 17:13:27 | WrapperSimpleApp: Encountered
an error running main:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smtpserver': Invocation of init method failed; nested
exception is java.io.IOException: keystore password was incorrect
INFO   | jvm 1    | 2019/12/28 17:13:27 |
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smtpserver': Invocation of init method failed; nested
exception is java.io.IOException: keystore password was incorrect
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:638)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:942)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
INFO   | jvm 1    | 2019/12/28 17:13:27 |   at
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)

Re: Need help with James 3.4, smtpserver, and keystore file.

2019-12-28 Thread Marc Chamberlin
Thanks Craig,  no I have never set up SElinux.  

quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # getenforce
Disabled


On 12/28/19 10:14 AM, Craig Cudmore wrote:
> Is SElinux enabled? Perhaps disable it and see if that has any impact. 
>
> Craig Cudmore
> 613-868-7316
>
>> On Dec 28, 2019, at 1:09 PM, Marc Chamberlin 
>>  wrote:
>>
>> Hello -  I am in the process of installing the new release of James
>> 3.4.0 and am encountering an error that doesn't make sense to me,
>> involving the startup of the smtp service. As shown below in the
>> exception traceback I am getting a complaint about the keystore file
>> either not being found or getting some sort of permission denied error. 
>> The keystore file does indeed exist and there is really nothing wrong
>> with the path or file that this error is reporting. In this particular
>> example the keystore is a symlink to the actual keystore file. I created
>> from LetsEncrypt wildcard certificates, and I have tried configuring the
>> path directly to the actual keystore file with no symlinks involved and
>> still no joy.  So I suspect the "FileNotFoundException" error is misleading.
>>
>> quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # ll keystore
>> lrwxrwxrwx 1 james mail 34 Dec 23 18:47 keystore -> 
>> keystore.privateFiles/keystore.jks
>>
>> quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # ll -d 
>> keystore.privateFiles
>> drw-rw-r-- 2 james mail 4096 Dec 27 22:11 keystore.privateFiles
>>
>> quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # ll 
>> keystore.privateFiles/
>> total 12
>> -rw-rw-r-- 1 james mail 4637 Dec 27 22:13 keystore.jks
>>
>> As for the "Permission denied" comment in the error message this is what
>> I can report. All of the files for James, including the keystore file
>> have their owner and group set to james:mail.  Both the user james and
>> root are part of the mail group. The file permissions are set to
>> -rw-rw-r--. I have also experimented with other file permissions such as
>> -rw-rw and -rw-r- with no joy.  As for the password to use for
>> accessing the keystore itself again I know that what I am specifying in
>> the smtpserver.xml file is correct and I can test it by using the
>> following command which will ask for the keystore password.
>>
>> keytool -list -v -keystore 
>> /mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore
>>
>> So I am at a loss trying to figure out what is going wrong. I set the
>> debug levels in the logj4.properties file to debug to see if that would
>> produce any further helpful info, but it didn't.
>>
>> What follows is the exception walkback, anyone got any ideas that I can
>> try?  Thanks in advance... Marc
>>
>> 
>>
>> INFO   | jvm 1| 2019/12/28 08:36:27 | WARN  08:36:27,067 | 
>> org.apache.james.container.spring.context.JamesServerApplicationContext | 
>> Exception encountered during context initialization - cancelling refresh 
>> attempt: org.springframework.beans.factory.BeanCreationException: Error 
>> creating bean with name 'smtpserver': Invocation of init method failed; 
>> nested exception is java.io.FileNotFoundException: 
>> /mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore (Permission 
>> denied)
>>
>> INFO   | jvm 1| 2019/12/28 08:36:27 | INFO  08:36:27,068 | 
>> org.apache.james.mailetcontainer.impl.JamesMailSpooler | start dispose() ...
>>
>> INFO   | jvm 1| 2019/12/28 08:36:27 | INFO  08:36:27,068 | 
>> org.apache.james.mailetcontainer.impl.JamesMailSpooler | thread shutdown 
>> completed.
>>
>> INFO   | jvm 1| 2019/12/28 08:36:27 | 
>>
>> INFO   | jvm 1| 2019/12/28 08:36:27 | WrapperSimpleApp: Encountered an 
>> error running main: org.springframework.beans.factory.BeanCreationException: 
>> Error creating bean with name 'smtpserver': Invocation of init method 
>> failed; nested exception is java.io.FileNotFoundException: 
>> /mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore (Permission 
>> denied)
>>
>> INFO   | jvm 1| 2019/12/28 08:36:27 | 
>> org.springframework.beans.factory.BeanCreationException: Error creating bean 
>> with name 'smtpserver': Invocation of init method failed; nested exception 
>> is java.io.FileNotFoundException: 
>> /mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore (Permission 
>> denied)
>>
>> INFO   | jvm 1| 2019/12/28 08:36:27 |   at 
>> org.springframework.beans.factory.annotation.In

Need help with James 3.4, smtpserver, and keystore file.

2019-12-28 Thread Marc Chamberlin
Hello -  I am in the process of installing the new release of James
3.4.0 and am encountering an error that doesn't make sense to me,
involving the startup of the smtp service. As shown below in the
exception traceback I am getting a complaint about the keystore file
either not being found or getting some sort of permission denied error. 
The keystore file does indeed exist and there is really nothing wrong
with the path or file that this error is reporting. In this particular
example the keystore is a symlink to the actual keystore file. I created
from LetsEncrypt wildcard certificates, and I have tried configuring the
path directly to the actual keystore file with no symlinks involved and
still no joy.  So I suspect the "FileNotFoundException" error is misleading.

quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # ll keystore
lrwxrwxrwx 1 james mail 34 Dec 23 18:47 keystore -> 
keystore.privateFiles/keystore.jks

quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # ll -d 
keystore.privateFiles
drw-rw-r-- 2 james mail 4096 Dec 27 22:11 keystore.privateFiles

quasar:/mail/apache-james-3.4/james-server-app-3.4.0/conf # ll 
keystore.privateFiles/
total 12
-rw-rw-r-- 1 james mail 4637 Dec 27 22:13 keystore.jks

As for the "Permission denied" comment in the error message this is what
I can report. All of the files for James, including the keystore file
have their owner and group set to james:mail.  Both the user james and
root are part of the mail group. The file permissions are set to
-rw-rw-r--. I have also experimented with other file permissions such as
-rw-rw and -rw-r- with no joy.  As for the password to use for
accessing the keystore itself again I know that what I am specifying in
the smtpserver.xml file is correct and I can test it by using the
following command which will ask for the keystore password.

keytool -list -v -keystore 
/mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore

So I am at a loss trying to figure out what is going wrong. I set the
debug levels in the logj4.properties file to debug to see if that would
produce any further helpful info, but it didn't.

What follows is the exception walkback, anyone got any ideas that I can
try?  Thanks in advance... Marc



INFO   | jvm 1    | 2019/12/28 08:36:27 | WARN  08:36:27,067 | 
org.apache.james.container.spring.context.JamesServerApplicationContext | 
Exception encountered during context initialization - cancelling refresh 
attempt: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'smtpserver': Invocation of init method failed; nested 
exception is java.io.FileNotFoundException: 
/mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore (Permission denied)

INFO   | jvm 1    | 2019/12/28 08:36:27 | INFO  08:36:27,068 | 
org.apache.james.mailetcontainer.impl.JamesMailSpooler | start dispose() ...

INFO   | jvm 1    | 2019/12/28 08:36:27 | INFO  08:36:27,068 | 
org.apache.james.mailetcontainer.impl.JamesMailSpooler | thread shutdown 
completed.

INFO   | jvm 1    | 2019/12/28 08:36:27 | 

INFO   | jvm 1    | 2019/12/28 08:36:27 | WrapperSimpleApp: Encountered an 
error running main: org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'smtpserver': Invocation of init method failed; 
nested exception is java.io.FileNotFoundException: 
/mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore (Permission denied)

INFO   | jvm 1    | 2019/12/28 08:36:27 | 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'smtpserver': Invocation of init method failed; nested exception is 
java.io.FileNotFoundException: 
/mail/apache-james-3.4/james-server-app-3.4.0/conf/keystore (Permission denied)

INFO   | jvm 1    | 2019/12/28 08:36:27 |   at 
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)

INFO   | jvm 1    | 2019/12/28 08:36:27 |   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396)

INFO   | jvm 1    | 2019/12/28 08:36:27 |   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507)

INFO   | jvm 1    | 2019/12/28 08:36:27 |   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

INFO   | jvm 1    | 2019/12/28 08:36:27 |   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

INFO   | jvm 1    | 2019/12/28 08:36:27 |   at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)

INFO   | jvm 1    | 2019/12/28 08:36:27 |   at 

Re: Android email apps seem unhappy with James

2019-07-02 Thread Marc Chamberlin
Hi Matt - 

> Btw: Are other clients consistent when you do changes like moving
> mails around, marking mails as un/read, reply? Or are other clients
> also show not-in-sync issues?
Well the very fact that I am receiving and sending emails back and forth
on the thread shows that James is working just fine from a Thunderbird
application running on my Linux laptop! I am using STARTTLS and have
used it with SSL/TLS connections so I know the keystore is working. And
no problems with syncing and fetching emails. It is just the email
client apps on my two Android devices that are giving me fits... And I
am managing to send OK, just not fetch/receive. And both Android devices
are acting the same way.

I will keep poking around, take a look/search for caches etc...   Thanks
for the thoughts... Any one else got any ideas?

    Marc..


On 7/1/19 11:58 PM, cryptearth wrote:
> Hey Marc,
>
> this looks strangs, at least I never seen such wired behaviour. I'm
> currently running James 3.3.0 (final release commit) on my domain. I
> also use Let's Encrypt wildcard certificate. As I guess you managed to
> put a working keystore together (otherwise it would fail straight
> away) we could asume that the error maybe could be in the message
> handling of the used clients.
>
> As I'm a bit deeper into it using james for some mail-based stuff I
> kinda implemented a small feature client to handle incoming mails. I
> can only guess from my experience that a "normal" mail client would
> have to implement some sort of local caching. If I would develop a
> full featured mail client I would sync one time when the account is
> set up and then chill in IMAP IDLE and respond to active listeners. It
> could be that the client somehow throws out local cache for what ever
> reason and fails to correctly re-sync. Btw: Are other clients
> consistent when you do changes like moving mails around, marking mails
> as un/read, reply? Or are other clients also show not-in-sync issues?
>
> It's also wired that different mail clients behave different. I don't
> know about Android developement but only that most data stored between
> uses of an app in a somewhat sleeping state saved when an app is
> closed and reload when an app is (re-)launched. I could also be
> something "stupid" as wrong file permissions (Android is somewhat
> Linux after all - so it could struggle if some permissions messed up -
> although they should kept in valid state by the app-managers).
>
> I'm sorry not to be able to help further as I can't see james as the
> server or the connection between the app and james be the issue -
> unless there something funny happens down at the connection layer. Is
> it possible to factory reset any of the android devices to see if it's
> set up "clean" keeps misbehave? If not: Try to clear caches and saved
> data for the mail apps. Maybe it's some config issue.
>
> Matt
>
> Am 02.07.2019 um 08:46 schrieb Marc Chamberlin:
>> Hi Matt -  Thank you for taking the time to respond so quickly! Dunno if
>> I will have time to play with other java applications but that is a
>> thought. (I take off for Europe tomorrow so that may have to wait until
>> I get back in Aug.) Do you know of a 3'rd party client email application
>> that runs on Linux?  I was just wanting to set up some email clients on
>> my Android devices and ran into this snag.  I have tried the connections
>> using both TLS, SSL, and no encryption, all with the same no joy on my
>> Android devices. The certificates are from LetsEncrypt and are fullchain
>> certs. (They are in fact wildcard certificates for all the subdomains of
>> my main URL)
>>
>> The log files for James don't show much, the only response I see, when I
>> ask to fetch emails is these 3 lines -
>>
>> INFO  23:27:19,047 |
>> org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
>> IMAP-NOOP: 0 ms.
>> INFO  23:27:19,065 |
>> org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
>> IMAP-EXAMINE: 16 ms.
>> INFO  23:27:19,097 |
>> org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
>> IMAP-SEARCH: 25 ms.
>>
>> To my untrained eyes that almost looks like some sort of protocol or
>> connection error is occurring since I would expect to see a lot more
>> instrumented messages showing up in the logs whenever I click in the
>> client to ask for a new download of messages.
>>
>>     Marc...
>>
>>
>> On 7/1/19 10:26 PM, cryptearth wrote:
>>> Hey Marc,
>>>
>>> as most Android apps handling mail use javamail (at least I would, but
>>> I don't know for sure if the android-api itself may offer some
>&g

Android email apps seem unhappy with James

2019-07-01 Thread Marc Chamberlin
Hi - I started poking at this issue a few months ago and didn't find a
solution so I thought I might ask again before I spend too much further
time trying to resolve this issue. I am running James 3.4 (a snapshot
version given to me to solve another problem) for my own SOHO nets and a
few friends. Nothing big and for the most part it works fine when using
it with email clients such as Thunderbird on Linux or Windows platforms.
But I have a couple Android devices, a phone and a tablet and I have
tried setting up a few different email clients on them all with no joy!
They all seem capable of sending emails out through the smtp service of
James, but I will be darned if I can get them to behave with imap. I
have tried K-9, BlueMail, GMail, and the Samsung E-Mail clients. I have
made the imap server connections pretty much identical to the settings I
use in Thunderbird and Apple Mail and don't believe for a second that I
am setting the Android apps up any different. So is there anything weird
about Android that I should be aware of? BlueMail just shows me a
spinning circle when I tell it to download my email from my server, K-9
does on rare occasion show me some emails but the moment I read one the
rest just disappear and I can't get it to load any more or re-display
the ones that it did manage to download for a short time. I also know
something is partially working because all the folders and sub-folders I
have defined in my mail accounts do show up. So I am puzzled, and asking
because it seems James is the common denominator, any ideas?

    Thanks in advance...   Marc...


-- 
  --...  ...-- .. ...-..  ..--  .-  --...  .--.  -..-  .-- --  
.-  .-.  -.-.
Computers: the final frontier. These are the voyages of the user Marc. 
His mission: to explore strange new hardware. To seek out new software and new 
applications. 
To boldly go where no Marc has gone before!


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



Sieve???

2019-04-10 Thread Marc Chamberlin
This is not helpful! ;-)

https://james.apache.org/server/3/config-sieve.html

-- 
Computers: the final frontier. These are the voyages of the user Marc. 
His mission: to explore strange new hardware. To seek out new software and new 
applications. 
To boldly go where no Marc has gone before!


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



Re: events.xml?

2019-04-02 Thread Marc Chamberlin
Thanks Garry, Matt for your input.  I will assume that the IDLE feature
of IMAP is working in my James server and won't worry about the
configuration of it for now. (Though the James web page for
config-events.html needs to be updated to reflect the current state of
James.) I do have something odd going on with 3 different Android phones
trying to use email client apps to connect to my James server and
retrieving email. Initially emails are downloaded and displayed OK but
as soon as we try and do a refresh all the emails disappear. And then
for some unknown reason we can sometimes get them back and display them
but we don't know what triggers that. It seems to be inconsistent and
therefore unrelated to changes we try making to the configurations of
the apps. K-9 seems very sensitive to this sort of behavior but we have
seen it happen on other apps such as Blue Mail, GMail and the default
email app that comes with Samsung phones... This is why I became
suspicious of IMAP's IDLE feature and was wanting to play with it to see
if I could force the failure. Will keep looking for a solution, some
folks are saying it might have something to do with Android's new
battery savings features so that is another path for us to explore...

 Marc..

On 4/2/19 4:02 AM, cryptearth wrote:
> Just checked current git clone with java-mail (that's what most
> android apps using anyway): IMAPFolder.idle() works fine with current
> build.
>
> Matt
>
> Am 02.04.2019 um 01:37 schrieb Garry Hurley:
>> MAILBOX-364 back in December.
>>
>> On Sun, Mar 31, 2019 at 8:15 PM Marc Chamberlin
>> 
>> wrote:
>>
>>> Hi -  I seem to be experiencing troubles with Android email clients
>>> picking up emails from the IMAP service on James. Google research
>>> led me
>>> to understand that the IMAP service must support an IMAP feature called
>>> IDLE and that in turn led me back to the James document at
>>> https://james.apache.org/server/config-events.html  There it refers
>>> to a
>>> file called events.xml used only in Spring wiring to configure this
>>> feature. There is (suppose to be) a link to GIT
>>>
>>> https://github.com/apache/james-project/tree/master/server/app/src/main/resources/events.xml
>>>
>>> where this file resides. That link is broken and I did not get such a
>>> file in my download of the Spring variants of James 3.3 or of James
>>> 3.4-SNAPSHOT that I am actually working with.
>>>
>>> S obvious questions - Where is this puppy? Is it still supported in
>>> James? Is the IMAP feature IDLE supported?
>>>
>>>  Thanks,   Marc
>>>
>>> -- 
>>> Computers: the final frontier. These are the voyages of the user
>>> Marc.
>>> His mission: to explore strange new hardware. To seek out new
>>> software and
>>> new applications.
>>> To boldly go where no Marc has gone before!
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
>>> For additional commands, e-mail: server-user-h...@james.apache.org
>>>
>>>
>
>
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>

-- 
Computers: the final frontier. These are the voyages of the user Marc. 
His mission: to explore strange new hardware. To seek out new software and new 
applications. 
To boldly go where no Marc has gone before!


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



Multiple domains and security certificates

2019-02-23 Thread Marc Chamberlin
I hope I can follow in the footsteps of someone who has done this
already...  My James server is going to be handling multiple domains,
each with its own set of sub-domains and I wish to use LetsEncrypt
certificates to handles the StartTLS or SSL/TLS connections that each
domain wants. Most of the examples shown on the internet show how to set
up a certificate for a single domain, not helpful! The instructions show
at https://james.apache.org/server/3/config-ssl-tls.html explain that
James uses a keystore which can store multiple certificates but then
there is this caveat - " You MUST have only one certificate in the
keystore file used by James." Really? Does this mean I have to create a
LetsEncrypt certificate with ALL the variants of -D  for
ALL the domains that I want to support? That is going to be one heck of
a long command and difficult to maintain as I add and remove domains
from my server! I am confused and hoping there is an easier way to
manage this for James...  (Wish this was handled like Apache HTTP server
does it, one separate certificate per domain which all the subdomains
included... This keystore complicates things IMHO..) So would appreciate
it is some kind guru could show me how to set up certificates for a
collections of domains so that I can also manage the various subdomains
as well. For example -

www.domain1.com, mail.domain1.com, ftp.domain1.com, ssh.domain1.com, ...
www.domain2.com, mail.domain2.com, ftp.domain2.com, ssh.domain2.com, ...
www.domain3.com ...
...

All in one certificate???   Thanks for any advice in advance...   Marc...


-- 
Linux Counter


Re: Handling 2 SMTP ports SOLVED

2019-02-21 Thread Marc Chamberlin
Never mind! I figured it out, duplicating the  sections is
the right answer, just got to give the jmxName a unique identifier in
each section.

    Marc...


On 02/21/2019 08:33 PM, Marc Chamberlin wrote:
> I need to set up James so that another email server on my LAN can
> connect to it and relay messages on port 25. I also want James to handle
> external connections using StartTLS on port 587. With the old James 2.3
> I was able to accomplish this by duplicating the  enables="true"> block inside the  block and assign the two
> separate ports, one each,  to each of the  sections. I tried
> that with James 3.4 and it squawked and thumbed it's nose at me. Threw a
> couple of exceptions and then shut down. So that is not how to do it and
> I cannot find any documentation/examples on how to configure James to
> handle connections on two separate ports... Can one of you fine guru's
> show me the way? Thanks in advance as always...
>
>  Marc...
>
>
>

-- 
Linux Counter


Handling 2 SMTP ports

2019-02-21 Thread Marc Chamberlin
I need to set up James so that another email server on my LAN can
connect to it and relay messages on port 25. I also want James to handle
external connections using StartTLS on port 587. With the old James 2.3
I was able to accomplish this by duplicating the  block inside the  block and assign the two
separate ports, one each,  to each of the  sections. I tried
that with James 3.4 and it squawked and thumbed it's nose at me. Threw a
couple of exceptions and then shut down. So that is not how to do it and
I cannot find any documentation/examples on how to configure James to
handle connections on two separate ports... Can one of you fine guru's
show me the way? Thanks in advance as always...

 Marc...



-- 
Linux Counter


Re: MalformedURLException: unknown protocol: classpath SOLVED

2019-02-21 Thread Marc Chamberlin
 head to the config files
> smtpserver.xml, imapserver.xml and maybe pop3server.xml if you use
> pop3 (wich I have disabled) and set "startTLS" to true and the secret
> for your keystore. This way, you have enabled your smtp and imap to
> accept STARTTLS from client and upgrade insecure connection up to
> secured one.
>
> One last step: to enable outgoing StartTLS when you sent a mail to
> others, go into mailetcontainer.xml - to remotedelivery section - and
> then right after the "outgoing" line - put
>
> true
>
> just right in there. This way, your james will try to StartTLS when
> connected outgoin to other MX-servers. For example: gmail will tell
> you if mail was received over encrypted connection or not.
>
> Yes, this is also antoher long mail - but sadly these topics not or
> only barely covert in current docs - so it took me long time to figure
> all this out. I'm glad I'm now be able to share this knowledge to
> others so they can get it done right fast without much hassel.
>
>
> So long,
>
> Matt
>
> Am 20.02.2019 um 21:20 schrieb Marc Chamberlin:
>> Hi Matt -  We need you to put all your wonderful replies and commentary
>> up on the James website as part of the documentation. Some of the stuff
>> there is pretty sparse and you are doing a great job of explaining
>> things! ;-)  I will intersperse a few comments below -
>>
>> On 02/20/2019 09:50 AM, cryptearth wrote:
>>> Evening all, Matt here.
>>>
>>> Marc, let's look at the doc:
>>>
>>> "This is an anti-relay matcher/mailet combination
>>>
>>> Emails sent from servers not in the network list are rejected as spam.
>>> This is one method of preventing your server from being used as an
>>> open relay.  Make sure you understand how to prevent your server from
>>> becoming an open relay before changing this configuration. See
>>> alsoin SMTP Server
>>>
>>> This matcher/mailet combination must come after local delivery has
>>> been performed.  Otherwise local users will not be able to receive
>>> email from senders not in this remote address list.
>>>
>>> If you are using this matcher/mailet you will probably want to update
>>> the configuration to include your own network/addresses.  The matcher
>>> can be configured with a comma separated list of IP addresses
>>> wildcarded IP subnets, and wildcarded hostname subnets.
>>> e.g. "RemoteAddrNotInNetwork=127.0.0.1, abc.de.*, 192.168.0.*"
>> Understood. This is a perfectly valid approach to cutting down on spam
>> being sent through a James server.. It would be interesting to know if
>> this is the most commonly used approach, or whether most servers are
>> using SMTP authentication instead, or whether most servers are using
>> both methods. My argument is not against using this particular
>> matcher/mailet, but that the default configuration files should come
>> supplied and set up in a way that reflects the most common usage. To
>> restrict emails to only come from users on the local host, by default in
>> the supplied config file, seems to be awfully restrictive and uncommon
>> usage, but I am only guessing. My suspicion is that most folks using
>> James are going to use SMTP authentication, at least that is my own
>> personal experience, and for users to be on a LAN/WLAN.
>>
>> So I am wondering if this matcher/mailet should not be enabled by
>> default and SMTP authentication should be enabled instead, by default. I
>> understand the need for James to start up safely, from the default
>> configurations, so as not to be an open relay by default.
>>
>>> If you are using SMTP authentication then you can (and generally
>>> should) disable this matcher/mailet pair."
>> I think this relationship between using SMTP authentication and this
>> matcher/mailet should be automated. In other words, if SMTP
>> authentication is turned on then this matcher/mailet should be disabled
>> by default automatically. And vice/versa. I also think that the
>> administrator should be able to override this automated relationship,
>> with an explicitly set option, if for some reason both or neither
>> approaches are wanted.
>>
>> Again, the real question is, what is the most common way James is being
>> configured, and how can mistakes, such as I made, be minimized. The goal
>> being to keep James robust and easy to manage.
>>> So, as far as I understand it: "Don't touch it if you don't understand
>>> it - but you should remove it anyway when smtp auth is used.". Guess

Re: MalformedURLException: unknown protocol: classpath SOLVED

2019-02-20 Thread Marc Chamberlin
Hi Matt -  We need you to put all your wonderful replies and commentary
up on the James website as part of the documentation. Some of the stuff
there is pretty sparse and you are doing a great job of explaining
things! ;-)  I will intersperse a few comments below -

On 02/20/2019 09:50 AM, cryptearth wrote:
> Evening all, Matt here.
>
> Marc, let's look at the doc:
>
> "This is an anti-relay matcher/mailet combination
>
> Emails sent from servers not in the network list are rejected as spam.
> This is one method of preventing your server from being used as an
> open relay.  Make sure you understand how to prevent your server from
> becoming an open relay before changing this configuration. See
> alsoin SMTP Server
>
> This matcher/mailet combination must come after local delivery has
> been performed.  Otherwise local users will not be able to receive
> email from senders not in this remote address list.
>
> If you are using this matcher/mailet you will probably want to update
> the configuration to include your own network/addresses.  The matcher
> can be configured with a comma separated list of IP addresses
> wildcarded IP subnets, and wildcarded hostname subnets.
> e.g. "RemoteAddrNotInNetwork=127.0.0.1, abc.de.*, 192.168.0.*"
Understood. This is a perfectly valid approach to cutting down on spam
being sent through a James server.. It would be interesting to know if
this is the most commonly used approach, or whether most servers are
using SMTP authentication instead, or whether most servers are using
both methods. My argument is not against using this particular
matcher/mailet, but that the default configuration files should come
supplied and set up in a way that reflects the most common usage. To
restrict emails to only come from users on the local host, by default in
the supplied config file, seems to be awfully restrictive and uncommon
usage, but I am only guessing. My suspicion is that most folks using
James are going to use SMTP authentication, at least that is my own
personal experience, and for users to be on a LAN/WLAN.

So I am wondering if this matcher/mailet should not be enabled by
default and SMTP authentication should be enabled instead, by default. I
understand the need for James to start up safely, from the default
configurations, so as not to be an open relay by default.

>
> If you are using SMTP authentication then you can (and generally
> should) disable this matcher/mailet pair."
I think this relationship between using SMTP authentication and this
matcher/mailet should be automated. In other words, if SMTP
authentication is turned on then this matcher/mailet should be disabled
by default automatically. And vice/versa. I also think that the
administrator should be able to override this automated relationship,
with an explicitly set option, if for some reason both or neither
approaches are wanted.

Again, the real question is, what is the most common way James is being
configured, and how can mistakes, such as I made, be minimized. The goal
being to keep James robust and easy to manage.
>
> So, as far as I understand it: "Don't touch it if you don't understand
> it - but you should remove it anyway when smtp auth is used.". Guess
> that's it for you.
I took the "Don't touch it" approach as much as I could. Trouble is I
didn't catch this somewhat hidden matcher/mailet nor did I expect that
the James server would come up with a very restrictive policy that was
preventing me from testing/using it from somewhere else on my LAN.
Especially after I had enabled SMTP authentication, which kinda implied,
at least to me, that I would be able to use James from across my LAN.
This is re-enforce by the observation the IMAP and POP3 were working
from across my LAN and made it difficult to understand why SMTP wouldn't.

>
> I've never encountered that as I only have my domain cryptearth.de in
> domainlist - neither localhost nor other local entries. I've never
> tried to send a mail to localhost - allthough, that's one part of my
> own current thread about overwrite local service mails from
> sendmail-nullclient used by apache and cron - but that's its own
> topic. So still have this matcher/mailet in my config, allthough I
> have smtp auth enabled.
>
> So, as far as I understood your reply, you now finally got james up
> and running so you can also send mails to others?
Yep! :-) And don't get me wrong, I am NOT complaining about Apache James
really, just throwing out some thoughts to think about, which might make
it easier for others following in my footsteps, in installing and
bringing up James. I am very impressed with the amount of work that has
obviously gone into developing James, and totally appreciate the amount
of support you and Benoit have given me!

I am going to work on getting SSL/TLS working with LetsEncrypt
certificates 

Re: MalformedURLException: unknown protocol: classpath SOLVED

2019-02-20 Thread Marc Chamberlin
Morning Benoit ;-)  This could get into being a philosophical discussion
for certain! I have mixed feelings about customization of error
messages, and you are correct in saying I could change this particular
one. I have always approached software design with the attitude that
error handling and error messages should be carefully crafted so as to
guide users to a solution, not just tell them that something went wrong.
Which is what this particular error message is doing when left in it's
current default state. We could change/customize it for our own users,
(actually I will just remove this mailet) but doing so leads to a
different issue. If everyone who installs James servers (or any other
application for that matter) is allowed to customize error messages then
it leads to a non-standard environment. Often, when users encounter an
error message, that doesn't provide an understandable solution, they
will then Google it looking for a solution, hoping to find a guru or a
collective mind to provide one. Even in cases such as this, where the
solution will require the assistance of the James administrators to
solve this problem, the user needs to be told that he/she must contact
them AND what exactly they need to tell the administrators. I would
craft this message to say, "Your email server is rejecting your request
to send your email messages. Please contact your Internet Service
Provider and/or IT administrator and tell them that your email server is
rejecting your request to relay email because it is not configured to
accept email from your IP address. They need to check the configuration
of the anti-relay matcher/mailet or remove this matcher/mailet from the
server."  In this way, both the user and the administrators have been
guided to a solution making it easier to resolve this problem. I am not
sure that I would design this matcher/mailet to allow easy customization
of the error message however, I think that should be only done
internally within the code itself. But you could convince me otherwise
if you can provide me with some compelling reasons to allow customization.

 Marc

On 02/20/2019 12:15 AM, Benoit Tellier wrote:
> Hi.
>
> This is very true. But the technical knowledge limitation is not the
> only one... There is also internationalization + text/plain messages...
>
> Note that "Bounce" mailet family allows a '' field allowing you
> to maybe further explain this to non techie users you might have to
> handle - and in the language of your choice, which is a big +.
>
> Cheers,
>
> Benoit
>
> On 2/20/19 12:02 PM, Marc Chamberlin wrote:
>> Funny that I wasn't getting the notice "550 - Requested action not
>> taken: relaying denied" in a bounce email... (but even that is a really
>> bad error message that most users will not understand nor know what to
>> do about it.)
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>

-- 
Linux Counter


Re: MalformedURLException: unknown protocol: classpath SOLVED

2019-02-19 Thread Marc Chamberlin
Well at this point I will say that the upgrade to James 3.4 SNAPSHOT has
worked, I finally found the remaining problem that had been overlooked.
(this is a rather bad user trap IMHO and probably should be
re-addressed.)  There is a mailet defined in the mailetcontainer.xml
that needs to be removed, (commented out) -

   
  relay-denied
  550 - Requested action not taken: relaying denied
   

if one is going to enable SMTP authorization. Yeah there is a lot of
comments that say as much, in that file, but this is easily overlooked
IMHO. Would be safer to automate the removal of this mailet when SMTP
authorization is enabled and then in the rare cases where this is also
wanted, require the installer to opt in rather than having to opt out.
Just a thought Anyways thanks everyone for all your help, I will now
start to set up all the rest of my domains and users that I need to
support and see how far I get... If I have more questions I will start a
new thread...

Funny that I wasn't getting the notice "550 - Requested action not
taken: relaying denied" in a bounce email... (but even that is a really
bad error message that most users will not understand nor know what to
do about it.)

   Marc..

 On 02/19/2019 06:57 PM, Marc Chamberlin wrote:
> Oh well never mind this exception about localhost, my bad, I had added
> localhost to the domainlist as an experiment and that was not a good
> idea. Removing it cleared up this exception, but I still cannot send
> anything out...  Still looking for a solution...
>
>    Marc...
>

-- 
Linux Counter


Re: MalformedURLException: unknown protocol: classpath

2019-02-19 Thread Marc Chamberlin
Oh well never mind this exception about localhost, my bad, I had added
localhost to the domainlist as an experiment and that was not a good
idea. Removing it cleared up this exception, but I still cannot send
anything out...  Still looking for a solution...

   Marc...

On 02/19/2019 06:16 PM, Marc Chamberlin wrote:
> Hi Matt, Geez thanks so much for taking the time to do such a wonderful
> write up! And following your advice did solve the double entry into
> Thunderbird's sent folder. I still cannot get James to send anything out
> though but I am now getting messages written to the james-server.log
> file and discovered the following stack exception is occurring. Doesn't
> make sense to me why James is trying to do a DNS lookup on localhost,
> but better eyes might grok this -
>
> INFO  17:39:38,418 |
> org.apache.james.protocols.netty.BasicChannelUpstreamHandler |
> Connection established from 192.168.10.10
> WARN  17:39:38,571 | org.apache.james.dnsservice.dnsjava.DNSJavaService
> | Error determining result
> java.lang.IllegalStateException: Lookup of localhost A isn't done
>     at org.xbill.DNS.Lookup.checkDone(Lookup.java:595)
>     at org.xbill.DNS.Lookup.getResult(Lookup.java:632)
>     at
> org.apache.james.dnsservice.dnsjava.DNSJavaService.lookup(DNSJavaService.java:374)
>     at
> org.apache.james.dnsservice.dnsjava.DNSJavaService.lookupNoException(DNSJavaService.java:396)
>     at
> org.apache.james.dnsservice.dnsjava.DNSJavaService.getAllByName(DNSJavaService.java:484)
>     at
> org.apache.james.domainlist.lib.AbstractDomainList.getDomainIpStream(AbstractDomainList.java:215)
>     at
> org.apache.james.domainlist.lib.AbstractDomainList.lambda$getDomainsIpStream$1(AbstractDomainList.java:209)
>     at
> java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
>     at java.util.Iterator.forEachRemaining(Iterator.java:116)
>     at
> java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
>     at
> java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
>     at
> java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
>     at
> java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
>     at
> java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
>     at
> java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
>     at
> org.apache.james.domainlist.lib.AbstractDomainList.detectIps(AbstractDomainList.java:178)
>     at
> org.apache.james.domainlist.lib.AbstractDomainList.getDomains(AbstractDomainList.java:163)
>     at
> org.apache.james.domainlist.lib.AbstractDomainList.containsDomain(AbstractDomainList.java:151)
>     at
> org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:101)
>     at
> org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:42)
>     at
> org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:234)
>     at
> org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:51)
>     at
> org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:116)
>     at
> org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:77)
>     at
> org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:52)
>     at
> org.apache.james.protocols.api.handler.CommandDispatcher.dispatchCommandHandlers(CommandDispatcher.java:179)
>     at
> org.apache.james.protocols.api.handler.CommandDispatcher.onLine(CommandDispatcher.java:157)
>     at
> org.apache.james.protocols.netty.BasicChannelUpstreamHandler.messageReceived(BasicChannelUpstreamHandler.java:155)
>     at
> org.apache.james.smtpserver.netty.SMTPChannelUpstreamHandler.messageReceived(SMTPChannelUpstreamHandler.java:60)
>     at
> org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
>     at
> org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
>     at
> org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
>     at
> org.jboss.netty.channel.SimpleChannelUpstreamHandler.messageReceived(SimpleChannelUpstreamHandler.java:124)
>     at
> org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
>  

Re: MalformedURLException: unknown protocol: classpath

2019-02-19 Thread Marc Chamberlin
Hi Matt, Geez thanks so much for taking the time to do such a wonderful
write up! And following your advice did solve the double entry into
Thunderbird's sent folder. I still cannot get James to send anything out
though but I am now getting messages written to the james-server.log
file and discovered the following stack exception is occurring. Doesn't
make sense to me why James is trying to do a DNS lookup on localhost,
but better eyes might grok this -

INFO  17:39:38,418 |
org.apache.james.protocols.netty.BasicChannelUpstreamHandler |
Connection established from 192.168.10.10
WARN  17:39:38,571 | org.apache.james.dnsservice.dnsjava.DNSJavaService
| Error determining result
java.lang.IllegalStateException: Lookup of localhost A isn't done
    at org.xbill.DNS.Lookup.checkDone(Lookup.java:595)
    at org.xbill.DNS.Lookup.getResult(Lookup.java:632)
    at
org.apache.james.dnsservice.dnsjava.DNSJavaService.lookup(DNSJavaService.java:374)
    at
org.apache.james.dnsservice.dnsjava.DNSJavaService.lookupNoException(DNSJavaService.java:396)
    at
org.apache.james.dnsservice.dnsjava.DNSJavaService.getAllByName(DNSJavaService.java:484)
    at
org.apache.james.domainlist.lib.AbstractDomainList.getDomainIpStream(AbstractDomainList.java:215)
    at
org.apache.james.domainlist.lib.AbstractDomainList.lambda$getDomainsIpStream$1(AbstractDomainList.java:209)
    at
java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
    at java.util.Iterator.forEachRemaining(Iterator.java:116)
    at
java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
    at
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
    at
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
    at
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
    at
java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at
java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
    at
org.apache.james.domainlist.lib.AbstractDomainList.detectIps(AbstractDomainList.java:178)
    at
org.apache.james.domainlist.lib.AbstractDomainList.getDomains(AbstractDomainList.java:163)
    at
org.apache.james.domainlist.lib.AbstractDomainList.containsDomain(AbstractDomainList.java:151)
    at
org.apache.james.smtpserver.fastfail.ValidRcptHandler.isLocalDomain(ValidRcptHandler.java:101)
    at
org.apache.james.protocols.smtp.core.fastfail.AbstractValidRcptHandler.doRcpt(AbstractValidRcptHandler.java:42)
    at
org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:234)
    at
org.apache.james.protocols.smtp.core.RcptCmdHandler.callHook(RcptCmdHandler.java:51)
    at
org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.processHooks(AbstractHookableCmdHandler.java:116)
    at
org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:77)
    at
org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler.onCommand(AbstractHookableCmdHandler.java:52)
    at
org.apache.james.protocols.api.handler.CommandDispatcher.dispatchCommandHandlers(CommandDispatcher.java:179)
    at
org.apache.james.protocols.api.handler.CommandDispatcher.onLine(CommandDispatcher.java:157)
    at
org.apache.james.protocols.netty.BasicChannelUpstreamHandler.messageReceived(BasicChannelUpstreamHandler.java:155)
    at
org.apache.james.smtpserver.netty.SMTPChannelUpstreamHandler.messageReceived(SMTPChannelUpstreamHandler.java:60)
    at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
    at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
    at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.messageReceived(SimpleChannelUpstreamHandler.java:124)
    at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
    at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
    at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
    at
org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
    at
org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
    at
org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at

Re: MalformedURLException: unknown protocol: classpath

2019-02-18 Thread Marc Chamberlin
I should have mentioned I am working with the imap server on James, not
pop3...   Marc..

On 02/18/2019 05:26 PM, Marc Chamberlin wrote:
> Thanks Matt, you were correct, I needed to install the java-devel
> packages. Maven then ran fine, kinda scary actually watching it run!
> That is a LOT of code being downloaded and processed!  I will table the
> systemd issue for now and just concentrate on getting James running. I
> like your idea of using crontab to work around it for now...
>
> Any wise, I installed the new version of James 3.4 and got closer to
> getting it up and running. I set it up with one domain and one user
> (myself) and I can now send and receive email to/from myself on it. But
> I cannot send an outgoing email to anywhere else! I am using Thunderbird
> to test it with and when I try to send an outgoing email to some other
> domain, something weird is happening. It acts as if it sent it OK, but
> it is showing up in the sent folder, in Thunderbird, twice! I tried to
> send an email from my account on James to a GMail account I have and it
> never showed up, so something is failing still.
>
> Going in the other direction, if I send an email from an outside server
> to my account on James, I do receive it OK.
>
> BTW this latest version of James did not fix the log file problems I
> reported earlier.    Marc..
>
> On 02/18/2019 11:12 AM, cryptearth wrote:
>> Well, for me, I just added "@reboot /path/to/james/bin/james start" to
>> my root crontab - no need for init.d/systemd.
>> As the issue arised after you let systemctl create files - seems
>> something went wrong there.
>>
>> As for your maven issue: do you have java-devel installed?
>>
>> Matt
>>
>> Am 18.02.2019 um 03:40 schrieb Benoit Tellier:
>>> I am not sure you can use "james script" directly like this as a initd
>>> script.
>>>
>>> What we do use in docker (and thus is maintained) is
>>>
>>> ./bin/wrapper-linux-x86-64 conf/wrapper.conf wrapper.syslog.ident=james
>>> wrapper.pidfile=var/james.pid wrapper.daemonize=FALSE
>>>
>>> Cheers,
>>>
>>> Benoit
>>>
>>> On 2/18/19 7:39 a    ²M, Marc Chamberlin wrote:
>>>> Hi Matt, thanks for responding!  It appears to me that "classpath" is
>>>> actually defined in the startup scripts. There are two different
>>>> scripts
>>>> used to start the james server, either "james" or "run.sh". I do not
>>>> believe "classpath" is defined in any of the config files themselves. I
>>>> am not using "run.sh" to start the james server, instead I noted that
>>>> the james script is configured with the classic init.d entry points -
>>>> start, stop, restart, etc. I modified the "james" script slightly so
>>>> that I could run james as a systemd service instead (see below). At
>>>> this
>>>> point I strongly suspect that the definition of environment variables,
>>>> using the james startup script,  is failing, so I am pursuing this to
>>>> see what is going on. However, running james as a systemd service does
>>>> not seem to be the problem, even if I just run the james startup script
>>>> by itself, not as a service, I am still getting the same failure with
>>>> the "classpath" variable.
>>>>
>>>> If anyone has ported james to run as a systemd service I would much
>>>> appreciate knowing how you did it. What I have done was to add the
>>>> init.d initialization comments to the beginning of the james shell
>>>> script then let systemd take it from there to create the actual
>>>> .service
>>>> files -
>>>>   added to beginning of the james startup script to define init.d
>>>> runlevels -
>>>>
>>>> ### BEGIN INIT INFO
>>>> # Provides:   james
>>>> # Required-Start: $network $syslog $time
>>>> # Required-Stop:  $network $syslog $time
>>>> # Default-Start:  2 3 4 5
>>>> # Default-Stop:   0 1 6
>>>> # Description:    Initscript for Apache James Mail Server
>>>> ### END INIT INFO
>>>>
>>>> and FYI these are the steps I then took to set up the init.d services
>>>> and then convert them to systemd services on OpenSuSE Leap 15.0 -
>>>>
>>>> First I created a soft link from /etc/init.d to the james startup
>>>> script -
>>>>
>>>> ln -s /mail/apache-james-3.2/james-server-app-3.2.0/bin/ja

Re: MalformedURLException: unknown protocol: classpath

2019-02-18 Thread Marc Chamberlin
Thanks Matt, you were correct, I needed to install the java-devel
packages. Maven then ran fine, kinda scary actually watching it run!
That is a LOT of code being downloaded and processed!  I will table the
systemd issue for now and just concentrate on getting James running. I
like your idea of using crontab to work around it for now...

Any wise, I installed the new version of James 3.4 and got closer to
getting it up and running. I set it up with one domain and one user
(myself) and I can now send and receive email to/from myself on it. But
I cannot send an outgoing email to anywhere else! I am using Thunderbird
to test it with and when I try to send an outgoing email to some other
domain, something weird is happening. It acts as if it sent it OK, but
it is showing up in the sent folder, in Thunderbird, twice! I tried to
send an email from my account on James to a GMail account I have and it
never showed up, so something is failing still.

Going in the other direction, if I send an email from an outside server
to my account on James, I do receive it OK.

BTW this latest version of James did not fix the log file problems I
reported earlier.    Marc..

On 02/18/2019 11:12 AM, cryptearth wrote:
> Well, for me, I just added "@reboot /path/to/james/bin/james start" to
> my root crontab - no need for init.d/systemd.
> As the issue arised after you let systemctl create files - seems
> something went wrong there.
>
> As for your maven issue: do you have java-devel installed?
>
> Matt
>
> Am 18.02.2019 um 03:40 schrieb Benoit Tellier:
>> I am not sure you can use "james script" directly like this as a initd
>> script.
>>
>> What we do use in docker (and thus is maintained) is
>>
>> ./bin/wrapper-linux-x86-64 conf/wrapper.conf wrapper.syslog.ident=james
>> wrapper.pidfile=var/james.pid wrapper.daemonize=FALSE
>>
>> Cheers,
>>
>> Benoit
>>
>> On 2/18/19 7:39 a    ²M, Marc Chamberlin wrote:
>>> Hi Matt, thanks for responding!  It appears to me that "classpath" is
>>> actually defined in the startup scripts. There are two different
>>> scripts
>>> used to start the james server, either "james" or "run.sh". I do not
>>> believe "classpath" is defined in any of the config files themselves. I
>>> am not using "run.sh" to start the james server, instead I noted that
>>> the james script is configured with the classic init.d entry points -
>>> start, stop, restart, etc. I modified the "james" script slightly so
>>> that I could run james as a systemd service instead (see below). At
>>> this
>>> point I strongly suspect that the definition of environment variables,
>>> using the james startup script,  is failing, so I am pursuing this to
>>> see what is going on. However, running james as a systemd service does
>>> not seem to be the problem, even if I just run the james startup script
>>> by itself, not as a service, I am still getting the same failure with
>>> the "classpath" variable.
>>>
>>> If anyone has ported james to run as a systemd service I would much
>>> appreciate knowing how you did it. What I have done was to add the
>>> init.d initialization comments to the beginning of the james shell
>>> script then let systemd take it from there to create the actual
>>> .service
>>> files -
>>>   added to beginning of the james startup script to define init.d
>>> runlevels -
>>>
>>> ### BEGIN INIT INFO
>>> # Provides:   james
>>> # Required-Start: $network $syslog $time
>>> # Required-Stop:  $network $syslog $time
>>> # Default-Start:  2 3 4 5
>>> # Default-Stop:   0 1 6
>>> # Description:    Initscript for Apache James Mail Server
>>> ### END INIT INFO
>>>
>>> and FYI these are the steps I then took to set up the init.d services
>>> and then convert them to systemd services on OpenSuSE Leap 15.0 -
>>>
>>> First I created a soft link from /etc/init.d to the james startup
>>> script -
>>>
>>> ln -s /mail/apache-james-3.2/james-server-app-3.2.0/bin/james
>>> /etc/init.d/james
>>>
>>> Next install in james script into the various init.d runlevels
>>>
>>> cd /etc/init.d
>>> insserv james
>>>
>>> Next set up the systemd files from the new init.d configuration files
>>> and start the service.
>>>
>>> systemctl daemon-reload
>>> systemctl start james.service
>>>
>>> The james service does start up OK an

Re: MalformedURLException: unknown protocol: classpath

2019-02-17 Thread Marc Chamberlin
On 02/17/2019 06:01 AM, cryptearth wrote:
> git clone -b master https://github.com/apache/james-project  james folder>
>
> branch 3.2.0 is completed and isn't worked on anymore, branch 3.2.x
> got last update in Dec 10, 2018 - so you have to use master branch to
> get current fixes
> to compile james from source - cd into your james directory and type:
> mvn clean package
> I would recommend to also add: -DskipTests
> to save time - and, well, if you haven't set up docker, the tests fail
> at this point wich fails the whole project. With skipping tests depend
> on power takes about 15min to compile. Completed pack is then found in
> /server/app/target/james-server-[version]-app.tar.gz
> (and .zip). Simple extract it to where you want - check config in
> /conf (check domainlist.xml is most important - all other
> shouldn't need not touch at all) - and james should be able to start
> up with /bin/james start
>
> Matt

Hi Matt, I took a shot at downloading and building james, and it didn't
seem to go well... A lot of stuff got downloaded and then this resulted.
Got any ideas?  (lots of hits on Google about "Could not find artifact
com.sun:tools:jar:1.8.0" but none of the solutions seem applicable...)

   Marc..

Downloaded from central:
https://repo.maven.apache.org/maven2/net/sf/saxon/Saxon-HE/9.8.0-5/Saxon-HE-9.8.0-5.jar
(5.0 MB at 2.2 MB/s)
[INFO]

[INFO] Reactor Summary for Apache James Project 3.4.0-SNAPSHOT:
[INFO]
[INFO] Apache James Project ... FAILURE [
13.817 s]
[INFO] Apache James :: Server . SKIPPED
[INFO] Apache James :: Server :: Common Utilities . SKIPPED
[INFO] Apache James :: Java Mail Extension  SKIPPED
[INFO] Apache James :: Core Domain Objects  SKIPPED
[INFO] Apache James :: Server :: Lifecycle API  SKIPPED
[INFO] Apache James :: Server :: Task . SKIPPED
[INFO] Apache JAMES backends common ... SKIPPED
[INFO] Apache James Cassandra backend . SKIPPED
[INFO] Apache James :: Mailbox  SKIPPED
[INFO] Apache James :: Mailbox :: API . SKIPPED
[INFO] Apache James :: Mailets parent and aggregator .. SKIPPED
[INFO] Apache James :: Mailet API . SKIPPED
[INFO] Apache James :: Test helpers for Mailet  SKIPPED
[INFO] Apache James :: Server :: Testing .. SKIPPED
[INFO] apache-james-backends-es ... SKIPPED
[INFO] apache-james-backends-jpa .. SKIPPED
[INFO] Apache James RabbitMQ backend .. SKIPPED
[INFO] Apache James :: Event Sourcing . SKIPPED
[INFO] Apache James :: Event sourcing :: pojo . SKIPPED
[INFO] Apache James :: Event Sourcing :: Event Store :: API SKIPPED
[INFO] Apache James :: Event sourcing :: core . SKIPPED
[INFO] Apache James :: Event sourcing :: Event Store :: Cassandra SKIPPED
[INFO] Apache James :: Event sourcing :: Event Store :: Memory SKIPPED
[INFO] Apache James :: Basic Mailet Toolkit ... SKIPPED
[INFO] Apache James :: Examples ... SKIPPED
[INFO] custom-mailets . SKIPPED
[INFO] Apache James :: Metrics  SKIPPED
[INFO] Apache James :: Metrics :: API . SKIPPED
[INFO] Apache James :: Mailbox :: Event :: In VM implementation SKIPPED
[INFO] Apache James :: MDN  SKIPPED
[INFO] Apache James :: Mailbox :: Store Framework . SKIPPED
[INFO] Apache James :: Mailbox :: Backup .. SKIPPED
[INFO] Apache James :: Mailbox :: Caching . SKIPPED
[INFO] Apache James :: Server :: Blob . SKIPPED
[INFO] Apache James :: Server :: Blob :: API .. SKIPPED
[INFO] Apache James :: Server :: Blob :: Cassandra  SKIPPED
[INFO] Apache James :: Server :: Filesystem API ... SKIPPED
[INFO] Apache James :: Server :: Core . SKIPPED
[INFO] Apache James :: Server :: MailRepository :: API  SKIPPED
[INFO] Apache James :: Server :: Data  :: API . SKIPPED
[INFO] Apache James :: Mailbox :: Cassandra ... SKIPPED
[INFO] Apache James :: Mailbox :: In Memory ... SKIPPED
[INFO] Apache James :: Mailbox :: Tika  SKIPPED
[INFO] Apache James :: Mailbox :: ElasticSearch ... SKIPPED
[INFO] Apache James :: Mailbox :: Event :: JSON ... SKIPPED
[INFO] Apache James :: Mailbox :: Event :: RabbitMQ implementation SKIPPED
[INFO] Apache James :: Mailbox :: JPA . SKIPPED
[INFO] Apache James :: Mailbox :: Lucene Index  SKIPPED
[INFO] Apache James :: Mailbox :: Maildir . SKIPPED
[INFO] Apache James :: Server :: DNS Service :: API 

Re: MalformedURLException: unknown protocol: classpath

2019-02-17 Thread Marc Chamberlin
Hi Matt, thanks for responding!  It appears to me that "classpath" is
actually defined in the startup scripts. There are two different scripts
used to start the james server, either "james" or "run.sh". I do not
believe "classpath" is defined in any of the config files themselves. I
am not using "run.sh" to start the james server, instead I noted that
the james script is configured with the classic init.d entry points -
start, stop, restart, etc. I modified the "james" script slightly so
that I could run james as a systemd service instead (see below). At this
point I strongly suspect that the definition of environment variables,
using the james startup script,  is failing, so I am pursuing this to
see what is going on. However, running james as a systemd service does
not seem to be the problem, even if I just run the james startup script
by itself, not as a service, I am still getting the same failure with
the "classpath" variable.

If anyone has ported james to run as a systemd service I would much
appreciate knowing how you did it. What I have done was to add the
init.d initialization comments to the beginning of the james shell
script then let systemd take it from there to create the actual .service
files -
 
added to beginning of the james startup script to define init.d runlevels -

### BEGIN INIT INFO
# Provides:   james
# Required-Start: $network $syslog $time
# Required-Stop:  $network $syslog $time
# Default-Start:  2 3 4 5
# Default-Stop:   0 1 6
# Description:    Initscript for Apache James Mail Server
### END INIT INFO

and FYI these are the steps I then took to set up the init.d services
and then convert them to systemd services on OpenSuSE Leap 15.0 -

First I created a soft link from /etc/init.d to the james startup script -

ln -s /mail/apache-james-3.2/james-server-app-3.2.0/bin/james
/etc/init.d/james

Next install in james script into the various init.d runlevels

cd /etc/init.d
insserv james

Next set up the systemd files from the new init.d configuration files
and start the service.

systemctl daemon-reload
systemctl start james.service

The james service does start up OK and will report that it is running
when checking on it's status. It is just not working properly in
accepting connections or doing the various tasks that the service should
be doing and my goal at this point is to resolve any and all exceptions
that are occurring such as this one.

    Marc...



On 02/17/2019 06:01 AM, cryptearth wrote:
> Hey Marc, Matt here.
>
> The provided stack only says that you given "classpath" to some
> parameter wich expectes a url in some config file. So I guess it could
> help if you also show the config where you set "classpath" so one can
> figure out, if "classpath" is a legal input for the setting you set it.


-- 
Linux Counter


MalformedURLException: unknown protocol: classpath

2019-02-16 Thread Marc Chamberlin
I am still trying to configure and set up a new Apache James 3.2.0 with
Spring wiring
and am running into a new snag. I suspect I am overlooking something in
the config files. So can a kind guru decipher this stack
walkback, shown in the wrapper.log file, and give me a clue on how to
fix and make James a happy camper?
I won't show the entire stack walkback just what I think are the
highlights, but if anyone wants the whole thing I certainly can provide it.

(Benoit - I have not figured out how to acquire the source code, with
the fixes you mentioned in my previous threads, and build/test the new
version of James. Perhaps you could send me instructions? Just send me a
link to the source code and a Makefile preferably, I have never used
Docker and don't understand how that works.. )

Thanks in advance...   Marc

INFO   | jvm 1    | 2019/02/16 22:51:04 | 22:51:04.843
[WrapperSimpleAppMain] DEBUG
org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded
13 bean definitions from location pattern
[classpath:META-INF/spring/loaders-context.xml]
INFO   | jvm 1    | 2019/02/16 22:51:04 | 22:51:04.843
[WrapperSimpleAppMain] DEBUG
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
- Imported 13 bean definitions from URL location
[classpath:META-INF/spring/loaders-context.xml]
INFO   | jvm 1    | 2019/02/16 22:51:04 | 22:51:04.843
[WrapperSimpleAppMain] INFO
org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading
XML bean definitions from class path resource
[META-INF/org/apache/james/spring-mailbox-authenticator.xml]
INFO   | jvm 1    | 2019/02/16 22:51:04 | 22:51:04.844
[WrapperSimpleAppMain] DEBUG
org.springframework.beans.factory.xml.DefaultDocumentLoader - Using JAXP
provider
[com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
INFO   | jvm 1    | 2019/02/16 22:51:04 | 22:51:04.846
[WrapperSimpleAppMain] DEBUG
org.springframework.beans.factory.xml.ResourceEntityResolver - Could not
resolve XML entity
[classpath:org/springframework/beans/factory/xml/spring-beans-3.0.xsd]
against system root URL
INFO   | jvm 1    | 2019/02/16 22:51:04 |
java.net.MalformedURLException: unknown protocol: classpath
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
java.net.URL.(URL.java:600)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
java.net.URL.(URL.java:490)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
java.net.URL.(URL.java:439)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
org.springframework.beans.factory.xml.ResourceEntityResolver.resolveEntity(ResourceEntityResolver.java:79)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:110)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:1081)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:654)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2431)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1768)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:741)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:613)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3132)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:852)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
INFO   | jvm 1    | 2019/02/16 22:51:04 |     at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
INFO   | jvm 1    | 

Re: Could not rewrite recipient?

2019-01-31 Thread Marc Chamberlin
Thanks Benoit for your assistance and response. I am happy to help test
and report issues with James and will look into downloading the source
code and compiling/installing the fixed version as soon as I can...

  Marc..

On 01/29/2019 08:09 PM, Benoit Tellier wrote:
> Wouldn't you mind building the fixed version of James and see if this
> solves your issue?
>
> Thanks for the very valuable feedbacks!
>
> Cheers,
>
> Benoit


-- 
Linux Counter


Re: Logfiles not working RESOLVED SOMEWHAT!

2019-01-28 Thread Marc Chamberlin
Oh! :-(  Thank Garry for responding...  Well this issue is not a
showstopper, just a false flag then, I guess, that I have been chasing.
Probably should be flagged for debugging/fixing of the code or flagged
for updating the documentation so others won't chase this. BTW I was
able to hack the log4j.properties file a bit and got some of the
warnings quieted down by following in Simon's footsteps changing the
references to DailyRollingFileAppender to RollingFileAppender, removing
the  DatePattern property specifications, and with the additional
following change -

log4j.rootLogger=DEBUG
changed to
log4j.rootLogger=DEBUG, CONS

 Anywise, I will move on and ping my other outstanding question/thread,
about the rewrite recipient SQL query, which is a showstopper for me at
the moment, and hopefully find a guru who can send me down a path that
will let me get Apache James working...

    Marc...

On 01/28/2019 08:42 PM, Garry Hurley wrote:
> Yeah, the extra logs seem like a good idea, but details are either logged in 
> the james-server.log for out-of-the-box components, or wrapper.log for custom 
> code. 
>
> Sent from my iPhone
>
>> On Jan 28, 2019, at 9:27 PM, Marc Chamberlin  wrote:
>>
>> Thanks Simon for your thoughts, I tried making the change as you
>> suggested but still no joy!  You gave me a path to explore so I am
>> digging into log4j and trying to understand it better...  And I am
>> seeing some warnings in the wrapper log file that look ominous so I am
>> digging in to those as well...
>>
>> INFO   | jvm 1| 2019/01/28 08:29:29 | log4j:WARN No appenders could
>> be found for logger (org.apache.commons.configuration.ConfigurationUtils).
>> INFO   | jvm 1| 2019/01/28 08:29:29 | log4j:WARN Please initialize
>> the log4j system properly.
>> INFO   | jvm 1| 2019/01/28 08:29:29 | log4j:WARN See
>> http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
>> INFO   | jvm 1| 2019/01/28 08:29:30 | INFO  08:29:29,938 |
>> org.apache.james.container.spring.context.JamesServerApplicationContext
>> | Bean 'logprovider' of type [class org.apache.j
>> ames.container.spring.lifecycle.LogProviderImpl] is not eligible for
>> getting processed by all BeanPostProcessors (for example: not eligible
>> for auto-proxying)
>> INFO   | jvm 1| 2019/01/28 08:29:30 | 14  James  WARN  
>> [WrapperSimpleAppMain] openjpa.Runtime - An error occurred while
>> registering a ClassTransformer with PersistenceUnitInfo: name 'James',
>> root URL [file:/mail/apache-james-3.2/james-server-app-3.2.0/conf]. The
>> error has been consumed. To see it, set your openjpa.Runtime log level
>> to TRACE. Load-time class transformation will not be available.
>>
>>  Marc...
>>
>>> On 01/28/2019 04:04 AM, Simon Levesque wrote:
>>> Hi Marc,
>>> I had the same issue and found out they are using
>>> "DailyRollingFileAppender". My fix was to use "DailyRollingFileAppender".
>>> You can see the full file I am using here:
>>> https://github.com/foilen/foilen-infra-plugins-core/blob/master/src/main/resources/com/foilen/infra/resource/email/james/log4j.properties
>>>
>>> HTH
>>>
>>> On Sat, 26 Jan 2019 at 00:41, Marc Chamberlin 
>>> wrote:
>>>
>>>> I have noticed that most of the log files for Apache James 3.2 do not
>>>> seem to be getting any log messages after running the server for awhile -
>>>>
>>>> bigbang:/mail/apache-james-3.2/james-server-app-3.2.0/log # ll
>>>> total 248
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 dnsservice.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 domainlist.log
>>>> -rw-r--r-- 1 james mail  0 Oct 31 09:41 .dummy
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 fetchmail.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 imapserver.log
>>>> -rw-r--r-- 1 root  root 103794 Jan 25 21:19 james-server.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 lmtpserver.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 mailboxmanager.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 mailetcontainer.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 mailqueuefactory.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 mailrepositorystore.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 pop3server.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 smtpserver.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 usersrepository.log
>>>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 virtualusertable.log
>>>> -rw-r

Re: Logfiles not working

2019-01-28 Thread Marc Chamberlin
Thanks Simon for your thoughts, I tried making the change as you
suggested but still no joy!  You gave me a path to explore so I am
digging into log4j and trying to understand it better...  And I am
seeing some warnings in the wrapper log file that look ominous so I am
digging in to those as well...

INFO   | jvm 1    | 2019/01/28 08:29:29 | log4j:WARN No appenders could
be found for logger (org.apache.commons.configuration.ConfigurationUtils).
INFO   | jvm 1    | 2019/01/28 08:29:29 | log4j:WARN Please initialize
the log4j system properly.
INFO   | jvm 1    | 2019/01/28 08:29:29 | log4j:WARN See
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
INFO   | jvm 1    | 2019/01/28 08:29:30 | INFO  08:29:29,938 |
org.apache.james.container.spring.context.JamesServerApplicationContext
| Bean 'logprovider' of type [class org.apache.j
ames.container.spring.lifecycle.LogProviderImpl] is not eligible for
getting processed by all BeanPostProcessors (for example: not eligible
for auto-proxying)
INFO   | jvm 1    | 2019/01/28 08:29:30 | 14  James  WARN  
[WrapperSimpleAppMain] openjpa.Runtime - An error occurred while
registering a ClassTransformer with PersistenceUnitInfo: name 'James',
root URL [file:/mail/apache-james-3.2/james-server-app-3.2.0/conf]. The
error has been consumed. To see it, set your openjpa.Runtime log level
to TRACE. Load-time class transformation will not be available.

 Marc...

On 01/28/2019 04:04 AM, Simon Levesque wrote:
> Hi Marc,
> I had the same issue and found out they are using
> "DailyRollingFileAppender". My fix was to use "DailyRollingFileAppender".
> You can see the full file I am using here:
> https://github.com/foilen/foilen-infra-plugins-core/blob/master/src/main/resources/com/foilen/infra/resource/email/james/log4j.properties
>
> HTH
>
> On Sat, 26 Jan 2019 at 00:41, Marc Chamberlin 
> wrote:
>
>> I have noticed that most of the log files for Apache James 3.2 do not
>> seem to be getting any log messages after running the server for awhile -
>>
>> bigbang:/mail/apache-james-3.2/james-server-app-3.2.0/log # ll
>> total 248
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 dnsservice.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 domainlist.log
>> -rw-r--r-- 1 james mail  0 Oct 31 09:41 .dummy
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 fetchmail.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 imapserver.log
>> -rw-r--r-- 1 root  root 103794 Jan 25 21:19 james-server.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 lmtpserver.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 mailboxmanager.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 mailetcontainer.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 mailqueuefactory.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 mailrepositorystore.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 pop3server.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 smtpserver.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 usersrepository.log
>> -rw-r--r-- 1 root  root  0 Jan 25 20:30 virtualusertable.log
>> -rw-r--r-- 1 root  root 147065 Jan 25 21:19 wrapper.log
>>
>> The log4j.properties file is simply as it was installed. Looking through
>> it, it seems like I should be getting lots of info messages for each of
>> the main components, such as imapserver.log and smtpserver.log but nada.
>> I fooled around with log4j.properties a bit, by just adding DEBUG level
>> logging to the smtpserver.log and imapserver.log but no joy so I undid
>> those changes and restored the log4j.properties back to it's original
>> state. Any ideas why I am not getting log messages in the rest of these
>> log files?
>>
>> And where can I find more complete documentation about how to set the
>> properties in the log4j.properties file? What I have found so far does
>> not explain much. I am looking at -
>> https://james.apache.org/server/3/monitor-logging.html  Thanks...  Marc..
>>
>>
>> --
>> Linux Counter
>>

-- 
Linux Counter


Logfiles not working

2019-01-25 Thread Marc Chamberlin
I have noticed that most of the log files for Apache James 3.2 do not
seem to be getting any log messages after running the server for awhile -

bigbang:/mail/apache-james-3.2/james-server-app-3.2.0/log # ll
total 248
-rw-r--r-- 1 root  root  0 Jan 25 20:30 dnsservice.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 domainlist.log
-rw-r--r-- 1 james mail  0 Oct 31 09:41 .dummy
-rw-r--r-- 1 root  root  0 Jan 25 20:30 fetchmail.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 imapserver.log
-rw-r--r-- 1 root  root 103794 Jan 25 21:19 james-server.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 lmtpserver.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 mailboxmanager.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 mailetcontainer.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 mailqueuefactory.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 mailrepositorystore.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 pop3server.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 smtpserver.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 usersrepository.log
-rw-r--r-- 1 root  root  0 Jan 25 20:30 virtualusertable.log
-rw-r--r-- 1 root  root 147065 Jan 25 21:19 wrapper.log

The log4j.properties file is simply as it was installed. Looking through
it, it seems like I should be getting lots of info messages for each of
the main components, such as imapserver.log and smtpserver.log but nada.
I fooled around with log4j.properties a bit, by just adding DEBUG level
logging to the smtpserver.log and imapserver.log but no joy so I undid
those changes and restored the log4j.properties back to it's original
state. Any ideas why I am not getting log messages in the rest of these
log files?

And where can I find more complete documentation about how to set the
properties in the log4j.properties file? What I have found so far does
not explain much. I am looking at - 
https://james.apache.org/server/3/monitor-logging.html  Thanks...  Marc..


-- 
Linux Counter


Re: Could not rewrite recipient?

2019-01-25 Thread Marc Chamberlin
I have no way to grok what the intent is, nor the details of what this
query is expecting in the database, but upon a first look through the
SQL documentation I changed this query by putting quotes around the
question marks '?' in the LIKE clauses and MariaDB accepted it. i.e. -

SELECT t0.DOMAIN_NAME, t0.USER_NAME, t0.TARGET_ADDRESS FROM
JAMES_RECIPIENT_REWRITE t0 WHERE (t0.USER_NAME LIKE '?' ESCAPE '\\' AND
t0.DOMAIN_NAME LIKE '?' ESCAPE '\\') ORDER BY t0.DOMAIN_NAME DESC;

This is just a guess on my part, but me thinks this might be a bug in
how Apache James is constructing this query?   Marc...


On 01/25/2019 01:25 PM, Marc Chamberlin wrote:
> SELECT t0.DOMAIN_NAME, t0.USER_NAME, t0.TARGET_ADDRESS FROM
> JAMES_RECIPIENT_REWRITE t0 WHERE (t0.USER_NAME LIKE ? ESCAPE '\\' AND
> t0.DOMAIN_NAME LIKE ? ESCAPE '\\') ORDER BY t0.DOMAIN_NAME DESC; 


-- 
Linux Counter


Re: Could not rewrite recipient?

2019-01-25 Thread Marc Chamberlin
Thanks Garry, looks like some sort of syntax error is occurring.  
Interesting thing is I set up the mariadb server to log all queries and 
statements and I am seeing a lot of things coming in from the James 
server, but not the particular statement that is causing problems... 
Applying the statement directly by hand, while logged in to the database 
server as James, this is what is happening -


MariaDB [mail]> SELECT t0.DOMAIN_NAME, t0.USER_NAME, t0.TARGET_ADDRESS 
FROM JAMES_RECIPIENT_REWRITE t0 WHERE (t0.USER_NAME LIKE ? ESCAPE '\\' 
AND t0.DOMAIN_NAME LIKE ? ESCAPE '\\') ORDER BY t0.DOMAIN_NAME DESC;
ERROR 1064 (42000): You have an error in your SQL syntax; check the 
manual that corresponds to your MariaDB server version for the right 
syntax to use near '? ESCAPE '\\' AND t0.DOMAIN_NAME LIKE ? ESCAPE '\\') 
ORDER BY t0.DOMAIN_NAME DES' at line 1


Maybe an expert pair of SQL eyes can see what is wrong faster than I can 
do a search through the documentation, in order to figure out what is 
exactly wrong with this MySQL query.. I am by no means an expert at SQL 
syntax!!  ;-)


    Marc

On 1/25/19 9:11 AM, Garry Hurley wrote:

okay, well, that aside, the problem is in the domain name being passed. Pull 
the query out of the error message and try to run it against your database 
(logged in using the same user credentials that james connects with). My 
thoughts are that either your domain name that is passed contains an invalid 
character or is null, or that the table is either not readable by james or does 
not contain any values that match.




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



Re: Could not rewrite recipient?

2019-01-25 Thread Marc Chamberlin
Garry - the mydomain.com isn't my actual domain name, I obfuscated it in
the walkback messages as I do not want it to be probed until I am
satisfied things are secure..  ;-)  Marc..

On 01/25/2019 07:36 AM, Garry Hurley wrote:
> This is going to sound patronizing, but inthe ‘caused by’ section it says it 
> could not set your domain and the value was ‘mydomain.com’. If you actually 
> registered that domain, you need to smack your registrar a few times with a 
> rather large trout. My suggestion is to replace that domain with your ACTUAL 
> domain in the config files. 
>
> Sent from my iPhone
>
>> On Jan 24, 2019, at 11:27 PM, Marc Chamberlin  
>> wrote:
>>
>> I am trying to configure and set up a new Apache James 3.2.0 email
>> server and running into troubles getting it to work, though I think I am
>> close. I am not sure what all info I need to provide so feel free to ask
>> for more... The server is coming up and running but when I try to send
>> an email through it, the client seems to think all goes well but the
>> james.server.log file is showing bad things... And nothing is being
>> received through the IMAP side... So can a kind guru decipher this stack
>> walkback and give me a clue on how to fix and make James a happy camper?
>> I won't show the entire stack walkback just what I think are the
>> highlights, but if anyone wants the whole thing I certainly can provide
>> it. Thanks in advance...   Marc
>>
>>
>> INFO  20:02:43,990 |
>> org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
>> IMAP-NOOP: 0 ms.
>> INFO  20:02:44,008 |
>> org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
>> IMAP-GETQUOTAROOT: 1 ms.
>> INFO  20:02:44,048 |
>> org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
>> IMAP-IDLE: 1 ms.
>> INFO  20:03:39,582 |
>> org.apache.james.protocols.netty.BasicChannelUpstreamHandler |
>> Connection established from 10.10.10.1
>> INFO  20:03:39,963 | org.apache.james.smtpserver.SendMailHandler |
>> Successfully spooled mail
>> Mail1548389019876-bafd9328-095e-4b22-8a2e-d4c18fb74522 from
>> MaybeSender{mailAddress=Optional[myn...@mydomain.com]} on
>> 10.10.10.1/10.10.10.1 for [myn...@mydomain.com]
>> INFO  20:03:39,978 |
>> org.apache.james.protocols.netty.BasicChannelUpstreamHandler |
>> Connection closed for 10.10.10.1
>> WARN  20:03:39,996 |
>> org.apache.james.transport.mailets.RecipientRewriteTableProcessor |
>> Could not rewrite recipient myn...@mydomain.com
>> org.apache.james.rrt.api.RecipientRewriteTableException: Error while
>> retrieve mappings
>> at
>> org.apache.james.rrt.jpa.JPARecipientRewriteTable.getMapping(JPARecipientRewriteTable.java:107)
>> at
>> org.apache.james.rrt.jpa.JPARecipientRewriteTable.mapAddress(JPARecipientRewriteTable.java:79)
>> at
>> org.apache.james.rrt.lib.AbstractRecipientRewriteTable.getMappings(AbstractRecipientRewriteTable.java:110)
>> at
>> org.apache.james.rrt.lib.AbstractRecipientRewriteTable.getMappings(AbstractRecipientRewriteTable.java:99)
>> at
>> org.apache.james.transport.mailets.RecipientRewriteTableProcessor.executeRrtForRecipient(RecipientRewriteTableProcessor.java:164)
>> at
>> org.apache.james.transport.mailets.RecipientRewriteTableProcessor.lambda$executeRrtFor$1(RecipientRewriteTableProcessor.java:153)
>> at
>> java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
>> at java.util.Collections$2.tryAdvance(Collections.java:4717)
>> at java.util.Collections$2.forEachRemaining(Collections.java:4725)
>> at
>> java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
>> at
>> java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
>> at
>> java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
>> at
>> java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
>> at
>> java.util.stream.ReferencePipeline.reduce(ReferencePipeline.java:474)
>> at
>> org.apache.james.transport.mailets.RecipientRewriteTableProcessor.executeRrtFor(RecipientRewriteTableProcessor.java:159)
>> at
>> org.apache.james.transport.mailets.RecipientRewriteTableProcessor.processMail(RecipientRewriteTableProcessor.java:129)
>> at
>> org.apache.james.transport.mailets.RecipientRewriteTable.service(RecipientRewriteTable.java:88)
>> at
>> org.apache.james.mailetcontainer.impl.camel.CamelProcessor.process(CamelProcessor.java:81)
&

Could not rewrite recipient?

2019-01-24 Thread Marc Chamberlin
I am trying to configure and set up a new Apache James 3.2.0 email
server and running into troubles getting it to work, though I think I am
close. I am not sure what all info I need to provide so feel free to ask
for more... The server is coming up and running but when I try to send
an email through it, the client seems to think all goes well but the
james.server.log file is showing bad things... And nothing is being
received through the IMAP side... So can a kind guru decipher this stack
walkback and give me a clue on how to fix and make James a happy camper?
I won't show the entire stack walkback just what I think are the
highlights, but if anyone wants the whole thing I certainly can provide
it. Thanks in advance...   Marc


INFO  20:02:43,990 |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-NOOP: 0 ms.
INFO  20:02:44,008 |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-GETQUOTAROOT: 1 ms.
INFO  20:02:44,048 |
org.apache.james.metrics.logger.DefaultMetricFactory | Time spent in
IMAP-IDLE: 1 ms.
INFO  20:03:39,582 |
org.apache.james.protocols.netty.BasicChannelUpstreamHandler |
Connection established from 10.10.10.1
INFO  20:03:39,963 | org.apache.james.smtpserver.SendMailHandler |
Successfully spooled mail
Mail1548389019876-bafd9328-095e-4b22-8a2e-d4c18fb74522 from
MaybeSender{mailAddress=Optional[myn...@mydomain.com]} on
10.10.10.1/10.10.10.1 for [myn...@mydomain.com]
INFO  20:03:39,978 |
org.apache.james.protocols.netty.BasicChannelUpstreamHandler |
Connection closed for 10.10.10.1
WARN  20:03:39,996 |
org.apache.james.transport.mailets.RecipientRewriteTableProcessor |
Could not rewrite recipient myn...@mydomain.com
org.apache.james.rrt.api.RecipientRewriteTableException: Error while
retrieve mappings
    at
org.apache.james.rrt.jpa.JPARecipientRewriteTable.getMapping(JPARecipientRewriteTable.java:107)
    at
org.apache.james.rrt.jpa.JPARecipientRewriteTable.mapAddress(JPARecipientRewriteTable.java:79)
    at
org.apache.james.rrt.lib.AbstractRecipientRewriteTable.getMappings(AbstractRecipientRewriteTable.java:110)
    at
org.apache.james.rrt.lib.AbstractRecipientRewriteTable.getMappings(AbstractRecipientRewriteTable.java:99)
    at
org.apache.james.transport.mailets.RecipientRewriteTableProcessor.executeRrtForRecipient(RecipientRewriteTableProcessor.java:164)
    at
org.apache.james.transport.mailets.RecipientRewriteTableProcessor.lambda$executeRrtFor$1(RecipientRewriteTableProcessor.java:153)
    at
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
    at java.util.Collections$2.tryAdvance(Collections.java:4717)
    at java.util.Collections$2.forEachRemaining(Collections.java:4725)
    at
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
    at
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
    at
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
    at
java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at
java.util.stream.ReferencePipeline.reduce(ReferencePipeline.java:474)
    at
org.apache.james.transport.mailets.RecipientRewriteTableProcessor.executeRrtFor(RecipientRewriteTableProcessor.java:159)
    at
org.apache.james.transport.mailets.RecipientRewriteTableProcessor.processMail(RecipientRewriteTableProcessor.java:129)
    at
org.apache.james.transport.mailets.RecipientRewriteTable.service(RecipientRewriteTable.java:88)
    at
org.apache.james.mailetcontainer.impl.camel.CamelProcessor.process(CamelProcessor.java:81)
    at
org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor$MailetContainerRouteBuilder.handleMailet(CamelMailetProcessor.java:178)
    at
org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor$MailetContainerRouteBuilder.lambda$configure$0(CamelMailetProcessor.java:155)

yada yada yada - some walkback messages deleted here

    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: 
org.apache.openjpa.persistence.PersistenceException: Could not set
parameter at position 2 (values was 'mydomain.com')
Query - conn:47(M)  - "SELECT t0.DOMAIN_NAME, t0.USER_NAME,
t0.TARGET_ADDRESS FROM JAMES_RECIPIENT_REWRITE t0 WHERE (t0.USER_NAME
LIKE ? ESCAPE '\\' AND t0.DOMAIN_NAME LIKE ? ESCAPE '\\') ORDER BY
t0.DOMAIN_NAME DESC"
FailedObject: SELECT rrt FROM JamesRecipientRewrite rrt WHERE (rrt.user
LIKE :user) and (rrt.domain like :domain) ORDER BY rrt.domain DESC
[java.lang.String]
    at
org.apache.openjpa.jdbc.sql.DBDictionary.narrow(DBDictionary.java:5038)
    at
org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4998)
    at
org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:134)

yada yada yada - some walkback messages deleted here

    at

Mailman and James?

2019-01-08 Thread Marc Chamberlin
Hello again -  One feature I need to support is mail lists and I note
that Apache James 3.2 does not support them yet? I wonder if anyone has
successfully integrated Mailman with James and if so would be willing to
provide me with a how to guide? I have started to take a look at Mailman
and notice that it seems to be designed to work with Fetchmail and
Postfix. I have my suspicions that running those tools on the same
server that James is running on will lead to conflicts. Are there any
other Linux based tools that can manage a mail list and work with James
that might be recommended instead? (Along with a how to guide...)

Thanks,  Marc

-- 
Linux Counter


Re: Systemd service file for James?

2019-01-07 Thread Marc Chamberlin
Thanks Ashton,  I actually was in the middle of tackling this when your
email came in!  ;-)  I took a different approach and decided to let the
system generate the service file for me.  In case anyone wants to follow
my footsteps here is what I did -

Add the following init info comments to the beginning of the james
startup script -

### BEGIN INIT INFO
# Provides:   james
# Required-Start: $network $syslog $time
# Required-Stop:  $network $syslog $time
# Default-Start:  2 3 4 5
# Default-Stop:   0 1 6
# Description:    Initscript for Apache James Mail Server
### END INIT INFO

Next create a soft link from /etc/init.d to the james startup script -

ln -s /mail/apache-james-3.2/james-server-app-3.2.0/bin/james
/etc/init.d/james

Next install links to the james script into the various init.d runlevels

cd /etc/init.d
insserv james

Next set up the systemd files from the new init.d configuration.

systemctl daemon-reload

and this is what this magic incantation cooked up for me -

cat /run/systemd/generator.late/james.service
# Automatically generated by systemd-sysv-generator

[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/james
Description=LSB: Apache James :: Server :: App
Before=multi-user.target multi-user.target multi-user.target
graphical.target
After=network-online.target time-sync.target
Wants=network-online.target time-sync.target

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/james start
ExecStop=/etc/init.d/james stop


I will copy this file to /usr/systemd/system and tweak it a bit more but
I think it got me in the ballpark... At least I can now invoke systemctl
commands on the james service. I will test some more and then go conquer
the next mountain (probably SSL/TLS) ...    Marc...



n 01/06/2019 11:39 PM, Ashton Holmes wrote:
> This is my systemd service file. It's pretty basic but it gets the job done.
> [Unit]
> Description=James mail server
>
> [Service]
> User=james
> WorkingDirectory=/opt/james/bin
> ExecStart=/opt/james/bin/run.sh
>
> [Install]
> WantedBy=multi-user.target
>
> On January 6, 2019 9:42:50 PM PST, Marc Chamberlin  
> wrote:
>> Just wondering if anyone has made or have an example of a james.service
>> file for running James under Systemd? Would make my life a bit easier
>> if
>> I don't have to figure out how to create one from scratch! ;-)   Thanks
>> in advance as always...   Marc..
>>
>>
>> -- 
>> Linux Counter


-- 
Linux Counter


Systemd service file for James?

2019-01-06 Thread Marc Chamberlin
Just wondering if anyone has made or have an example of a james.service
file for running James under Systemd? Would make my life a bit easier if
I don't have to figure out how to create one from scratch! ;-)   Thanks
in advance as always...   Marc..


-- 
Linux Counter


Re: A MySQL connection setup issue SOLVED!

2019-01-05 Thread Marc Chamberlin
Thanks everyone who helped me with getting James and MySQL/MariaDB to
get along with each other. Upgrading MariaDB from version 10.0 (supplied
with the OpenSUSE distro) to version 10.3 solved the remaining problems
I was experiencing. Appears there was a bug in setting table sizes that
they managed to solve.  I will close this thread and start a new one
with my next question.

    Marc..

On 01/04/2019 03:36 PM, Marc Chamberlin wrote:
> Hi Garry -  Took quite a bit of sleuthing but I think I have made
> progress, at least solved one thing only to encounter another... Isn't
> that the way programming goes? LOL  Anywise it appears I made a
> mistake in granting privileges in MariaDB, I had executed the following -
>
> MariaDB [mysql]> grant all privileges on mail to 'james'@'localhost';
> whereas it should have been -
>
> MariaDB [mysql]> grant all privileges on mail.* to 'james'@'localhost';
>
> To insure user james had remote access from my internal network I also
> issued this command -
>
> MariaDB [mail]> grant all privileges on mail.* to
> 'james'@'192.168.10.%' identified by 'aPassword';
>
> Sometime ya just got to love non-intuitive command syntax (and
> non-intuitive error messages)! So that got me past the previous set of
> exceptions I was experiencing only to land me in this muddle -
>
> WARN  14:28:38,933 |
> org.apache.james.container.spring.context.JamesServerApplicationContext
> | Exception encountered during context initial
> ization - cancelling refresh attempt:
> org.springframework.beans.factory.UnsatisfiedDependencyException:
> Error creating bean with name 'auth
> enticator' defined in class path resource
> [META-INF/org/apache/james/spring-mailbox-authenticator.xml]:
> Unsatisfied dependency expressed th
> rough constructor argument with index 0 of type
> [org.apache.james.user.api.UsersRepository]: : Error creating bean
> with name 'usersreposito
> ry': Invocation of init method failed; nested exception is
> 
> org.apache.openjpa.persis
> tence.PersistenceException: (conn=10) Specified key was too long; max
> key length is 767 bytes {stmnt 515268797 CREATE TABLE JAMES_MAIL_REPO
> S (MAIL_REPO_NAME VARCHAR(1024) NOT NULL, PRIMARY KEY
> (MAIL_REPO_NAME)) ENGINE = innodb} [code=1071, state=42000]; nested
> exception is org.
> springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'usersrepository': Invocation of init method failed; nes
> ted exception is  error> org.apache.openjpa.persistence.PersistenceException: (conn=10)
> Spec
> ified key was too long; max key length is 767 bytes {stmnt 515268797
> CREATE TABLE JAMES_MAIL_REPOS (MAIL_REPO_NAME VARCHAR(1024) NOT NULL,
> PRIMARY KEY (MAIL_REPO_NAME)) ENGINE = innodb} [code=1071, state=42000]
>
> Uhhh "Specified key was too long; max key length is 767 bytes"??? 
> What in the world is this talking about? Google makes it sound like
> another MySQL issue?
>
> I am not groking what you are saying about the JPA classes not
> working, or what symptoms I will see. Sounds ominous...  Have I
> reached the point where I will have to create the tables manually?
>
> Thanks again for all your help... Marc...
>
>
> On 1/4/19 6:29 AM, Garry Hurley wrote:
>> A few things I forgot to mention, make sure you have granted your user
>> access to log in remotely, and that you have created whatever
>> database you
>> want to connect to (just do the create database '> here>'; and
>> it will work). Also, once you get past that point, you will likely find
>> that the JPA classes don't work.  That is fixed in the current code
>> stream.I doubt it has been backcported to 3.2.0, so be advised.  If you
>> need scripts for creating the tables manually, I have them. exported
>> from
>> SQL Server, but the DDL scripts should not be too different, just
>> reach out
>> to me and I will pop them into an email.
>>
>>
>> On Fri, Jan 4, 2019 at 9:16 AM Garry Hurley 
>> wrote:
>>
>>> The vendor class on the driver is supposed to match, but also be
>>> certain you are using Mariadb and not MySQL database and MariaDB
>>> client in your Linux distro. My config, which does work in the current
>>> branch (3.3.0 SNAPSHOT), is as follows.  It goes without saying that
>>> your mileage my vary, and that I am using Slackware Linux, so your
>>> mileage may vary.
>>>
>>> ...
>>> # Use derby as default
>>> database.driverClassName=org.mariadb.jdbc.Driver
>>> database.url=jdbc:mariadb://localhost:3306/maildb
>>> database.username=james
>>> database.password=
>>>
>>> # Supported adapters are:
>>> # DB2, DERBY, H

Re: A MySQL connection setup issue

2019-01-04 Thread Marc Chamberlin
Hi Garry -  Took quite a bit of sleuthing but I think I have made 
progress, at least solved one thing only to encounter another... Isn't 
that the way programming goes? LOL  Anywise it appears I made a mistake 
in granting privileges in MariaDB, I had executed the following -


MariaDB [mysql]> grant all privileges on mail to 'james'@'localhost';
whereas it should have been -

MariaDB [mysql]> grant all privileges on mail.* to 'james'@'localhost';

To insure user james had remote access from my internal network I also 
issued this command -


MariaDB [mail]> grant all privileges on mail.* to 'james'@'192.168.10.%' 
identified by 'aPassword';


Sometime ya just got to love non-intuitive command syntax (and 
non-intuitive error messages)! So that got me past the previous set of 
exceptions I was experiencing only to land me in this muddle -


WARN  14:28:38,933 | 
org.apache.james.container.spring.context.JamesServerApplicationContext 
| Exception encountered during context initial
ization - cancelling refresh attempt: 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'auth
enticator' defined in class path resource 
[META-INF/org/apache/james/spring-mailbox-authenticator.xml]: 
Unsatisfied dependency expressed th
rough constructor argument with index 0 of type 
[org.apache.james.user.api.UsersRepository]: : Error creating bean with 
name 'usersreposito
ry': Invocation of init method failed; nested exception is 
 
org.apache.openjpa.persis
tence.PersistenceException: (conn=10) Specified key was too long; max 
key length is 767 bytes {stmnt 515268797 CREATE TABLE JAMES_MAIL_REPO
S (MAIL_REPO_NAME VARCHAR(1024) NOT NULL, PRIMARY KEY (MAIL_REPO_NAME)) 
ENGINE = innodb} [code=1071, state=42000]; nested exception is org.
springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'usersrepository': Invocation of init method failed; nes
ted exception is  
org.apache.openjpa.persistence.PersistenceException: (conn=10) Spec
ified key was too long; max key length is 767 bytes {stmnt 515268797 
CREATE TABLE JAMES_MAIL_REPOS (MAIL_REPO_NAME VARCHAR(1024) NOT NULL,

PRIMARY KEY (MAIL_REPO_NAME)) ENGINE = innodb} [code=1071, state=42000]

Uhhh "Specified key was too long; max key length is 767 bytes"???  What 
in the world is this talking about? Google makes it sound like another 
MySQL issue?


I am not groking what you are saying about the JPA classes not working, 
or what symptoms I will see. Sounds ominous...  Have I reached the point 
where I will have to create the tables manually?


Thanks again for all your help... Marc...


On 1/4/19 6:29 AM, Garry Hurley wrote:

A few things I forgot to mention, make sure you have granted your user
access to log in remotely, and that you have created whatever database you
want to connect to (just do the create database ''; and
it will work). Also, once you get past that point, you will likely find
that the JPA classes don't work.  That is fixed in the current code
stream.I doubt it has been backcported to 3.2.0, so be advised.  If you
need scripts for creating the tables manually, I have them. exported from
SQL Server, but the DDL scripts should not be too different, just reach out
to me and I will pop them into an email.


On Fri, Jan 4, 2019 at 9:16 AM Garry Hurley 
wrote:


The vendor class on the driver is supposed to match, but also be
certain you are using Mariadb and not MySQL database and MariaDB
client in your Linux distro. My config, which does work in the current
branch (3.3.0 SNAPSHOT), is as follows.  It goes without saying that
your mileage my vary, and that I am using Slackware Linux, so your
mileage may vary.

...
# Use derby as default
database.driverClassName=org.mariadb.jdbc.Driver
database.url=jdbc:mariadb://localhost:3306/maildb
database.username=james
database.password=

# Supported adapters are:
# DB2, DERBY, H2, HSQL, INFORMIX, MYSQL, ORACLE, POSTGRESQL, SQL_SERVER,
SYBASE
vendorAdapter.database=MYSQL

...


Make sure, however, that your database is configured to allow network
connections.  Change your rc.mysqld (or comparable one if your Linux
distro is inferior to Slackware ;) ) script to read as follows:
...
# To allow outside connections to the database comment out the next line.
# If you don't need incoming network connections, then leave the line
# uncommented to improve system security.
#SKIP="--skip-networking"
...



On Jan 4, 2019, at 6:47 AM, Saibabu Vallurupalli <

saibabu.vallurupa...@gmail.com> wrote:

your configurations are incorrect is what the error shows and I see
you have got:

vendorAdapter.database=MYSQL

This should be :
vendorAdapter.database=MARIADB

Try changing this.

Thanks,
Sai


On Fri, Jan 4, 2019 at 2:39 AM Marc Chamberlin 

wrote:

(Thanks Benoit, Saibabu, and Simon for taking the time/trouble to answer
my previous question on MySQL. It helped a lot!)

I have managed to get a little further setting up James 3.2.0

Re: A MySQL connection setup issue

2019-01-04 Thread Marc Chamberlin
Hi Garry, and thanks for your thoughts also... Still no joy however...  
The vendor class (database.driverClassName) in my configuration is the 
same as what you show here. Ditto for all the other parameters except 
for the database.url. I created a database called mail (not maildb) in 
MariaDB so I adjusted the declaration to -


database.url=jdbc:mariadb://localhost:3306/mail

I won't get into the politics/religion over distros, I worship the gods of 
OpenSUSE myself, so no I don't have a rc.mysqld file to poke at, but I do have 
a my.cnf file and within it there is a parameter to skip networking, which is 
commented out. (If uncommented, according to the comments in the file, then 
only socket connections would be allowed and all TCP/IP port connections 
disabled.)

   Marc...



On 1/4/19 6:16 AM, Garry Hurley wrote:

The vendor class on the driver is supposed to match, but also be
certain you are using Mariadb and not MySQL database and MariaDB
client in your Linux distro. My config, which does work in the current
branch (3.3.0 SNAPSHOT), is as follows.  It goes without saying that
your mileage my vary, and that I am using Slackware Linux, so your
mileage may vary.

...
# Use derby as default
database.driverClassName=org.mariadb.jdbc.Driver
database.url=jdbc:mariadb://localhost:3306/maildb
database.username=james
database.password=

# Supported adapters are:
# DB2, DERBY, H2, HSQL, INFORMIX, MYSQL, ORACLE, POSTGRESQL, SQL_SERVER, SYBASE
vendorAdapter.database=MYSQL

...


Make sure, however, that your database is configured to allow network
connections.  Change your rc.mysqld (or comparable one if your Linux
distro is inferior to Slackware ;) ) script to read as follows:
...
# To allow outside connections to the database comment out the next line.
# If you don't need incoming network connections, then leave the line
# uncommented to improve system security.
#SKIP="--skip-networking"
...



On Jan 4, 2019, at 6:47 AM, Saibabu Vallurupalli 
 wrote:

your configurations are incorrect is what the error shows and I see
you have got:

vendorAdapter.database=MYSQL

This should be :
vendorAdapter.database=MARIADB

Try changing this.

Thanks,
Sai


On Fri, Jan 4, 2019 at 2:39 AM Marc Chamberlin  wrote:

(Thanks Benoit, Saibabu, and Simon for taking the time/trouble to answer
my previous question on MySQL. It helped a lot!)

I have managed to get a little further setting up James 3.2.0 Spring
with MySQL/MariaDB but have ran into a problem which Google is not being
helpful.

I appear to be having troubles with getting a connection going between
James and the MariaDB server. I will provide a description of what I
have done and then I will show the exception message I am getting which
is stopping James from starting up...

First of all I downloaded the MariaDB Connector/J .jar file from
https://downloads.mariadb.org/connector-java/ and installed it in the
conf/lib directory within the James installation.

I then set up a database and user in MariaDB as follows -


mysql --user=root -p

MariaDB [mysql]> create database mail;
MariaDB [mysql]> create user 'james'@'localhost' identified by 'apassword';
MariaDB [mysql]> grant all privileges on mail to 'james'@'localhost';

I also created a system user for james and assigned it the same password.

Next I edited the james-database.properties file as follows -

database.driverClassName=org.mariadb.jdbc.Driver
database.url=jdbc:mariadb://127.0.0.1:3306/mail
database.username=james
database.password=apassword
vendorAdapter.database=MYSQL
openjpa.streaming=false
datasource.testOnBorrow=true
datasource.validationQueryTimeoutSec=2
datasource.validationQuery=select 1

Telnetting to localhost port 3306 does show that the mariadb server is
responding but hard to say exactly what is being communicated because a
lot of the text has non-printable characters. I assume it is working OK...

Upon starting up James I am getting exceptions with a huge amount of
stack walkback messages, but I will try to capture just what appears to
be relevant -

INFO  22:03:05,852 | org.apache.james.domainlist.lib.AbstractDomainList
| Set autodetectIP to: true
WARN  22:03:06,000 |
org.apache.james.container.spring.context.JamesServerApplicationContext
| Exception encountered during context initial
ization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'auth
enticator' defined in class path resource
[META-INF/org/apache/james/spring-mailbox-authenticator.xml]:
Unsatisfied dependency expressed th
rough constructor argument with index 0 of type
[org.apache.james.user.api.UsersRepository]: : Error creating bean with
name 'usersreposito
ry': Invocation of init method failed; nested exception is

org.apache.openjpa.persis
tence.PersistenceException: There were errors initializing your
configuration:  org.apache.
openjpa.util.UserException: A connection could not be obtained for
driver class "null" 

Re: A MySQL connection setup issue

2019-01-04 Thread Marc Chamberlin
Hi Sailbabu, Thanks for your thoughts but no joy...  MARIADB and MYSQL 
are identical in all respects, AFAIK, and according to OpenSUSE 
documentation fully compatible. Anywise, when I tried to change the 
vendorAdapter name as you suggested, to MARIADB, James threw a different 
exception basically saying that MARIADB is unrecognized/unknown. So I 
went back to MYSQL.  I suspect this only controls the construction of 
command/query syntax for working with a particular database, so my 
belief is that MYSQL should be the correct selection...   Marc...


On 1/4/19 3:47 AM, Saibabu Vallurupalli wrote:

your configurations are incorrect is what the error shows and I see
you have got:

vendorAdapter.database=MYSQL

This should be :
vendorAdapter.database=MARIADB

Try changing this.

Thanks,
Sai

On Fri, Jan 4, 2019 at 2:39 AM Marc Chamberlin  wrote:

(Thanks Benoit, Saibabu, and Simon for taking the time/trouble to answer
my previous question on MySQL. It helped a lot!)

I have managed to get a little further setting up James 3.2.0 Spring
with MySQL/MariaDB but have ran into a problem which Google is not being
helpful.

I appear to be having troubles with getting a connection going between
James and the MariaDB server. I will provide a description of what I
have done and then I will show the exception message I am getting which
is stopping James from starting up...

First of all I downloaded the MariaDB Connector/J .jar file from
https://downloads.mariadb.org/connector-java/ and installed it in the
conf/lib directory within the James installation.

I then set up a database and user in MariaDB as follows -


mysql --user=root -p

MariaDB [mysql]> create database mail;
MariaDB [mysql]> create user 'james'@'localhost' identified by 'apassword';
MariaDB [mysql]> grant all privileges on mail to 'james'@'localhost';

I also created a system user for james and assigned it the same password.

Next I edited the james-database.properties file as follows -

database.driverClassName=org.mariadb.jdbc.Driver
database.url=jdbc:mariadb://127.0.0.1:3306/mail
database.username=james
database.password=apassword
vendorAdapter.database=MYSQL
openjpa.streaming=false
datasource.testOnBorrow=true
datasource.validationQueryTimeoutSec=2
datasource.validationQuery=select 1

Telnetting to localhost port 3306 does show that the mariadb server is
responding but hard to say exactly what is being communicated because a
lot of the text has non-printable characters. I assume it is working OK...

Upon starting up James I am getting exceptions with a huge amount of
stack walkback messages, but I will try to capture just what appears to
be relevant -

INFO  22:03:05,852 | org.apache.james.domainlist.lib.AbstractDomainList
| Set autodetectIP to: true
WARN  22:03:06,000 |
org.apache.james.container.spring.context.JamesServerApplicationContext
| Exception encountered during context initial
ization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'auth
enticator' defined in class path resource
[META-INF/org/apache/james/spring-mailbox-authenticator.xml]:
Unsatisfied dependency expressed th
rough constructor argument with index 0 of type
[org.apache.james.user.api.UsersRepository]: : Error creating bean with
name 'usersreposito
ry': Invocation of init method failed; nested exception is

org.apache.openjpa.persis
tence.PersistenceException: There were errors initializing your
configuration:  org.apache.
openjpa.util.UserException: A connection could not be obtained for
driver class "null" and URL "null".  You may have specified an invalid U
RL.
 at
org.apache.openjpa.jdbc.schema.DataSourceFactory.newConnectException(DataSourceFactory.java:272)
 at
org.apache.openjpa.jdbc.schema.DataSourceFactory.installDBDictionary(DataSourceFactory.java:258)
 at
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:735)
... (Lots more trace back messages followed by -)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Access denied for user 'james@localhost'@'l
ocalhost' (using password: YES))
 at
org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
 at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
 at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)

and these exceptions/stack trace walkbacks repeat several time in the
log file. Kinda hard for this poor soul to grok and I sure would
appreciate it if wiser eyes could provide me with some ideas/pointers. I
would be willing to send the entire log file if that would help, but
warning it is a LOT! I am missing something simple probably  Thanks
again in advance for helping me over this bump...

Re: A MySQL connection setup issue

2019-01-04 Thread Marc Chamberlin
Hi Simon and thanks for your thoughts...  Yes my usersrepository.xml is 
the same as the one on github.  The only difference was that I was using 
the MD5 algorithm and the github was using SHA-512. On a lark I changed 
mine to SHA-512 also but no joy... I didn't really expect that to make a 
difference, but what the heck I gave it a shot... ;-) Marc..


On 1/4/19 3:24 AM, Simon Levesque wrote:

Hi Marc,

I am no James expert, but with the information here, since it is the
UsersRepository that has issue, do you have a usersrepository.xml config
with
https://github.com/foilen/foilen-infra-plugins-core/blob/master/src/main/resources/com/foilen/infra/resource/email/james/usersrepository.xml
?

HTH

On Fri, 4 Jan 2019 at 02:39, Marc Chamberlin 
wrote:


(Thanks Benoit, Saibabu, and Simon for taking the time/trouble to answer
my previous question on MySQL. It helped a lot!)

I have managed to get a little further setting up James 3.2.0 Spring
with MySQL/MariaDB but have ran into a problem which Google is not being
helpful.

I appear to be having troubles with getting a connection going between
James and the MariaDB server. I will provide a description of what I
have done and then I will show the exception message I am getting which
is stopping James from starting up...

First of all I downloaded the MariaDB Connector/J .jar file from
https://downloads.mariadb.org/connector-java/ and installed it in the
conf/lib directory within the James installation.

I then set up a database and user in MariaDB as follows -


mysql --user=root -p

MariaDB [mysql]> create database mail;
MariaDB [mysql]> create user 'james'@'localhost' identified by
'apassword';
MariaDB [mysql]> grant all privileges on mail to 'james'@'localhost';

I also created a system user for james and assigned it the same password.

Next I edited the james-database.properties file as follows -

database.driverClassName=org.mariadb.jdbc.Driver
database.url=jdbc:mariadb://127.0.0.1:3306/mail
database.username=james
database.password=apassword
vendorAdapter.database=MYSQL
openjpa.streaming=false
datasource.testOnBorrow=true
datasource.validationQueryTimeoutSec=2
datasource.validationQuery=select 1

Telnetting to localhost port 3306 does show that the mariadb server is
responding but hard to say exactly what is being communicated because a
lot of the text has non-printable characters. I assume it is working OK...

Upon starting up James I am getting exceptions with a huge amount of
stack walkback messages, but I will try to capture just what appears to
be relevant -

INFO  22:03:05,852 | org.apache.james.domainlist.lib.AbstractDomainList
| Set autodetectIP to: true
WARN  22:03:06,000 |
org.apache.james.container.spring.context.JamesServerApplicationContext
| Exception encountered during context initial
ization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'auth
enticator' defined in class path resource
[META-INF/org/apache/james/spring-mailbox-authenticator.xml]:
Unsatisfied dependency expressed th
rough constructor argument with index 0 of type
[org.apache.james.user.api.UsersRepository]: : Error creating bean with
name 'usersreposito
ry': Invocation of init method failed; nested exception is

org.apache.openjpa.persis
tence.PersistenceException: There were errors initializing your
configuration:  org.apache.
openjpa.util.UserException: A connection could not be obtained for
driver class "null" and URL "null".  You may have specified an invalid U
RL.
 at

org.apache.openjpa.jdbc.schema.DataSourceFactory.newConnectException(DataSourceFactory.java:272)
 at

org.apache.openjpa.jdbc.schema.DataSourceFactory.installDBDictionary(DataSourceFactory.java:258)
 at

org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:735)
... (Lots more trace back messages followed by -)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Access denied for user 'james@localhost'@'l
ocalhost' (using password: YES))
 at

org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
 at

org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
 at

org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)

and these exceptions/stack trace walkbacks repeat several time in the
log file. Kinda hard for this poor soul to grok and I sure would
appreciate it if wiser eyes could provide me with some ideas/pointers. I
would be willing to send the entire log file if that would help, but
warning it is a LOT! I am missing something simple probably  Thanks
again in advance for helping me over this bump...

Marc...



Linux Counter




-
To unsubscribe, e-mail: server-user-unsubscr...@james.apach

A MySQL connection setup issue

2019-01-03 Thread Marc Chamberlin
(Thanks Benoit, Saibabu, and Simon for taking the time/trouble to answer
my previous question on MySQL. It helped a lot!)

I have managed to get a little further setting up James 3.2.0 Spring
with MySQL/MariaDB but have ran into a problem which Google is not being
helpful.

I appear to be having troubles with getting a connection going between
James and the MariaDB server. I will provide a description of what I
have done and then I will show the exception message I am getting which
is stopping James from starting up...

First of all I downloaded the MariaDB Connector/J .jar file from
https://downloads.mariadb.org/connector-java/ and installed it in the
conf/lib directory within the James installation.

I then set up a database and user in MariaDB as follows -

> mysql --user=root -p

MariaDB [mysql]> create database mail;
MariaDB [mysql]> create user 'james'@'localhost' identified by 'apassword';
MariaDB [mysql]> grant all privileges on mail to 'james'@'localhost';

I also created a system user for james and assigned it the same password.

Next I edited the james-database.properties file as follows -

database.driverClassName=org.mariadb.jdbc.Driver
database.url=jdbc:mariadb://127.0.0.1:3306/mail
database.username=james
database.password=apassword
vendorAdapter.database=MYSQL
openjpa.streaming=false
datasource.testOnBorrow=true
datasource.validationQueryTimeoutSec=2
datasource.validationQuery=select 1

Telnetting to localhost port 3306 does show that the mariadb server is
responding but hard to say exactly what is being communicated because a
lot of the text has non-printable characters. I assume it is working OK...

Upon starting up James I am getting exceptions with a huge amount of
stack walkback messages, but I will try to capture just what appears to
be relevant -

INFO  22:03:05,852 | org.apache.james.domainlist.lib.AbstractDomainList
| Set autodetectIP to: true
WARN  22:03:06,000 |
org.apache.james.container.spring.context.JamesServerApplicationContext
| Exception encountered during context initial
ization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'auth
enticator' defined in class path resource
[META-INF/org/apache/james/spring-mailbox-authenticator.xml]:
Unsatisfied dependency expressed th
rough constructor argument with index 0 of type
[org.apache.james.user.api.UsersRepository]: : Error creating bean with
name 'usersreposito
ry': Invocation of init method failed; nested exception is

org.apache.openjpa.persis
tence.PersistenceException: There were errors initializing your
configuration:  org.apache.
openjpa.util.UserException: A connection could not be obtained for
driver class "null" and URL "null".  You may have specified an invalid U
RL.
    at
org.apache.openjpa.jdbc.schema.DataSourceFactory.newConnectException(DataSourceFactory.java:272)
    at
org.apache.openjpa.jdbc.schema.DataSourceFactory.installDBDictionary(DataSourceFactory.java:258)
    at
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:735)
... (Lots more trace back messages followed by -)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Access denied for user 'james@localhost'@'l
ocalhost' (using password: YES))
    at
org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
    at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
    at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)

and these exceptions/stack trace walkbacks repeat several time in the
log file. Kinda hard for this poor soul to grok and I sure would
appreciate it if wiser eyes could provide me with some ideas/pointers. I
would be willing to send the entire log file if that would help, but
warning it is a LOT! I am missing something simple probably  Thanks
again in advance for helping me over this bump...

   Marc...



Linux Counter


MySQL documentation?

2019-01-02 Thread Marc Chamberlin
Can some kind soul send me, or point me to a link describing how to
configure the james-database.properties for James 3.2.0 with Spring
wiring for MySQL/MariaDB databases?  I seem unable to find it...  Thanks
in advance...

 Marc..


-- 
Linux Counter


Missing download for James server 3.2.0 Spring wiring

2019-01-01 Thread Marc Chamberlin
At https://james.apache.org/download.cgi#Apache_James_Server 

I clicked on the link for "Binary (ZIP Format) for Spring wiring:
apache-james-3.2.0-app.zip"  which led me to

https://www.apache.org/dyn/closer.lua/james/server/james-server-app-3.2.0-app.zip

where I got this message -

The requested file or directory is not on the mirrors.
It may be in our archive :
http://archive.apache.org/dist/james/server/james-server-app-3.2.0-app.zip

Clicking on the archive link gives me a 404 Not Found

What's up? How do I get this baby in my hot lil hands?    Marc

-- 
Linux Counter


Re: Mail list server?

2018-10-30 Thread Marc Chamberlin
On 10/30/2018 09:58 AM, Raphael OUAZANA wrote:
> Hi,
>
>
> You are right, it seems we lost the appropriate documentation about
> this when releasing the 3.0:
> http://james.apache.org/server/2.3.0/mailing_lists.html
>
> Can you check if it is still working? Of course contributing
> documentation (and even integration tests) on this feature is very
> welcome!
>
>
Hi Raphael, Thanks for providing the link, but this is for the older
version of James, v2.3. This appears to be using the Avalon software
framework and I didn't think Avalon is still being supported in James
3.0? Is it and will these mailets work in James 3.0? If you or others on
this list think so I will go ahead and give it a shot. And I would be
happy to contribute to the documentation and even do some integration
testing if someone is willing to teach/guide me. (never done it before
so not sure what the procedures are...)

 Marc...


-- 
Linux Counter


Mail list server?

2018-10-29 Thread Marc Chamberlin
Hi - I am investigating James and need a mail server that supports mail
lists. I cannot seem to find any documentation on how to go about
configuring James (with or without mailets) to support a mail list
service. Can someone point me to the documentation with examples on how
to go about this using James version 3.0 or higher. (I also need IMAP
support and it appears that earlier versions of James did not support
IMAP but did indeed provide support for mail list service. Thanks in
advance...

    Marc...


-- 
Linux Counter


Re: Upgrading from 2.3.1 to 3.0Beta5

2016-12-09 Thread Marc Chamberlin

On 11/30/2016 5:57 PM, Marc Chamberlin wrote:
Hi guys,  I am attempting to upgrade our James 2.3.1 version of the 
server to the just released 3.0Beta 5 since we are anxious to provide 
an IMAP server. And I have to admit that I am having all kinds of 
troubles figuring out how to do so. Much of the documentation seems to 
be very incomplete, poorly written, and has lots of grammatical errors 
making comprehension even more challenging. That said, I have made 
progress and even have managed to get the new server up and running, 
albeit without enabling any of the IMAP, SMTP or POP3 services yet. I 
will report where I am at, troubles I have encountered, and what I 
have done to workaround things or am just plain stumped.  If this is 
not the right forum for me to report/ask questions about installing 
3.0 please redirect me to the right place.


1. The first major problem I have encountered is that according to the 
instructions at https://james.apache.org/server/3/config-system.html  
it talks about the spring-server.xml file and states


"In James distribution, the spring files are located under 
conf/context folder and splitted into a main file 
(james-server-context.xml) which imports 4 other files (1 per mailbox 
type): james-mailbox-jcr-context.xml, james-mailbox-jpa-context.xml, 
james-mailbox-maildir-context.xml, james-mailbox-memory-context.xml."


I cannot locate any of these files and it appears that they were not 
included in the zip file that I downloaded. It appears, from other 
docs that I may need to configure these in regards to my database 
setup, but for now I am just punting on this and assuming that there 
is a default configuration in the jar files somewhere else.



2. This second issue is mostly a heads up/FYI but it cost me a lot of 
time trying to figure out what the problems were and track down so 
this ought to get fixed. On the website at 
https://james.apache.org/server/3/config.html  it states -


"We ship with default configuration (embedded in jars) and -template 
files you can use to override the default configuration. Simply copy 
in conf folder *-template.xml to *.xml (example: 
smtpserver-template.xml to smtpserver.xml), and change in *.xml the 
settings to map your needs."


I do not believe this is true. There are a number of these template 
configuration files for which I HAD to remove the "-template" portion 
of the name in order for me to get the server up and running. So I am 
going to presume that for at least the following set of these config 
files there is NOT a default. (Incidentally, it is very difficult to 
grok the exception messages and stack walk backs to understand what 
was going wrong and I am not certain that I have captured all of these 
in my report here...)


indexer-template.xml
quota-template.xml
events-template.xml
managesieveserver-template.xml


3. Another heads up/FYI. On the website at 
https://james.apache.org/server/3/config-mailrepositorystore.html it 
states -


"If the administrator wants to configure a database other than MySQL, 
it will be necessary to add the jar or zip file containing the JDBC 
driver classes to the lib subdirectory of the installation directory."


Again I am going to say this is not true. (Maybe for Derby?) I am 
going to want to use MySQL as I have it tied in with my Apache Tomcat 
server to better manage mail users and list members via a servlet. I 
had a devil of a time figuring out that I needed the 
mysql-connector-java-5.1.28-bin.jar and where to find it. But without 
it, trying to get the server up and running failed. It would be very 
helpful to mention where one can get connectors for the different 
kinds of databases commonly used/supported, IMHO.



4. Now I am stuck on this last issue, trying to grok the instructions 
at http://james.apache.org/server/3/upgrade-2.3.html First of all 
someone needs to re-write this page, the English and grammar is pretty 
bad and confusing.  My first issue is that in 2.3.1 I used the MySQL 
database to store user information. There is no description of what I 
need to do to migrate said information into 3.0. The example and file 
shows how to do this if one were using files to store user 
information, but not for a database.


I am confused however, do I even need to do this? My experimentation 
seems to imply that I do, since I cannot get the CLI or JMX console to 
correctly respond to a listusers command, but why? Did the database 
schema change for 3.0? And if I do manage to get this migration step 
to work, will I ruin the database and make it unusable for James 2.3.1 
to use it, should I need to drop back to it?


Also, it is not totally clear what I need to do about the actual mail 
store. Do I just copy the user directories over into the 3.0 server 
space? From what I am reading it does not sound like it will be that 
simple... So I need the details of what to do here...


One last thought, I have never used a JMX consol

Upgrading from 2.3.1 to 3.0Beta5

2016-11-30 Thread Marc Chamberlin
Hi guys,  I am attempting to upgrade our James 2.3.1 version of the 
server to the just released 3.0Beta 5 since we are anxious to provide an 
IMAP server. And I have to admit that I am having all kinds of troubles 
figuring out how to do so. Much of the documentation seems to be very 
incomplete, poorly written, and has lots of grammatical errors making 
comprehension even more challenging. That said, I have made progress and 
even have managed to get the new server up and running, albeit without 
enabling any of the IMAP, SMTP or POP3 services yet. I will report where 
I am at, troubles I have encountered, and what I have done to workaround 
things or am just plain stumped.  If this is not the right forum for me 
to report/ask questions about installing 3.0 please redirect me to the 
right place.


1. The first major problem I have encountered is that according to the 
instructions at https://james.apache.org/server/3/config-system.html  it 
talks about the spring-server.xml file and states


"In James distribution, the spring files are located under conf/context 
folder and splitted into a main file (james-server-context.xml) which 
imports 4 other files (1 per mailbox type): 
james-mailbox-jcr-context.xml, james-mailbox-jpa-context.xml, 
james-mailbox-maildir-context.xml, james-mailbox-memory-context.xml."


I cannot locate any of these files and it appears that they were not 
included in the zip file that I downloaded. It appears, from other docs 
that I may need to configure these in regards to my database setup, but 
for now I am just punting on this and assuming that there is a default 
configuration in the jar files somewhere else.



2. This second issue is mostly a heads up/FYI but it cost me a lot of 
time trying to figure out what the problems were and track down so this 
ought to get fixed. On the website at 
https://james.apache.org/server/3/config.html  it states -


"We ship with default configuration (embedded in jars) and -template 
files you can use to override the default configuration. Simply copy in 
conf folder *-template.xml to *.xml (example: smtpserver-template.xml to 
smtpserver.xml), and change in *.xml the settings to map your needs."


I do not believe this is true. There are a number of these template 
configuration files for which I HAD to remove the "-template" portion of 
the name in order for me to get the server up and running. So I am going 
to presume that for at least the following set of these config files 
there is NOT a default. (Incidentally, it is very difficult to grok the 
exception messages and stack walk backs to understand what was going 
wrong and I am not certain that I have captured all of these in my 
report here...)


indexer-template.xml
quota-template.xml
events-template.xml
managesieveserver-template.xml


3. Another heads up/FYI. On the website at 
https://james.apache.org/server/3/config-mailrepositorystore.html it 
states -


"If the administrator wants to configure a database other than MySQL, it 
will be necessary to add the jar or zip file containing the JDBC driver 
classes to the lib subdirectory of the installation directory."


Again I am going to say this is not true. (Maybe for Derby?) I am going 
to want to use MySQL as I have it tied in with my Apache Tomcat server 
to better manage mail users and list members via a servlet. I had a 
devil of a time figuring out that I needed the 
mysql-connector-java-5.1.28-bin.jar and where to find it. But without 
it, trying to get the server up and running failed. It would be very 
helpful to mention where one can get connectors for the different kinds 
of databases commonly used/supported, IMHO.



4. Now I am stuck on this last issue, trying to grok the instructions at 
http://james.apache.org/server/3/upgrade-2.3.html First of all someone 
needs to re-write this page, the English and grammar is pretty bad and 
confusing.  My first issue is that in 2.3.1 I used the MySQL database to 
store user information. There is no description of what I need to do to 
migrate said information into 3.0. The example and file shows how to do 
this if one were using files to store user information, but not for a 
database.


I am confused however, do I even need to do this? My experimentation 
seems to imply that I do, since I cannot get the CLI or JMX console to 
correctly respond to a listusers command, but why? Did the database 
schema change for 3.0? And if I do manage to get this migration step to 
work, will I ruin the database and make it unusable for James 2.3.1 to 
use it, should I need to drop back to it?


Also, it is not totally clear what I need to do about the actual mail 
store. Do I just copy the user directories over into the 3.0 server 
space? From what I am reading it does not sound like it will be that 
simple... So I need the details of what to do here...


One last thought, I have never used a JMX console before, it might be 
helpful to supply a little more details/examples for us newbies 

Re: James 3.0 roadmap

2016-10-23 Thread Marc Chamberlin
Hi Benoit -  (I will follow your precedent of top posting.)  I didn't 
mean to imply that the tasks associated with the completion of the James 
project weren't documented somewhere, I kinda assumed they were. If you 
were to present the chart showing progress, with each task being a link 
to where that task is documented, it just makes it a lot easier for a 
user/viewer to discover and read more about what that particular task 
involves.


 Marc...

On 10/22/2016 11:01 PM, Benoit Tellier wrote:

Most tasks already have issues on the Jira. If not, we create it as soon
as we start working on it.

Note that some tasks are not related to the Apache project, but we still
want to do it before the release. Hence we do not introduce issues about it.

For things that are related with Gatling, we started a new project :
https://github.com/linagora/james-gatling . You can have a look to the
issues of this project.


Regards,

Benoit

Le 22/10/2016 à 16:32, Marc Chamberlin a écrit :

On 10/21/2016 6:31 AM, Benoit Tellier wrote:

Hi everyone,


As part of our work on James 3.0, we introduced a graph showing our
advancement.

You can consult it here :

https://rawgit.com/linagora/james-project/master/james3-roadmap-progress/index.html


We will update this graph after each of our Kanban review (~ every 2
weeks).

Regards,

Benoit Tellier


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



Could you make each of the tasks shown into a link pointing to a more
detailed description of what that particular task is about?

 Marc


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





--
"The Truth is out there" - Spooky


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



Re: Mockup proposal for a promoting James website

2016-10-23 Thread Marc Chamberlin
Hi Benoit -  (I will follow your precedent of top posting.) No, the 
trouble with the current organization of the James website is that the 
only way to navigate it is to use the hierarchical tree structured table 
of contents that is found on the left hand side of the pages. This can 
make it difficult to discover where a particular topic is addressed, 
especially if/when that topic is found in a location that the developer 
thought was appropriate, but not intuitive in the mind of a user.  For 
example, I wanted to discover what mailets are provided with James. My 
initial guess was to navigate to the "User Manual" > Configure James >  
Mailet Container  and almost missed the tiny link provided/embedded at 
the bottom of the page to the list of mailets.  Then and only then did I 
discover that this list was located in a surprising location under 
"Developers Corner" which I had assumed would be topics strictly of 
interest to James developers, not to users.  (I am NOT criticizing this 
particular layout, just using it as an example of how using a tree 
hierarchy must be navigated, sometimes through many many branches, in 
order to discover where a particular topic is documented.)


Using search engines can further complicate matters, especially on sites 
such as James where multiple versions of documents are stored. One can 
easily and inadvertently land on a document that is inappropriate for 
the version of the James that he/she is using, and waste a lot of time 
chasing a wrong answer. (I know, I have done it myself)


What a site map is/does is to flatten the presentation of an entire 
website into a single page which contains links to EVERY web page 
associated with that website. (including orphaned web pages which 
sometimes crop up) That both makes it easy to see a high level view of 
the entire website, all at once, and provides a lot of additional clues 
as to the organizational model and where one may find documents on a 
particular subject. One measure of the ease of use of a website is to 
ask how many clicks does it take, to discover the answer to a question 
or reach a goal on that website. A site map can reduce this to a single 
click. Site maps are often used on large complex web sites and I am sure 
you can find many examples. Also I have seen tools that develop a site 
map automatically, some do it externally by chasing links, others do it 
internally on the servers by chasing documents and directories also, 
although these tools do have their limitations and shortcomings 
especially if/when a web site serves dynamic content.


I am not asking that James use a site map in lieu of the hierarchical 
table of contents it now has, just in addition to it.


 Marc...

On 10/22/2016 11:05 PM, Benoit Tellier wrote:

Hi marc,

This is the landing page for james.apache.org

The Documentation link will point to today's james.apache.org's content,
achieving what you want. (Horizontal nav bar will allow to reach each
and every subproject documentation, and James logo will get you back to
the first page)

Were you suggesting something like this?

Regards,

Benoit

Le 22/10/2016 à 16:29, Marc Chamberlin a écrit :

On 10/18/2016 6:42 AM, Laura Royet wrote:

Hi everyone,

I have been working for a few weeks now on a promoting website for James.
Today, I would like to share with you my proposal mockup : please see
file attached in https://issues.apache.org/jira/browse/JAMES-1837

The aim is to have this page as the James website home page.
In this way, a user interested by James (curious developers and
network administrators for example) will directly access tofundamental
information about the product and could try it thanks to the Getting
Started part.
He will also find quickly all the links to contact James Community.

And what about the current James website? Actually, the marketing
website menu bar contains the link "Documentation" leading to it.
For your information, I am currently working on cleaning the existing
website in order not to have duplicates with the marketing page and
also in order to adopt the same graphic charter.

Thanks in advance for your feedbacks.

Regards,


Hi Laura -  May I suggest adding a link to a site map so that all the
all the web pages associated with and maintained by Apache James are
discover-able from a single point? The site map(s) should be organized
by version releases also, which is often the drawback of using Google
searches that can lead to finding outdated information..

  Marc...



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





--
"The Truth is out there" - Spooky


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



Re: Problems building James/Cassandra backend

2016-10-22 Thread Marc Chamberlin

On 10/4/2016 2:59 PM, Marc Chamberlin wrote:

On 10/4/2016 3:07 AM, Matthieu Baechler wrote:


Ok, let's talk about the easy solution now : on master, the 
README.adoc contains everything you need to start a james server 
using docker-compose.


Here is an excerpt :

First, you need to build the image:
$ docker-compose -f dockerfiles/run/docker-compose.yml build

Then, you just have to start the services:
$ docker-compose -f dockerfiles/run/docker-compose.yml up

It should just work, let us know if it's not the case.

UH well no...  Looks like something stepped on itself, probably an 
easy fix?



docker-compose -f dockerfiles/run/docker-compose.yml up
run_elasticsearch_1 is up-to-date
Starting run_cassandra_1
ERROR: driver failed programming external connectivity on endpoint 
run_cassandra_1 
(e788b9729497516191dca524a3848390468c8e0cccfb86aaebf548e9c3c75726): 
Bind for 0.0.0.0:9042 failed: port is already allocated


Marc...


Hi - I haven't heard back from Matthieu about this problem, if he still 
around? If not, does anyone got an idea on how to solve this issue?


Thanks in advance,Marc...


--
"The Truth is out there" - Spooky


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



Re: James 3.0 roadmap

2016-10-22 Thread Marc Chamberlin

On 10/21/2016 6:31 AM, Benoit Tellier wrote:

Hi everyone,


As part of our work on James 3.0, we introduced a graph showing our
advancement.

You can consult it here :

https://rawgit.com/linagora/james-project/master/james3-roadmap-progress/index.html

We will update this graph after each of our Kanban review (~ every 2 weeks).

Regards,

Benoit Tellier


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




Could you make each of the tasks shown into a link pointing to a more 
detailed description of what that particular task is about?


Marc

--
"The Truth is out there" - Spooky


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



Re: Mockup proposal for a promoting James website

2016-10-22 Thread Marc Chamberlin

On 10/18/2016 6:42 AM, Laura Royet wrote:

Hi everyone,

I have been working for a few weeks now on a promoting website for James.
Today, I would like to share with you my proposal mockup : please see 
file attached in https://issues.apache.org/jira/browse/JAMES-1837


The aim is to have this page as the James website home page.
In this way, a user interested by James (curious developers and 
network administrators for example) will directly access tofundamental 
information about the product and could try it thanks to the Getting 
Started part.

He will also find quickly all the links to contact James Community.

And what about the current James website? Actually, the marketing 
website menu bar contains the link "Documentation" leading to it.
For your information, I am currently working on cleaning the existing 
website in order not to have duplicates with the marketing page and 
also in order to adopt the same graphic charter.


Thanks in advance for your feedbacks.

Regards,



Hi Laura -  May I suggest adding a link to a site map so that all the 
all the web pages associated with and maintained by Apache James are 
discover-able from a single point? The site map(s) should be organized 
by version releases also, which is often the drawback of using Google 
searches that can lead to finding outdated information..


 Marc...


--
"The Truth is out there" - Spooky


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



Re: Problems building James/Cassandra backend

2016-10-06 Thread Marc Chamberlin

On 10/4/2016 2:59 PM, Marc Chamberlin wrote:

On 10/4/2016 3:07 AM, Matthieu Baechler wrote:


Ok, let's talk about the easy solution now : on master, the 
README.adoc contains everything you need to start a james server 
using docker-compose.


Here is an excerpt :

First, you need to build the image:
$ docker-compose -f dockerfiles/run/docker-compose.yml build

Then, you just have to start the services:
$ docker-compose -f dockerfiles/run/docker-compose.yml up

It should just work, let us know if it's not the case.

UH well no...  Looks like something stepped on itself, probably an 
easy fix?



docker-compose -f dockerfiles/run/docker-compose.yml up
run_elasticsearch_1 is up-to-date
Starting run_cassandra_1
ERROR: driver failed programming external connectivity on endpoint 
run_cassandra_1 
(e788b9729497516191dca524a3848390468c8e0cccfb86aaebf548e9c3c75726): 
Bind for 0.0.0.0:9042 failed: port is already allocated


Marc...



Hi Matthiew, James server users -

Matthiew I fooled around a bit with docker-compose.yml and tried 
changing the ports for cassandra to use a different port "9043:9042" 
just to see if that would make a difference. (Mind you I DO NOT know 
what I am doing, just experimenting)  That change actually got 
things to go further, cassandra seemed to start and even James got 
started. But it did not complete and eventually I got another exception 
- NoHostAvailableException and it clearly was complaining about port 
9042. So obviously that was not the right answer either. :-D   I will 
await your reply about the above mentioned error and stop fooling around 
with this. Perhaps go hit the manuals as well...


   Marc...


--
"The Truth is out there" - Spooky


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



Re: Problems building James/Cassandra backend

2016-10-04 Thread Marc Chamberlin

On 10/4/2016 3:07 AM, Matthieu Baechler wrote:


Ok, let's talk about the easy solution now : on master, the 
README.adoc contains everything you need to start a james server using 
docker-compose.


Here is an excerpt :

First, you need to build the image:
$ docker-compose -f dockerfiles/run/docker-compose.yml build

Then, you just have to start the services:
$ docker-compose -f dockerfiles/run/docker-compose.yml up

It should just work, let us know if it's not the case.


UH well no...  Looks like something stepped on itself, probably an easy fix?


docker-compose -f dockerfiles/run/docker-compose.yml up
run_elasticsearch_1 is up-to-date
Starting run_cassandra_1
ERROR: driver failed programming external connectivity on endpoint 
run_cassandra_1 
(e788b9729497516191dca524a3848390468c8e0cccfb86aaebf548e9c3c75726): 
Bind for 0.0.0.0:9042 failed: port is already allocated


Marc...


--
"The Truth is out there" - Spooky


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



Re: Problems building James/Cassandra backend

2016-10-03 Thread Marc Chamberlin

On 10/3/2016 12:13 PM, Matthieu Baechler wrote:

Le 03/10/2016 à 20:57, Marc Chamberlin a écrit :

[...]


I had to modify the command to start the James server slightly to 
point the jar file to what I believe is the correct location. Please 
verify that my command I issued is correct. That resulted in what 
appears to be 6 repetitions of an error that seems to center around 
"cassandra.port" Because these walkbacks are so long I will only show 
the first one. Got any ideas on what I have done wrong? Marc.


bigbang:/james/docker/james-project # java 
-Dworking.directory=dockerfiles/run/guice/destination/conf -jar 
server/container/guice/cassandra-guice/target/james-server-cassandra-guice-3.0.0-beta5-SNAPSHOT.jar 

The error is really not helpful but it looks like you you should 
define working.directory to dockerfiles/run/guice/destination/ or even 
$PWD/dockerfiles/run/guice/destination/ (removing trailing conf name 
and maybe providing a absolute path).


Maybe I am making progress, I removed the trailing conf and modified the 
command to start the server as shown -


java -Dworking.directory=$PWD/dockerfiles/run/guice/destination -jar 
server/container/guice/cassandra-guice/target/james-server-cassandra-guice-3.0.0-beta5-SNAPSHOT.jar


That seems to make it happy, but then I tried to add my domain using the 
following command and got a connection refused error -


java -jar 
server/container/cli/target/james-server-cli-3.0.0-beta5-SNAPSHOT.jar 
-h 127.0.0.1 -p   adddomain mydomain.com
Error connecting to remote JMX agent : Failed to retrieve RMIServer 
stub: javax.naming.ServiceUnavailableException [Root exception is 
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; 
nested exception is:

java.net.ConnectException: Connection refused]




Out of curiosity, why don't you run the docker image of James ?


Uh Because I don't know how???  I am basically following the 
instructions on the website at 
https://james.apache.org/server/3/quick-start-cassandra.html

I have gotten to Step 5.  Did I take a wrong turn somewhere?

   Marc


--
"The Truth is out there" - Spooky


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



Re: Problems building James/Cassandra backend

2016-10-03 Thread Marc Chamberlin

On 10/3/2016 1:02 AM, Matthieu Baechler wrote:


My first question relates to the cassandra.properties file. According 
to the instructions at 
https://james.apache.org/server/3/config-cassandra.html



*cassandra.ip*
Is the IP (or host) of the Cassandra used. (cluster is not yet
supported)

Am I suppose to assign the internal private or an external public IP 
address for the host that Cassandra is running on? If external, does 
this host have to be in a DMZ?   I don't know how this is going to be 
used hence the reason I am asking...  The version of the 
cassandra.properties file that I got when I cloned the GIT repository 
had it pre-configured as  cassandra.ip = cassandra which I am sure 
must be wrong but then again I have little experience with Docker so 
I could be wrong...
So the documentation uses --link docker option, it creates to right 
alias into james container so that cassandra resolves to cassandra IP.
The cool thing about that is : cassandra port is not routed outside 
docker private network so you don't have to care too much about 
cassandra security.


Thanks once again for your help Matthieu. I made an attempt to go ahead 
and start the James server using my best guesses on how the 
configuration files should be set up. Unfortunately I hit another snag, 
see below. I can send you the contents of my configuration files if you 
need to see them. For the cassandra.properties I set the cassandra.ip 
back to cassandra.ip = cassandra as it was originally configured.  (When 
I got the stack exception/walkback that you see below I also tried, just 
for grins, a few other guesses but nothing I tried worked so decided to 
leave it alone and get help.)




My second question concerns setting up the SMTP server to use 
Authentication. Again according to the instructions at 
https://james.apache.org/server/3/config-smtp-lmtp.html it says -




... (stuff deleted from my previous emails)

Depending on your domain backend, you can define statically the 
domains into domainlist.xml (I guess servernames got replaced by 
domainnames) or dynamically by calling administration API.


With cassandra, we rather use dynamic config, so take a look at "how 
to call james-cli" in the documentation, there's an API like 
"adddomain" in it.


OK. I will punt on this for now and try to configure the domain names 
dynamically when I get the server up and running


I had to modify the command to start the James server slightly to point 
the jar file to what I believe is the correct location. Please verify 
that my command I issued is correct. That resulted in what appears to be 
6 repetitions of an error that seems to center around "cassandra.port" 
Because these walkbacks are so long I will only show the first one. Got 
any ideas on what I have done wrong? Marc.


bigbang:/james/docker/james-project # java 
-Dworking.directory=dockerfiles/run/guice/destination/conf -jar 
server/container/guice/cassandra-guice/target/james-server-cassandra-guice-3.0.0-beta5-SNAPSHOT.jar
Exception in thread "main" com.google.inject.ProvisionException: 
Unable to provision, see the following errors:


1) Error in custom provider, java.util.concurrent.ExecutionException: 
java.util.NoSuchElementException: 'cassandra.port' doesn't map to an 
existing object
  at 
org.apache.james.modules.mailbox.CassandraSessionModule.provideCluster(CassandraSessionModule.java:76) 
(via modules: com.google.inject.util.Modules$CombinedModule -> 
com.google.inject.util.Modules$CombinedModule -> 
org.apache.james.modules.mailbox.CassandraSessionModule)
  at 
org.apache.james.modules.mailbox.CassandraSessionModule.provideCluster(CassandraSessionModule.java:76) 
(via modules: com.google.inject.util.Modules$CombinedModule -> 
com.google.inject.util.Modules$CombinedModule -> 
org.apache.james.modules.mailbox.CassandraSessionModule)

  while locating com.datastax.driver.core.Cluster
for parameter 1 at 
org.apache.james.modules.mailbox.CassandraSessionModule.provideSession(CassandraSessionModule.java:68)
  at 
org.apache.james.modules.mailbox.CassandraSessionModule.provideSession(CassandraSessionModule.java:68) 
(via modules: com.google.inject.util.Modules$CombinedModule -> 
com.google.inject.util.Modules$CombinedModule -> 
org.apache.james.modules.mailbox.CassandraSessionModule)
  at 
org.apache.james.modules.mailbox.CassandraSessionModule.provideSession(CassandraSessionModule.java:68) 
(via modules: com.google.inject.util.Modules$CombinedModule -> 
com.google.inject.util.Modules$CombinedModule -> 
org.apache.james.modules.mailbox.CassandraSessionModule)

  while locating com.datastax.driver.core.Session
for parameter 0 at 
org.apache.james.mailbox.cassandra.mail.CassandraUidProvider.(CassandraUidProvider.java:65)
  at 
org.apache.james.modules.mailbox.CassandraMailboxModule.configure(CassandraMailboxModule.java:63) 
(via modules: com.google.inject.util.Modules$CombinedModule -> 
com.google.inject.util.Modules$CombinedModule -> 

Re: Problems building James/Cassandra backend

2016-10-02 Thread Marc Chamberlin

On 9/26/2016 12:59 AM, Matthieu Baechler wrote:

Le 24/09/2016 à 02:05, Marc Chamberlin a écrit :

On 9/23/2016 1:17 AM, Matthieu Baechler wrote:

Hi Marc,

Thank you for reporting about that.

I created an issue for that : 
https://issues.apache.org/jira/browse/JAMES-1827


I tried to fix the documentation here : 
https://github.com/linagora/james-project/pull/415


Could you check that my PR fixes your problem ?

Regards,



Hi Matthiew,  Thanks for the update, I got further, at least I got 
Maven to compile the Guice Cassandra project. But when I attempted to 
deploy it, using your new fix, things didn't go well -


bigbang:/james/docker/james-project # docker run --name=cassandra 
cassandra:2.2.3

Error response from daemon: 404 page not found

I just tested that and it works, could you retry ?



Hi Matthiew and the rest of the James server-users list -

Sorry for my delay in replying, I got sidelined by TLS/SSL issues and 
had to focus on that for awhile. Now back to Apache-James - Yes your PR 
did get me further and I now have both cassandra and elasticsearch 
running under Docker. I am attempting to wade through the configuration 
setup now and have a couple of questions that I need help with. First 
let me say that I am editing the .properties and .xml files under 
dockerfiles/run/guice/destination/conf which is my best guess as to what 
I need to be doing?


My first question relates to the cassandra.properties file. According to 
the instructions at https://james.apache.org/server/3/config-cassandra.html



*cassandra.ip*
Is the IP (or host) of the Cassandra used. (cluster is not yet
supported)

Am I suppose to assign the internal private or an external public IP 
address for the host that Cassandra is running on? If external, does 
this host have to be in a DMZ?   I don't know how this is going to be 
used hence the reason I am asking...  The version of the 
cassandra.properties file that I got when I cloned the GIT repository 
had it pre-configured as  cassandra.ip = cassandra which I am sure must 
be wrong but then again I have little experience with Docker so I could 
be wrong...


My second question concerns setting up the SMTP server to use 
Authentication. Again according to the instructions at 
https://james.apache.org/server/3/config-smtp-lmtp.html it says -


Configuring Apache James Server for Authentication SMTP is a 
multi-step process. It requires several adjustments of the 
smtpserver.xml. To enable SMTP AUTH, do the following:


 1. As mentioned above, SMTP AUTH requires that Apache James Server be
able to distinguish between mail intended for local delivery and
mail intended for remote delivery. Apache James Server makes this
determination by matching the domain to which the mail was sent
against the  element of the Apache James Server
configuration block. Any local domains should be explicitly listed
as  elements in this section.

My trouble is I cannot figure out where the  elements are 
to be configured. I grepped through all the config files (basically 
everything downloaded from the GIT repo) and cannot find any file 
containing a section for defining servernames. (I did find a number of 
references to it however...) So where is this servernames section hiding?


Thanks as always for helping guide me out of the woods... I am sure I 
will have more questions but don't want to proceed any further until I 
get the configuration done correctly.  Marc...


--
"The Truth is out there" - Spooky



Re: Problems building James/Cassandra backend

2016-09-23 Thread Marc Chamberlin

On 9/23/2016 1:17 AM, Matthieu Baechler wrote:

Hi Marc,

Thank you for reporting about that.

I created an issue for that : 
https://issues.apache.org/jira/browse/JAMES-1827


I tried to fix the documentation here : 
https://github.com/linagora/james-project/pull/415


Could you check that my PR fixes your problem ?

Regards,



Hi Matthiew,  Thanks for the update, I got further, at least I got Maven 
to compile the Guice Cassandra project. But when I attempted to deploy 
it, using your new fix, things didn't go well -


bigbang:/james/docker/james-project # docker run --name=cassandra 
cassandra:2.2.3

Error response from daemon: 404 page not found


So I decided to try an run this as originally specified to see what 
would happen...


bigbang:/james/docker/james-project # docker run --name=cassandra 
cassandra


which gave me a whine about it being "Unable to find image 
'cassandra:latest' locally" at which point it said -


latest: Pulling from library/cassandra

and is happily downloading a whole bunch of stuff.  Please forgive the 
blind man here for he not know-est what he does-est


Marc...



--
"The Truth is out there" - Spooky


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



Problems building James/Cassandra backend

2016-09-22 Thread Marc Chamberlin
Hi - I was attempting to follow the quick start for Cassandra backend 
guide at https://james.apache.org/server/3/quick-start-cassandra.html 
and ran into troubles in Step 3 - Compile.  Running on OpenSuSE 42.1 
(Leap) and got the following warnings/errors -


Downloaded: 
https://repo.maven.apache.org/maven2/biz/aQute/bnd/bndlib/2.1.0/bndlib-2.1.0.jar 
(1356 KB at 18.2 KB/sec)

[WARNING]
[WARNING] Some problems were encountered while building the effective 
model for org.apache.james:apache-mailet-standard:bundle:2.5.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' 
must be unique: org.mockito:mockito-core:jar -> duplicate declaration of 
version (?) @ org.apache.james:apache-mailet-standard:[unknown-version], 
/james/docker/james-project/mailet/standard/pom.xml, line 84, column 21

[WARNING]
[WARNING] It is highly recommended to fix these problems because they 
threaten the stability of your build.

[WARNING]
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.

[WARNING]
[ERROR] [ERROR] Could not find the selected project in the reactor: 
server/container/cassandra-guice @
[ERROR] Could not find the selected project in the reactor: 
server/container/cassandra-guice -> [Help 1]

[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException



Any ideas what when wrong and what I need to do?   Thanks in 
advance...   Marc...




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



TLS/SSL on James 2.3.2

2015-12-27 Thread Marc Chamberlin
Hi - I am running a James 2.3.2 server on OpenSuSE12.3 and am running 
into an issue with using TLS/SSL connections. In particular clients 
using Mozilla Thunderbird can no longer connect on those ports to pick 
up or send emails. (This use to work fine and I have not changed my 
James configuration file. I just now updated my keystore file but that 
made no difference. Thunderbird issues a complaint -


SSL received a weak ephemeral Diffie-Hellman key in Server Key Exchange 
handshake message.


(Error code: ssl_error_weak_server_ephemeral_dh_key)

Anyone got any ideas on what one is to do to solve this issue? Thanks in 
advance...   Marc...


--
"The Truth is out there" - Spooky


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



Re: Problem with sending email to Yahoo, MSN, Hotmail and AOL accounts

2015-09-24 Thread Marc Chamberlin
Thanks Jerry for taking the time to reply, much appreciated! I ran the 
tests at mail-tester.com and of course that has lead me to come back 
here and ask for further help! It appears I have a couple of serious 
issues and a couple of minor ones, but I have not found any joy in 
solving all of them by searching on the internet. The SpamAssassin 
reported the following -


-1.539FSL_HELO_BARE_IP_2IP used in the HELO request
The hostname should be a domain name, not an IP address

-0.001MSGID_FROM_MTA_HEADERMessage-Id was added by a relay

which I don't know how to solve. The Authentication tests reported -

 Your message is not signed with DKIM
DomainKeys Identified Mail (DKIM) is a method for associating a domain 
name to an email message, thereby allowing a person, role, or 
organization to claim some responsibility for the message.


I found the JDKIM project for the Apache James server but I am unable to 
find any instructions on how to install, configure and use it! Does 
anyone have a good pointer to documentation? I read everything I could 
find on the Apache web site but only found a couple of bits and pieces 
of info, nothing I could grok however. Will it even work with my version 
of James - 2.3.2?


There was one other minor problem reporting that I do not have a DMARC 
record. But I think I understand how to solve that issue (by adding a 
TXT RR record to my DNS server) once I get DKIM working...


Thanks again in advance for helping me find a way out of these 
woodsMarc...



 On 09/24/2015 02:27 PM, Jerry Malcolm wrote:

Hi, Marc,

I have had many problems with gmail, yahoo, hotmail, etc bouncing my 
emails.  To say they are picky is an understatement.  If there is ANY 
problem with the structure of your email and/or your email setup, 
domain, dns, server IP address, and a bunch of other things , they are 
going to bounce it (with zero useful info to explain why). They also 
bounce according to how many emails you've sent depending on how 
'spammy' they think the email is.  They may let a few in. But if you 
send 20 'suspect' emails in a day, they'll start bouncing for a day or 
so, then let it start passing thru again.


I have found that the best solution is to make sure your emails and 
everything related to your outbound server are all completely clean 
according to spam analysis criteria.  A good place to start is 
mail-tester.com <http://www.mail-tester.com/>   Go to the web site and 
they'll give you a temp email address that you can send an email to.  
After you send it, click the link to analyze the mail.  They will 
grade your email including the sending server parameters and tell you 
how 'good' your email is.  With detailed explanations of what is 
wrong.  My initial score was pretty bad. It took some time and was a 
royal pain to fix all of the issues. But I finally got the coveted 
100% grade.  It appears gmail and others are finally happy with me and 
are letting my emails thru.


Jerry

On 9/23/2015 11:32 PM, Marc Chamberlin wrote:
Hi, I am running James 2.3.2 on a Linux (openSuSE 12.3) and recently 
encountered a problem that I am unable to resolve. I use the maillist 
mailet to manage a mail list for a number of users and now all emails 
being sent by the users to accounts at AOL, Yahoo, MSN, GMail, and 
Hotmail are bouncing. This is something new and I have not made any 
changes to James's configuration for a very long time. I have checked 
forward checking on reverse DNS look ups both via dig and on several 
different DNS checking websites and that is working correctly. The 
log files don't give me much help as far as I can decipher them, the 
mailet logs just indicate that there was a problem such as -


23/09/15 16:03:20 INFO  James.Mailet: RemoteDelivery: Exception 
delivering message (Mail1442594207467-7122-!518000-to-hotmail.com) - 
[EOF]
23/09/15 16:03:20 INFO  James.Mailet: RemoteDelivery: Temporary 
exception delivering mail 
(Mail1442594207467-7122-!518000-to-hotmail.com:
23/09/15 16:03:20 INFO  James.Mailet: RemoteDelivery: Bouncing 
message Mail1442594207467-7122-!518000-to-hotmail.com after 25 retries
23/09/15 16:03:20 INFO  James.Mailet: RemoteDelivery: Attempting 
delivery of Mail1442594207467-7122-!518000-to-msn.com to host 
mx4.hotmail.com. at 65.55.37.120 for addresses [some...@msn.com, 
someonee...@msn.com]


This log response varies a bit depending on the exact mail server 
that was the target of the email but looks similar enough to make me 
think all these failures are related.


I cannot make much sense out of what is stored in the other log files 
that relate to this particular problem though I do see a LOT of 
exceptions being reported with stack walkback traces. I admit I do 
not know enough about these log files to be able to make any sort of 
correlation between the errors I see in the mailet log files and 
these other errors being reported in other log files. So I am out of 
my depths, any kind gur

Problem with sending email to Yahoo, MSN, Hotmail and AOL accounts

2015-09-23 Thread Marc Chamberlin
Hi, I am running James 2.3.2 on a Linux (openSuSE 12.3) and recently 
encountered a problem that I am unable to resolve. I use the maillist 
mailet to manage a mail list for a number of users and now all emails 
being sent by the users to accounts at AOL, Yahoo, MSN, GMail, and 
Hotmail are bouncing. This is something new and I have not made any 
changes to James's configuration for a very long time. I have checked 
forward checking on reverse DNS look ups both via dig and on several 
different DNS checking websites and that is working correctly. The log 
files don't give me much help as far as I can decipher them, the mailet 
logs just indicate that there was a problem such as -


23/09/15 16:03:20 INFO  James.Mailet: RemoteDelivery: Exception 
delivering message (Mail1442594207467-7122-!518000-to-hotmail.com) - [EOF]
23/09/15 16:03:20 INFO  James.Mailet: RemoteDelivery: Temporary 
exception delivering mail (Mail1442594207467-7122-!518000-to-hotmail.com:
23/09/15 16:03:20 INFO  James.Mailet: RemoteDelivery: Bouncing message 
Mail1442594207467-7122-!518000-to-hotmail.com after 25 retries
23/09/15 16:03:20 INFO  James.Mailet: RemoteDelivery: Attempting 
delivery of Mail1442594207467-7122-!518000-to-msn.com to host 
mx4.hotmail.com. at 65.55.37.120 for addresses [some...@msn.com, 
someonee...@msn.com]


This log response varies a bit depending on the exact mail server that 
was the target of the email but looks similar enough to make me think 
all these failures are related.


I cannot make much sense out of what is stored in the other log files 
that relate to this particular problem though I do see a LOT of 
exceptions being reported with stack walkback traces. I admit I do not 
know enough about these log files to be able to make any sort of 
correlation between the errors I see in the mailet log files and these 
other errors being reported in other log files. So I am out of my 
depths, any kind guru want to help me resolve this?


Thanks in advance..Marc...

--
"The Truth is out there" - Spooky


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



Re: Need help getting james-3.0.beta5-SNAPSHOT up and going

2014-06-10 Thread Marc Chamberlin
I decided to start over and reinstall James from scratch and do a 
minimal amount of configuration before starting James, so for the moment 
ignore my previous email requesting help. Seems I now have a different 
problem to resolve first. That said, I downloaded this version of James 
(I had to guess that it is the latest snapshot  ) from the repository at


 
https://repository.apache.org/content/repositories/snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/

and the version I downloaded was -

apache-james-3.0-beta5-20121229.091821-854-app.tar.gz 
http://repository.apache.org/content/repositories/snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/apache-james-3.0-beta5-20121229.091821-854-app.tar.gz


Next, I simply renamed 3 of the configuration template files for 
imapserver, pop3server, and smtpserver .conf files so as to remove the 
-template part from their names. Started up James, and I get the 
following error message in wrapper.log -


INFO   | jvm 1| 2014/06/10 09:25:01 | ERROR 09:25:01,679 | 
james.mailprocessor | Unable to init matcher All: 
org.apache.mailet.MailetException: Could not load matcher (All) 
(java.lang.ClassNotFoundException: org.apache.james.transport.matchers.All)
INFO   | jvm 1| 2014/06/10 09:25:01 | 
org.apache.mailet.MailetException: Could not load matcher (All) 
(java.lang.ClassNotFoundException: org.apache.james.transport.matchers.All)
INFO   | jvm 1| 2014/06/10 09:25:01 | at 
org.apache.james.container.spring.bean.factory.mailetcontainer.AbstractLoaderBeanFactory.loadFailed(AbstractLoaderBeanFactory.java:60)
INFO   | jvm 1| 2014/06/10 09:25:01 | at 
org.apache.james.container.spring.bean.factory.mailetcontainer.MatcherLoaderBeanFactory.getMatcher(MatcherLoaderBeanFactory.java:55)
INFO   | jvm 1| 2014/06/10 09:25:01 | at 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.parseConfiguration(AbstractStateMailetProcessor.java:346)
INFO   | jvm 1| 2014/06/10 09:25:01 | at 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.init(AbstractStateMailetProcessor.java:119)
INFO   | jvm 1| 2014/06/10 09:25:01 | at 
org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor.init(CamelMailetProcessor.java:101)
INFO   | jvm 1| 2014/06/10 09:25:01 | at 
org.apache.james.mailetcontainer.impl.camel.CamelCompositeProcessor.createMailProcessor(CamelCompositeProcessor.java:103)
INFO   | jvm 1| 2014/06/10 09:25:01 | at 
org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.init(AbstractStateCompositeProcessor.java:181)
INFO   | jvm 1| 2014/06/10 09:25:01 | at 
org.apache.james.mailetcontainer.impl.camel.CamelCompositeProcessor.init(CamelCompositeProcessor.java:66)
INFO   | jvm 1| 2014/06/10 09:25:01 | at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1| 2014/06/10 09:25:01 | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)



I did some Googling on this error and found it had been reported about a 
year ago, but the apparent solution was to download the latest version 
of James (at that time) and use it. Well, I think I have downloaded the 
latest version, since we are now a year later than when this error was 
initially reported, so now what do I do? Thanks for any help offered, in 
advance...


 Marc...




On 06/09/2014 04:37 PM, Marc Chamberlin wrote:

Hello -

I am trying to get the latest beta version of James running on an 
openSuSE13.1 x64 system and running into some troubles. Wonder if some 
kind guru can translate this into plain English for me. I suspect it 
may have something to do with my domainlist.conf file but I have tried 
all kinds of permutations with no joy so far... Anywise on startup I 
am getting the following messages in the wrapper.log file, and going 
on the assumption that the first error message is the best place to 
start resolving the problem, I will only include the initial messages 
and not the whole file. (unless someone asks me for it...)






--
The Truth is out there - Spooky



Need help getting james-3.0.beta5-SNAPSHOT up and going

2014-06-09 Thread Marc Chamberlin

Hello -

I am trying to get the latest beta version of James running on an 
openSuSE13.1 x64 system and running into some troubles. Wonder if some 
kind guru can translate this into plain English for me. I suspect it may 
have something to do with my domainlist.conf file but I have tried all 
kinds of permutations with no joy so far... Anywise on startup I am 
getting the following messages in the wrapper.log file, and going on the 
assumption that the first error message is the best place to start 
resolving the problem, I will only include the initial messages and not 
the whole file. (unless someone asks me for it...)


My last attempt with domainlist.conf looked like this, and I have tried 
using both the JPA and XML segments with no joy -


!-- JPA implementation for DomainList --
domainlist class=org.apache.james.domainlist.jpa.JPADomainList
   autodetecttrue/autodetect
   autodetectIPtrue/autodetectIP
!--
   defaultDomainmydomain.com/defaultDomain
--
   defaultDomainlocalhost/defaultDomain
/domainlist


!-- XML based implementation for DomainList --

!--
domainlist class=org.apache.james.domainlist.xml.XMLDomainList
   domainnames
   domainnamemydomain.com/domainname
   domainnameHHH-Server.mydomain.com/domainname
   domainnamelocalhost/domainname
   /domainnames
   autodetectfalse/autodetect
   autodetectIPtrue/autodetectIP
   defaultDomainlocalhost/defaultDomain
/domainlist


My guess is this is the main problem -

INFO   | jvm 1| 2014/06/09 16:14:20 | WrapperSimpleApp: Encountered 
an error running main: 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'mailprocessor': Injection of resource dependencies 
failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'mailetcontext': Injection of resource dependencies 
failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'domainlist': Invocation of init method failed; nested 
exception is openjpa-2.2.0-r422266:1244990 nonfatal general error 
org.apache.openjpa.persistence.PersistenceException: There were errors 
initializing your configuration: openjpa-2.2.0-r422266:1244990 fatal 
user error org.apache.openjpa.util.UserException: A connection could 
not be obtained for driver class null and URL null.  You may have 
specified an invalid URL.



Here is the initial contents of wrapper.log -

STATUS | wrapper  | 2014/06/09 16:14:13 | -- Wrapper Started as Daemon
STATUS | wrapper  | 2014/06/09 16:14:13 | Launching a JVM...
INFO   | jvm 1| 2014/06/09 16:14:14 | Wrapper (Version 3.2.3) 
http://wrapper.tanukisoftware.org
INFO   | jvm 1| 2014/06/09 16:14:14 |   Copyright 1999-2006 Tanuki 
Software, Inc.  All Rights Reserved.

INFO   | jvm 1| 2014/06/09 16:14:14 |
INFO   | jvm 1| 2014/06/09 16:14:14 | INFO  16:14:14,860 | 
org.apache.james.container.spring.context.JamesServerApplicationContext 
| Refreshing 
org.apache.james.container.spring.context.JamesServerApplicationContext@17ef1258: 
startup date [Mon Jun 09 16:14:14 PDT 2014]; root of context hierarchy
INFO   | jvm 1| 2014/06/09 16:14:17 | log4j:WARN No appenders could 
be found for logger (org.apache.commons.configuration.ConfigurationUtils).
INFO   | jvm 1| 2014/06/09 16:14:17 | log4j:WARN Please initialize 
the log4j system properly.
INFO   | jvm 1| 2014/06/09 16:14:17 | log4j:WARN See 
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
INFO   | jvm 1| 2014/06/09 16:14:17 | INFO  16:14:17,732 | 
org.apache.james.container.spring.context.JamesServerApplicationContext 
| Bean 'logprovider' of type [class 
org.apache.james.container.spring.lifecycle.LogProviderImpl] is not 
eligible for getting processed by all BeanPostProcessors (for example: 
not eligible for auto-proxying)
INFO   | jvm 1| 2014/06/09 16:14:17 | INFO  16:14:17,823 | 
james.mailrepositorystore | JamesMailStore init...
INFO   | jvm 1| 2014/06/09 16:14:17 | INFO  16:14:17,836 | 
james.mailrepositorystore | Registering Repository instance of class 
org.apache.james.mailrepository.file.FileMailRepository to handle file 
protocol requests for repositories with key file
INFO   | jvm 1| 2014/06/09 16:14:17 | INFO  16:14:17,836 | 
james.mailrepositorystore | Registering Repository instance of class 
org.apache.james.mailrepository.jdbc.JDBCMailRepository to handle db 
protocol requests for repositories with key db
INFO   | jvm 1| 2014/06/09 16:14:17 | INFO  16:14:17,837 | 
james.mailrepositorystore | Registering Repository instance of class 
org.apache.james.mailrepository.jdbc.JDBCMailRepository to handle dbfile 
protocol requests for repositories with key dbfile
INFO   | jvm 1| 2014/06/09 16:14:17 | INFO  16:14:17,837 | 
james.mailrepositorystore | Registering Repository instance of class 
org.apache.james.mailrepository.file.MBoxMailRepository to handle mbox 
protocol requests for repositories 

James V3 build failed

2014-04-01 Thread Marc Chamberlin
Hi -  Since I am not getting much in the way of responses to some of my 
questions about James, I decided I would like to try and build it so 
that I can learn what it is doing and perhaps help improve it, or at 
least meet my own needs. So with that I embarked on following 
instructions that I am finding at the following URL's -


http://james.apache.org/server/3/dev-build.html
https://wiki.apache.org/james/EclipseNotes  (since I use Eclipse for a 
lot of my own development work)


and the instructions found in BUILD.txt file that comes with the James 
source code in the root directory.


There is a lot of inconsistencies in these instructions, but I have 
managed to get Eclipse set up and connected to the Subversion 
repository, where-upon I proceeded to check out the server/trunk project -


http://svn.apache.org/repos/asf/james/server/trunk

Then following the path suggested in the wiki on using Eclipse, I 
decided to try an verify the checkout by running maven as described in 
the BUILD.txt file. Running the version which also runs the unit tests 
failed so I decided to try the build without running the unit tests -


mvn clean package -DskipTests=true

That got much further, but it again failed with the following error 
message -


[ERROR] Failed to execute goal 
org.apache.karaf.tooling:features-maven-plugin:2.3.0:add-features-to-repo (add-features-to-repo) 
on project james-karaf-distribution: Error populating repository: 
/home/marc/.m2/repository/org/apache/james/karaf/james-karaf-features/3.0.0-beta5-SNAPSHOT/james-karaf-features-3.0.0-beta5-SNAPSHOT-features.xml 
(No such file or directory) - [Help 1]


I am not familiar with using Maven (I am an old make fogy...) so I don't 
understand yet what/why this .m2 directory was created, but there is a 
lot of stuff going in to it. (This is not where my Eclipse workspace is 
located which is where I expected things to be located) Anywise this 
looks like a configuration error of some kind? Can some kind guru help 
me over this hurdle?


Incidentally maven version info gives -

marc@marcslaptop:~/eclipse/james-workspace/James Server mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
Maven home: /usr/share/java/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: linux, version: 3.7.10-1.28-desktop, arch: amd64, family: 
unix


In return for getting help getting James up and running under Eclipse, I 
will be happy to help update the wiki page on Eclipse notes, if I am 
given access to the wiki...


Thanks in advance,  Marc..


--
The Truth is out there - Spooky


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



Re: James V3 build failed - Found the answer

2014-04-01 Thread Marc Chamberlin
Nevermind, if I could have gotten Goggle to search right the first time 
I would have found the answer.. Apparently others have stumbled on this 
issue, a bug report filed, the answer given, but the documentation has 
not been updated. Sigh.. Marc...



On 04/01/2014 06:38 PM, Marc Chamberlin wrote:
Hi -  Since I am not getting much in the way of responses to some of 
my questions about James, I decided I would like to try and build it 
so that I can learn what it is doing and perhaps help improve it, or 
at least meet my own needs. So with that I embarked on following 
instructions that I am finding at the following URL's -


http://james.apache.org/server/3/dev-build.html
https://wiki.apache.org/james/EclipseNotes  (since I use Eclipse for a 
lot of my own development work)


and the instructions found in BUILD.txt file that comes with the James 
source code in the root directory.


There is a lot of inconsistencies in these instructions, but I have 
managed to get Eclipse set up and connected to the Subversion 
repository, where-upon I proceeded to check out the server/trunk 
project -


http://svn.apache.org/repos/asf/james/server/trunk

Then following the path suggested in the wiki on using Eclipse, I 
decided to try an verify the checkout by running maven as described in 
the BUILD.txt file. Running the version which also runs the unit tests 
failed so I decided to try the build without running the unit tests -


mvn clean package -DskipTests=true

That got much further, but it again failed with the following error 
message -


[ERROR] Failed to execute goal 
org.apache.karaf.tooling:features-maven-plugin:2.3.0:add-features-to-repo 
(add-features-to-repo) on project james-karaf-distribution: Error 
populating repository: 
/home/marc/.m2/repository/org/apache/james/karaf/james-karaf-features/3.0.0-beta5-SNAPSHOT/james-karaf-features-3.0.0-beta5-SNAPSHOT-features.xml 
(No such file or directory) - [Help 1]


I am not familiar with using Maven (I am an old make fogy...) so I 
don't understand yet what/why this .m2 directory was created, but 
there is a lot of stuff going in to it. (This is not where my Eclipse 
workspace is located which is where I expected things to be located) 
Anywise this looks like a configuration error of some kind? Can some 
kind guru help me over this hurdle?


Incidentally maven version info gives -

marc@marcslaptop:~/eclipse/james-workspace/James Server mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
Maven home: /usr/share/java/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: linux, version: 3.7.10-1.28-desktop, arch: amd64, 
family: unix


In return for getting help getting James up and running under Eclipse, 
I will be happy to help update the wiki page on Eclipse notes, if I am 
given access to the wiki...


Thanks in advance,  Marc..





--
The Truth is out there - Spooky


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



Logfiles and Fail2Ban

2014-03-23 Thread Marc Chamberlin
I have a two part question and hopefully someone has tread down this 
path and might be able to give me a few pointers...


1st. Has anyone used the logfile monitor - Fail2Ban in conjunction with 
the Apache James server? If so, would you care to share what it took to 
get things working and your configuration files/filters that you used?


2nd. If not, is there any way to get James to log failed attempts at 
using its services, to include failed login attempts. In particular I 
need the IP address of the culprit to be logged. I have monitored the 
SMTP, POP3, and RemoteManager log files, while running bogus login 
attempts myself, and do not see log messages reflecting my tests...


I am running James 2.3.2 under openSuSE 12.3

 Marc

--
The Truth is out there - Spooky


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



Re: openssl connection problems - Solved

2014-03-23 Thread Marc Chamberlin

On 03/17/2014 10:36 PM, Marc Chamberlin wrote:
Hi - I am trying to test the TLS/SSL connection for my James 2.3.2 
server. When using Thunderbird as a client and connecting via TLS/SSL 
protocol I don't have any problems sending/receiving email. I am 
pretty sure that I have set up my private (self-signed) certificate OK 
as this has been working for a long time. I wanted to use TLS/SSL for 
access to the RemoteManager and discovered that I cannot test/use 
openssl? This is what I am seeing when I try connecting on any of the 
ports for the POP3, SMTP or the RemoteManager -


openssl s_client -quiet -connect mydomain.com:portnum
depth=2 C = IL, O = StartCom Ltd., OU = Secure Digital Certificate 
Signing, CN = StartCom Certification Authority

verify error:num=19:self signed certificate in certificate chain
verify return:0
140032197080744:error:14094438:SSL routines:SSL3_READ_BYTES:tlsv1 
alert internal error:s3_pkt.c:1256:SSL alert number 80
140032197080744:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake 
failure:s23_lib.c:177:


Internal Error???  This does NOT look very healthy and implies sick 
code... Anyone got any ideas on how to fix this?


As always, thanks in advance for any offers of help...   Marc...

Turns out I had upgraded my openJDK to version 1.7 and there is a jar 
file - sunjce_provider.jar file than needs to be copied in to the lib 
directory of James. This is obscurely documented in the config.xml file 
where it is easily overlooked. It would be far better to also mention 
this on the web page at http://james.apache.org/server/2/usingTLS.html 
which is the instructions that I was following to enable TLS/SSL 
connections.


 Marc...


--
The Truth is out there - Spooky


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



openssl connection problems

2014-03-17 Thread Marc Chamberlin
Hi - I am trying to test the TLS/SSL connection for my James 2.3.2 
server. When using Thunderbird as a client and connecting via TLS/SSL 
protocol I don't have any problems sending/receiving email. I am pretty 
sure that I have set up my private (self-signed) certificate OK as this 
has been working for a long time. I wanted to use TLS/SSL for access to 
the RemoteManager and discovered that I cannot test/use openssl? This is 
what I am seeing when I try connecting on any of the ports for the POP3, 
SMTP or the RemoteManager -


openssl s_client -quiet -connect mydomain.com:portnum
depth=2 C = IL, O = StartCom Ltd., OU = Secure Digital Certificate 
Signing, CN = StartCom Certification Authority

verify error:num=19:self signed certificate in certificate chain
verify return:0
140032197080744:error:14094438:SSL routines:SSL3_READ_BYTES:tlsv1 alert 
internal error:s3_pkt.c:1256:SSL alert number 80
140032197080744:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake 
failure:s23_lib.c:177:


Internal Error???  This does NOT look very healthy and implies sick 
code... Anyone got any ideas on how to fix this?


As always, thanks in advance for any offers of help...   Marc...

--
The Truth is out there - Spooky


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



Mail backup advice needed

2014-03-15 Thread Marc Chamberlin
Hi - I cannot find the answer to this question anywhere, so thought I 
would ask here as I am sure some of you may have encountered this 
question also...  I am running a personal James email server and I have 
figured out how to configure it to handle users at a virtual domain that 
I am hosting for a couple of friends of mine. That part is working fine. 
For my main mail server I am using a mail backup service provided by 
dnsmadeeasy.com and that too is working fine. My question is, for 
virtual hosts/users (which resolve to the same IP address as my own 
domain name does) do I also need to provide them with a separate mail 
backup service, based on their domain names, or do all the emails sent 
to virtual hosts/domains get backed up also, via my backup service for 
my primary mail domain? I could ask dnsmadeeasy but I wanted an 
independent answer as they have a financial interest in selling services...


Hopefully my question makes sense, I don't fully understand this part of 
DNS and how mail resolution actually works.


   Thanks in advance,  Marc...

--
The Truth is out there - Spooky


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



Question on mail list support in James 3.0

2013-11-12 Thread Marc Chamberlin
I have been waiting for a LONG time now to upgrade my James mail server 
to 3.0 as I would like to use an IMAP server instead of a POP3 server. 
But I cannot upgrade as long as there is no support for mail lists, 
which I need. According to the Apache James website this is not yet 
available. My question is will it be supported and if so, when is the 
ETA? Just curious...


   Marc...

--
The Truth is out there - Spooky


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



Re: Need help setting up James on Eclipse Solved I guess...

2011-11-05 Thread Marc Chamberlin

On 11/2/2011 8:24 AM, Eric Charles wrote:

Hi Marc,

Many thx for the detailed feedback.
I will integrate your comments for the next release documentation.

Do you still have the maven exceptions via the shell?
Eric - Yes, I do have a log file showing all the maven exceptions I got 
when running it via a shell. Let me know if you want me to send it to 
you, or post it to this mail list


Marc..




Thx,
Eric

On 29/10/11 14:16, Marc Chamberlin wrote:

Eric/list - I forged ahead and decided to simply ignore all the
exceptions I saw when doing the maven build. I now have James3.0-beta1
up and running under Eclipse! (I tried to get beta3 up an running also,
but the instructions do not correlate with the file organization so I
gave up on it and went back to beta1)

Some comments for the wiki page, that I think might help those of us,
like me, who are not familiar with all the latest wiz-bang features of
Eclipse...

1. In the section from the
http://james.apache.org/server/3/dev-build.html document, on


Select Projects to Import

the example shows that a checkbox for Add project(s) to working set
has been checked. You might say more about what this means, does and
where to learn more. I looked around and couldn't figure out what it
does exactly, and ended up just guessing on what to do to set up a
working set, whatever that is

2. Right below this there is the following instruction -

You can also import other projects from imap, mailbox and protocols to
have a more complete view on the used sources code.

I am confused, and am sure others might also be.. did we not get all the
source code for the James server? If not, then providing instructions,
and/or links to places that describe how to import and connect these
projects would be useful.. (I know, probably something Eclipse users
fundamentally know, but I am use to monolithic projects and don't yet
grok how complex project environments play in Eclipse, so a link to a
tutorial would be helpful)

3. Next, there is an instruction in the section -


Enable Workspace Resolution

that says - Check that 'Workspace resolution' is enable in m2eclipse
plugin. Uh how does one do that? I hunted around and found something
close??? by right clicking on each project Maven built, then selecting
the Maven item in the popup menu, there is a sub option to Disable
Workspace Resolution which I am guessing can be done on a per project
basis... So I am guessing that Workspace resolution was enabled by
default, but I dunno how to check it to be certain. Again Google
searches did not help me reach an understanding either...

4. In the section -


Prepare projects

I have a couple questions. I presume that if I run Eclipse/James as
root, I won't have to remap ports to values higher than 1024?

I did not grok the instruction - 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. I think this needs some
clarification and have no idea what to do...


That's it! Following these instructions is doable, IF you are prepared
to do a lot of experimenting/backtracking in order to grasp what one is
being asked to do. I wouldn't mind helping out with the documentation,
but it appears that getting James to run under Eclipse is a moving
target, and I suspect Beta3 and whatever upcoming releases there are,
will require a very different approach...

Also, my earlier question about all the exceptions I saw during the
Maven build (from a shell) remain a concern. (see previous email)

I am sure I will be back with more questions as I start to explore James
with Eclipse... Thanks Eric for getting me this far...

Marc..



On 10/28/2011 11:12 AM, Marc Chamberlin wrote:

Hi Eric - Thank you for replying! Yes, I saw the link at the top of
the wiki page that you are referring to and I was attempting to grok
both pages in order to do the build. ;-) While there is conflicting
information, I think I understand the gist of it, am and indeed
following those instructions as well...

To be sure we are on the same page, I exported the maven opts via my
.bashrc startup script, as can be seen and am using the following
command to invoke the maven build -

marc@bigbang:~/eclipse/james-workspace/james-server-3.0-beta1 echo
$MAVEN_OPTS
-Xmx1024m -XX:MaxPermSize=128m
marc@bigbang:~/eclipse/james-workspace/james-server-3.0-beta1 mvn
--log-file james.log clean package



and I capture all the output to the james.log file, so if you like I
can send that to you

I have now attempted to build both the beta1 and beta3 versions of
James by checking them out from the following URLs -

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



Both builds report Success in the end, but there were quite a number
of exceptions thrown during the builds. (which I as a programmer
myself

Re: Now need help setting up James

2011-11-05 Thread Marc Chamberlin
Eric - I understand that mailrepositorystore.xml is for defining the 
various methods to store email for the James server. And no, I do not 
want to store the mail in a MySQL database, but instead simply use the 
file system.


On 11/2/2011 8:28 AM, Eric Charles wrote:

Hi Marc,

1. Some examples may not updated. Take care...
I will not use the examples if they differ from the supplied .xml 
configuration files...


2. mailrepositorystore.xml is not about your mailbox (see 
http://james.apache.org/server/3/feature-persistence.html, we are open 
for any new name...). Did you find mailbox.xml? You will need to 
change database.properties to setup you MySQL connection. If you want 
to store mails in MySQL, which path are you looking for?
Yes, I did find mailbox.xml. What I do NOT find is any examples or 
instructions on how to configure it for using the file system mechanism 
of persistence for user emails. (or any other of the mechanisms) I have 
found a very superficial description of the providers described in 
this file, but nothing that explains the details of what and how to use 
them... The web page at - http://james.apache.org/mailbox/  is nearly 
useless in helping me to grok these various mechanisms and a lot of the 
links found there, to follow for additional information, point to 
incomplete/empty web pages


If I were to take a wild guess, I would guess that I want to use the 
maildir mechanism, but I dunno for sure.. I can find nothing to 
elucidate me on what that really is, and what I have to do to use it... 
I can't even figure out what it means to define a provider, and what 
that does for James... And why are the mechanisms for storing mailbox 
data different than the mechanisms for configuring how to store spam, 
errors etc in mailrepositorystore.xml?


Yes, we need to fix the links to the examples...

Thx,

Eric
Thanks again Eric for your help. I fear I am working with an incomplete 
product and am in a Catch-22 situation, if I am going to try and learn 
more about how James works and how to use this version... But if you (or 
anyone else) can provide me with some additional pointers to help me 
understand how to configure James, I sure will appreciate it!


Marc..




On 30/10/11 15:20, Marc Chamberlin wrote:

Having gotten James up an running (hopefully) on Eclipse, I have turned
my attention to configuring the beta1 version and got part way before
hitting the next snag, actually 2 snags so far...

1. For most of the .xml configuration files, I found the corresponding
examples under container-springsrcmainconfigexamples and since I
like having embedded comments/documentation in the actual config files
that I will be working with, I have been copying the examples over the
top of the actual configuration files and then making appropriate
modifications for my environment. That worked fine until I got to the
mailetcontainer.xml file, where I found the example version to be
remarkably different from the version I had copied from
container-springsrcmainconfigJames to my conf folder. So, can I use
the example version as a starting point, or have things gotten out of
sync and I must use the version that I originally copied over to my conf
directory? The example version seems to be a lot easier to grok and
understand/guess on parameter values, and eventually I am going to want
to bring in the mailets/matchers I am currently using in my James 2.3
server... and it appears that it will make more sense to use the example
version, for example adding in the ability to use the clam anti-virus
process as well as the mail list handlers


2. I am confused about how to set up the mail store configuration also.
The file - mailrepositorystore.xml seems to be defining the possible
different methods, but it seems to be incomplete. I just want to use the
file store method for storing the actual emails, spam, etc., and will
just use MySQL for the various mail list users (eventually). But I do
not see where/how one specifies the actual path to set the root
directory of the file system where the mail is to be stored. The
documentation in the Users Manual alludes to it, but either I am not
finding a good example showing the details, or I am missing something..
I did find another configuration file - mailbox.xml which seems to be
where one makes the selection on storage method, but again I am not
grokking it because I don't see how I am suppose to select the file
storage method... So I am lost and need a friendly guide...


Incidentally, all the links to the example .xml files, from the various
user manual pages on the James web site are broken... Someone might want
to fix them

Thanks again in advance for any help offered... hopefully my experiences
in setting up James will help other more knowledgeable types make
improvements in the James documentation also...

Marc..




-
To unsubscribe, e-mail: server-user-unsubscr

Now need help setting up James MySQL database

2011-11-05 Thread Marc Chamberlin

In James 2.3 I set up the MySQL database properties using the following -

data-source name=maildb 
class=org.apache.james.util.dbcp.JdbcDataSource

drivercom.mysql.jdbc.Driver/driver
dburljdbc:mysql://127.0.0.1/mail?autoReconnect=true/dburl
user/user
passwordy/password
max20/max
/data-source

In James 3.0 Beta1 I took a guess (no documentation could I find) and 
configured database.properties as follows -


database.driverClassName=org.apache.james.util.dbcp.JdbcDataSource
database.url=jdbc:mysql://127.0.0.1/mail?autoReconnect=true
database.username=
database.password=y
vendorAdapter.database=MYSQL
openjpa.streaming=false


Is this correct? I noted that there is no corresponding driver and 
max parameters, are these still needed?


Thanks for any help/suggestions offered...   Marc..


--
The Truth is out there - Spooky


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



Now need help setting up James

2011-10-30 Thread Marc Chamberlin
Having gotten James up an running (hopefully) on Eclipse, I have turned 
my attention to configuring the beta1 version and got part way before 
hitting the next snag, actually 2 snags so far...


1. For most of the .xml configuration files, I found the corresponding 
examples under container-springsrcmainconfigexamples and since I 
like having embedded comments/documentation in the actual config files 
that I will be working with, I have been copying the examples over the 
top of the actual configuration files and then making appropriate 
modifications for my environment. That worked fine until I got to the 
mailetcontainer.xml file, where I found the example version to be 
remarkably different from the version I had copied from 
container-springsrcmainconfigJames to my conf folder. So, can I use 
the example version as a starting point, or have things gotten out of 
sync and I must use the version that I originally copied over to my conf 
directory? The example version seems to be a lot easier to grok and 
understand/guess on parameter values, and eventually I am going to want 
to bring in the mailets/matchers I am currently using in my James 2.3 
server... and it appears that it will make more sense to use the example 
version, for example adding in the ability to use the clam anti-virus 
process as well as the mail list handlers



2. I am confused about how to set up the mail store configuration also. 
The file - mailrepositorystore.xml seems to be defining the possible 
different methods, but it seems to be incomplete. I just want to use the 
file store method for storing the actual emails, spam, etc., and will 
just use MySQL for the various mail list users (eventually). But I do 
not see where/how one specifies the actual path to set the root 
directory of the file system where the mail is to be stored. The 
documentation in the Users Manual alludes to it, but either I am not 
finding a good example showing the details, or I am missing something..  
I did find another configuration file - mailbox.xml which seems to be 
where one makes the selection on storage method, but again I am not 
grokking it because I don't see how I am suppose to select the file 
storage method... So I am lost and need a friendly guide...



Incidentally, all the links to the example .xml files, from the various 
user manual pages on the James web site are broken... Someone might want 
to fix them


Thanks again in advance for any help offered... hopefully my experiences 
in setting up James will help other more knowledgeable types make 
improvements in the James documentation also...


Marc..




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



Re: Need help setting up James on Eclipse Solved I guess...

2011-10-29 Thread Marc Chamberlin
Eric/list -  I forged ahead and decided to simply ignore all the 
exceptions I saw when doing the maven build. I now have James3.0-beta1 
up and running under Eclipse! (I tried to get beta3 up an running also, 
but the instructions do not correlate with the file organization so I 
gave up on it and went back to beta1)


Some comments for the wiki page, that I think might help those of us, 
like me, who are not familiar with all the latest wiz-bang features of 
Eclipse...


1. In the section from the 
http://james.apache.org/server/3/dev-build.html document, on



 Select Projects to Import

the example shows that a checkbox for Add project(s) to working set 
has been checked. You might say more about what this means, does and 
where to learn more. I looked around and couldn't figure out what it 
does exactly, and ended up just guessing on what to do to set up a 
working set, whatever that is


2. Right below this there is the following instruction -

You can also import other projects from imap, mailbox and protocols to 
have a more complete view on the used sources code.


I am confused, and am sure others might also be.. did we not get all the 
source code for the James server? If not, then providing instructions, 
and/or links to places that describe how to import and connect these 
projects would be useful.. (I know, probably something Eclipse users 
fundamentally know, but I am use to monolithic projects and don't yet 
grok how complex project environments play in Eclipse, so a link to a 
tutorial would be helpful)


3. Next, there is an instruction in the section -


 Enable Workspace Resolution

that says - Check that 'Workspace resolution' is enable in m2eclipse 
plugin.   Uh how does one do that? I hunted around and found something 
close??? by right clicking on each project Maven built, then selecting 
the Maven item in the popup menu, there is a sub option to Disable 
Workspace Resolution which I am guessing can be done on a per project 
basis... So I am guessing that Workspace resolution was enabled by 
default, but I dunno how to check it to be certain. Again Google 
searches did not help me reach an understanding either...


4. In the section -


 Prepare projects

I have a couple questions. I presume that if I run Eclipse/James as 
root, I won't have to remap ports to values higher than 1024?


I did not grok the instruction - 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. I think this needs some 
clarification and have no idea what to do...



That's it! Following these instructions is doable, IF you are prepared 
to do a lot of experimenting/backtracking in order to grasp what one is 
being asked to do. I wouldn't mind helping out with the documentation, 
but it appears that getting James to run under Eclipse is a moving 
target, and I suspect Beta3 and whatever upcoming releases there are, 
will require a very different approach...


Also, my earlier question about all the exceptions I saw during the 
Maven build (from a shell) remain a concern. (see previous email)


I am sure I will be back with more questions as I start to explore James 
with Eclipse...   Thanks Eric for getting me this far...


Marc..



On 10/28/2011 11:12 AM, Marc Chamberlin wrote:
Hi Eric -   Thank you for replying! Yes, I saw the link at the top of 
the wiki page that you are referring to and I was attempting to grok 
both pages in order to do the build. ;-)   While there is conflicting 
information, I think I understand the gist of it, am and indeed 
following those instructions as well...


To be sure we are on the same page, I exported the maven opts via my 
.bashrc startup script, as can be seen and am using the following 
command to invoke the maven build -


marc@bigbang:~/eclipse/james-workspace/james-server-3.0-beta1 echo 
$MAVEN_OPTS

-Xmx1024m -XX:MaxPermSize=128m
marc@bigbang:~/eclipse/james-workspace/james-server-3.0-beta1 mvn 
--log-file james.log clean package




and I capture all the output to the james.log file, so if you like I 
can send that to you


I have now attempted to build both the beta1 and beta3 versions of 
James by checking them out from the following URLs -


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

Both builds report Success in the end, but there were quite a number 
of exceptions thrown during the builds. (which I as a programmer 
myself normally consider as serious problems needing to be fixed, but 
I know other programmers have differing opinions on the usage of 
exceptions and simply ignore them...)  So I am not sure what to think 
about whether the build is truly successful or not... Will await your 
advise...


Question - Do I need to run the build as root? Sometimes, I know there 
can be permissions issues

Re: Need help setting up James on Eclipse

2011-10-28 Thread Marc Chamberlin
Hi Eric -   Thank you for replying! Yes, I saw the link at the top of 
the wiki page that you are referring to and I was attempting to grok 
both pages in order to do the build. ;-)   While there is conflicting 
information, I think I understand the gist of it, am and indeed 
following those instructions as well...


To be sure we are on the same page, I exported the maven opts via my 
.bashrc startup script, as can be seen and am using the following 
command to invoke the maven build -


marc@bigbang:~/eclipse/james-workspace/james-server-3.0-beta1 echo 
$MAVEN_OPTS

-Xmx1024m -XX:MaxPermSize=128m
marc@bigbang:~/eclipse/james-workspace/james-server-3.0-beta1 mvn 
--log-file james.log clean package




and I capture all the output to the james.log file, so if you like I can 
send that to you


I have now attempted to build both the beta1 and beta3 versions of James 
by checking them out from the following URLs -


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

Both builds report Success in the end, but there were quite a number of 
exceptions thrown during the builds. (which I as a programmer myself 
normally consider as serious problems needing to be fixed, but I know 
other programmers have differing opinions on the usage of exceptions and 
simply ignore them...)  So I am not sure what to think about whether the 
build is truly successful or not... Will await your advise...


Question - Do I need to run the build as root? Sometimes, I know there 
can be permissions issues, especially for such things as using low 
numbered ports, and I dunno what these tests are doing under the 
covers... (I have tried building as root, seemed not to make a 
difference...)


 Marc...



On 10/27/2011 11:50 PM, Eric Charles wrote:

Hi Marc,

Did you see on top of the wiki page:
To build James V3 in eclipse, read
http://james.apache.org/server/3/dev-build.html

The instructions on the web site are valid for beta1 tag.
For trunk we have now a new 'app' application, and the config files,
the main class... have moved.

Maybe start with beta1 src code to get used to james within eclipse,
we will update the documentation later on to align to trunk.

Thx,

Eric

On 28/10/11 06:59, Marc Chamberlin wrote:

Hello -

I am attempting to follow the instructions given on the James wiki at
http://wiki.apache.org/james/EclipseNotes and am having troubles getting
it set up and running in Eclipse. I have no troubles getting the SVN
repository set up in Eclipse, and checking out the project as per
instructions. But when I try to verify the checkout things go wrong...
The instructions on the web page say this is an Ant project, but it is
actually a Maven project which I determined by reading the Build.txt
notes. (Suggest updating the wiki?) So I follow the instructions for
building James using Maven and I am getting a number of exceptions/stack
walkbacks and in the end it reports that it failed to complete the
build... I have captured the output from the Maven build to a log file,
but don't think it would be polite to include it all in this posting...
So if some kind guru can help, and analyze the log file for me, I sure
would appreciate it! Let me know how to send the log file to you

Marc..

P.S. The version of Maven that I am using reports -

~/eclipse/james-workspace/James mvn -V
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /usr/local/apache-maven/apache-maven-3.0.3
Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: linux, version: 2.6.37.6-0.7-desktop, arch: i386, family:
unix

The repository URL I am getting James from is -
http://svn.apache.org/repos/asf/james

and I am doing a checkout on server/trunk


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






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



Need help setting up James on Eclipse

2011-10-27 Thread Marc Chamberlin

Hello -

I am attempting to follow the instructions given on the James wiki at 
http://wiki.apache.org/james/EclipseNotes and am having troubles getting 
it set up and running in Eclipse. I have no troubles getting the SVN 
repository set up in Eclipse, and checking out the project as per 
instructions. But when I try to verify the checkout things go wrong... 
The instructions on the web page say this is an Ant project, but it is 
actually a Maven project which I determined by reading the Build.txt 
notes. (Suggest updating the wiki?) So I follow the instructions for 
building James using Maven and I am getting a number of exceptions/stack 
walkbacks and in the end it reports that it failed to complete the 
build...  I have captured the output from the Maven build to a log file, 
but don't think it would be polite to include it all in this posting... 
So if some kind guru can help, and analyze the log file for me, I sure 
would appreciate it! Let me know how to send the log file to you


Marc..

P.S. The version of Maven that I am using reports -

~/eclipse/james-workspace/James mvn -V
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /usr/local/apache-maven/apache-maven-3.0.3
Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: linux, version: 2.6.37.6-0.7-desktop, arch: i386, family: 
unix


The repository URL I am getting James from is - 
http://svn.apache.org/repos/asf/james


and I am doing a checkout on server/trunk


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



Re: Getting started using Eclipse to run James..

2011-08-01 Thread Marc Chamberlin
On 8/1/2011 1:41 AM, Eric Charles wrote:
 Hi Marc,

 The black asterisk mean you have changes on your local files compared
 to the central SVN repository.
Hi Eric, list -   Ok, I will take this as not something to worry about
right now.

 We recently change the project structure, and you need to checkout
 https://svn.apache.org/repos/asf/james/app/trunk/ to get the needed
 spring-*.xml files, and the config files.
H, well got me beat Eric!  I presume SVN works like the older CVS
interface did, so I right clicked on both of the projects I have checked
out, from the SVN repository
 
from the Properties of each project, the URL is -

james/server/trunk -   https://svn.apache.org/repos/asf/james/server/trunk
james/app/trunk - https://svn.apache.org/repos/asf/james/app/trunk

 selected the Team-Update to Head on both but I am still unable to find
the spring-*.xml files anywhere...  I figure I must be doing something
wrong, but don't know what it could be...

Marc...



 The exception you get comes from the fact you don't have the
 spring-*.xml files on your classpath.

 Thx.

 On 31/07/11 21:28, Marc Chamberlin wrote:
 Thanks Eric for helping me a bit further down the path... To answer one
 of your earlier questions, no, I am not getting any build errors, just
 lots of warnings, when I import/build the James Maven projects..
 However, one item I noticed is that a couple of the Maven projects -
 james-server-lifecycle-spring and james-server-mailetcontainer-api have
 a small black asterisk on their folder icons in the Project Explorer
 view panel. I have no idea what that means and was unable to locate any
 documentation about these markings. The Problems and Markers views don't
 say anything about it either.

 Anywise, I actually got a bit of smoke from Eclipse when I tried to run
 James from it. Much remains a bit confusing however and I am still
 somewhat lost in the How to Use Eclipse fog...

 Under the Prepare Projects section, step 1, the instructions say to
 copy some files from container-spring\src\main\config\james directory
 to a source folder of container-spring project I created a folder as
 directed under the Maven project -

 james-server-container-spring -  stage

 but could not locate the file called |spring-beans.xml anywhere. I
 did
 find the files ||log4j.properties| and |META-INF/persistence.xml and
 copied those into the stage directory that I created.

 In step 2, I created the conf folder and copied all the rest of the .xml
 and .properties files from the subfolder - src -  main.config.james
 (except the ones referred to in step 1) to the conf directory. There is
 another subfolder however that I am guessing is important, but I have
 not figured out what, if anything, I should do with it - src-
 main.config.james.context (see stack walkback/exception below as to why
 I think this might be important)

 At this point, I tried to run the James server by selecting the Main
 class file under the Maven project -

 james-server-container-spring -  src/main/java -
 org.apache.james.container.spring -  Main.java -  Main

 and running it as a Java Application. I can see, by using the debugger
 and setting a breakpoint at the start of main, that I am actually
 beginning to start the James server. (so getting some smoke at least)
 but very shortly into it I am getting the following exception/walkback
 As I mentioned above, I think I found the context file the exception is
 referring to (context/james-server-context.xml), in the project checked
 out from james/app/trunk under src -  main.config.james.context. I have
 tried fooling around a bit (guessing mostly) about how to correct this
 issue, but so far no joy... (I have included all the warnings and other
 error messages in case they might be important, but it appears they have
 something to do with logging.. which I am guessing is not important to
 resolve right now...)


 SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.
 SLF4J: Defaulting to no-operation (NOP) logger implementation
 SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
 further details.
 log4j:WARN No appenders could be found for logger
 (org.apache.james.container.spring.context.JamesServerApplicationContext).

 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
 more info.
 Exception in thread main
 org.springframework.beans.factory.BeanDefinitionStoreException:
 IOException parsing XML document from class path resource
 [context/james-server-context.xml]; nested exception is
 java.io.FileNotFoundException: class path resource
 [context/james-server-context.xml] cannot be opened because it does not
 exist
 at
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)

 at
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302

Re: Getting started using Eclipse to run James..

2011-07-31 Thread Marc Chamberlin
Thanks Eric for helping me a bit further down the path... To answer one
of your earlier questions, no, I am not getting any build errors, just
lots of warnings, when I import/build the James Maven projects..
However, one item I noticed is that a couple of the Maven projects -
james-server-lifecycle-spring and james-server-mailetcontainer-api have
a small black asterisk on their folder icons in the Project Explorer
view panel. I have no idea what that means and was unable to locate any
documentation about these markings. The Problems and Markers views don't
say anything about it either.

Anywise, I actually got a bit of smoke from Eclipse when I tried to run
James from it. Much remains a bit confusing however and I am still
somewhat lost in the How to Use Eclipse fog...

Under the Prepare Projects section, step 1, the instructions say to
copy some files from container-spring\src\main\config\james directory
to a source folder of container-spring project I created a folder as
directed under the Maven project -

james-server-container-spring - stage

but could not locate the file called |spring-beans.xml anywhere. I did
find the files ||log4j.properties| and |META-INF/persistence.xml and
copied those into the stage directory that I created.

In step 2, I created the conf folder and copied all the rest of the .xml
and .properties files from the subfolder - src - main.config.james
(except the ones referred to in step 1) to the conf directory. There is
another subfolder however that I am guessing is important, but I have
not figured out what, if anything, I should do with it - src-
main.config.james.context (see stack walkback/exception below as to why
I think this might be important)

At this point, I tried to run the James server by selecting the Main
class file under the Maven project -

james-server-container-spring - src/main/java -
org.apache.james.container.spring - Main.java - Main

and running it as a Java Application. I can see, by using the debugger
and setting a breakpoint at the start of main, that I am actually
beginning to start the James server. (so getting some smoke at least)
but very shortly into it I am getting the following exception/walkback
As I mentioned above, I think I found the context file the exception is
referring to (context/james-server-context.xml), in the project checked
out from james/app/trunk under src - main.config.james.context. I have
tried fooling around a bit (guessing mostly) about how to correct this
issue, but so far no joy... (I have included all the warnings and other
error messages in case they might be important, but it appears they have
something to do with logging.. which I am guessing is not important to
resolve right now...)


SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
log4j:WARN No appenders could be found for logger
(org.apache.james.container.spring.context.JamesServerApplicationContext).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Exception in thread main
org.springframework.beans.factory.BeanDefinitionStoreException:
IOException parsing XML document from class path resource
[context/james-server-context.xml]; nested exception is
java.io.FileNotFoundException: class path resource
[context/james-server-context.xml] cannot be opened because it does not
exist
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:126)
at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:92)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
at

Re: Getting started using Eclipse to run James..

2011-07-29 Thread Marc Chamberlin
Thanks again Eric for replying...  It has taken me quite awhile to
wrestle/learn how to get Eclipse set up with your suggestions. (Eclipse
would do well to work on their undo capabilities, I had to rebuild it
from scratch several times!)

Anywise, I think I got the archived version of maven installed OK, am
using version 0.12.1.20110112-1712

I don't understand what Spring Files are, probably somewhere on the
learning curve that I have not yet reached. I made a guess and used SVN
to install two projects into my workspace -

   https://svn.apache.org/repos/asf/james/app/trunk/
   https://svn.apache.org/repos/asf/james/server/trunk/


When I did an Import  Existing Maven Project and selected the root
directory as james/app/trunk I got no complaints but nothing seemed to
happen either.  When I tried an Import  Existing Maven Project and
selected the root directory as james/server/trunk I got a lot of build
errors reports such as

7/28/11 5:51:08 PM PDT: Build errors for james-server-filesystem-api;
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal
org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources
(default-resources) on project james-server-filesystem-api: Execution
default-resources of goal
org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources failed.

and a whole lot of packages/projects got installed in the Package
Explorer panel. But the various packages/projects did not show any
errors when all said an done... just a lot of warnings..

So, am I doing something wrong and is this something I need to worry
about? Or should I try an proceed onwards. I am not sure how to run
James under Eclipse yet, one question that comes immediately to mind is
- Where are the configuration files for James located? Do I need to
checkout all the other projects/components of James first and do I
include them all in the same workspace if/when I import these as part of
a Maven project?  (Not a lot of documentation seems to be available on
how to do this, so please bear with me, I am struggling a bit trying to
learn as I go...)

   Marc...




On 7/23/2011 11:29 PM, Eric Charles wrote:
 Hi,

 I have just run 'mvn test' in server/jpa and didn't get the same
 exception but also
 Tests run: 15, Failures: 0, Errors: 0, Skipped: 0
 
 [INFO] BUILD SUCCESS
 
 So build is OK. Do you have also the build success message ?

 To import with m2eclipse, use an archived version from
 http://m2eclipse.sonatype.org/archived-releases.html

 The spring files now reside
 (https://svn.apache.org/repos/asf/james/app/trunk/).

 Thx.

 On 24/07/11 01:32, Marc Chamberlin wrote:
 Thanks Eric, Norman for helping with the OOM issue.  The eclipse.ini
 file already had the following configuration for vmargs -

 -vmargs
 -Dosgi.requiredJavaVersion=1.5
 -XX:MaxPermSize=256m
 -Xms40m
 -Xmx512m

 I upped the -Xmx512m to -Xmx1024m just to be safe. Since the issue I
 originally had with the OOM error was happening when I ran mvn from a
 command line prompt I also added the following line the the mvn script
 itself -

 MAVEN_OPTS=-XX:PermSize=64M -XX:MaxPermSize=256M

 and that solved the OOM error.  However, when I ran  mvn clean package
 from the shell command line, I still got a couple different kinds of
 exceptions/walkbacks (occurred multiple times in the output).  I
 captured the output to a file, and here are examples -

 ---
   T E S T S
 ---
 Running org.apache.james.user.jpa.JpaUsersRepositoryTest
 SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.
 SLF4J: Defaulting to no-operation (NOP) logger implementation
 SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
 further details.
 1525  WARN   [main] openjpa.Runtime - Query SELECT COUNT(user) FROM
 JamesUser user is removed from cache  excluded permanently. Query 
 SELECT COUNT(user) FROM JamesUser user is not cached because it returns
 a single value rather than a list. A query that returns single v
 alue can not be cached. .
 1547  WARN   [main] openjpa.Runtime - Query SELECT COUNT(user) FROM
 JamesUser user WHERE user.name=:name is removed from cache  exclude
 d permanently. Query SELECT COUNT(user) FROM JamesUser user WHERE
 user.name=:name is not cached because it returns a single value rathe
 r than a list. A query that returns single value can not be cached. .
 org.apache.james.user.api.UsersRepositoryException: User username does
 not exist
  at
 org.apache.james.user.jpa.JPAUsersRepository.removeUser(JPAUsersRepository.java:153)

  at
 org.apache.james.user.lib.AbstractUsersRepositoryTest.testUserAddRemoveCycle(AbstractUsersRepositoryTest.java:134)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method

Re: Getting started using Eclipse to run James..

2011-07-23 Thread Marc Chamberlin
:98)
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)
at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
at
org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:80)
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)
at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:143)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:78)
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)
at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:99)
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)
at
org.apache.camel.processor.MulticastProcessor.doProcessParallel(MulticastProcessor.java:515)
at
org.apache.camel.processor.MulticastProcessor.access$100(MulticastProcessor.java:73)
at
org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:239)
at
org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:231)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

So making progress I think...  I am still getting the error messages I
reported in my previous email, inside Eclipse and need help resolving
those. Also I am still unable to complete the step for Prepare Projects -

Copy the spring-beans.xml, log4j.properties and
META-INF/persistence.xmlfrom container-spring\src\main\config\james
directory to a source folder of container-spring project

as I cannot locate the config directory mentioned. Again thanks for
helping...   Marc



On 7/23/2011 3:23 AM, Norman Maurer wrote:
 you need to increase the perm space which is different from heap space.

 see
 http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse%3F

 bye
 norman

 Am Freitag, 22. Juli 2011 schrieb Marc Chamberlin m...@marcchamberlin.com:
 On 7/22/2011 1:30 AM, Eric Charles wrote:
 Hi Marc  Dhrubo,

 I've just added on the wiki page the following sentence on top:

 To build James V3 in eclipse, read
 http://james.apache.org/server/3/dev-build.html

 This last page if more up-to-date and has been reported to work.

 Thx.

 Thanks Eric for the pointer. I dunno if I am doing things right but here
 is where I am at. Since I like the idea of working within (and learning)
 Eclipse, I did not extract the James project externally using SVN.
 Instead, I added the SVN plugin module to Eclipse, set up the repository
 to point to the James svn URL, and checked out server/trunk directly as
 a Java project. That worked fine.
stuff deleted about the OOM error from my previous email

 Anywise, no matter whether I checked, or didn't check this Add
 project(s) to working set feature, I would get the following error from
 the Maven build:

openjps-maven-plugin:1.2:enhance (1 errors)
 Action:  Resolve Later
 Execution:enhancer, in jpa/porn.xml

 with a description

Getting started using Eclipse to run James..

2011-07-21 Thread Marc Chamberlin
I would like to learn how to run James from Eclipse and up front will
admit that I am not a guru with Eclipse.. (Have used it some in the
past, but not very savoy with it.)

Am trying to follow the instructions found at
http://wiki.apache.org/james/EclipseNotes and got rapidly lost..

1. I managed to get James checked out from the Apache SVN repository
without problems.

2. Verify Checkout and I hit the first snag.  The instructions say to
run the Ant 'build' script. I used find to hunt for a build.xml file and
could not find it. Ant of course complains about this...

So reading the BUILD.txt file it says I should use a different build
tool - maven. So I downloaded that and installed it. Then ran the
command mvn clean package which produced 18 minutes worth of output,
amongst which I noted several stack walkbacks from some kind of
exceptions. I dunno where, if any, a log file exists that would capture
all of this, but if anyone wishing to help wants to see it, please guide
me to it and I will post

3. The third section on this web page talks about Modularization, and
this totally lost me. It says to start by creating a new user library
containing all the jars in stage   Stage??? What and where is stage?

Now lost, I decided to go off and play with Eclipse to see where I am
at. The first thing I knew it was going to be asking for is where is
main. Hunting around I found a main class in james/container-spring so I
added this to the build path source folders, and pointed the run/debug
configuration for the Main class at it. That indeed brought the
container-spring stuff into the project but with lots of errors. I took
a look to see what was going on and it appears that the package
declarations in each of the source files differs from the way files are
organized in the file system as checked out from SVN. I.E. the
declarations start with org.apache.james  while the expected package
(based on the file system organization) is
src.main.java.org.apache.james... for example.   My own experience with
Java development on Eclipse, in the past, agrees that the file system
organization is unexpected...  So SPLAT! I have hit a brick wall and
dunno how to proceed...  I guess I could modify all the package
declarations and see where that leads me, but somehow I suspect that is
not the path I should proceed down

Anyone care to lead this poor lost java soul out of the woods?  I
probably am going to be asking quite a few newbie type questions as a
lot of this is unfamiliar to me.   (FYI, I have managed to do some
Tomcat development/debugging in the past with Eclipse, so I was kinda
expecting James development to be somewhat similar.) Thanks in
advance...   Marc..


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



Re: TLS/SSL problems Solved!

2011-07-19 Thread Marc Chamberlin
Thanks David for your reply...  You were sorta right...  Actually
openSuSE is screwed up when it comes to changing the Java installation
(I went from openJDK_x64 to the Sun_X32 version. OpenSuSE uses a lot of
links in /etc/alternatives to point at the correct version of Java
things, which in turn get used by a lot of scripts) Most of these links
were broken after the change over and I had to go through and correct
them all by had.  Additionally, openSuSE left a lot of files, dirs, and
links in the /usr/lib64/jvm install directory which further confused a
number of scripts and cause them to mis-set environment variables...  
Cleaning up all this mess, made James a happy camper again...

I am continuing to try and get James installed in Eclipse so I can see
what is going on within some of my mail lists that I support... Spam and
in particular bounce messages are getting through and I am trying to
figure out why...  Also the built in Bayesian filters is now catching
legit emails and I need a way to correct the filter since these get
dropped into a special spam repository before I get a chance to reteach
the filter that these are in fact legit

Marc..



On 7/18/2011 5:26 PM, david garvey wrote:
 Marc,
  
 It looks like the new install is missing the crypto stuff?
  
 http://fandry.blogspot.com/2011/06/problem-initializing-class.html
  
 I also checked the content of the content of the jar file
 ./Java/jre6/lib/jce.jar which should
 contain the missing class in question:  javax.crypto.SunJCE_b
  
 On 07/18/2011 09:23 AM, Marc Chamberlin wrote:
  On 7/18/2011 12:10 AM, Eric Charles wrote:
  Hi Marc,
 
  Why do you go to x32 and not x64?
  Thanks Eric for replying...  I couldn't get Eclipse to work under
 x64 so
  was advised to use the x32 bit version of Java instead. I want to bring
  James up in Eclipse so I can better understand and debug it when I
  encounter problems and try to better handle spam/bounce notifications
  about attempts being made to break into some mail lists that I
 host.
 
  Also, http://wiki.apache.org/james/UsingSSL says you need to
  add/configure bouncycastle. I don't think it will help with the
  NoClassDefFoundError, but I would give it a try.
  I will look into this further and see if I need to do anything to
 handle
  the x32 bit version of Java, otherwise I am surprised if I need to do
  anything that I have not already done, since I had SSL working fine
  before I switched to x32 Java
  
  Marc...
 
  Thx.
 
  On 18/07/11 08:45, Marc Chamberlin wrote:
  I recently had to change the JAVA vm on my server from
  java-1_6_0-openJDK_X64 to java-1_6_0-sun_586 (x32) and restarted
 James
  2.3.2 under the new runtime environment. Before this switch, James
  worked fine, but afterwords whenever a client such as Thunderbird
 tries
  to connect I am getting the following sort of error when using
 TLS/SSL
  connections -
 
  An error occurred during a connection to mail.mydomain.com:995.
 
  Cannot communicate securely with peer: no common encryption
  algorithm(s).
 
  (Error code: ssl_error_no_cypher_overlap)
 
 
  Looking in the James logs files I found this stack walkback in the
  connections log file - (I am guessing it is related?)
 
  marc@bigbang:/james/james-2.3.2/apps/james/logs cat
  connections-2011-07-17-21-52.log
  17/07/11 21:54:16 ERROR connections: Error handling connection
  java.lang.NoClassDefFoundError: Could not initialize class
  javax.crypto.SunJCE_b
  at javax.crypto.Cipher.getInstance(DashoA13*..)
  at java.security.Signature$Delegate.newInstance(Signature.java:932)
  at
 java.security.Signature$Delegate.chooseProvider(Signature.java:1032)
  at
 java.security.Signature$Delegate.engineInitSign(Signature.java:1106)
  at java.security.Signature.initSign(Signature.java:498)
  at
 
 com.sun.net.ssl.internal.ssl.RSASignature.engineInitSign(RSASignature.java:108)

 
 
  at java.security.Signature$Delegate.init(Signature.java:1076)
  at
 java.security.Signature$Delegate.chooseProvider(Signature.java:1033)
  at
 java.security.Signature$Delegate.engineInitSign(Signature.java:1106)
  at java.security.Signature.initSign(Signature.java:498)
  at
 
 com.sun.net.ssl.internal.ssl.HandshakeMessage$DH_ServerKeyExchange.init(HandshakeMessage.java:721)

 
 
  at
 
 com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:678)

 
 
  at
 
 com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:151)

 
 
  at
 
 com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
  at
 
 com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)

 
  at
 
 com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)

 
 
  at
 
 com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)

 
 
  at
 
 com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:632)

 
 
  at
 
 com.sun.net.ssl.internal.ssl.AppOutputStream.write

TLS/SSL problems

2011-07-18 Thread Marc Chamberlin
I recently had to change the JAVA vm on my server from 
java-1_6_0-openJDK_X64 to java-1_6_0-sun_586 (x32) and restarted James 
2.3.2 under the new runtime environment. Before this switch, James 
worked fine, but afterwords whenever a client such as Thunderbird tries 
to connect I am getting the following sort of error when using TLS/SSL 
connections -


An error occurred during a connection to mail.mydomain.com:995.

Cannot communicate securely with peer: no common encryption algorithm(s).

(Error code: ssl_error_no_cypher_overlap)


Looking in the James logs files I found this stack walkback in the 
connections log file - (I am guessing it is related?)


marc@bigbang:/james/james-2.3.2/apps/james/logs cat 
connections-2011-07-17-21-52.log

17/07/11 21:54:16 ERROR connections: Error handling connection
java.lang.NoClassDefFoundError: Could not initialize class 
javax.crypto.SunJCE_b

at javax.crypto.Cipher.getInstance(DashoA13*..)
at java.security.Signature$Delegate.newInstance(Signature.java:932)
at 
java.security.Signature$Delegate.chooseProvider(Signature.java:1032)
at 
java.security.Signature$Delegate.engineInitSign(Signature.java:1106)

at java.security.Signature.initSign(Signature.java:498)
at 
com.sun.net.ssl.internal.ssl.RSASignature.engineInitSign(RSASignature.java:108)

at java.security.Signature$Delegate.init(Signature.java:1076)
at 
java.security.Signature$Delegate.chooseProvider(Signature.java:1033)
at 
java.security.Signature$Delegate.engineInitSign(Signature.java:1106)

at java.security.Signature.initSign(Signature.java:498)
at 
com.sun.net.ssl.internal.ssl.HandshakeMessage$DH_ServerKeyExchange.init(HandshakeMessage.java:721)
at 
com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:678)
at 
com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:151)
at 
com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
at 
com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)
at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:632)
at 
com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at 
java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)

at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:278)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
at java.io.BufferedWriter.flush(BufferedWriter.java:236)
at java.io.PrintWriter.flush(PrintWriter.java:276)
at 
org.apache.james.util.InternetPrintWriter.println(InternetPrintWriter.java:92)
at 
org.apache.james.util.InternetPrintWriter.println(InternetPrintWriter.java:189)
at 
org.apache.james.pop3server.POP3Handler.handleConnection(POP3Handler.java:274)
at 
org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:432)
at 
org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
at 
org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)


I didn't change any of the James configuration files, so anyone got any 
ideas about what has gone wrong and what I have to do to fix? Going back 
to the openJDK_X64 runtime environment would be a real PITA...


Marc...


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



Re: TLS/SSL problems

2011-07-18 Thread Marc Chamberlin
On 7/18/2011 12:10 AM, Eric Charles wrote:
 Hi Marc,

 Why do you go to x32 and not x64?
Thanks Eric for replying...  I couldn't get Eclipse to work under x64 so
was advised to use the x32 bit version of Java instead. I want to bring
James up in Eclipse so I can better understand and debug it when I
encounter problems and try to better handle spam/bounce notifications
about attempts being made to break into some mail lists that I host.

 Also, http://wiki.apache.org/james/UsingSSL says you need to
 add/configure bouncycastle. I don't think it will help with the
 NoClassDefFoundError, but I would give it a try.
I will look into this further and see if I need to do anything to handle
the x32 bit version of Java, otherwise I am surprised if I need to do
anything that I have not already done, since I had SSL working fine
before I switched to x32 Java
 
Marc...

 Thx.

 On 18/07/11 08:45, Marc Chamberlin wrote:
 I recently had to change the JAVA vm on my server from
 java-1_6_0-openJDK_X64 to java-1_6_0-sun_586 (x32) and restarted James
 2.3.2 under the new runtime environment. Before this switch, James
 worked fine, but afterwords whenever a client such as Thunderbird tries
 to connect I am getting the following sort of error when using TLS/SSL
 connections -

 An error occurred during a connection to mail.mydomain.com:995.

 Cannot communicate securely with peer: no common encryption
 algorithm(s).

 (Error code: ssl_error_no_cypher_overlap)


 Looking in the James logs files I found this stack walkback in the
 connections log file - (I am guessing it is related?)

 marc@bigbang:/james/james-2.3.2/apps/james/logs cat
 connections-2011-07-17-21-52.log
 17/07/11 21:54:16 ERROR connections: Error handling connection
 java.lang.NoClassDefFoundError: Could not initialize class
 javax.crypto.SunJCE_b
 at javax.crypto.Cipher.getInstance(DashoA13*..)
 at java.security.Signature$Delegate.newInstance(Signature.java:932)
 at java.security.Signature$Delegate.chooseProvider(Signature.java:1032)
 at java.security.Signature$Delegate.engineInitSign(Signature.java:1106)
 at java.security.Signature.initSign(Signature.java:498)
 at
 com.sun.net.ssl.internal.ssl.RSASignature.engineInitSign(RSASignature.java:108)


 at java.security.Signature$Delegate.init(Signature.java:1076)
 at java.security.Signature$Delegate.chooseProvider(Signature.java:1033)
 at java.security.Signature$Delegate.engineInitSign(Signature.java:1106)
 at java.security.Signature.initSign(Signature.java:498)
 at
 com.sun.net.ssl.internal.ssl.HandshakeMessage$DH_ServerKeyExchange.init(HandshakeMessage.java:721)


 at
 com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:678)


 at
 com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:151)


 at
 com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
 at
 com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)

 at
 com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)


 at
 com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)


 at
 com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:632)


 at
 com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)

 at
 java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
 at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
 at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:278)
 at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
 at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
 at java.io.BufferedWriter.flush(BufferedWriter.java:236)
 at java.io.PrintWriter.flush(PrintWriter.java:276)
 at
 org.apache.james.util.InternetPrintWriter.println(InternetPrintWriter.java:92)


 at
 org.apache.james.util.InternetPrintWriter.println(InternetPrintWriter.java:189)


 at
 org.apache.james.pop3server.POP3Handler.handleConnection(POP3Handler.java:274)


 at
 org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:432)


 at
 org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)


 at
 org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)

 I didn't change any of the James configuration files, so anyone got any
 ideas about what has gone wrong and what I have to do to fix? Going back
 to the openJDK_X64 runtime environment would be a real PITA...

 Marc...


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





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



Re: How do I recover email marked as spam

2011-07-17 Thread Marc Chamberlin
(Hmmm dunno why this hasn't showed up on the list yet, been over a day
since I sent it... so if this shows up twice, my apologies for
re-sending it again..  Marc)


Thanks Eric for replying..  Actually I found a rough solution (ugly but
worked) which was to install the mailet for FromRepository and
triggered it by sending an email to the James server with a special
recipient. That resent the WHOLE spam repository (for which I had to
subsequently apologize to all of our users for dumping all that past
spam on em.)  Actually that kinda was a mixed blessing because we found
that many emails had been marked as spam which shouldn't have been..
Anywise I guess one could argue that gave us the opportunity to re-train
the Bayesian  filter further.

I will keep an eye on the filter but am having some serious second
thoughts about using it now. It is nice to try an filter out spam for
users, but not so good if valid emails are caught also. Then there is no
way of knowing, or retraining the Bayesian filter unless one takes the
trouble of going through all that spam, from time to time.

Maybe a good idea would be to have a spam repository/mailbox on a per
user basis and let each user trigger a dump of it, if and when they feel
like sorting through their own spam for legitimate emails... But, on the
other hand, users are difficult to train and most will complain so I am
not sure that will work either

I dunno why my first attempt at recovering the email from the spam
directory failed to work. I had simply copied the two associated files
for the particular email, from the spam directory, over to the users
inbox directory. But James refused to send it on! So I am curious as to
why such a simple and obvious approach to solving this problem, failed.


Marc...


 On 7/10/2011 12:18 AM, Eric Charles wrote:
 Hi,

 To my knowledge, there is no tool to do this.
 You could write your own java class with a main that read the spam
 mail repository, and writes it back on disk. Thereafter, you can
 manually resend it.

 It is still the case in James3, but we agreed on mailing list that
 this has to change and that all spam... must be redirected to a
 mailbox, and not to a 2.3 mailrepository.

 Thx.

 On 10/07/11 06:23, Marc Chamberlin wrote:
 Hi -  Apparently James 2.3 marked an important email as spam and sent it
 into the spam folder. I found the email by grepping for it there.
 Question, how to I recover the email from the spam folder and send it on
 to the user? Somehow, I will also have to send to the the not-spam
 mailet for the Baysiean filter also, so that it simply does not remark
 it as spam and move it back into the spam folder??

 Marc...


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





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



How do I recover email marked as spam

2011-07-09 Thread Marc Chamberlin
Hi -  Apparently James 2.3 marked an important email as spam and sent it
into the spam folder. I found the email by grepping for it there.
Question, how to I recover the email from the spam folder and send it on
to the user? Somehow, I will also have to send to the the not-spam
mailet for the Baysiean filter also, so that it simply does not remark
it as spam and move it back into the spam folder??

   Marc...


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



Re: James and Postfix-Sendmail

2011-06-01 Thread Marc Chamberlin
Hi Eric -  Yes, that is the web page I was referring to. I see it is
also in the wiki http://wiki.apache.org/james/JamesAndSendmail and I
would suggest leaving it there, but would concur that removing the link
from the main website area is a good idea. The last time I configured
Sendmail to exist peacefully with James, I found a lot of the
configuration details had changed and much of the documentation
obsolete. With the movement towards Postfix, this webpage will no longer
be relevant except for those who are going to continue to use the older
Sendmail.

I will continue to either wait for an answer to my question on how to
configure Postfix, or try to do some more research for a solution on my
own. If I come up with an answer, I will post a solution and suggest it
be incorporated into the Wiki page.

Marc...


On 05/31/2011 11:41 PM, Eric Charles wrote:
 Hi Marc,

 Are your referring to
 http://james.apache.org/server/james_and_sendmail.html?

 I was thinking removing the link to this page as the information is
 not more up-to-date.

 I have no knowledge on Postfix/Sendmail configuration, and can not
 help on this.

 Tks,
 - Eric


 On 31/05/2011 19:20, Marc Chamberlin wrote:
 Hi -

 Correct me if I am wrong on my understanding of these tools, don't claim
 to be an expert!   I just upgraded my openSuSE server to the latest
 release 11.4, and am trying to setup James (version 2.3.2) and configure
 the rest of the system to something similar to what I have had in the
 past. Part of this involved configuring Sendmail so it would route email
 sent through it (from applications such as Bugzilla) through James.
 (This also prevented a conflict on using the mail ports as well). For
 this, the James website provided a set of instructions for configuring
 Sendmail to work with James and I have had success in the past following
 these instructions.

 With the latest version of openSuSE, it appears that Sendmail (as a
 standalone MTA) is being phased out and Postfix is the replacement.
 Postfix has it's own version of Sendmail so as to remain backwards
 compatible with applications that use Sendmail. However, there isn't a
 separate configuration file for the Postfix-Sendmail so the instructions
 on how to configure Sendmail to work with James is no longer applicable.
 I need to retain the Sendmail API for a number of applications that also
 run on my server.

 SO? How does one configure Postfix to work with James? Any pointers and
 advice would be greatly appreciated, thanks in advance... (Any chance of
 updating the webpage on the James website that discusses this? I think
 it too is quite a bit out of date and many of the details no longer
 apply either, though I have been able to figure out what to do despite
 the documentation errors.)

 Marc...


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



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




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



  1   2   >