Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:51
    chibenwa commented #257
  • Oct 28 21:42
    antonok-edm opened #257
  • Oct 28 07:08
    andrevka synchronize #256
  • Oct 28 06:48
    andrevka synchronize #256
  • Oct 28 04:53

    asfgit on master

    JAMES-3436 Email/set create: Su… JAMES-3436 Email/set create: Su… JAMES-3436 Email/set create: Su… and 7 more (compare)

  • Oct 28 01:20
    chibenwa commented #255
  • Oct 27 02:07

    asfgit on master

    JAMES-XXXX Webadmin CLI help co… JAMES-3436 Email/set create - m… JAMES-3436 Email/set create - d… and 1 more (compare)

  • Oct 26 05:20

    asfgit on master

    JAMES-3411 [REFACTORING] Valida… JAMES-3277 Optimization: JMAP R… JAMES-3277 Optimize range messa… and 5 more (compare)

  • Oct 26 02:55

    asfgit on master

    JAMES-3350 Significantly fasten… JAMES-3430 Split PropertyBuilde… JAMES-3430 Remove unused bounda… and 8 more (compare)

  • Oct 23 08:17
    chibenwa commented #255
  • Oct 23 08:02
    rouazana commented #255
  • Oct 23 06:52
    chibenwa synchronize #255
  • Oct 23 05:43
    andrevka opened #256
  • Oct 23 04:37
    chibenwa opened #255
  • Oct 21 02:16

    asfgit on master

    JAMES-3412 Email/set update key… JAMES-3412 Email/set update key… [REFACTORING] Solve intelliJ wa… (compare)

  • Oct 20 03:16
    antonok-edm closed #254
  • Oct 20 03:16
    antonok-edm commented #254
  • Oct 20 03:02
    Arsnael commented #254
  • Oct 20 02:54

    asfgit on master

    JAMES-3411 Email/set update key… JAMES-3148 Fix instability in C… JAMES-3407 Read repair: improve… and 3 more (compare)

  • Oct 19 03:59

    asfgit on master

    JAMES-3414 MailboxIds partial u… JAMES-3414 MailboxIds partial u… (compare)

Leehuseung
@Leehuseung
In the james-server-mailets folder, there are some classes that use inject for dataSource, but I don't know why it is not available in MailboxAppender.
Ghost
@ghost~5f1d1d72d73408ce4fea8d16
This message was deleted
39 replies
Darren Bishop
@DarrenWBishop_twitter
Hi again, @ieugen . A weird request but here goes. In the DKIMVerifyTest class there are various Strings that represent messages with valid and invalid signatures. None of the messages have a Date header. I currently have no way to generate emails with signatures. However, integrating DKIM tests into our existing applications tests require that they have a Date header like so... Date: Tue, 15 Jan 2008 16:02:43 -0500. Do you have the ability to quickly generate emails with valid signatures, and, if so, would you be willing to generate one with a Date header?
3 replies
Thiên Nguyễn
@thiennt0402_gitlab

Is there any tutorial about setup Apache James in Spring boot project?

my usecase is receive email in that Sping Boot project, not mainly send email from that project

I found this dependency but I don't know how to setup:
https://mvnrepository.com/artifact/org.apache.james/james-server-spring/3.5.0

1 reply
Roody Aumoithe
@raumoithe_gitlab
I am using Thunderbird as my client with ssl1.2 and on the server side I get an exception: sslhandshakeexception no cipher suites in common. I added -Djdk.tls.server.cipherSuites to the wrapper.conf but the ciphers I added didn't seem to help. Does anyone know how I can see the ciphers supported by the server. Currently I can easily see the client ciphers because I also enabled -javax.net.debug=SSL,handshake
5 replies
Naveen Kusakula
@naveenkusakula
Hi Is tls 1.3 is supported now and any way to set it to default way??
6 replies
Leehuseung
@Leehuseung
If the mail has a specific subject, I want it to be delivered to a specific mailbox. Where should I look?
20 replies
Leehuseung
@Leehuseung
I want to know if the recipient has confirmed the mail by attaching an image tag to the mail content.
It doesn't matter if there is only one recipient of the mail.
When there are multiple recipients, the image tag must be included in the message body differently for each recipient.
Is there any way to solve this in apache james?
I am trying to check whether the other party has read or not in my mail client.
7 replies
Tolga Kaprol
@tkaprol

