by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 18 06:09

    asfgit on master

    JAMES-3376 Document upcoming Ma… JAMES-3376 SystemMailboxesProvi… JAMES-3376 Implement Mailbox/qu… and 2 more (compare)

  • Sep 18 06:04

    asfgit on master

    JAMES-3377 fix elastic search c… JAMES-3377 filter before receiv… JAMES-3377 filter after receive… (compare)

  • Sep 18 01:58

    asfgit on master

    JAMES-3369 Implementation for E… JAMES-3369 EMail/get fast view … JAMES-3369 EMail/get fast view … and 5 more (compare)

  • Sep 17 03:09

    asfgit on master

    JAMES-3375 allow sorting by arr… JAMES-3375 filter message in a … JAMES-3375 implements inMailbox… and 1 more (compare)

  • Sep 16 10:22

    asfgit on master

    [Security fix] Upgrade org.apac… (compare)

  • Sep 15 10:44

    asfgit on master

    JAMES-3028 add retry for reacto… JAMES-3028 promote DataChunker … JAMES-3028 S3 DumbBlobStore Imp… and 22 more (compare)

  • Sep 15 02:27

    asfgit on master

    JAMES-2890 Split JMAP RFC-8621 … JAMES-3372 Email/get specific u… JAMES-3368 Porting Keywords + K… and 3 more (compare)

  • Sep 14 06:44

    asfgit on master

    JAMES-3369 Email/get preview & … (compare)

  • Sep 14 02:55

    asfgit on master

    JAMES-2809 createBucket needs t… JAMES-3371 JMAP Email/query All… JAMES-3371 set default sort to … and 20 more (compare)

  • Sep 11 20:11
    mbaechler closed #246
  • Sep 10 10:42
    Arsnael commented #246
  • Sep 10 10:39

    asfgit on master

    [Refactoring] remove some scala… [Refactoring] refine error hand… JAMES-3369 Email/get bodyValues… and 2 more (compare)

  • Sep 09 04:54

    asfgit on master

    JAMES-3363 validation when dese… JAMES-3370 Email/get unparsed h… (compare)

  • Sep 08 09:23
    chibenwa commented #246
  • Sep 08 09:18
    mbaechler commented #246
  • Sep 08 03:42

    asfgit on master

    JAMES-3369 EmailBodyPart data m… JAMES-3369 EmailBodyPart traver… JAMES-3369 Contract test for Em… and 16 more (compare)

  • Sep 07 03:34

    asfgit on master

    JAMES-3366 VacationResponse/set… JAMES-3366 VacationResponse/set… JAMES-3366 Guice binding for Va… and 13 more (compare)

  • Sep 05 10:42
    mbaechler opened #246
  • Sep 04 03:02

    asfgit on master

    JAMES-3362 add properties filte… JAMES-3362 add a vararg constru… JAMES-3363: Reorganize how to i… and 1 more (compare)

  • Sep 03 03:23

    asfgit on master

    JAMES-3365 Method extraction re… JAMES-3365 Rework Properties ob… JAMES-3365 Move Properties into… and 10 more (compare)

svalluripalli
@svalluripalli
I have to write this code on apache-james-3.0-beta4 or beta5 versions
Appreciate your help
Tellier Benoit
@chibenwa
@Rajh Have a look into mailet. (I think it is better documented)
To answer your very question, the envolppe is attached as attachments of the SmtpSession.
The SMTP server in James provides SSL and startTls out of the box.
@svalluripalli have a look into mailet ( http://james.apache.org/howTo/mail-processing.html ) & MIME4J for the parsing.

I have to write this code on apache-james-3.0-beta4 or beta5 versions

I would highly recommend you to use a recent, maintaned and not-beta version

svalluripalli
@svalluripalli
Thank you so much Tellier
Leehuseung
@Leehuseung
Hello. If the message object has a specific header, I want the Flag.FLAGGED property to enter '1' when entering the user's INBOX.
I don't know where to fix it. Help,
Eugen Stan
@ieugen
@Leehuseung: I think you should check the MailboxListener
Darren Bishop
@DarrenWBishop_twitter
hi all. Is there any documentation or reference I can use to help in understanding how to use DKIMSign? Also the same question for setting DKIMVerify and DKIMSign's config. On initial glance at the code for both of these it seems that there's no way to set these object's config. Thanks.
Rajh
@Rajh
@chibenwa Hi,
From what I undertand from mailet, it requires a james-server and I should add xml configuration to load mailets.
The thing is, I want a simple SMTP server embedded into my app. Not launching a full standalone james server.
Just wanted a new SMTPServer(); server.onMessage(...)
David Leangen
@dleangen
@Rajh, unfortunately James is not built for that purpose. That said, it should be pretty easy to send out emails from your app even just using javax.mail.
Rajh
@Rajh
@dleangen I want to receive them
David Leangen
@dleangen
What you may want to do is set up a standalone James server, insert a custom Mailet, and use your Mailet to communicate with your app. Could that approach work for you?
Rajh
@Rajh
Yes, but I wanted a simplier approach, I thought I could use a sub part of james to create a simple SMTPServer which was only handling messages.
Started a POC with a NettyServer and the protocol SMTPProtocol. And I added MessageHook AuthHook
But I don't know if its secure, or if I should use the org.apache.james.smtpserver.netty.SMTPServer but I'm having trouble to configure it
Tellier Benoit
@chibenwa
@Rajh Ok I got the need.
Such a usage is right now undocumented, so if you succeed to achieve this goal, contributing back documentation on how to do so would be apprecietated.
@dleangen proposal seems also good to me.
samarth612
@samarth612
ERROR 14:21:22,802 | org.apache.james.fetchmail.StoreProcessor | A MessagingException has terminated processing of this Folder
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 192.168.0.8, 110; timeout 190000;
nested exception is:
java.net.SocketException: Permission denied: connect
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:217)
at javax.mail.Service.connect(Service.java:366)
at javax.mail.Service.connect(Service.java:246)
at org.apache.james.fetchmail.StoreProcessor.process(StoreProcessor.java:63)
at org.apache.james.fetchmail.FetchMail.run(FetchMail.java:487)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Permission denied: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:357)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.pop3.Protocol.<init>(Protocol.java:118)
at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:271)
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:213)
... 11 more
INFO 14:21:22,850 | org.apache.james.fetchmail.StoreProcessor | Finished fetching mail from server '192.168.0.8' for user 'samarth.shah@synersoft.in' in folder 'Inbox'
INFO 14:21:22,872 | org.apache.james.fetchmail.FetchMail | Fetcher completed fetches
INFO 14:21:40,510 | org.apache.james.fetchmail.FetchScheduler | FetchMail dispose...
INFO 14:21:40,513 | org.apache.james.fetchmail.FetchScheduler | FetchMail ...dispose end
INFO 14:21:40,515 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | start dispose() ...
INFO 14:21:40,518 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | thread shutdown completed.
i am trying to get mail from my thunderbird id
but this kind of error is coming
Tellier Benoit
@chibenwa
Hello,
@samarth612 you are likely to use FetchMail here. FetchMail support is experimental, the code mostly untested.
I would advise you to use raw IMAP (tested & stable) of POP3 (stable).
svalluripalli
@svalluripalli

