Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 07:19
    chibenwa synchronize #498
  • 07:06
    chibenwa assigned #502
  • 07:06
    chibenwa opened #502
  • Jun 18 09:39
    Arsnael synchronize #498
  • Jun 18 06:12
    chibenwa edited #501
  • Jun 18 06:01
    chibenwa assigned #501
  • Jun 18 06:01
    chibenwa opened #501
  • Jun 17 09:54
    chibenwa commented #499
  • Jun 17 09:49
    chibenwa assigned #500
  • Jun 17 09:49
    chibenwa opened #500
  • Jun 17 07:38
    Arsnael commented #499
  • Jun 17 03:15

    Arsnael on master

    JAMES-3589 Mailet processing wi… JAMES-3589 drop the no longer n… JAMES-3589 Move mailetcontainer… and 2 more (compare)

  • Jun 17 03:15
    Arsnael closed #448
  • Jun 17 03:11

    Arsnael on master

    JAMES-3491 Do not send two JMAP… (compare)

  • Jun 17 03:11
    Arsnael closed #493
  • Jun 16 13:57
    chibenwa commented #499
  • Jun 16 10:53
    Arsnael commented #499
  • Jun 16 08:33
    Arsnael assigned #499
  • Jun 16 08:33
    Arsnael opened #499
  • Jun 16 08:33

    Arsnael on upgrade-pdfbox-cve

    Upgrade pdfbox to 2.0.24 2 CVE… (compare)

Michael Mall
@mmallkc_twitter
We currently have deployed apache-james-3.0-beta4. I am working to test a solution that requires a custom mail header, X-Direct-Context. The implementation guide for this solution says " The cid-identifier in the X-Direct-Context header SHALL correspond to the value of a Content-ID header of the MIME part that contains the Metadata attachment (see Section 2.0 of this document), as per RFC 2045." Is it possible for James to add custom headers to sent messages and to the MIME parts of sent messages?
4 replies
Matthieu Baechler
@mbaechler
Ahah, staged builders as annotation processor : https://github.com/skinny85/jilt
19 replies
Junfa Wang
@wangjunfa_gitlab
This message was deleted
3 replies
Junfa Wang
@wangjunfa_gitlab
Hello!I'm learning Apache James 3.5.0 recently,but how to use 'DBFile Repositories'?This store message delivery and headers in the DB, and the body to the filesystem.http://james.apache.org/server/config-mailrepositorystore.html
Stoyan Bukovich
@Stoyan-Bukovich
Hello All, what parameters I need to enable in order to provide cert and key for cassandra-guice connection over SSL/TLS in cassandra.properties configuration file? Thank you for your help.
6 replies
Stoyan Bukovich
@Stoyan-Bukovich
james-server-cli.jar execution Error class javax.management.InstanceNotFoundException while executing command:org.apache.james:type=component,name=domainlist
any help appreciated. Thanks
10 replies
techkatta
@techkatta
Hello All, we have installed the Apache James v3.5.0 and able to send to remote. We are looking the best way to capture the delivery status of an each email. From where do we capture the delivery status ? If it is a mailet, where do we need to configure in mailet container ? Thank you for your help.
5 replies
Poovamraj T T
@poovamraj
Hey All, any idea how to fetch sent email? I tried IMAP connection to Sent and Sent Messages folder and couldn't find them (even though they are being sent). They have their uID, right? We do not have an 'All Mail' folder in James?
21 replies
vttran
@vttranlina
Hello all, I am learning JMAP. I have one question. When I request an invalid "EmailSubmission/set" method, I got the response that looks like below.
Is it necessary to have "Email/set" json?
I saw the "oldState" is equal to "newState". So, the invoke the Email/set is really necessary?
Jmap.io also has an example about this case. It looks like it doesn't mention an "Email/set" json.
{
    "sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
    "methodResponses": [
        [
            "EmailSubmission/set",
            {
                "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
                "newState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
                "notCreated": {
                    "k1490": {
                        "type": "forbiddenMailFrom",
                        "description": "Attempt to send a mail whose MimeMessage From and Sender fields not allowed for connected user: List(andre@domain.tld)"
                    }
                }
            },
            "c1"
        ],
        [
            "Email/set",
            {
                "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
                "oldState": "668a394e-a324-4d3d-bef0-945ae79f18c8",
                "newState": "668a394e-a324-4d3d-bef0-945ae79f18c8"
            },
            "c1"
        ]
    ]
}
6 replies
Matthieu Baechler
@mbaechler
Hi Linagora guys, out of curiosity, can you share what tmail is?
15 replies
ronMilne
@ronMilne
Hi everyone, I'm looking for some direction on authenticating James against Kerberos tokens (i.e. a pre-authenticated domain user) or via Active Directory by a username/password any documentation that I can read?
1 reply
Stoyan Bukovich
@Stoyan-Bukovich
Trying to avoid running James as root in order to improve security. I know I need root privileges for listening on any port below 1024, but lets say I set all ports (smtp, imap, pop) above 1024. For example: instead 25 I do 2025, instead 110 I do 2110 etc. and I do forward rule on the firewall 25 to 2025 etc. So my question is there anything else (other modules etc.) that might require root account privileges for running James or it's just the ports? Thanks
4 replies
Christopher Colemani
@chrisco484
Does James support importing all of the emails from an existing email account on Microsoft Exchange?
7 replies
Christopher Colemani
@chrisco484

