Re: James 3.4.0 do not receive e-mail at all

cryptearth <[email protected]>
Newsgroups gmane.comp.jakarta.james.user
Message-ID <[email protected]>
Hi all,

so, it took me several hours, but at least as far as I could reproduce 
the issues of David, Ahmet and Joe it seems that 3.4 is somewhat broken. 
So, let me go this step by step:

As I thought I got some issues within the VM I got the idea to use one 
of my other machines wich has linux installed to set up a 3.4 to test 
it. I was out to buy some food when on the way back it hit me like a 
lightning: Why not just use my backup SoC - it's properly configured and 
all is setup - and with its current 3.3 it all works well. So, after 
tinkering around to free up enought memory for the build (the backup 
only has just about 4GB (htop shows 3.83G)) I got a working build, 
copied it over to the server directory, extracted it, and only "fixed" 
the issue with the priority stuff in mailetcontainer.xml (just commented 
it out) and started it up. To my surprise it worked right out of the box.
One side-note here: It seems the "start up in X seconds" got removed 
from the start up log - that's not that usefull as on the first try I 
thought the start up hang up - would be better to re-add this line.
Back to topic: So I just added the dummy account "david@localhost" and 
tested to drop in a mail over smtp just by telnet - and: it showed up in 
INBOX, just as expected. So whatever the issue is that David described - 
I was not able to reproduce it. A mail dropped in via SMTP just got 
correctly stored into the derby database and could be retrieved via IMAP.
But: As I tried to send out a mail to gmail it all completely broke. 
Here's the log:

cryptearth@home:~/james-server-app-3.4.0/bin> sudo ./james console
[sudo] Passwort für root:
Running Apache James :: Server :: App...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | log4j:WARN No appenders could be found for logger 
(org.apache.commons.beanutils.converters.BooleanConverter).
jvm 1    | log4j:WARN Please initialize the log4j system properly.
jvm 1    | log4j:WARN See 
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
jvm 1    | 122  James  WARN   [WrapperSimpleAppMain] openjpa.Runtime - 
An error occurred while registering a ClassTransformer with 
PersistenceUnitInfo: name 'James', root URL 
[file:/home/cryptearth/james-server-app-3.4.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.
jvm 1    | INFO  20:29:08,065 | 
org.apache.james.dnsservice.dnsjava.DNSJavaService | Autodiscovery is 
enabled - trying to discover your system's DNS Servers
jvm 1    | INFO  20:29:08,111 | 
org.apache.james.dnsservice.dnsjava.DNSJavaService | Adding 
autodiscovered server [fd00::ca0e:14ff:fe91:10c5]
jvm 1    | INFO  20:29:08,113 | 
org.apache.james.dnsservice.dnsjava.DNSJavaService | Adding 
autodiscovered server 192.168.178.1
jvm 1    | INFO  20:29:08,115 | 
org.apache.james.dnsservice.dnsjava.DNSJavaService | Adding 
autodiscovered search path cryptearth.de.
jvm 1    | INFO  20:29:08,120 | 
org.apache.james.dnsservice.dnsjava.DNSJavaService | DNS Server is: 
[fd00::ca0e:14ff:fe91:10c5]
jvm 1    | INFO  20:29:08,121 | 
org.apache.james.dnsservice.dnsjava.DNSJavaService | DNS Server is: 
192.168.178.1
jvm 1    | INFO  20:29:08,168 | 
org.apache.james.dnsservice.dnsjava.DNSJavaService | Registered cache, 
resolver and search paths as DNSJava defaults
jvm 1    | INFO  20:29:08,356 | 
org.apache.james.domainlist.lib.AbstractDomainList | Set autodetect to: true
jvm 1    | INFO  20:29:08,358 | 
org.apache.james.domainlist.lib.AbstractDomainList | Set autodetectIP 
to: true
jvm 1    | 1533  James  INFO   [WrapperSimpleAppMain] openjpa.Runtime - 
Starting OpenJPA 3.1.0
jvm 1    | 1777  James  INFO   [WrapperSimpleAppMain] openjpa.jdbc.JDBC 
- Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary".
jvm 1    | 5126  James  INFO   [WrapperSimpleAppMain] openjpa.jdbc.JDBC 
- Connected to Apache Derby version 10.10 using JDBC driver Apache Derby 
Embedded JDBC Driver version 10.14.2.0 - (1828579).
jvm 1    | WARN  20:29:21,353 | org.apache.activemq.broker.BrokerService 
| Memory Usage for the Broker (1024mb) is more than the maximum 
available for the JVM: 455 mb - resetting to 70% of maximum available: 
318 mb
jvm 1    | WARN  20:29:22,522 | org.apache.activemq.broker.BrokerService 
| Store limit is 102400 mb (current store usage is 0 mb). The data 
directory: 
/home/cryptearth/james-server-app-3.4.0/bin/../var/store/activemq/brokers/KahaDB 
only has 44129 mb of usable space. - resetting to maximum available disk 
space: 44129 mb
jvm 1    | WARN  20:29:22,525 | org.apache.activemq.broker.BrokerService 
| Temporary Store limit is 51200 mb (current store usage is 0 mb). The 
data directory: 
/home/cryptearth/james-server-app-3.4.0/bin/../var/store/activemq/brokers 
only has 44129 mb of usable space. - resetting to maximum available disk 
space: 44129 mb
jvm 1    | INFO  20:29:26,638 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:26,692 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet PostmasterAlias instantiated.
jvm 1    | INFO  20:29:26,725 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher RelayLimit=30 instantiated.
jvm 1    | INFO  20:29:26,754 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet Null instantiated.
jvm 1    | INFO  20:29:26,785 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher HasMailAttribute=spamChecked instantiated.
jvm 1    | INFO  20:29:26,824 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToProcessor instantiated.
jvm 1    | INFO  20:29:26,827 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:27,005 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet SetMailAttribute instantiated.
jvm 1    | INFO  20:29:27,034 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher SMTPAuthSuccessful instantiated.
jvm 1    | INFO  20:29:27,041 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToProcessor instantiated.
jvm 1    | INFO  20:29:27,044 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:27,052 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToProcessor instantiated.
jvm 1    | INFO  20:29:28,597 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:28,887 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToRepository instantiated.
jvm 1    | INFO  20:29:29,044 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher SMTPAuthSuccessful instantiated.
jvm 1    | INFO  20:29:29,083 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet SetMimeHeader instantiated.
jvm 1    | INFO  20:29:29,086 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher HasMailAttribute=org.apache.james.SMIMECheckSignature instantiated.
jvm 1    | INFO  20:29:29,096 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet SetMimeHeader instantiated.
jvm 1    | INFO  20:29:29,100 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:29,315 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet RecipientRewriteTable instantiated.
jvm 1    | INFO  20:29:29,345 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher SenderIsLocal instantiated.
jvm 1    | INFO  20:29:31,972 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToSenderFolder instantiated.
jvm 1    | INFO  20:29:32,000 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher RecipientIsLocal instantiated.
jvm 1    | INFO  20:29:32,130 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet Sieve instantiated.
jvm 1    | INFO  20:29:32,133 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher RecipientIsLocal instantiated.
jvm 1    | INFO  20:29:32,157 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet AddDeliveredToHeader instantiated.
jvm 1    | INFO  20:29:32,160 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher RecipientIsLocal instantiated.
jvm 1    | INFO  20:29:32,212 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet LocalDelivery instantiated.
jvm 1    | INFO  20:29:32,238 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher HostIsLocal instantiated.
jvm 1    | INFO  20:29:32,246 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToProcessor instantiated.
jvm 1    | INFO  20:29:32,359 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher RemoteAddrNotInNetwork=127.0.0.1 instantiated.
jvm 1    | INFO  20:29:32,370 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToProcessor instantiated.
jvm 1    | INFO  20:29:32,374 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | WARN  20:29:32,471 | 
org.apache.james.transport.mailets.remote.delivery.DelaysAndMaxRetry | 
maxRetries is larger than total number of attempts specified. Increasing 
last delayTime with 22 attempts
jvm 1    | WARN  20:29:32,484 | 
org.apache.james.transport.mailets.remote.delivery.DelaysAndMaxRetry | 
Delay of 8 minutes 20 seconds is now attempted: 1 times
jvm 1    | INFO  20:29:32,801 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet RemoteDelivery instantiated.
jvm 1    | INFO  20:29:33,574 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:33,607 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet MetricsMailet instantiated.
jvm 1    | INFO  20:29:33,610 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:33,713 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet Bounce instantiated.
jvm 1    | INFO  20:29:33,716 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:33,738 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToRepository instantiated.
jvm 1    | INFO  20:29:33,964 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:33,982 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToRepository instantiated.
jvm 1    | INFO  20:29:34,100 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:34,108 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet SetMailAttribute instantiated.
jvm 1    | INFO  20:29:34,111 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher SMTPAuthSuccessful instantiated.
jvm 1    | INFO  20:29:34,118 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet Bounce instantiated.
jvm 1    | INFO  20:29:34,121 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:34,125 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet Null instantiated.
jvm 1    | INFO  20:29:34,345 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:34,364 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToRepository instantiated.
jvm 1    | INFO  20:29:34,489 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:34,507 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet ToRepository instantiated.
jvm 1    | INFO  20:29:34,741 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Matcher All instantiated.
jvm 1    | INFO  20:29:35,105 | 
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | 
Mailet DSNBounce instantiated.
jvm 1    | INFO  20:29:35,256 | 
org.apache.james.mailetcontainer.impl.JamesMailSpooler | init...
jvm 1    | INFO  20:29:35,282 | 
org.apache.james.mailetcontainer.impl.JamesMailSpooler | uses 20 Thread(s)
jvm 1    | INFO  20:29:35,283 | 
org.apache.james.mailetcontainer.impl.JamesMailSpooler | 
Queue=MailQueue:spool
jvm 1    | INFO  20:29:35,506 | 
org.apache.james.fetchmail.FetchScheduler | FetchMail Disabled
jvm 1    | INFO  20:30:06,197 | 
org.apache.james.domainlist.lib.AbstractDomainList | Local host is: 
home.fritz.box.
jvm 1    | ERROR 20:30:06,217 | 
org.apache.james.domainlist.lib.AbstractDomainList | Cannot get IP 
address(es) for Domain : localhost
jvm 1    | INFO  20:30:06,742 | 
org.apache.james.smtpserver.SendMailHandler | Successfully spooled mail 
Mail1583436606429-f1e9a3fd-00a0-4ea6-872e-85203edb5936 from 
MaybeSender{mailAddress=Optional[david@localhost]} on 
localhost/127.0.0.1 for [[email protected]]
jvm 1    | ERROR 20:30:10,840 | 
org.apache.james.transport.mailets.ToSenderFolder | Local delivery with 
ToSenderFolder mailet for mail 
Mail1583436606429-f1e9a3fd-00a0-4ea6-872e-85203edb5936 with sender 
david@localhost in folder Sent
jvm 1    | INFO  20:30:10,870 | 
org.apache.james.domainlist.lib.AbstractDomainList | Local host is: 
home.fritz.box.
jvm 1    | ERROR 20:30:10,872 | 
org.apache.james.domainlist.lib.AbstractDomainList | Cannot get IP 
address(es) for Domain : localhost
jvm 1    | INFO  20:30:10,903 | 
org.apache.james.domainlist.lib.AbstractDomainList | Local host is: 
home.fritz.box.
jvm 1    | ERROR 20:30:10,906 | 
org.apache.james.domainlist.lib.AbstractDomainList | Cannot get IP 
address(es) for Domain : localhost
jvm 1    | INFO  20:30:10,932 | 
org.apache.james.domainlist.lib.AbstractDomainList | Local host is: 
home.fritz.box.
jvm 1    | ERROR 20:30:10,935 | 
org.apache.james.domainlist.lib.AbstractDomainList | Cannot get IP 
address(es) for Domain : localhost
jvm 1    | INFO  20:30:10,971 | 
org.apache.james.domainlist.lib.AbstractDomainList | Local host is: 
home.fritz.box.
jvm 1    | ERROR 20:30:10,974 | 
org.apache.james.domainlist.lib.AbstractDomainList | Cannot get IP 
address(es) for Domain : localhost
jvm 1    | ERROR 20:30:11,465 | 
org.apache.james.transport.mailets.remote.delivery.MailDelivrer | 
Generic exception = permanent failure: 
org.apache.geronimo.javamail.transport.smtp.SMTPTransport cannot be cast 
to com.sun.mail.smtp.SMTPTransport
jvm 1    | java.lang.ClassCastException: 
org.apache.geronimo.javamail.transport.smtp.SMTPTransport cannot be cast 
to com.sun.mail.smtp.SMTPTransport
jvm 1    |      at 
org.apache.james.transport.mailets.remote.delivery.MailDelivrerToHost.tryDeliveryToHost(MailDelivrerToHost.java:66)
jvm 1    |      at 
org.apache.james.transport.mailets.remote.delivery.MailDelivrer.doDeliver(MailDelivrer.java:126)
jvm 1    |      at 
org.apache.james.transport.mailets.remote.delivery.MailDelivrer.tryDeliver(MailDelivrer.java:108)
jvm 1    |      at 
org.apache.james.transport.mailets.remote.delivery.MailDelivrer.deliver(MailDelivrer.java:77)
jvm 1    |      at 
org.apache.james.transport.mailets.remote.delivery.DeliveryRunnable.attemptDelivery(DeliveryRunnable.java:126)
jvm 1    |      at 
org.apache.james.transport.mailets.remote.delivery.DeliveryRunnable.processMail(DeliveryRunnable.java:109)
jvm 1    |      at 
org.apache.james.transport.mailets.remote.delivery.DeliveryRunnable.runStep(DeliveryRunnable.java:96)
jvm 1    |      at 
reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:350)
jvm 1    |      at 
reactor.core.publisher.FluxPublishOn$PublishOnSubscriber.runAsync(FluxPublishOn.java:398)
jvm 1    |      at 
reactor.core.publisher.FluxPublishOn$PublishOnSubscriber.run(FluxPublishOn.java:484)
jvm 1    |      at 
reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)
jvm 1    |      at 
reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)
jvm 1    |      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
jvm 1    |      at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
jvm 1    |      at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
jvm 1    |      at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
jvm 1    |      at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
jvm 1    |      at java.lang.Thread.run(Thread.java:748)
jvm 1    | ERROR 20:30:12,539 | 
org.apache.james.mailetcontainer.impl.camel.CamelProcessor | Exception 
calling DSNBounce: null
jvm 1    | java.lang.NullPointerException
jvm 1    |      at 
javax.mail.internet.MimeMessage.setHeader(MimeMessage.java:1547)
jvm 1    |      at 
javax.mail.internet.MimeMessage.setRecipients(MimeMessage.java:449)
jvm 1    |      at 
org.apache.james.server.core.MimeMessageCopyOnWriteProxy.setRecipients(MimeMessageCopyOnWriteProxy.java:390)
jvm 1    |      at 
org.apache.james.transport.mailets.redirect.MailModifier.setTo(MailModifier.java:127)
jvm 1    |      at 
org.apache.james.transport.mailets.DSNBounce.trySendBounce(DSNBounce.java:269)
jvm 1    |      at 
org.apache.james.transport.mailets.DSNBounce.service(DSNBounce.java:240)
jvm 1    |      at 
org.apache.james.mailetcontainer.impl.camel.CamelProcessor.process(CamelProcessor.java:81)
jvm 1    |      at 
org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor$MailetContainerRouteBuilder.handleMailet(CamelMailetProcessor.java:178)
jvm 1    |      at 
org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor$MailetContainerRouteBuilder.lambda$configure$0(CamelMailetProcessor.java:155)
jvm 1    |      at 
org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
jvm 1    |      at 
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
jvm 1    |      at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
jvm 1    |      at 
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
jvm 1    |      at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
jvm 1    |      at 
org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:715)
jvm 1    |      at 
org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:638)
jvm 1    |      at 
org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:248)
jvm 1    |      at 
org.apache.camel.processor.Splitter.process(Splitter.java:129)
jvm 1    |      at 
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
jvm 1    |      at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
jvm 1    |      at 
org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
jvm 1    |      at 
org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
jvm 1    |      at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
jvm 1    |      at 
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:76)
jvm 1    |      at 
org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:186)
jvm 1    |      at 
org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:86)
jvm 1    |      at 
org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:541)
jvm 1    |      at 
org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:506)
jvm 1    |      at 
org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:369)
jvm 1    |      at 
org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:506)
jvm 1    |      at 
org.apache.camel.impl.ProducerCache.send(ProducerCache.java:229)
jvm 1    |      at 
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:144)
jvm 1    |      at 
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:161)
jvm 1    |      at 
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:168)
jvm 1    |      at 
org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor.service(CamelMailetProcessor.java:68)
jvm 1    |      at 
org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.handleWithProcessor(AbstractStateCompositeProcessor.java:96)
jvm 1    |      at 
org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.service(AbstractStateCompositeProcessor.java:78)
jvm 1    |      at 
org.apache.james.mailetcontainer.impl.JamesMailSpooler.performProcessMail(JamesMailSpooler.java:154)
jvm 1    |      at 
org.apache.james.mailetcontainer.impl.JamesMailSpooler.lambda$processMail$2(JamesMailSpooler.java:141)
jvm 1    |      at 
reactor.core.publisher.MonoCallable.call(MonoCallable.java:91)
jvm 1    |      at 
reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.drain(MonoIgnoreThen.java:135)
jvm 1    |      at 
reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.ignoreDone(MonoIgnoreThen.java:190)
jvm 1    |      at 
reactor.core.publisher.MonoIgnoreThen$ThenIgnoreInner.onComplete(MonoIgnoreThen.java:240)
jvm 1    |      at 
reactor.core.publisher.FluxSubscribeOnCallable$CallableSubscribeOnSubscription.run(FluxSubscribeOnCallable.java:235)
jvm 1    |      at 
reactor.core.scheduler.ElasticScheduler$DirectScheduleTask.run(ElasticScheduler.java:292)
jvm 1    |      at 
reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:50)
jvm 1    |      at 
reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:27)
jvm 1    |      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
jvm 1    |      at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
jvm 1    |      at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
jvm 1    |      at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
jvm 1    |      at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
jvm 1    |      at java.lang.Thread.run(Thread.java:748)
jvm 1    |
^Cwrapper  | INT trapped.  Shutting down.
jvm 1    | INFO  20:30:42,044 | 
org.apache.james.mailetcontainer.impl.JamesMailSpooler | start dispose() ...
jvm 1    | INFO  20:30:42,058 | 
org.apache.james.mailetcontainer.impl.JamesMailSpooler | thread shutdown 
completed.
wrapper  | <-- Wrapper Stopped
cryptearth@home:~/james-server-app-3.4.0/bin>