@Rajh Have a look into mailet. (I think it is better documented)
To answer your very question, the envolppe is attached as attachments of the SmtpSession.
The SMTP server in James provides SSL and startTls out of the box.

trying to run 3.4.0 version as recommended and getting this error: ERROR 14:42:45,100 | org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor | Unable to init mailet WithPriority
org.apache.mailet.MailetException: Could not load mailet (WithPriority) (java.lang.IllegalArgumentException: 'priority' init parameter is compulsory)

I found the configuration has <value>8</value>
any recommendations on fixing this so I can move forward?
svalluripalli
@svalluripalli
I changed the value to priority and it worked... Thank you.
svalluripalli
@svalluripalli
@svalluripalli
I have setup James App 3.4.0 from a build, added:
apache-james-mailbox-store-3.4.0.jar
blob-api-3.4.0.jar
blob-objectstorage-3.4.0.jar
to classpath: $JAMES_HOME/lib
Also, added blob.properties file with aws-s3 bucket configurations to $JAMES_HOME/conf folder. Started James , configured domain, created users and sent messages.
I don't see blob storage code is getting called, Is there any other configurations or libraries missing?
Rene Cordier
@Arsnael
Hi @svalluripalli
From what I can see with your previous messages, you are using the Spring JPA product of James correct? Blob object storage has not been implemented for this, if I'm right, and I don't think it is either for JPA Guice. However, the other Guice products have the blob storage support that you are looking for.
Would suggest you to either switch to a product supporting it, or well contributions are always welcomed too :)
svalluripalli
@svalluripalli
where can I get the Guice version of Apache James?
I downloaded this source code:https://github.com/apache/james-project.git
and build it to get the apache-james-app-bin
Please help me pointing to the correct version of James with Guice source code.
Appreciate all your help
svalluripalli
@svalluripalli
At present we don't want to use Docker version of James
Rene Cordier
@Arsnael
Maybe this can help you? https://james.apache.org/server/quick-start-cassandra.html
Manual install with james cassandra guice product. Not sure if it's up-to-date though
After I don't know what kind of installation around James you want to use? For this you need a Cassandra db and an elasticsearch running next to James for example
samarth612
@samarth612
my maildir folders are empty after running the batch file in james .
and my mailbox provider is maildir
svalluripalli
@svalluripalli

Maybe this can help you? https://james.apache.org/server/quick-start-cassandra.html
Manual install with james cassandra guice product. Not sure if it's up-to-date though
After I don't know what kind of installation around James you want to use? For this you need a Cassandra db and an elasticsearch running next to James for example

We just need basic James SMTP / POP3 capabilites

Thank you for the URL, I will try this setup. I am also successful writing a simple Mailet for our current version of Apache James, If this Mailet functionality works without any performance issues, then we are good.
svalluripalli
@svalluripalli
Hi All, I am writing the mailet, my Mailet should get called only for Inbound messages, no need to be called for Outbound. How can my matcher check if the mail is Incoming or Outgoing?
Eugen Stan
@ieugen
what do you mean by Incoming?
and what do you mean by Outgoing?
svalluripalli
@svalluripalli
Incoming email message, received messages
Outgoing is sending email
Eugen Stan
@ieugen
If it's incomming you could use a smtp hook to mark the email message with a header or something
and then in the mailet you could check that
but the distinction is not clear since all email messages are being sent via SMTP and hence all are incommming, being processed and then delivered eitehr remotely ro locally to the mailbox
perhaps Incommming -> to a local domain , Outgoing -> remote domain.
In that case you allready have RecipientIsLocal
and the rest of *isLocal
svalluripalli
@svalluripalli
got it.. This s helpful
Eugen Stan
@ieugen
yw