The notes for the Basic James Server say it only supports secure comms:

Secure SMTP (SSL/TLS) over port 465

Secure IMAP4 (SSL/TLS) over port 993

What about senders who do not support SSL/TLS and need to send email to us via non secured port 25? Do we need to use the extendable server for that?

7 replies
Christopher Colemani
@chrisco484

I'm trying to build and run the James Guice + JPA server in Docker. The docker build works but this line:

docker run -v $HOME/.m2:/root/.m2 -v $PWD:/origin -v $PWD/dockerfiles/run/guice/jpa/destination:/jpa/destination -t james/project -s HEAD

Gives this error:

fatal: repository '/origin/.' does not exist

Do I need to have git installed on the server than I'm trying to install the James mail server onto and then pull the repo down before running?

I haven't done that. I just pulled down the master.zip from github, expanded it and tried to do the build there. I was hoping not to have to install git and pull down repos onto a production server to install the mail server.

3 replies
Christopher Colemani
@chrisco484

I thought I read somewhere that James binaries are built using Java 11 but can be deployed to a Java 8 JVM but I downloaded the latest 3.6.0 binaries and they have classes with version 55.0 meaning they require a JVM >= 11. Have I misunderstood something?

This link states Java 8 should be fine:

https://james.apache.org/server/install.html

31 replies
Christopher Colemani
@chrisco484
I noticed that it's possible to add email account aliases via the API. Is it also possible via the CLI?
7 replies
David R
@Xcreen
Hello,
we currently migrate a james 3.0.1 to 3.6.0.
Everything worked so far :)
But after a Mail was send (via SMTP) we get a stacktrace that the connection was closed.
Stacktrace is like: Unable to process request
java.io.IOException: ....
12 replies
Devon Hillard
@devondragon
I am using James (james-server-protocols-smtp) in a SpringBoot application. I setup a simple SMTP server using netty like: server = new NettyServer.Factory(new HashedWheelTimer()).protocol(protocol).build();
Everything works fine. I am now trying to add TLS/STARTTLS support for SMTP senders who support it. however, all the docs I've found for James TLS assume I'm running it as a strandalone XML configured app, rather than an embedded library. Any suggestions on where I might find docs or examples on how to add STARTTLS support to my app?
7 replies
Abdelrahman El Kinani
@Kinani

I'm trying to build handler on SMTP's RCPT TO command, Steps done:

  • created the class which implements ProtocolHandler, Hook, RcptHook.
  • uploaded the JAR file to conf/lib folder
  • updated smtpserver.xml
    And it's not getting picked up by games, throws error on start up:
    Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smtpserver': Invocation of init method failed; nested exception is org.apache.james.protocols.lib.handler.ProtocolHandlerLoader$LoadingException: Unable to load handler
    ....
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mailserver.hook.rcptto.CustomHandler': Failed to introspect bean class [com.mailserver.hook.rcptto.CustomHandler] for lookup method metadata: could not find class that it depends on;

Can anyone please advise on how to implement this correctly?

4 replies
Cosimo Damiano Prete
@cdprete

Hi guys. :)
I need to migrate from James 2.3 to 3.6.0 (sigh). Any suggestion?

I was thinking to use the Spring version but, am I right or there is no Docker image provided for it (already published)?
Also, it's not really clear how extensions work. How can I add some extensions (e.g.: some Kafka consumer/producer) and how can I listen to certain events (like an incoming message)?

What is exactly enabled out of the box? (AOP, bean override, load additional beans from jars, ...)

13 replies
Tellier Benoit
@chibenwa

Findings of the day: https://github.com/reactor/BlockHound

I think we should use this instrumentation in our JMAP integration test suite to detect (sneaky) blocking calls :-)