So, what ever was changed - 3.4 is broken - it doesn't work - neither 
out of the box - nor with correctly set up configs on a correctly 
configured box. As I expected the failed mail gets redirected to 
<james>/var/mail/error wich stores the mail and the stacktrace.
To verify I didn't screwed up I fired the 3.3 back up - executed the 
same Java code I used to send to gmail again - and the mail correctly 
came up at google.
TLDR: To anyone want to try James after the guide I wrote: Use 3.3 
instead of 3.4 - as 3.4 seem to be heavily broken in a couple different 
ways. I'm not deep enough into James itself - but as I'm a hobbiest Java 
developer I understand the stacktrace and can imply from it that 
something doesn't work as it should - and that mostly some (automated) 
checks either didn't run, failed, or the tests itself were written wrong 
so they pass as a false positive when they should actually fail.
As the compilation took about 1 hour I didn't put in the effort to check 
the current master branch - but as I would recommend a "finalized" tag 
instead of the current active developed master and currently 3.5 is in 
development I would suggest to just use 3.3 - at least I have a complete 
full build with all tests passed and have it in active service for at 
least since it was released.

So far from me on this issue.

Matt

Am 05.03.2020 um 14:14 schrieb [email protected]:
> hi Matt
>
>> so it took me quite some time to set up the VM and tinker all so it
>> So, although I didn't checked local DerbyDB nor Maildir as
>> mail storage at least with a mariaDB it worked.
> Could you also check with Derby? As the default setting that should be pretty easy.
>
>> Side note: Although this shouldn't make a difference, but I guess it's
>> worth mentioning: instead of using the "localhost" domain I set my real
>> domain. Maybe this is what makes a difference.
> It shouldn't, but that's interesting. I should be able to check that without going to a "real" email server by using an entry in the host file. So I'll give that a go. If it does turn out for me also that james doesn't like "localhost", I'll try it on a "real" internet server and see if I can get non local delivery also.
>
> --
> David Matthews
> [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.