Hello,

I am using Docker version of "James with Guice + Cassandra + RabbitMQ + Swift + ElasticSearch".

I am trying to enable S/MIME encryption for outgoing messages. However I couldn't find any documents except:

http://people.apache.org/~bago/mailet/crypto/conf.html

It mentions that Bouncy Castle libs should be installed, however I couldn't find any information about how to achieve that.

Is there any example configuration to enable the lib and SMIME mailet ?

13 replies
samarth612
@samarth612
anyone using hedwig web server ?
jaehong
@jaehong_jeon_gitlab

Hello,
I am trying to enable tarpit configure as uncomment xml tag which is in smtpserver.xml, and tag belows

        <handler class="org.apache.james.smtpserver.fastfail.TarpitHandler">
            <tarpitRcptCount>5</tarpitRcptCount>
            <tarpitSleepTime>5000</tarpitSleepTime>
        </handler>

but when i run james server, it shows warn log like below
INFO 14:21:31,955 | org.apache.james.protocols.lib.netty.AbstractProtocolAsyncServer | This SMTP server requires authentication.
INFO 14:21:31,955 | org.apache.james.protocols.lib.netty.AbstractProtocolAsyncServer | No maximum message size is enforced for this server.
WARN 14:21:31,977 | 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 org.apache.james.protocols.lib.handler.ProtocolHandlerLoader$LoadingException: Unable to load handler
INFO 14:21:31,977 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | org.apache.james.mailetcontainer.impl.JamesMailSpooler dispose...
INFO 14:21:31,977 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | org.apache.james.mailetcontainer.impl.JamesMailSpooler thread shutdown completed.

do i need to fix another configure? or class "org.apache.james.smtpserver.fastfail.TarpitHandler" is missing?