5 replies
Christopher Colemani
@chrisco484
When using James server (Guice/Derby version) in a Docker container is there any special shutdown required or simply the standard container 'docker stop containername' sufficient?
1 reply
Christopher Colemani
@chrisco484
I'm using James 3.6.0 Guice/Derby in Docker and have run imapsync to migrate thousands (>80k) emails into the Inbox of one user account. Things seem to be locking up and no longer working:

06:17:47.453 [WARN ] o.a.j.i.n.ImapChannelUpstreamHandler - Error while processing imap request
java.lang.NullPointerException: null
at java.base/sun.security.ssl.HKDF.extract(Unknown Source)
at java.base/sun.security.ssl.HKDF.extract(Unknown Source)
at java.base/sun.security.ssl.ServerHello.setUpPskKD(Unknown Source)
at java.base/sun.security.ssl.ServerHello$T13ServerHelloProducer.produce(Unknown Source)
at java.base/sun.security.ssl.SSLHandshake.produce(Unknown Source)
at java.base/sun.security.ssl.ClientHello$T13ClientHelloConsumer.goServerHello(Unknown Source)
at java.base/sun.security.ssl.ClientHello$T13ClientHelloConsumer.consume(Unknown Source)
at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(Unknown Source)
at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.consume(Unknown Source)
at java.base/sun.security.ssl.SSLHandshake.consume(Unknown Source)
at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(Unknown Source)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask.run(Unknown Source)
at org.jboss.netty.handler.ssl.SslHandler.runDelegatedTasks(SslHandler.java:1393)
at org.jboss.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1256)
at org.jboss.netty.handler.ssl.SslHandler.decode(SslHandler.java:852)
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425)
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
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.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

and this:

06:18:46.870 [ERROR] o.a.j.i.p.AbstractMailboxProcessor - Unexpected error during IMAP processing
org.apache.openjpa.lib.jdbc.ReportingSQLException: A lock could not be obtained within the time requested {prepstmnt 252799747 SELECT t0.MAILBOX_ID, t0.MAIL_UID, t0.MAIL_IS_ANSWERED, t0.MAIL_BODY_START_OCTET, t0.MAIL_CONTENT_OCTETS_COUNT, t0.MAIL_IS_DELETED, t0.MAIL_IS_DRAFT, t0.MAIL_IS_FLAGGED, t0.MAIL_DATE, t1.MAILBOX_ID, t1.MAILBOX_HIGHEST_MODSEQ, t1.MAILBOX_LAST_UID, t1.MAILBOX_NAME, t1.MAILBOX_NAMESPACE, t1.MAILBOX_UID_VALIDITY, t1.USER_NAME, t0.MAIL_MIME_TYPE, t0.MAIL_MODSEQ, t0.MAIL_IS_RECENT, t0.MAIL_IS_SEEN, t0.MAIL_MIME_SUBTYPE, t0.MAIL_T

I'm using James 3.6.0 Guice/Derby in Docker and have run imapsync to migrate thousands (>80k) emails into the Inbox of one user account. Things seem to be locking up and no longer working:

The error log was truncated but further down the logs indicated an OptimisticLockException had occurred - always fun to deal with :)

