Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 13 11:23

    asfgit on master

    JAMES-2642 Add alias mapping in… (compare)

  • Dec 13 10:01

    asfgit on master

    [Refactoring] Remove unecessary… MAILBOX-393 MailboxManager::del… MAILBOX-393 Make JMAP Mailbox d… and 14 more (compare)

  • Dec 13 06:00

    asfgit on master

    JAMES-2525 s/ObjectStorageBlobs… JAMES-2272 Improve CassandraMig… JAMES-2272 CassandraMigrationRo… and 1 more (compare)

  • Dec 13 02:39

    asfgit on master

    JAMES-2721 CassandraCluster ext… [Refactoring] Strongly type Fla… [Refactoring] SetQuotaRequest.R… and 24 more (compare)

  • Dec 12 02:18

    asfgit on master

    [Refactoring] Logout processor … [Refactoring] Get rid of ImapSe… [Refactoring] Stop mocking Imap… and 12 more (compare)

  • Dec 11 10:28

    asfgit on master

    [Refactoring] Move MaildirMailb… [Refactoring] Small access modi… [Refactoring] Remove unused cre… and 10 more (compare)

  • Dec 11 04:50

    asfgit on master

    Document Health checks routes r… [Refactoring] Run IntelliJ 'inn… [Refactoring] Move ElasticSearc… and 7 more (compare)

  • Dec 10 07:50
    rouazana closed #179
  • Dec 10 02:37
    chibenwa closed #171
  • Dec 10 02:37
    chibenwa commented #171
  • Dec 10 02:36
    chibenwa closed #180
  • Dec 10 02:36
    chibenwa commented #180
  • Dec 10 02:35
    chibenwa commented #179
  • Dec 10 02:30

    asfgit on master

    JAMES-2813 ADR about the new di… JAMES-2979 Disable FileMailQueu… JAMES-2979 Deprecate FileMailQu… and 24 more (compare)

  • Dec 09 03:09
    chibenwa synchronize #180
  • Dec 09 03:09

    asfgit on master

    [Refactoring] Remove MailboxMan… [Refactoring] Move MailboxAnnot… [Refactoring] Move DefaultTextE… and 39 more (compare)

  • Dec 06 09:06

    asfgit on master

    [refactoring] clean up array co… JAMES-3000 bump scala version t… (compare)

  • Dec 06 02:34

    asfgit on master

    JAMES-2992 PreviewDTO toString() JAMES-2992 MessageViewFactory g… JAMES-2992 MessageFastView model and 18 more (compare)

  • Dec 05 02:27

    asfgit on master

    [refactoring] use untilAsserted… [refactoring use untilAsserted … [refactoring use untilAsserted … and 4 more (compare)

  • Dec 04 07:39
    chibenwa commented #114
gbharath92
@gbharath92
i have created a two mailtes which have same business logic if i have sent a 100 mails to james server this two mailtes will process the same email (or) each mailtes different mails
Rene Cordier
@Arsnael
@gbharath92 : didn't get what you are trying to say sorry
@jtconsol : how much resources do you have allowed to run the James test suite? and with which maven command do you launch them? I think when couples of docker images with Cassandra, RabbitMQ, etc start running for the tests, it can become quite heavy
gbharath92
@gbharath92
what is Max Thread size of spooler
gbharath92
@gbharath92
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid5872.hprof ...
Heap dump file created [441198627 bytes in 0.428 secs]
gbharath92
@gbharath92
2019-12-04 12:24:32 [Thread ID=elastic-12] ERROR AbstractDomainList:223 - Cannot get IP address(es) for Domain : localhost
2019-12-04 12:24:32 [Thread ID=elastic-12] ERROR AbstractDomainList:223 - Cannot get IP address(es) for Domain : testnga.com
2019-12-04 12:24:32 [Thread ID=elastic-12] INFO SieveExecutor:132 - Can not locate SIEVE script for user samir@testnga.com
how to fix this
error
jtconsol
@jtconsol
@Arsnael good idea, i've just gone up from Xmx2g to Xmx8g. unfortunately that didn't help. i'm not launching maven myself, i'm running the docker run... command from james' github page, sans -s. options are provided via a -e JAVA_TOOL_OPTIONS=..., i can see that they're picked up in the console log...
gbharath92
@gbharath92
how to increase the dequeuing of apache james server spooler size
jtconsol
@jtconsol
@Arsnael also tried using MAVEN_OPTS instead, no dice. same shenanigans as before, memory does not seem to be a factor here...
jtconsol
@jtconsol
@Arsnael actually i can go as low as Xmx256m and get the same behaviour. which makes me think that this is setting is not really handed down to all aspects of the test (you mentioned docker images, for example)
Aaron Regan
@AaronRegan

HI!

We want to use JMAP to set a vacation response. The documentation provided was helpful for understanding what is required for setting Vacation Notifications, however it's still a bit unclear for us on how to send a JMAP request. Would you know of any example curl commands we could send to get a access token and setVacation notification.

For info were running James-cassandra-guice with docker, and JMAP has been enabled and port 80 exposed.

Any help would be much appreciated

Trần Tiến Đức
@trantienduchn

hello @AaronRegan It can look like this

curl 'http://localhost:1080/jmap' -X POST -H 'Origin: http://localhost:8080' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9,vi;q=0.8' -H 'Authorization: Bearer your-token' -H 'Content-Type: application/json; charset=UTF-8' -H 'Accept: application/json; charset=UTF-8' -H 'Referer: http://localhost:8080/' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36' -H 'Connection: keep-alive' --data-binary '[["setVacationResponse",{"update":{"singleton":{"id":"singleton","isEnabled":true,"fromDate":"2019-12-04T17:00:00Z","toDate":"2019-12-07T16:59:59Z","textBody":"hello"}}},"#0"]]' --compressed

You can try to examine the JMAP vacation through the Open-Paas product. It integrates James inside and there is a good front-end working with James, where you don't need to use CURL at all
https://docs.open-paas.org/getting-started/docker/

Trần Tiến Đức
@trantienduchn
example body when you read vacations
[["getVacationResponse",{},"#0"]]
gbharath92
@gbharath92
@chibenwa
When delivering a large (more than 200M) email:
INFO 04:11:45,402 | james.mailetcontext | Exception caught in RemoteDelivery.run()
java.lang.OutOfMemoryError: Java heap space
am getting this issue
Aaron Regan
@AaronRegan
@trantienduchn great , cheers !
Trần Tiến Đức
@trantienduchn

@gbharath92 hello, 200MB of a single email not a normal email, it might be a good reason James fails to process that mail. The possible solution could be reducing your email size.

In case of avoid java.lang.OutOfMemoryError: Java heap space, let put a bigger Xmx, but better to not put an email with 200MB into James IMO

gbharath92
@gbharath92
@trantienduchn hi, it`s not a 200MB file it is a 100 emails and the total email size is 200MB
Trần Tiến Đức
@trantienduchn
May I ask which product you are using? From the error line you posted, there was a problem with RemoteDelivery but I need more information, can you provide more logs?
Matthieu Baechler
@mbaechler
@trantienduchn let me disagree with you, that's not normal to run out of memory, we must have some way to reject operations before they break the server by putting a limit on mail size for example
Trần Tiến Đức
@trantienduchn
I asked Benoit, we have that option maxmessagesize in smtpserver.xml. BTW that's not the actual issue @gbharath92 encountered
gbharath92
@gbharath92
@trantienduchn I have fixed the issue
how to run in James in linex
Trần Tiến Đức
@trantienduchn
what do you mean by linex ?
jtconsol
@jtconsol
@Arsnael @mbaechler any guesses as to what makes certain tests flip-flop on my setup even across different machines?
jtconsol
@jtconsol
i also have a new issue, concerning mail aliases / recipient rewrites. these, in contrast to mailbox adresses, are case-sensitive. for example, if i have a mailbox test@localhost, i can write to TEST@localhost and the mail will be delivered. if i have a mail alias from case@localhost to test@localhost and i write to CASE@localhost, it will be rejected with 5.1.1 Unknown user: CASE@localhost. - is this how it's supposed to work in James?

interestingly, section 2.4 of RFC 2821 has the following to say on case sensivity:

The local-part of a mailbox MUST BE treated as case sensitive. (...) However, exploiting the case sensitivity of mailbox local-parts impedes interoperability and is discouraged.

Rene Cordier
@Arsnael
@jtconsol : Hi sorry for the delay
regarding the tests, well some are not always very stable to be honest, but we try to fix and enhance some of them with time. I still suspect maybe a lack of resources... how much ram and cpu do you have allowed in total to your test machine? even if you allow more resources to your docker run with maven, I think if I'm not wrong the other docker images (Cassandra, Elasticsearch, RabbitMQ, etc) still run in other docker containers externally that will rely on what's left on your system. Cassandra is quite hungry on resources I think for example...
Rene Cordier
@Arsnael
regarding case sensitivity, there has been some work on that lately, to try to force the case-insensitive ... which version of James are you using already?
Rene Cordier
@Arsnael
@jtconsol : It seems to be case-insensitive now, but that work I think has not been released yet, as it was recent. I just pushed a PR adding an integration test to demonstrate it, tell me if that addresses your issue: linagora/james-project#2985
jtconsol
@jtconsol
@Arsnael thanks! running off HEAD, this works for mail aliases the same way it does for mailboxes, i.e. case insensitive. is this case insensivity widely accepted as best practice nowadays, albeit the note in the RFC? also, there's other address mangling stuff being mainly pushed by google i guess, e.g. ignoring dots. what is the general stance of the project in this regard?
jtconsol
@jtconsol
@Arsnael re: tests - ok, i will have a look at the test resources more closely... the machines i'm running this on are not too flimsy i thought (i7s with 16/24gb ram)
Raphaël Ouazana
@rouazana
@jtconsol for the moment we only ensure case insensitivity of mail address inside the James supported domains. For other domains (think of relay), we don't assume anything on mail address and case sensitivity can be enforced by other servers/providers. Regarding ignoring dots, we are not doing anything particular for James by default, but you should be able to write a mailet if you want to enforce this behavior in your server instance.
@jtconsol maybe this PR could improve things: linagora/james-project#2977 . By the way did you try this way to launch tests? https://github.com/apache/james-project/#how-to-check-the-compilation (without the -s option). Sometimes I have better results by launching the test suite in docker.
jtconsol
@jtconsol
@rouazana oh no, i don't want to implement off-spec google behaviour :) that being said, i fully agree with the choice to use case insensivity locally. this is widely regarded as standard. all of my colleagues didn't now about that RFC passage anyhow :O
@rouazana for what i reported, it was always about the dockerized tests... i will see how far i get with current HEAD...
jtconsol
@jtconsol
ah now i see this change is still WIP - will check back when it's finished and merged to master... btw, is there release date slated for 3.5.0?
Raphaël Ouazana
@rouazana
@jtconsol when it's ready? ^^ But we should not be so far from that ;)
jtconsol
@jtconsol
@rouazana cool :)
jaehong
@jaehong_jeon_gitlab
hello, i tried to run james 3.3.0 with oracle(11g), i encountered 2 problems
    1. i run james it failes imediately with exception "creating bean with name usersrepositoy.. etc. "
    1. "name is already used by an existing object .. " but i checked my oracle , it was created.
      how can i fix it?
Matthieu Baechler
@mbaechler
@jaehong_jeon_gitlab : can you share the full stacktraces in a gist or something like that?
jaehong
@jaehong_jeon_gitlab
@mbaechler here's below
474 James INFO [main] openjpa.jdbc.JDBC - Connected to Oracle version 11.11 using JDBC driver Oracle JDBC driver version 11.2.0.2.0.
WARN 07:16:43,151 | org.apache.james.container.spring.context.JamesServerApplicationContext | Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticator' defined in class path resource [META-INF/org/apache/james/spring-mailbox-authenticator.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.james.user.api.UsersRepository]: : Error creating bean with name 'usersrepository': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.apache.james.user.lib.AbstractUsersRepository.setDomainList(org.apache.james.domainlist.api.DomainList); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'domainlist': Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException: Unable to execute lifecycle method on beandomainlist; nested exception is <openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: ORA-00955: name is already used by an existing object
{stmnt 1075390175 CREATE TABLE JAMES_DOMAIN (DOMAIN_NAME VARCHAR2(100) NOT NULL, PRIMARY KEY (DOMAIN_NAME))} [code=955, state=42000]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usersrepository': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.apache.james.user.lib.AbstractUsersRepository.setDomainList(org.apache.james.domainlist.api.DomainList); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'domainlist': Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException: Unable to execute lifecycle method on beandomainlist; nested exception is <openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: ORA-00955: name is already used by an existing object
{stmnt 1075390175 CREATE TABLE JAMES_DOMAIN (DOMAIN_NAME VARCHAR2(100) NOT NULL, PRIMARY KEY (DOMAIN_NAME))} [code=955, state=42000]
Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticator' defined in class path resource [META-INF/org/apache/james/spring-mailbox-authenticator.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.apache.james.user.api.UsersRepository]: : Error creating bean with name 'usersrepository': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.apache.james.user.lib.AbstractUsersRepository.setDomainList(org.apache.james.domainlist.api.DomainList); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'domainlist': Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException: Unable to execute lifecycle method on beandomainlist; nested exception is <openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: ORA-00955: name is already used by an existing object
{stmnt 1075390175 CREATE TABLE JAMES_DOMAIN (DOMAIN_NAME VARCHAR2(100) NOT NULL, PRIMARY KEY (DOMAIN_NAME))} [code=955, state=42000]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usersrepository': Injection of autowired dependencies failed; nested exception
it i just configure james-database.properties
Matthieu Baechler
@mbaechler
@jaehong_jeon_gitlab Please don't put huge traces in gitter, it's almost impossible to read and it bothers other users. There are so many solutions available like putting it in a gist for example.
I don't know exactly why but James tries to create JAMES_DOMAIN table but it already exists