Tellier Benoit
@chibenwa
@jaehong_jeon_gitlab There is no TarpitHandler in the 3.x release line. We likely should clean (and remove) the commented example in the default configuration
Rene Cordier
@Arsnael
@jaehong_jeon_gitlab which version of James are you using? this is not handled in version 3.x anymore of James as @chibenwa and has been removed in the source code already
jaehong
@jaehong_jeon_gitlab
I use 3.3.0. thus, is there any configuration for tarpit?
I try to use tarpit because of many uninteded email has been sent through my james mail server with {randomid}@mydomain.
in this case which configuration would be helpful? i already use smtp auth configuration.
svalluripalli
@svalluripalli
How to check if the email message is Out going or Incoming?
Does James has any Mailet or API call?
chaallengerr
@chaallengerr
Hi, when using apache james 3.5.0 with PostgreSQL I get this :
org.apache.james.mailbox.exception.MailboxException: Search of mailbox UserBound{namespace=Optional[#private], user=Optional[Username{localPart=support, domainPart=Optional[Domain : mydomain.com]}], mailboxNameExpression=org.apache.james.mailbox.model.search.PrefixedRegex@1174d} failed
at org.apache.james.mailbox.jpa.mail.JPAMailboxMapper.findMailboxWithPathLike(JPAMailboxMapper.java:199) ~[apache-james-mailbox-jpa-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.mailbox.store.StoreMailboxManager.searchMailboxes(StoreMailboxManager.java:620) ~[apache-james-mailbox-store-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.mailbox.store.StoreMailboxManager.searchMailboxesMetadata(StoreMailboxManager.java:599) ~[apache-james-mailbox-store-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.mailbox.store.StoreMailboxManager.search(StoreMailboxManager.java:595) ~[apache-james-mailbox-store-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.ListProcessor.respondMailboxList(ListProcessor.java:134) ~[protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.ListProcessor.processRequest(ListProcessor.java:79) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.ListProcessor.processRequest(ListProcessor.java:49) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:97) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:74) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:57) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:66) [protocols-imap-3.5.0.jar:3.5.0]
jvm 1 | at org.apache.james.imaps
Can anybody please point me to the right direction
I checked the sqlResources.xml and I cannot find a similar query pattern
Caused by: org.apache.openjpa.persistence.PersistenceException: Unterminated string literal started at position 213 in SQL SELECT t0.mailbox_id, t0.mailbox_highest_modseq, t0.mailbox_last_uid, t0.mailbox_name, t0.mailbox_namespace, t0.mailbox_uid_validity, t0.user_name FROM public.JAMES_MAILBOX t0 WHERE (t0.mailbox_name LIKE ? ESCAPE '\' AND t0.user_name = ? AND t0.mailbox_namespace = ?). Expected char {SELECT t0.mailbox_id, t0.mailbox_highest_modseq, t0.mailbox_last_uid, t0.mailbox_name, t0.mailbox_namespace, t0.mailbox_uid_validity, t0.user_name FROM public.JAMES_MAILBOX t0 WHERE (t0.mailbox_name LIKE ? ESCAPE '\' AND t0.user_name = ? AND t0.mailbox_namespace = ?)} [code=0, state=42601]
Another issue with receiving mail from non-local addresses.
When I send an email from gmail to a James account, gmail puts that in the sent mail folder, but nothing seems to happen on James side. I run james through its console, and not even any error or message get displayed relevant to it.
chaallengerr
@chaallengerr
The reverse of the issue used to exist as well until I changed configuration to not deny relay from remote netwrok on mailetcontainer config
but recieving emails from local addresses works perfectly
chaallengerr
@chaallengerr
I used the documentation on the website for setting up James 3.5.0 with Spring Boot. Was it outdated or is it still applicable?
jaehong
@jaehong_jeon_gitlab
Hello, i registered SPF with my apache james server and enabled SPFHandler configuration on smtpserver.xml
but with this configuration, log shows below
ERROR 16:26:31,901 | org.apache.james.protocols.netty.BasicChannelUpstreamHandler | Unable to process request
java.lang.NullPointerException: value should not be null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:895)
at org.apache.mailet.AttributeValue.ofAny(AttributeValue.java:120)
at org.apache.mailet.Attribute.convertToAttribute(Attribute.java:37)
at org.apache.james.server.core.MailImpl.setAttribute(MailImpl.java:786)
at org.apache.james.smtpserver.fastfail.SPFHandler.onMessage(SPFHandler.java:277)
at org.apache.james.smtpserver.DataLineJamesMessageHookHandler.processExtensions(DataLineJamesMessageHookHandler.java:180)
at
...
besides, i check the code on the SPFHandler.java, there is a comment with "// Store the spf header as attribute for later using"
thus, is this configuration not working so far?
svalluripalli
@svalluripalli
I have to read outgoing message attachments from S3 bucket and create an outgoing email. Is there any James poller to poll for messages already available?
Tellier Benoit
@chibenwa

Hi @chaallengerr

Can you open a JIRA ticket for this? See https://issues.apache.org/jira/browse/JAMES

Please specify the JDBC connector you are using... Can you also share the LIST command you are issuing?

Hi @jaehong_jeon_gitlab
Thanks for this report, we should create a ticket for this one.
Hi @svalluripalli
I don't understand what you try to achieve...
jaehong
@jaehong_jeon_gitlab
@chibenwa Thanks. Then, when will this issue be addressed? mayby james 3.5.0 or over?
jaehong
@jaehong_jeon_gitlab
Hi, I send Email to inavailable email address (ex. aa@bb.cc) then james make email that email can not be send which subject and sender address are null
is there any way to set email address and subject for this email?
3 replies
chaallengerr
@chaallengerr
@chibenwa Thank you for the reply! I tried a few days to make James work, and finally gave up and switched to postfix. So since I don't run the code anymore, I'm afraid I won't be able to write a better elaborated ticket on JIRA. If it suffices to just copy and paste the the existing explanation to JIRA, please let me know!
@chibenwa I'm not sure what a LIST command is, but I was getting these by running "./james console" in the bin folder.
Mehmet Kesiktaş
@Mkesiktas_gitlab
Hi there, does anyone experienced unencrypted mail problem? We are sending to gmail but says unencrypted. we are using 3.5 dockerisied version. Any help / professional support would be appreciated.
1 reply
Ronan D'Souza
@ronan696
Hi all, I am trying to use the LogMessage mailet that matches ALL mails but for some reason, I am unable to get the log displayed anywhere. Tried looking in the logs under james\log directory. The logging level is set to INFO (Sourcecode shows the message is being logged at INFO) Seems like I'm missing something basic. Does anyone know what could be the cause? And probably where/which file this entry is logged it? Thanks :)
1 reply
ozzy81
@ozzy81
Hello all. Are there any implications of changing the replication strategy in apache_james keyspace from SimpleStrategy to NetworkTopologyStrategy? We would like to have multi-datacenter configuration for Cassandra with two nodes per data cente. We are currently on James 3.4.0, The queries in this version seem to be set to QUORUM consistency for reads and writes, and are not configurable, we would have preferred LOCAL_QUORUM. Does anyone have prior experience with a multi-DC setup of Apache James? It would be great to have a few tips/things to watch out for. Thanks a lot.
Tellier Benoit
@chibenwa

@ozzy81 No you should be able to provide an already created keyspace using the NetworkTopologyStrategy.

We would like to have multi-datacenter configuration for Cassandra with two nodes per data cente.

Multi-dc is complicated. You can't achieve a LOCAL_QUORUM with 2 nodes per dc and tolerate a single node failure. (3 nodes per DC are required for that).
Also LOCAL_QUORUM can lead to possible inconsistencies, as 2 DC can take different decisions, like issigning id = 2 to different emails. But at the same time QUORUM requests are ridiculously expensive.
Likely, this dilemna can be addressed for specific use cases.

We are currently on James 3.4.0, The queries in this version seem to be set to QUORUM consistency for reads and writes

The upcoming 3.6.0 allows the use of LOCAL_QUORUM.

Does anyone have prior experience with a multi-DC setup of Apache James?

We did work a little on this topic at Linagora for a customer.

It would be great to have a few tips/things to watch out for. Thanks a lot.

Well, it's all about choosing the network topology and the consistency. Where it's tricky, James relies on lightweight transactions. Multi-DC can be achieved for SMTP / POP3, probably with a SMTP proxy ensuring a user mail always arrives in the same DC. IMAP is trickier, eg on flags updates, mailbox creation. Many things can go wrong.

ozzy81
@ozzy81
@chibenwa Thanks a lot for the detailed insights, just getting started with understanding the multi-DC setup for Cassandra so this is very helpful. You are absolutely right, LOCAL_QUORUM does not make sense for a 2 node per DC setup. I guess the way forward for now is to take the performance hit using QUORUM in a multi-DC setup, at least that ensures consistency. Could you provide me with a bit more info on your setup at the customer? Was it setup similar to above? Thanks a lot once again.
Tellier Benoit
@chibenwa
@jaehong_jeon_gitlab it will not be fixed before 3.6.0 release
Eugene Serkin
@jeserkin
Good day everyone. I am having a bit of a trouble with figuring out, what is actual JMAP api url for instance of Apache James, that I have. Any suggestion where I could look for it or what it potentially might be?
Tellier Benoit
@chibenwa
Hi @jeserkin
JMAP is only avalaibe for Guice distributions of the Apache James server, not for Spring. Could it be the routes of your issues?
NingGuo19
@NingGuo19
I am working on the project on the emailing using James. I need to store the verification email message, which is sent via James, to database using James mail repository. Is there anyone know the detailed steps to set it up? There is not much documentation on the James website. Your help much appreciated
1 reply
Tellier Benoit
@chibenwa
@NingGuo19 edit mailetcontainer.xml to add the matchers representing the conditions, and the ToMailRepository mailet to store the mails
NingGuo19
@NingGuo19
@chibenwa I tried the ToMailRepository, but I have an exception on class not found for ToMailRepository. I think you talk about ToRepository? I am using the James version of 3.0.0. Would you please advice that?
3 replies
@chibenwa Also, I tried ToRepository with repository path as db://soprano/deadletter/error, I am able to send out the email, but would you please advice which table I need to check at my database soprano the message sent and stored by the James?
aagarwal226
@aagarwal226
Hi ,
I am trying to process 1000 mails each of 2MB using james mailet but time taken to send all mails is more than 2 minutes. The expected transmission rate is 4000 mail/minute. What are the possible changes to tune performance? Spool thread are set to 1000.