Cosimo Damiano Prete
@cdprete
Hi guys.
Regarding the registration of custom extensions, the docs (https://james.apache.org/server/dev-extend.html) say to add the jar in the extensions-jars folder and to register them in the extensions.properties file.
Unfortunately such file is not present in the repository (nor in the image), so my questions are:
  • where should this file be put exactly?
  • how is the format for registering one (or more) extension?
Cosimo Damiano Prete
@cdprete

Hi guys.
Regarding the registration of custom extensions, the docs (https://james.apache.org/server/dev-extend.html) say to add the jar in the extensions-jars folder and to register them in the extensions.properties file.
Unfortunately such file is not present in the repository (nor in the image), so my questions are:

  • where should this file be put exactly?
  • how is the format for registering one (or more) extension?

I reply to myself, in case somebody has the same questions:

  • the file needs to be in the conf folder
  • the format is:
    guice.extension.module=foo.bar.MyModule1,foo.bar.MyModule2
1 reply
Cosimo Damiano Prete
@cdprete
Hi guys.
Even configuring the james-database.properties file I don't get any email stored on the DB (not even the outgoing one sent by telnet).
Am I missing some configuration?
In the past I had to configure manually the datasource in the config.xml file and make all the processors point to such datasource (db://ds/MAILBOX for example)
how is this handled now?
Cosimo Damiano Prete
@cdprete
I've opened a ticket for asking some help https://issues.apache.org/jira/browse/JAMES-3580 :(
Christopher Colemani
@chrisco484

I'm using James 3.6.0 Guice/Derby in Docker and have run imapsync to migrate thousands (>80k) emails into the Inbox of one user account. Things seem to be locking up and no longer working:

While the OptimisticLockException is not good I think I worked out how to avoid it:

In Thunderbird: Don't turn on "Keep messages in all folders for this account on this computer" - that obviously wants to pull down all 80k messages from James via IMAP.

Even after I turned this off after being on for many hours the issue did not go away until I left James to its own devices for many hours after restarting it.

Cosimo Damiano Prete
@cdprete
Does somebody have any idea why ${env:FOO} is not replaced in Spring James and, moreover, why all the environment variables are not there as soon as the wrapper runs?
Christopher Colemani
@chrisco484
Logging messages are all dated with UTC time. Is there a config change to make the logs dated with local time instead?
5 replies
Nate McCall
@zznate
Hi folks - would really like to talk to anyone that worked on the Cassandra Blob Store implementation about potentially pulling this out for general use. Please ping on zznate@apache.org or zznate on asf's slack.
1 reply
Cosimo Damiano Prete
@cdprete
New day, new bug: https://issues.apache.org/jira/browse/JAMES-3583
Does anybody have any idea how to achieve remote debugging?
Devidas Satpute
@devidas_satpute_twitter
I am getting this error when i configure send email for alaram Could not convert socket to TLS
sheldon74b
@sheldon74b
I have a requirement to have James Server DB password and TLS security key encrypted in the XML configuration file. As any encrypted the file in the xml configuration and then during startup the app decrypts the password, so the system is able to start up successfully. The app is working fine but will not startup with encrypted password values.
3 replies
andrevka
@andrevka
Hi!
Has anyone tried finding script tags in received mails. Should this be solved using a mailet. Are there alternatives?
13 replies
techkatta
@techkatta
Hello friends, Could you guide me on below items
1) how to configure source IP whitelisting & domain whitelisting in James and which mailet should I use for this ?
2) how to configure email delivery to only certain list of targeted recipient's and not to any other recipients ?
Thank you.
4 replies
Krishna Prasad
@krishnakittu
HI Team
i am new to the James.
i am trying to execute the command sh james-cli.sh CreateMailbox #private rohan@localhost INBOX.newFolder
2 replies
its giving an error CreateMailbox should be used with 4 arguments but only 1 were provided
Eric Uldall
@ericuldall

Hi All,
I'm looking to setup a distributed james cluster and having an issue connecting to cassandra on datastax.

Example:

cassandra.nodes=db-id-us-east-1.db.astra.datastax.com:29080
cassandra.user=<client id>
cassandra.password=<client secret>

Is there any guidance out there on how to get this to work success fully?

4 replies
Krishna Prasad
@krishnakittu
Hi All
I made a mapping rule which tells when from is shri@localhost it should go to bounce@localhost. I made this with the rule sh james-cli.sh addaddressmapping shri localhost bounce@localhost. But the mail is not routed to bounce@localhost
Krishna Prasad
@krishnakittu
:point_up: May 22, 2021 9:35 AM, not an issue i solved it. Its an recipient rewriting rule. Can we do rewriting rule based on from address means who is sender/from of the mail
JFu
@JfDw
@chibenwa Hi, In the Jmap-draft, I do not find any implemention of these methods: 'getMailboxUpdate', 'getMessageListUpdate', 'getMessageUpdate', nor the codes for computing the 'state' value of messages. Is it not implemented yet?
1 reply
techkatta
@techkatta
Hello all,
Where do we find (configuration file) the ActiveMQ configuration details
? Can we use the external ActiveMQ instead of embedded?
1 reply
techkatta
@techkatta

Hello All, the "SenderIs" matcher with class RemoteDelivery is working , whereas with class "ToProcessor" it's not working. Are we missing anything to make it work? Below is the code for your reference

<mailet matcher="SenderIs=xyz@domain1.com" class="ToProcessor">
<processor>transport</processor>
</mailet>

9 replies
Neptunium1129
@Neptunium1129
can i use https://github.com/google/tcmalloc on the james? not useful?
1 reply
KillzoneAgency
@DanielMBrown

Is it expected that James would use a large amount of memory when processing large messages (Memory usage increase to 10x+ the size of the original message)?
In an application I'm contributing to that's built on James, we've been testing 500MB messages, and see memory usage sky rocket to several GB. We've yet to find anything in our application that would explain the huge increase in memory. The bit of profiling we've done, points to James; but perhaps we're integrating with it incorrectly.

We're using 3.5.0

10 replies