Re: issues building 3.8.1 from source
Hello Matt, About JAVA_HOME, I think it is related to the maven javadoc plugin, which requires JAVA_HOME to be set. In my development environment, I often use the command: mvn clean package -DskipTests -Dmaven.javadoc.skip=true. Tung, Greetings from Vietnam On Sun, Jun 9, 2024 at 7:29 AM cryptearth wrote: > Hello everyone, > > just did a build of 3.8.1 from source and ran into a few quirks: > > 1) JAVA_HOME has to be set > As many of you know I use OpenSuSE as my main server OS (although from > day to day I reevaluate to stick to it) and until now I used the fresh > system to also compile James from source. Funny enough with all its > quirks I encountered of the years it worked fine with the usual "mvn > clean package -DskipTests". > But as I also did a run on my main system running Arch I ran into an > error due to I had not set JAVA_HOME explicitly. > Guess that's just another one of those "yea, suse does something > different than everyone else". Maybe this could added into the docs if > it isn't already? > > 2) 3.8.1 requires Java17 to build > Another issue on my Arch system happened due to its way newer Java > version 22. The build fails rather early on within the first few > sub-packages with something related to Scala. I'm not sure how this is > related to each other but as the error also had some lines in it with > "reflections" - well, as a Java dev I know: "When you think about using > reflections you don't need them as you do something way wrong!". So I > guess some changes between Java17 and Java22 lets the Scala compiler > fail fatal. > > If someone wants to reproduce: > > - set up two VMs: one with OpenSuSE LEAP15.5, the other one with Arch > - clone james-project with branch 3.8.1 > - run: mvn clean package -DskipTests > > With Java17 suse will build fine, Arch using Java22 fails rather early - > switching to Java17 on Arch gets the build quite far but then fails with > "JAVA_HOME not set" - after setting JAVA_HOME Arch also gets the build > done. > > So long, > > have a nice weekend everyone. > > Matt > Greetings from Germany > > > --------- > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > For additional commands, e-mail: server-user-h...@james.apache.org > > -- Tung, Tran Van *Phone:* (+84) 35 757 6258
Re: Docker Image Tags
Hi, James is using JIB to build images ( https://github.com/GoogleContainerTools/jib). Configured at: https://github.com/apache/james-project/blob/master/server/apps/jpa-app/pom.xml#L268 For my development, after the command `maven install` the image tar will be created at server/apps/jpa-app/target/jib-image.tar. After that `docker load -i jib-image.tar` to get the image. If you want to build image `apache/james: jpa-3.7.2`, you can `git checkout james-project-3.7.2` and then run the command maven build. Cheer, Tung, Tran Van On Tue, Nov 7, 2023 at 8:33 PM Garrett Singletary wrote: > I am working with James for the first time and am attempting to build my > own image (single node with some custom mailets) using the jpa-app compose > file< > https://github.com/apache/james-project/blob/3.8.x/server/apps/jpa-app/docker-compose.yml> > in 3.8 as a reference. The compose file references the > apache/james:jpa-latest as a base image but I am unable to tie this image > tag back to a tag in GitHub nor find a Dockerfile to see how it was built. > I see tags such as jpa-3.7.2 but again no explicit tie to a git tag, just a > suggestive image tag name (even though I assume this image was built from > the james-project-3.7.2 branch). > > How can I know which git tag jpa-latest was built from? > How can I know explicitly which git tag jpa-3.*.* was built from? > Am I able to see the Dockerfile for jpa-latest (this would be really > helpful if Iwanted to compile from src and create a custom image)? > > Thanks in advance for any help. > > > Garrett Singletary > > > -- Tung, Tran Van *Phone:* (+84) 35 757 6258
Re: Can two James instances share the same database?
Hi, Which James version you using? Jpa server? Vào Th 6, 3 thg 11, 2023 lúc 21:08 Matt Pryor < pr...@international-presence.com> đã viết: > Hi, we have set up two instances of James 3.8.0 (one main and one backup). > > Is there any reason why the two instances cannot share the same database? > > Thanks > Matt > > > -- > Kind regards > Matt Pryor > Software Developer > > The International Presence Group of Companies > EMAIL: pr...@presencebpm.com > URL: www.International-presence.com >
Re: Cannot receive email for local users
Hi, Did you add donain? Can you try: curl -XGET http://localhost:8000/ <http://localhost:8000/users>domains Vào Th 2, 17 thg 4, 2023 lúc 22:26 Mihai Zamfira đã viết: > Hi, > I have installed version 3.7.4 of Apache James on OEL8 and it works > integrated with Cassandra, Elasticsearch, SOGo (as web mail frontend) and > the users are stored in OpenLDAP. > LDAP configuration works and i can see users thru WebAdmin and also i'm > able to connect on IMAP fomr SOGO or others email clients. > The problem is with the SMTP server that refuses to recognize local users > reporting "550 5.1.1 Unknown user:" > > The content of the "usersrepository.xml" file looks like below: > > ldapHost="ldap://localhost:389; > principal="cn=domain_admin,dc=example,dc=com" > credentials=“" > userBase="ou=users,ou=james,dc=example,dc=com" > userIdAttribute="uid" > userObjectClass="person"> > true > true > > > Therefore the VirtualHosting it's enable and the user has ending with "@ > example.com" > > resuts from "curl -XGET http://localhost:8000/users; show me that the > Apache James can read users from OpenLdap > > [ > { > "username": "test.u...@example.com" > } > ] > > > The real problem appears when I try to set the SMTP server with the telnet > command and the result is shown below > > [root@mail ~]# telnet 127.0.0.1 25 > Trying 127.0.0.1... > Connected to 127.0.0.1. > Escape character is '^]'. > 220 Apache JAMES awesome SMTP Server > ehlo test > 250-mail.example.com Hello test [127.0.0.1]) > 250-PIPELINING > 250-ENHANCEDSTATUSCODES > 250 8BITMIME > mail from: > 250 2.1.0 Sender OK > rcpt to: > 550 5.1.1 Unknown user: test.u...@example.com > Connection closed by foreign host. > - > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > For additional commands, e-mail: server-user-h...@james.apache.org > > -- Tung, Tran Van *Phone:* (+84) 35 757 6258
Re: JRE 1.11 Requirement
Hi, This is a mistake on James's page. JVM 11 is exactly. Regards, Tung On Wed, Dec 15, 2021 at 5:17 PM Bs Serge wrote: > Hi all, > > The installation page says that James 3.6.0 requires a Java Version 1.11 > and I can't seem to find that version anywhere. With the switch to > time-based releases with Java 9, the naming scheme changed, and Java > versions aren’t prefixed with 1.x anymore. > > Does it mean the required version is Java 11 instead of 1.11? > > Kindly let me know, > > Best Regards, > -- Tung, Tran Van *Phone:* (+84) 35 757 6258 *Skype:* tung.tv202
Re: What is difference between Message-Id and EmailId ?
Thank Benoit for the fast response. I have understood. Cheers, Tung Vào Th 4, 14 thg 4, 2021 vào lúc 15:29 Tellier Benoit đã viết: > Hello Tung! > > Thanks for asking! > > The Mime Message-Id header is defined in RFC-822. You can more or less > relate it with the content of a message. > > The EmailId is defined in RFC-8621. It identifies a unique email in > somebody mailbox. > > Now consider: > > Bob sends a Message to Alice. That Message (as per RFC-822) will > correspond to two emails with the same content (one in Bob Sent mailbox, > one in Alice INBOX), so with the same Message-Id header, but two > distinct emailId. > > Also the usages are different. > > Message-Id is useful to relates messages to each other (A is a reply to > B, a forward) and can be used to form email threads. In your context > (Message Delivery Notification) it allows to know for which message a > given MDN is issued. > > EmailId designate a single email in somebody mailbox, and I can use it > to delete the email, update its flags, move it to another mailbox. > > https://jmap.io/spec-mail.html#emails > > > id: Id (immutable; server-set) The id of the Email object. Note > > that this is the JMAP object id, NOT the Message-ID header field > > value of the message [@!RFC5322]. > > The message-id field needs to be specified while generating emails. I am > unsure here but javax.mail / mime4j should set one if none is specified. > > Last but not least: this is a rather technical discussion, more related > to James development, but maybe not relevant for James users. As such I > believe next time we want to discuss technical details related to James > development (which is great!) we should do it on server-dev. > > Cheers, > > Benoit > > Le 14/04/2021 à 15:12, Tung Tran Van a écrit : > > Hello all, > > > > I am an amateur. I am confused about the difference between Message-ID > *(a > > field at header in MimeMessage)* and EmailId*(or MessageId, both have the > > same name)*. > > > > I usually use emailId to retrieve messages > > *(MessageIdManager.java.getMessage)*, but when I check related > MimeMessage > > results, I detect that the Message-ID Header has other value. > > > > So, What is the purpose of the Message-ID Header? How is it created? > > > > May somebody help me understand it? > > > > *Thank you,* > > > > *Tung, Tran Van* > > > > - > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > For additional commands, e-mail: server-user-h...@james.apache.org > > -- Tung, Tran Van *Phone:* (+84) 35 757 6258 *Skype:* tung.tv202
What is difference between Message-Id and EmailId ?
Hello all, I am an amateur. I am confused about the difference between Message-ID *(a field at header in MimeMessage)* and EmailId*(or MessageId, both have the same name)*. I usually use emailId to retrieve messages *(MessageIdManager.java.getMessage)*, but when I check related MimeMessage results, I detect that the Message-ID Header has other value. So, What is the purpose of the Message-ID Header? How is it created? May somebody help me understand it? *Thank you,* *Tung, Tran Van*