Re: Current state of adopting JMAP spec

2020-09-28 Thread Matthieu Baechler
Hi Juhan,

I don't have answers to everything but I nonetheless answered a few
questions below.

On Mon, 2020-09-28 at 12:45 +0300, Juhan Aasaru wrote:

[...]

> The work that the Linagora employed contributors are working on - is it
> pushed via PR-s to the main branch often or is it developed elsewhere and
> it will be available in the end once it is completed?

I'm not part of it any longer but Linagora always pushed code via PR
and merged to apache master.

[...]

> > 
In the meantime I would discourage using the Draft version.
> 
> Unfortunately we cannot delay displaying out the emails to users and
> composing new email so we have to pick something and implement it (even if
> that means we have to rewrite it later).
> Currently this only has to have basic functionality (read and send) as it
> is needed for MVP.
> 
> I understand we have 3 options at the moment:
> * pick James 3.5.0 now and rely on jmap-draft. Rewrite UI later to final
> jmap spec.

It's definitely an option. If you are doing a proof-of-concept, you
should adopt this strategy

> * pick current (unpublished) state of James with partial RFC-8621 support
> and start to build on top of that + use
> https://github.com/linagora/jmap-client at the same time for UI
> Build sending emails on top of jmap-draft. Risk of going live on top of an
> unpublished version of James.

Don't confuse unpublished with unreleased: James master is very stable
and ready to use. If you intend to do more than a proof-of-concept in
the coming weeks, you should choose this solution.

> * pick James 3.5.0 + some ready-made open source mail client that works on
> top of IMAP and once RFC-8621 is all ready and merged (and published as a
> new James version) then move the whole UI to using that.

I would not do that: IMAP web client are a mess, you will probably
invest much time in this solution and will just drop it in some weeks.

> 
> I wonder how many members in the community run production on top of an
> unpublished version.
> Is it something that generally shouldn't be done?

I don't really have a personal production setup yet but I would not
fear that: the master branch is usually better than last release
because there's always a bunch of bugs fixed and very few new
introduced thanks to our extensive testsuite.

Cheers,

-- Matthieu Baechler


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Incoming messages via web service & using custom email headers

2020-09-27 Thread Matthieu Baechler
Hi Juhan,

That's an awesome project !

To answer your question: it would not be hard to provide a endpoint to
"send a mail" in a server-to-server context.

It's just a matter of writing an extension to the webadmin code (it's
basically where all REST APIs are located) that would retrieve the
MailQueue and call enqueue to it.

Feel free to ask for help if needed.

Cheers,

-- Matthieu Baechler

On Fri, 2020-09-25 at 17:11 +0300, Juhan Aasaru wrote:
> Hi!
> 
> We'll start to build a system for a government where each resident
> will
> have a digital postbox and any government party can send messages and
> documents to any of the residents securely. That means when email
> arrives
> at the resident's mailbox the resident will get a notification to his
> main
> email or cell phone and has to log in to webmail to see the whole
> message.
> 
> We find distributed Apache James to be a very good fit for our
> problem and
> we plan to set it as the center of our system. So thank you everyone
> who
> has contributed to the project. We also plan to contribute a lot to
> the
> James project in upcoming months.
> 
> One of the first questions that we have is that the messages that
> travel
> from some kind of internal document management system to the digital
> postbox of the resident (via web services) - these messages are
> always not
> exactly an email but also contain some additional fields that carry
> information that will be later needed by mailets and UI that displays
> them
> (we plan to use JMAP for displaying).
> 
> 1.Would it be possible for messages to arrive into James via any
> other
> means besides SMTP protocol (like a web service endpoint). If not
> then
> would it be something that could be built by ourselves (and
> contributed
> back)?
> 
> 2. what would be the best way to add the additional fields into the
> email
> so that they could be later read by UI and mailets that process them.
> We
> were thinking about using custom header names like
> "X-MySystemName-CategoryName". Do you see any downsides for that?
> 
> Thanks
> Juhan Aasaru


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Java Mail API Sort

2020-05-13 Thread Matthieu Baechler
Hi Sean,

On Wed, 2020-05-13 at 16:27 +, Sean McElroy wrote:
> Hello,
> 
> Is there any way to configure James so that it supports the
> com.sun.mail.imap.IMAPFolder getSortedMessages method?

Could you tell us what you are trying to achieve and how? Do you have
some code snippet to show us maybe?

> Thanks,
> Sean
> 
> Confidential Communication: The contents of this e-mail including any
> attachment are confidential and intended solely for the person(s) to
> whom they are addressed. Any reader of this email who is not the
> intended recipient is notified that any dissemination, distribution
> or copying of this communication is strictly prohibited. If you have
> received this e-mail in error, please notify the sender immediately
> and delete all copies from your computer system. Subsequent
> alterations to this email after its transmission will be disregarded.

Well, this kind of legal footer has no place on a mailing list, could
you configure your mailer agent to avoid sending that as it's
irrelevant in that context?

Cheers,

-- 
Matthieu Baechler


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Building JAMES

2020-04-26 Thread Matthieu Baechler
On Mon, 2020-04-27 at 15:32 +0900, David Leangen (Apache) wrote:
> Thank you, Rene.
> 
> Is that a hard requirement? If so, then I will have to wait until we
> update to Java 11 (which is not scheduled at this time), so I’ll
> likely have to abandon for now.
> 
> Shouldn’t it be possible to compile in Java 8, though? This page
> states that JRE8 is the requirement:
> 
>   —> https://james.apache.org/server/quick-start.html

This guide is about deploying an already-compile James server.

Up to James 3.5 (which has a pending release), you could run with Java
8 JRE.

Starting with James 3.6, you'll need Java 11.

What you are trying to do is to compile it yourself, the requirements
are differents.

For some times now (probably 3.4) we use Java 11 compiler but target
Java 8.

Cheers,

-- Matthieu Baechler


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Best single-node setup

2020-04-23 Thread Matthieu Baechler
On Mon, 2020-04-20 at 13:15 +0100, David Matthews wrote:
> > Hi,
> > 
> > I am about to deploy a James instance for personal usage. I have a
> > restricted budget (say 50€/month) so I'm looking for the best setup
> > possible for that target.
> 
> hi Matthieu
> 
> It's not so easy to understand what information you're hoping for, 

You are right. Thanks for your try, I will try to refine my questions.

Given my budget, I'm wondering which hardware/software combination is
the more relevant.

For example: 

* Should I take a big VM and choose Postgres/JPA backend with ActiveMQ
and Lucene?
* Should I choose a big VM with Cassandra/ElasticSearch and Rabbitmq? 
* Or should I go the container way with docker compose and another
selection of software component?

Each solution has some benefits and as I didn't had to target that kind
of setup in the past, I'm wondering what people do.

> but I assume some sort of virtual machine offering is going to meet
> your needs. I have experience of VMs at Bytemark and Linode, but I'm
> not well informed about which companies offer the best service/price,
> although both of those two are OK.
> 
> > * IMAP + SMTP (in and out)
> > * TLS + SPF + DKIM
> 
> You're talking about working to a budget and deploying your own James
> server, so surely you'll deal with configuring James to give IMAPS
> access and SMTP yourself? 

Yes, configuring is not an issue.

> Here's my 2 cents worth on SPF and DKIM. 
> 
> 1)It's absolutely essential that you configure your domain's DNS with
> these (and also DMARC) and that James signs outgoing email with your
> DKIM private key. If you don't do that you'll be relying on
> recipients at yahoo, gmail, hotmail etc to whitelist your email
> address to get them delivery to inbox rather than junk folders. 

Thank you for the tip.

> 2)The effective way to avoid get deluged with incoming spam yourself
> is to configure James to use DNSBLs. If you do that, my experience is
> that you don't really need to worry about checking SPF and DKIM (or
> DMARC) on incoming email. Fact is that most spammers are already in
> these blocklists, so just dropping everything that has been caught
> there will solve the incoming spam problem at least 95%. I find that
> with that in place even running spamassassin offers little extra.

Ok, good to know

> Here's a couple of Howto's to set up James (including IMAPS, DKIM and
> DNSBL)
> 
> https://dmatthews.org/java_email.html
> 
> and to configure your domains DNS with SPF, DKIM and DMARC. 
> 
> https://dmatthews.org/email_auth.html
> 
> That last page is rather tinyDNS specific, but it will be of some
> help even if your domain's DNS server uses some other system, in
> which case feedback would be appreciated and will be added to that
> page.
> 

I will definitely look at your guides, they look great.

-- 
Matthieu


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Best single-node setup

2020-04-20 Thread Matthieu Baechler
Hi,

I am about to deploy a James instance for personal usage. I have a
restricted budget (say 50€/month) so I'm looking for the best setup
possible for that target.

What I expect is:

* IMAP + SMTP (in and out)
* TLS + SPF + DKIM
* very low incoming mail loss probability
* speed is not a big issue
* some GiB of emails and a handful of user accounts
* single domain for a start

What setup would you put in place for that target?

Cheers,

-- 
Matthieu


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: DKIM With Virtual Hosting

2020-01-01 Thread Matthieu Baechler
Hi Jerry,
Here is what gmail think about your email:

DKIM validation fails. It can be a problem with the way you sign the
mail or a problem with Apache mailing-list implementation.
Could you send me a direct mail to matth...@apache.org so that I can
check?
Cheers,
-- Matthieu Baechler
On Fri, 2019-12-27 at 10:49 -0600, Jerry Malcolm wrote:
> I know just enough about DKIM to be very dangerous... so bear with
> me 
> here...
> 
> I am still struggling with mail I send being bounced.  In the interim
> to 
> protect my clients, I configured some of my tomcat apps to use
> Amazon's 
> SES (SMTP) service bypassing my JAMES server.  I analyzed the mail
> sent 
> via AWS just to see what might be different.  One thing I see is TWO 
> DKIM signatures... one for the "from" domain of the email and
> another 
> for the sending host domain "amazonaws.com".
> 
> I have had JAMES configured with DKIM for years. But all I have is a 
> DKIM signature for my main server domain and not for each individual 
> sending domain.  mail-tester.com hasn't complained. But again, mail
> is 
> bouncing from some domains like icloud.com, outlook.com, etc.  So 
> "something" is still wrong Everything is on the table as
> possibly 
> flawed right now.
> 
> So what is the 'right' way to do DKIM?  I am going to assume that if
> AWS 
> is signing for both the virtual domain and the sending server
> domain, 
> that's probably a good thing.  But I don't see a way in the JAMES
> DKIM 
> mailet to add a second signature for the sending virtual host domain.
> 
> Am I missing something?  Is my DKIM fine with only signing the basic 
> server?  Should I continue to look elsewhere for my problems?  Or
> should 
> I do additional work to start signing the virtual sending domain as
> well?
> 
> Thx
> 
> Jerry
> 
> 
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
> 


Re: Moving Servers Wipes Out iPhone's Mail Accounts (IMAP Trace attached)

2019-11-08 Thread Matthieu Baechler
Hi Jerry,

On Tue, 2019-10-29 at 15:12 -0500, Jerry Malcolm wrote:
> Ok, I need an IMAP expert Below is a very brief trace of the 
> communications between iPhone mail and JAMES (3.4).  I completely 
> deleted an account on my iPhone, then recreated it while in airplane 
> mode to make sure I didn't miss any communications in my trace.  I 
> started the trace, exited airplane mode and let the iPhone do an
> initial 
> sync with the account.  The inbox folder in this account has over
> 1000 
> emails going back to early 2019.
> 
> I'm not an expert in IMAP.  But it appears that the iPhone mail app 
> requests all of the emails 1:* (see line 812), but JAMES returns a 
> single id plus two ranges (line 813).  But the total count JAMES
> reports 
> is nowhere near the full 1000.  Subsequently (line 822), iPhone
> requests 
> the emails JAMES told it about in line 813.  From what I can tell,
> the 
> problem is in line 813.  JAMES did not report all of the actual mail 
> that is in the INBOX, which is exactly what I'm seeing on the
> phone.  
> Shouldn't JAMES return all 1000+ email ids that exist in INBOX?  Or
> am I 
> reading the IMAP trace incorrectly?

You are right, if there's 1000+ messages, it should be returned by
these calls.

> 
> Note that the only emails JAMES reports came in AFTER I migrated to
> the 
> new server and to the James 3.4 from v3b5.  It appears that there is 
> something different about pre-existing emails in the mailbox folder
> that 
> is causing JAMES not to recognize them.  But this problem ONLY exists
> on 
> the iPhone mail app.  Thunderbird gets all of the mail for the
> inbox.  
> So is iPhone must be sending a slightly different request command
> syntax 
> than other clients do (??)  Just speculating
> 

The best thing to do is to get a trace from Thunderbird for the same
scenario.

My best guess is that one client trigger a search whereas the other is
just triggering a full-scan.

Are you using JPA? With with indexing backend?

-- 
Matthieu Baechler


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: [Vote] migration to java 11

2019-10-25 Thread Matthieu Baechler
Hi dear users,

This decision could interest you: in short, I propose a migration to
Java 11 as a runtime.

Feel free to give your feedback.

On Thu, 2019-10-24 at 16:43 +0200, Matthieu Baechler wrote:
> Hi,
> 
> I would like to propose the migration to Java 11 as a runtime.
> 
> I opened an ADR here: 
> https://github.com/apache/james-project/pull/174
> 
> Here is the content of this ADR:
> 
> ---
> # 9. Migration to Java Runtime Environment 11
> 
> Date: 2019-10-24
> 
> ## Status
> 
> Proposed
> 
> ## Context
> 
> Java 11 is the only "Long Term Support" java release right now so
> more
> and more people will use it exclusively.
> 
> James is known to build with Java Compiler 11 for some weeks.
> 
> ## Decision
> 
> We adopt Java Runtime Environment 11 for James as a runtime to
> benefits
> from a supported runtime and new features
> of the languages and the platform.
> 
> ## Consequences
> 
> * It requires the upgrade of Spring to 4.3.x.
> * All docker images should be updated to adoptopenjdk 11.
> * The documentation should be updated accordingly.
> 
> ---
> 
> Voting rules:
> 
> I do propose a vote to ensure consensus on it:
>  - Answer this mail with "+1" to support this decision
>  - Answer this mail with "-1" if you reject this decision
> 
> Negative votes should be motivated. Voting ends on 31th October 2019
> 8am UTC.

Cheers,

-- 
Matthieu Baechler


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Moving Servers Wipes Out iPhone's Mail Accounts

2019-10-23 Thread Matthieu Baechler
Hi,

On Tue, 2019-10-22 at 17:55 -0500, Jerry Malcolm wrote:
> Hi Matthieu,
> 
> I can add some log/trace statements into the low-level imap
> processing.  
> I tried digging into the source, but got pretty bogged down.  If you
> can 
> point me to the best java class to put the logging code, I can make
> that 
> happen.
> 
> In the meantime, to try to keep moving on the problem, I just did a 
> tcpdump on my phone's ip address.   Not quite as clean as a
> formatted 
> imap trace.  But the info is there.   Hopefully someone knows what
> to 
> look for in the trace.  It was too large to include inline.  It's at 
> https://jwmhosting.com/imaptrace.txt

Do you have a raw tcpdump file (instead of a text version) so that I
can open it in wireshark?

> Let me know where to insert the imap trace in the code, and I'll try
> to 
> get a cleaner trace tomorrow.
> 

I had a second look at that but it's not as easy as I thought:
actually, Netty is providing a ChannelBuffer to
NettyImapRequestLineReader but this class, despite its name, is not
line-oriented, so it's not straightforward to have line-oriented logs.

I'm reluctant to modify this code for now as I have little knowledge of
the way it work.

So I suggest we go ahead with tcpdump strategy.

Cheers,

-- 
Matthieu Baechler


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Moving Servers Wipes Out iPhone's Mail Accounts

2019-10-22 Thread Matthieu Baechler
Hi Jerry,

I don't think trying to guess what happen will help you much. I would
rather try to capture the IMAP session.

I see two ways to do that:

1. you write a IMAP session logger in James (it should be really easy,
I don't know why it's not already there)

2. you disable SSL on the phone and do a tcpdump on the server

Once you'll have the IMAP session capture, it will be easier to
diagnose your problem.

Cheers,

-- 
Matthieu Baechler


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: 3.4.0 AWS S3 Storage

2019-09-30 Thread Matthieu Baechler
Hi Jerry,

On Fri, 2019-09-27 at 17:16 -0500, Jerry Malcolm wrote:
> I moved to 3.4.0 today with no major hurdles.  I'm thrilled with the 
> announcement about using AWS S3 for blob storage.  This is huge for
> me.  
> I figure it'll reduce my 80+gB SQL database by about 95%.  That will 
> help with storage cost as well as migration, backup, and just about 
> everything dealing with mail.

I'm so happy that people are excited about this work.

> I need to be fully up and running with my current configuration
> before I 
> start attempting anything new. But I'd really like to start reading 
> about it and figuring out a path to get there.  I know it was just 
> announced today.  So if docs are still thin, I understand.  But  I 
> couldn't find a link to documentation on how to setup/configure/use
> the 
> S3 function.  Sorry if I overlooked it. Just wanted to know if there
> is 
> a document, a sample, or anything that'll help my education process
> on this?
> 

And I'm so sad the documentation is so hard to browse and understand.

Here is the configuration for configuring the blob-store to S3 or
Swift: http://james.apache.org/server/config-blobstore.html

There's probably some work to do to make it work with JPA. For now,
only the Cassandra backend (with guice wiring) as been tested with it.

If you're interested in working on that topic, we can provide you some
guidance.

Cheers,

-- 
Matthieu Baechler


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



[ANNOUNCE] Apache James 3.4.0 released

2019-09-27 Thread Matthieu Baechler
The Apache James community is proud to announce you the 3.4.0 release
of the Apache James server.

Apache James provides a complete, stable, secure and extendable Mail
Servers running on the JVM. 

In this release, we continued the hard work hard toward providing a
highly scalable mail server.

More details about Apache James CHANGELOG can be found at: 
https://james.apache.org/james/update/2019/09/05/james-3.4.0.html

The release is available for download at:
https://james.apache.org/download.cgi#Apache_James_Server

We would like to thank all of contributors who made the release
possible and to invite others interested in helping out to engage the
community on the dev and users lists!

Best regards,

-- 
Matthieu Baechler


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: MQ in JAMES

2019-07-01 Thread Matthieu Baechler
Hi,

sorry for the long delay

On Wed, 2019-06-26 at 10:58 -0500, Juan Carlos Buitrago wrote:
> Hi,
> 
> I'm currently in the process of planning a simple SMTP app to add
> footers
> and scan for keywords in all outgoing company email. I've read some
> of the
> documentation and it looks like this can be done setting up JAMES as
> an
> SMTP relay and a couple of mailets to add footers and scan for
> keywords.

It's a use case where James should shine

> I've seen that there is no updated version of James HA. So my
> question is,
> What happens to mail being processed when calling a programmed
> shutdown?
> What happens to mail on an abrupt restart? Does it stay in the queue
> until
> the server restarts?

James rely on ActiveMQ persistence and transactionnality so you should
restart the processing when the server restarts.

> Since the app is simple, I'm planning to just run multiple instances
> balanced by some external balancer. Is there any problem with this
> approach?

It's fine. You should just make sure the filesystem is persistent
because ActiveMQ stores its data on it.

> Lastly, Can JAMES use other MQ products or does it have to use
> ActiveMQ?

ActiveMQ is used in its embedded form. There's another MQ
implementation that uses RabbitMQ if you like experimental stuff.

We are polishing this RabbitMQ implementation right now so it should be
production-ready in the near future.

Cheers,

-- 
Matthieu Baechler


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: current master branch fails to spool

2019-04-19 Thread Matthieu Baechler
Hi,

Could you tell me a bit more about how you see that it fails ?

Cheers,

-- 
Matthieu

On Tue, 2019-04-16 at 17:16 +0200, cryptearth wrote:
> Hi there, Matt here.
> 
> I just run a quick test of current master branch (16th April 2019
> 17:00 
> UTC+2) - it fails to spool incoming mails correctly. They stuck in 
> activequeue. Current 3.3.x branch works fine.
> 
> Branches as of tested time:
> 
> master: last update 3rd April
> 3.3.x 25th March
> 
> System: opensuse 15.0 with MariaDB 10.3 and connector 2.3.0 run in 
> virtual box 6.0
> 
> Also: standard ulimit of 1024 is way to low - needed to raise over
> 6144 
> to get maven build with -DskipTests on openJDK10 with 
> --add-modules=java.xml.bind - I already used google - seems maven
> issue 
> since Java9. Didn't tested with Java8 nor Oracle VM.
> 
> Matt
> 
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
> 
> 


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Options for backup / redundancy

2018-11-12 Thread Matthieu Baechler
Hi Matt,

What you are refering to looks like a "backup MX" (you configure a
second MX with a lower priority).

You can do it with any SMTP server and you probably can handle that
with James if needed.

I didn't tried that setup yet.

Cheers,

-- 
Matthieu Baechler

On Mon, 2018-11-12 at 11:44 +, Matt Pryor wrote:
> Hi there
> 
> We currently run James 3.0.1 on a single server.
> 
> Does anyone have experience setting it up on multiple servers for
> redundancy?
> 
> Ideally we would like to use one as a primary SMTP server, but in
> case that
> is unavailable we can reroute to the other one using failover logic
> on the
> mail client side.
> 
> Obviously they will have different IPs so we'll need to amend MX
> records to
> permit mail from either.
> 
> Can the backup server be configured to send incoming mail to the
> primary
> one?
> 
> Any tips or best practices would be very much appreciated.
> 
> Matt
> 
> 


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Evolution with James

2018-08-20 Thread Matthieu Baechler
Hi Ashton,

For your information, I use Evolution with James for months without any
issues.

Disabling the QResync should really be enough for your setup to work.

Cheers,

-- 
Matthieu

On Thu, 2018-08-16 at 21:13 -0700, Ashton Holmes wrote:
> Ahhh alright. I've disabled it client side but I might also disable
> it
> server side for now. Thanks for the info.
> 
> On Fri, 2018-08-17 at 09:19 +0700, Benoit Tellier wrote:
> > Hello,
> > 
> > Thanks for the report.
> > 
> > This is a James bug.
> > 
> > The QResync (RFC-5162) is known to be buggy, and considered
> > experimental.
> > 
> > I advise you to either:
> >  - Configure your client to no rely on QResync
> >  - Disable QResync capability advertising in James. This can be
> > done
> > in
> > imapserver.xml using the  QRESYNC tag.
> > 
> > See for instance https://issues.apache.org/jira/browse/JAMES-2278
> > which
> > seems to exactly be your issue.
> > 
> > Note that there is a fix available for that issue, but we miss a
> > correct
> > testing strategy.
> > 
> > Cheers,
> > 
> > Benoit
> > 
> > Le 17/08/2018 à 01:56, Ashton Holmes a écrit :
> > > I neglected to include a stack trace in my original email:
> > > Aug 16 11:53:50 debian run.sh[29671]: WARN  11:53:50,942 |
> > > org.apache.james.imapserver.netty.ImapChannelUpstreamHandler |
> > > Error
> > > while processing imap request
> > > Aug 16 11:53:50 debian run.sh[29671]:
> > > java.lang.IndexOutOfBoundsException: Index: 6, Size: 6
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > java.util.ArrayList.rangeCheck(ArrayList.java:657)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > java.util.ArrayList.get(ArrayList.java:433)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imap.processor.AbstractSelectionProcessor.respon
> > > d(
> > > Abst
> > > ractSelectionProcessor.java:234
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imap.processor.AbstractSelectionProcessor.doProc
> > > es
> > > s(Ab
> > > stractSelectionProcessor.java:8
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imap.processor.AbstractSelectionProcessor.doProc
> > > es
> > > s(Ab
> > > stractSelectionProcessor.java:6
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imap.processor.AbstractMailboxProcessor.doProces
> > > s(
> > > Abst
> > > ractMailboxProcessor.java:110)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imap.processor.AbstractMailboxProcessor.process(
> > > Ab
> > > stra
> > > ctMailboxProcessor.java:97)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imap.processor.AbstractMailboxProcessor.doProces
> > > s(
> > > Abst
> > > ractMailboxProcessor.java:89)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imap.processor.AbstractMailboxProcessor.doProces
> > > s(
> > > Abst
> > > ractMailboxProcessor.java:71)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imap.processor.base.AbstractChainedProcessor.pro
> > > ce
> > > ss(A
> > > bstractChainedProcessor.java:57
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imap.processor.base.AbstractChainedProcessor.pro
> > > ce
> > > ss(A
> > > bstractChainedProcessor.java:66
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imap.processor.base.AbstractChainedProcessor.pro
> > > ce
> > > ss(A
> > > bstractChainedProcessor.java:66
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.apache.james.imapserver.netty.ImapChannelUpstreamHandler.mess
> > > ag
> > > eRec
> > > eived(ImapChannelUpstreamHandle
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstre
> > > am
> > > (Sim
> > > pleChannelUpstreamHandler.java:
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Defau
> > > lt
> > > Chan
> > > nelPipeline.java:564)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHand
> > > le
> > > rCon
> > > text.sendUpstream(DefaultChanne
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.jboss.netty.channel.Channels.fireMessageReceived(Channels.jav
> > > a:
> > > 296)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMes
> > > sa
> > > geRe
> > > ceived(FrameDecoder.java:462)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(Frame
> > > De
> > > code
> > > r.java:443)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(
> > > Fr
> > > ameD
> > > ecoder.java:303)
> > > Aug 16 11:53:50 debian run.sh[29671]: at
> > > org.jboss.netty.chan

Re: Multiple Databases?

2018-05-09 Thread Matthieu Baechler
Hi Jerry,

It's a common need for big mail providers, and it make complete sense
to have cold/hot storage depending on the access pattern.

There are several solutions to that problem.

One is to implement your business logic (about what is hot or cold) in
your mailbox implementation and delegate to the right components.

Another is to introduce an Archive concept in james and define a new
interface for that in a way that doesn't hide that concern: it's
probably a much better idea to be able to handle archiving process,
etc.

In both solution, you need to instanciate more than one MailboxManager
to handle the different kind of storage.

We once implemented an archive tool (it's here https://github.com/linag
ora/OBM/tree/master/java/sync/imap-archive ) that handle the process of
taking emails from people imap tree and put them into an "archive/year"
tree that is stored on a cheaper storage. It's not as simple as it
seems so I would be more confident doing it as a first class concept in
James.

My 2 cents.

-- 
Matthieu

On Tue, 2018-05-08 at 14:08 -0500, Jerry Malcolm wrote:
> I realize this is a completely off-the-wall question... but has
> there 
> been any discussion about breaking the JAMES db into multiple 
> databases?  I have a bunch of clients, each with a bunch of
> accounts.  
> And they all want to archive all of their mail and be able to access
> it 
> through the same mail client.  As the years go by, the db just keeps 
> growing and growing.  This became acutely obvious when I was
> recently 
> forced by my server provider to migrate to newer hardware, and I 
> realized I had to have mail down for a long time while I transferred
> a 
> 60gB+ file across a slow connection to the new server.  The db size
> is 
> also making daily backups a problem.
> 
> The reality is that 90% of the mail is archived into 'year' folders
> for 
> each of the accounts which are basically "read-only" now.  Only a 
> relatively small amount of mail is truly in dynamically updated 
> folders.  If there was a way to store "/archives/2002" folders
> through 
> "/archives/2017" folders in one db and all of the other folders in 
> another db, it would make backup and migration a much simpler task.
> 
> Ok, I'm pretty sure that isn't in the immediate plan.  But just let
> me 
> put my vote in.  Alternatively, is there any alternative to having
> one 
> ever-growing mail db?  Is there some trick with the db server that
> can 
> present one logical db from multiple db files?  (I know a lot about 
> databases... but there's still a bunch I don't know).  Has anyone
> else 
> faced/addressed this problem?  Or is the answer to just live with it?
> 
> Thanks.
> 
> Jerry
> 
> 
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
> 
> 

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Upgrade compatibility to Elasticsearch version 5 or 6

2018-03-07 Thread Matthieu Baechler
Hi Andrej,

It's definitively something we have to do (alongside Cassandra 3
upgrade), but we are currenlty working on Quota features and Spam
detection right now, so we don't have time to handle that for now.

Of course, if you want to look at this task we can offer our help.

Cheers,

-- 
Matthieu

On Wed, 2018-03-07 at 16:01 +, Andrej Maya wrote:
> Dear all,
> 
> is there any plans to upgrade the elasticsearch client compatibility
> of
> James to newer versions like 5 or even 6? Running with an
> Elasticsearch
> 5.x.x gives me this Error message: "IllegalStateException: Received
> message
> from unsupported version: [2.0.0] minimal compatible version is:
> [5.0.0]"
> 
> regards,
> 
> Andrej

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Accented characters in a notice

2018-01-22 Thread Matthieu Baechler
Hi Craig,

The first thing is : it's xml, so you need to use legal xml for your
text. AFAIK, the 3 solutions are correct.

The second thing is : the message is generated without taking too much
care about the email encoding. I suspect that if you receive a mail
that is not UTF-8, the appended notice won't be correctly encoded.

Would you mind attaching your mailetcontainer.xml and a bounced message
with the problem you described ?

Cheers,

-- 
Matthieu Baechler

On Thu, 2018-01-18 at 12:59 -0500, Craig Cudmore wrote:
> Some of the notice messages i need to generate in Bounce mailet need
> to contain accented characters (messages need to be multilingual for
> our users).
> 
> Anyone know what the proper format is for including accented
> characters in a notice parameter in mailetcontainer.xml? I’ve tried 
> é
> à
> à
> 
> and none of these result in the proper accented character in the
> generated message.
> 
> Thanks.
> -
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
> 
> 

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: James 3.0 RC1

2017-06-07 Thread Matthieu Baechler

Hi Fernando,

On 06/07/2017 09:18 AM, Fernando Cassia wrote:

On 6/7/17, Benoit Tellier  wrote:

Hi,


To modify the configuration, you can mount it on a volume.

Here is the mount option: " -v $PWD/path/to/your/config:/root/conf"

what is $PWD in this context?
$PWD doesn't matter, he should have omit that : the first path (before 
":") is local path, the second part is the path inside the container.

is /root/conf a real folder or a virtual folder??

Sorry I'm new to all this. Next time, please make your examples a
little more verbose.

Honestly, you can't switch to docker overnight without at least giving
users or future users a little crash course on how things work when
dockerized.
Just to be clear about that : the team didn't switched to docker. It is 
just a delivery artifact that comes as a bonus. Whoever is good at 
docker can quick start with James easily.

Others can very well build docker from source and make it work like before.

In both cases, James needs some configuration files to work.
Sample configuration are in dockerfiles directory (that is ambiguous and 
we will move them out), for example : 
dockerfiles/run/guice/cassandra/destination/conf contains configuration 
files to make a james over cassandra and ElasticSearch running.


Regards,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: failed to compile from source - again

2017-06-06 Thread Matthieu Baechler

Hi,

There's several things worth saying :

1. I'm pretty sure you can build james by preventing the test suite to 
execute (-DskipTests should do the trick)


2. A huge test suite is something every serious software should have but 
it makes everything more complicated. What would you prefer : random 
bugs appearing with every commit or a hard to manage test suite ? 
Actually, we try to manage this complexity by providing a standardized 
test env : the docker image.


3. if you want more support, please connect to our gitter channel : it's 
much more comfortable for most people and would probably avoid calling 
our work "crap"


Hope you join us soon on gitter,

--
Matthieu Baechler

On 06/05/2017 11:00 AM, cryptearth wrote:

So, to start this of with a meme: One does not simply - compile Apache 
James from source.
Idk if and what I'm doin wrong here, but either its my hardware 
screwing up everything I've learned about Java (would explain random 
crashes in GTA5 tho) or I'm just to stupid to correctly setup the 
needed build environment to get a successfull build.
But let me start from the beginning why I'm back after abandoning this 
mail-list (still not used to this kind of public communication):


So as I was successfull to compile one of the latest builds before 
this project moved to Docker and have it running on my 
openSuSE-tumbleweed server since (and as smart as I am: deleted the 
built package - of course!) - I just looked up the main project page 
and noticed: oh, it's out of beta - RC1 available for download. But as 
the page shows "Docker" (sidenote: yea - I know it makes sense to 
"containerize" such code - to run a Java code as root is not the 
smartest idea one can have) I said to mysefl: "screw it - compile from 
source" - and off we go from "wonder if it's still crap as last time I 
tried" to "what the F*?".


So let me show the results first and then let me explain why I think 
my hardware is broken:


vm - opensuse tumbleweed - failed: apache-james-mailbox-hbase
vm - debian 8.8.0 - failed: james-server-mailets
host - win7 sp1 ulti x64 - failed: apache-james-mailbox-store

I don't bother you with posting the logs - as it seems some wired 
random-ish but surprisingly re-produceable stuff going on here:
As building james isn't more than compiling Java source into bytecode 
- and as Java is supposed to be platform-independent - it should fail 
on the exact same point on each different system - but it doesn't. 
Unlike earlier tries where it "crashed" random on the same system - at 
least no it's "crashing" on the same spot every time - but why and 
how? The only difference are Linux vs Windows and openJDK8u131 vs 
Oracle 8u121 - and as far as I know Java as a hobbiest dev this 
shouldn't happen. At least the error should be the same accross 
differnt systems - no matter if VM or real hardware.


Ok, the error on windows seems to be some wired random-ish encoding 
issue, see the few lines of log as follows:


Failed tests:
  DefaultTextExtractorTest.textTest:44 expected:<...e awesome text text.[
]
"> but was:<...e awesome text text.[
]
">

I can only imagine there is something goin on with different 
line-endings as the build expecting only linux-style \n while my 
windows using \r\n - confusing the equality check to fail (some more 
like this if you try to bootstrap ant from source on windows - it 
fails cause windows doesn't support posixfileattributes - wich could 
checked and handled in a very easy way - but this should belong to the 
ant-maillist).


The other two on the linux-based systems are very strange:

On the openSuSE (ok, to be honest - it's the distro I "grew up" with - 
and strangely the only major distro that somehow no body seems to like 
and therefore isn't really supported at all - just: WHY? cause its 
german?) it fails with java.lang.ExceptionInInitializerError for 
org.apache.james.mailbox.hbase.user.HBaseSubscriptionMapperTest. 
followed by java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.james.mailbox.hbase.user.HBaseSubscriptionMapperTest


On the debian (wich went way better and further than the other two) it 
fails with this crap:


Failed tests:
RemoteDeliveryTest.remoteDeliveryShouldSplitMailsByServerWhenNoGateway:123 


Expecting:
 <[FakeMail{msg=null, recipients=[ot...@james.apache.org, 
a...@james.apache.org], name=mail_name-to-james.apache.org, 
sender=null, state=null, errorMessage=null, lastUpdated=null, 
attributes={}, size=0, remoteAddr=127.0.0.1}, FakeMail{msg=null, 
recipients=[a...@james2.apache.org], 
name=mail_name-to-james2.apache.org, sender=null, state=null, 
errorMessage=null, lastUpdated=null, attributes={}, size=0, 
remoteAddr=127.0.0.1}]>

to contain only:
 <[FakeMail{msg=null, recipients=[a...@james.apache.org,

Re: Mailbox Persistence James 3b5 please help

2017-04-05 Thread Matthieu Baechler

Hi,

First, I would not recommand using maildir, it's not as good as JPA.

Anyway, to choose your mailbox storage backend with spring, the file the 
edit is mailbox.xml, you just have to change the "provider" entry.


Regards,


--

Matthieu Baechler


On 04/04/2017 03:54 PM, terry miura wrote:

Hi,

I'm new in James. I tried to install James V3.0 B5 on a Linux machine with
default Mailbox persistence (JPA) and it works fine.
Now I'm trying to set the Mailbox Persistence to MailDir. On James
persistence page I found that Mailbox persistence is configured in
spring-beans.xml
I was not able to find spring-beans.xml. Are there any guidelines to
achieve this?
Thanks and regards,

T.




-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Moving Archived Messages Out of Database

2017-03-28 Thread Matthieu Baechler
A possible way to do that is to create another account for your user and 
moving the emails on this account, I guess.

You then can make sure this account is only used with POP3.

--
Matthieu Baechler

Le 27/03/2017 à 18:41, Jerry Malcolm a écrit :

I'm using MySQL.

I'd love to get better performance on large folders.  However, I'd 
prefer to make clients move old archive folders completely off the 
server and store locally (the way POP3 does).  Since IMAP doesn't 
support doing that directly, I'm looking for suggestions on how to 
move hundreds of thousands of emails off the server completely.


Thanks.

Jerry

On 3/27/2017 2:37 AM, Matthieu Baechler wrote:

Hi,

I can confirm what Benoit said : making large mailboxes fast is not a 
easy task.


However, it's not impossible to do, it's just a matter of preparing 
the data for SELECT to being fast.


What mailbox backend are you using ?

Regards,




-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org




-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Moving Archived Messages Out of Database

2017-03-27 Thread Matthieu Baechler

Hi,

I can confirm what Benoit said : making large mailboxes fast is not a 
easy task.


However, it's not impossible to do, it's just a matter of preparing the 
data for SELECT to being fast.


What mailbox backend are you using ?

Regards,

--
Matthieu Baechler

Le 27/03/2017 à 08:23, Benoit Tellier a écrit :

Hi Jerry,

We also have some performance troubles while opening large mailboxes as
well. This is something the team is currently working on.

To make it short :
  - Opening a new, large mailbox implies removing RECENT flags from all
the stored messages (no choices)
  - Then you have to build the MSN <-> UID mapping, which is linear with
the mailbox size.

Both of them are limitations of the IMAP protocol. Both of them implies
reading the entire mailbox, and potentially updating flags for the
entire mailbox.

We currently work on performance (Cassandra) for SELECT on such large
mailboxes. (Because our IMAP-sync scripts are pretty slow)

I am not aware of shortcuts for dealing with such problems.

Cheers,

Benoit Tellier

Le 26/03/2017 à 02:35, Jerry Malcolm a écrit :

I have a client who has some folders with 150,000+ messages in them.
When he accesses these folders via Thunderbird or other clients, James
gets swamped with returning the message list and slows down responding
to all my other clients.  Most of these messages are old and could be
archived.  But just moving them to an archive folder just means that if
he opens the archive folder, I'm back to the same problem.  I know I
could just tell him to delete about 90% of them.  But I don't want to
impose limits.  I thought about asking him to unsubscribe to these
folders.  That'll work in Tbird.  But iPhone mail doesn't honor the
subscribe bit and displays the folder anyway.  Maybe better than nothing...

What I'd really like to do is ask him to store old archived messages
locally on his machine and just get them out of my server completely.
But I want to get some advice on the best way to do that.

What I'm thinking about doing is:

1) Create a completely separate 'archive' user account for him

2) Using SQL, move the super large folders to this archive account

3) Have him create a matching 'archive' Thunderbird account, but make it
POP3 type rather than IMAP and set it to 'delete mail on server after
retrieval'

4) Have him open/download (and inherently erase) the messages from the
server.

I'm pretty sure this will work. (Will probably take two days to
download)  But my question is is this the best way to do this.
Surely other JAMES users have encountered this problem as well.  Am I
reinventing the wheel?  Is there a better way?

Thx.

Jerry



-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org




-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Upgrading from 2.3.1 to 3.0Beta5

2016-12-10 Thread Matthieu Baechler
y, but it's free software, this "someone" doesn't exist, it's just 
an alias for "nobody". Most people are not english native and maybe you 
are more skilled than us to fix that.
  My first issue is that in 2.3.1 I used the MySQL database to store 
user information. There is no description of what I need to do to 
migrate said information into 3.0. The example and file shows how to 
do this if one were using files to store user information, but not for 
a database.
I think some people worked on migration in the past. It's clearly out of 
scope for the 3.0 at the moment. I'd rather handle that as a 3.1 feature.


I am confused however, do I even need to do this? My experimentation 
seems to imply that I do, since I cannot get the CLI or JMX console to 
correctly respond to a listusers command, but why?

I use listusers frequently, what's your problem ?
Did the database schema change for 3.0? And if I do manage to get this 
migration step to work, will I ruin the database and make it unusable 
for James 2.3.1 to use it, should I need to drop back to it?


Also, it is not totally clear what I need to do about the actual mail 
store. Do I just copy the user directories over into the 3.0 server 
space? From what I am reading it does not sound like it will be that 
simple... So I need the details of what to do here...


We don't have the time to do the analysis about that, it's why I suggest 
to delay migration tasks after 3.0.
One last thought, I have never used a JMX console before, it might be 
helpful to supply a little more details/examples for us newbies to 
that tool...


There's plenty of tutorial about JMX on the web. There's not much to do 
to have it working, james listens on port  on localhost, if you run 
a jmx tool on the same host, it's just a matter of having it connected.



Regards

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Is it possible to add custom storage logic to James?

2016-11-23 Thread Matthieu Baechler

Hi Alexandr,


Le 23/11/2016 à 20:02, Alexandr Porunov a écrit :

Hello,

I am new to Apache James. I want to know if it is possible to add a custom
storage logic to James. I want to store my emails in Hbase and OpenStack
Swift in a convenient way.

I.e. all users' email metadata will be stored in Hbase (and small email
bodies) and all big email bodies will be stored in OpenStack Swift.
James 3 defines a mailbox-api for this exact need : you just have to 
implement mailbox-api interfaces and do some guice or spring wiring and 
everything is supposed to be ok.


It's definitely not an easy task but you would be guided by some contrat 
test suites for interfaces you have to implement.


Please note that there's already an implementation of hbase for 
mailboxes : 
https://github.com/linagora/james-project/tree/master/mailbox/hbase


It's not the most recent and the most supported mailbox implementation 
out there, but it's probably a good start for what you want.


Feel free to ask questions about that along your way.

Regards,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: James 3.0 release date

2016-11-22 Thread Matthieu Baechler

Hi,


Le 22/11/2016 à 19:07, Dumah 7 a écrit :

I don't know what kind of tasks you are talking about getting help with, and I 
don't have much (or any) free time, but MAYBE I could help if there is 
something I could handle.

I am a developer (coding anything except Apple-related stuff), but I am not 
such a huge fan of Java, although it is very portable and cross platform, which 
is a good thing.

I have yesterday gotten the `apache-james-3.0-beta4-app`, set it up on a 
dynamic IP domain, and let it run. Soon I will make it use TLS as well. I still 
need to make it use a DB instead of the filesystem, so hopefully I will manage 
to make it use SQL Server soon (hopefully it works - I have no idea if you have 
tested James with SQL Server, but anyway).
Please use beta5 instead, there's something like 2 years of development 
between these to versions.

So, since I am torturing myself with all these configurations, and reading the 
documentation on your site seems like riddle-solving, maybe I could do 
something related to that... I am not promising anything, since my schedule is 
crazy and my mind already about to explode, but maybe I can do something...
Definitely, I could make a long list of questions for someone to answer which 
you can post as FAQ in your site...
We are definitely working on the website but a fresh view is always 
welcome. Could you write that list of question ? We'll make sure there's 
clear answer to them.

Irrelevant: I know that this is too early to have, but I think that having a 
management UI tool that updates the configs based on the user interaction and 
also manages the mail server would help a lot the users. Although, having used 
other Apache software in the past (Solr), it seems to me that helping newbie 
users out is not a high priority in your list.

Every Apache project is different, because people are different. We 
definitely want a webadmin UI for james.

We started an admin module that talks REST for that exact purpose.
It's not a goal in 3.0 but if you want to work on such a feature, you 
are very welcome !


Regards,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: James 3.0 release date

2016-11-22 Thread Matthieu Baechler

Thank you for you proposition.

Here are some tasks on which we would be ready to mentor contributors :

https://issues.apache.org/jira/browse/JAMES-1862

https://issues.apache.org/jira/browse/MAILBOX-278

https://issues.apache.org/jira/browse/MAILBOX-279

Please let us know if you want to pick one.


Regards,

--

Matthieu Baechler


Le 22/11/2016 à 20:50, Rudi Angela a écrit :

Hi Matthieu,

I’d be glad to help if you have small tasks (as my time is somewhat limited). I 
have years of Java experience, have been using James for some years now and 
have even hacked it a bit, like creating a mailet for my custom needs and even 
adapting the SMTP server to fail fast.
Do you have a list of tasks? I don’t mind bug fixing. Seems easier to me than 
implementing new features.

Rudi


On 22 Nov 2016, at 07:39, Matthieu Baechler mailto:mbaech...@linagora.com>> wrote:

There's definitely tasks we could delegate and give some mentoring on, so if 
anybody's interesting to help, we'll be more than happy to share the work.





-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: James 3.0 release date

2016-11-22 Thread Matthieu Baechler

Hi Mahesh,

We found it really difficult to evaluate how much work is left to do for 
the release.


We decided to split things a bit : we'll release a RC1 as soon as 
planned dev tasks are done and we will then focus on performance and 
stability testing starting then and we'll finish website tasks too.


The tentative release date for RC1 is december the 12th.

There's definitely tasks we could delegate and give some mentoring on, 
so if anybody's interesting to help, we'll be more than happy to share 
the work.



Regards,

--

Matthieu Baechler


Le 22/11/2016 à 08:17, Mahesh Sivarama Pillai a écrit :

Hi Matthieu,

  Did you guys get a chance to meet to talk about James 3.0 release date ?
Please share.

Thanks
Mahesh

On Thu, Nov 17, 2016 at 6:05 PM, Mahesh Sivarama Pillai 
wrote:


Thanks Matthieu. Eagerly waiting for it :)

Thanks
Mahesh

On 17-Nov-2016 6:02 PM, "Matthieu Baechler" 
wrote:


Hi Mahesh,

Le 17/11/2016 à 10:27, Mahesh Sivarama Pillai a écrit :


Hi,

   Is there a tentative release date planned for James 3.0 ?



We'll have a meeting about that on monday and we'll communicate on the
mailling lists.

Regards,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org





-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: James 3.0 release date

2016-11-17 Thread Matthieu Baechler

Hi Mahesh,

Le 17/11/2016 à 10:27, Mahesh Sivarama Pillai a écrit :

Hi,

  Is there a tentative release date planned for James 3.0 ?



We'll have a meeting about that on monday and we'll communicate on the 
mailling lists.


Regards,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Problems building James/Cassandra backend

2016-11-06 Thread Matthieu Baechler

Hi Marc,

Le 03/11/2016 à 02:09, Marc Chamberlin a écrit :

On 10/24/2016 1:15 AM, Matthieu Baechler wrote:

Hi Marc,


On 10/23/2016 03:19 AM, Marc Chamberlin wrote:

[... problem with James docker-compose]

Hi - I haven't heard back from Matthieu about this problem, if he 
still around? If not, does anyone got an idea on how to solve this 
issue?


I am still around (:

We updated the docker documentation last week, now it should be as 
simple as :


$ wget 
https://raw.githubusercontent.com/apache/james-project/master/dockerfiles/run/docker-compose.yml


$ docker-compose up


Let us know if it works.

You will be able to play with the configuration by mounting a conf 
directory into James container. But let's start with the simplest use 
case.


Cheers,

Hi again Matthieu -  No, it doesn't seem to work...   I tried a few 
times from scratch, once I got a rather long exception/walkback but 
didn't capture it.. twice

I got the following message -   :-(



[... docker error ...]

It's an unusual error, we never got that kind of problem.

Could you tell use what OS you use, the kernel version, the docker 
version and the docker storage driver ?


Maybe you would receive more help from the docker community for this 
very specific docker error.


Regards,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Problems building James/Cassandra backend

2016-10-24 Thread Matthieu Baechler

Hi Marc,


On 10/23/2016 03:19 AM, Marc Chamberlin wrote:

[... problem with James docker-compose]

Hi - I haven't heard back from Matthieu about this problem, if he 
still around? If not, does anyone got an idea on how to solve this issue?


I am still around (:

We updated the docker documentation last week, now it should be as 
simple as :


$ wget 
https://raw.githubusercontent.com/apache/james-project/master/dockerfiles/run/docker-compose.yml


$ docker-compose up


Let us know if it works.

You will be able to play with the configuration by mounting a conf 
directory into James container. But let's start with the simplest use case.


Cheers,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Mockup proposal for a promoting James website

2016-10-24 Thread Matthieu Baechler

Hi Marc,


On 10/23/2016 05:09 PM, Marc Chamberlin wrote:
Hi Benoit -  (I will follow your precedent of top posting.) 


Please don't !

No, the trouble with the current organization of the James website is 
that the only way to navigate it is to use the hierarchical tree 
structured table of contents that is found on the left hand side of 
the pages. This can make it difficult to discover where a particular 
topic is addressed, especially if/when that topic is found in a 
location that the developer thought was appropriate, but not intuitive 
in the mind of a user.  For example, I wanted to discover what mailets 
are provided with James. My initial guess was to navigate to the "User 
Manual" > Configure James >  Mailet Container  and almost missed the 
tiny link provided/embedded at the bottom of the page to the list of 
mailets.  Then and only then did I discover that this list was located 
in a surprising location under "Developers Corner" which I had assumed 
would be topics strictly of interest to James developers, not to 
users.  (I am NOT criticizing this particular layout, just using it as 
an example of how using a tree hierarchy must be navigated, sometimes 
through many many branches, in order to discover where a particular 
topic is documented.)


Using search engines can further complicate matters, especially on 
sites such as James where multiple versions of documents are stored. 
One can easily and inadvertently land on a document that is 
inappropriate for the version of the James that he/she is using, and 
waste a lot of time chasing a wrong answer. (I know, I have done it 
myself)


What a site map is/does is to flatten the presentation of an entire 
website into a single page which contains links to EVERY web page 
associated with that website. (including orphaned web pages which 
sometimes crop up) That both makes it easy to see a high level view of 
the entire website, all at once, and provides a lot of additional 
clues as to the organizational model and where one may find documents 
on a particular subject. One measure of the ease of use of a website 
is to ask how many clicks does it take, to discover the answer to a 
question or reach a goal on that website. A site map can reduce this 
to a single click. Site maps are often used on large complex web sites 
and I am sure you can find many examples. Also I have seen tools that 
develop a site map automatically, some do it externally by chasing 
links, others do it internally on the servers by chasing documents and 
directories also, although these tools do have their limitations and 
shortcomings especially if/when a web site serves dynamic content.


I am not asking that James use a site map in lieu of the hierarchical 
table of contents it now has, just in addition to it.

I understand your point but I think the main problem is that :

1. none of us has experience into site map
2. we use a generated static site with old technologies
3. we are going the mix that with yet another static site technology

If you think you can tackle this challenge, you are more than welcome, 
we'll try to help us on that.


Anyway, keep sending us your comments, they are very valuable.

Cheers,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: James 3.0 roadmap

2016-10-21 Thread Matthieu Baechler

Hi Alex,

The roadmap is about 3.0 release, not beta 5.

Beta 5 is still stuck in the maven release process ...

Best regards,

--

Matthieu Baechler


On 10/21/2016 05:31 PM, Alex Sviridov wrote:

Hi Benoit

Do I understand this graph right - when all lines will be 100% james 3 beta 5 
will be released?

Best regards, Alex



Пятница, 21 октября 2016, 16:31 +03:00 от Benoit Tellier 
:

Hi everyone,


As part of our work on James 3.0, we introduced a graph showing our
advancement.

You can consult it here :

https://rawgit.com/linagora/james-project/master/james3-roadmap-progress/index.html

We will update this graph after each of our Kanban review (~ every 2 weeks).

Regards,

Benoit Tellier


-
To unsubscribe, e-mail:  server-user-unsubscr...@james.apache.org
For additional commands, e-mail:  server-user-h...@james.apache.org






-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Problems building James/Cassandra backend

2016-10-04 Thread Matthieu Baechler



On 10/04/2016 03:20 AM, Marc Chamberlin wrote:

On 10/3/2016 12:13 PM, Matthieu Baechler wrote:

Le 03/10/2016 à 20:57, Marc Chamberlin a écrit :

[...]


I had to modify the command to start the James server slightly to 
point the jar file to what I believe is the correct location. Please 
verify that my command I issued is correct. That resulted in what 
appears to be 6 repetitions of an error that seems to center around 
"cassandra.port" Because these walkbacks are so long I will only 
show the first one. Got any ideas on what I have done wrong? Marc.


bigbang:/james/docker/james-project # java 
-Dworking.directory=dockerfiles/run/guice/destination/conf -jar 
server/container/guice/cassandra-guice/target/james-server-cassandra-guice-3.0.0-beta5-SNAPSHOT.jar 

The error is really not helpful but it looks like you you should 
define working.directory to dockerfiles/run/guice/destination/ or 
even $PWD/dockerfiles/run/guice/destination/ (removing trailing conf 
name and maybe providing a absolute path).


Maybe I am making progress, I removed the trailing conf and modified 
the command to start the server as shown -


java -Dworking.directory=$PWD/dockerfiles/run/guice/destination -jar 
server/container/guice/cassandra-guice/target/james-server-cassandra-guice-3.0.0-beta5-SNAPSHOT.jar 



That seems to make it happy, but then I tried to add my domain using 
the following command and got a connection refused error -


java -jar 
server/container/cli/target/james-server-cli-3.0.0-beta5-SNAPSHOT.jar 
-h 127.0.0.1 -p   adddomain mydomain.com
Error connecting to remote JMX agent : Failed to retrieve RMIServer 
stub: javax.naming.ServiceUnavailableException [Root exception is 
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; 
nested exception is:

java.net.ConnectException: Connection refused]


I just tried by following the documentation, there's a lot more steps 
than what is described, this piece of documentation got outdated pretty 
fast, but I guess you managed to pass them. It works here, so could you 
do a `netstat -napt` to see if James is really listening ?


Out of curiosity, why don't you run the docker image of James ?


Uh Because I don't know how???  I am basically following the 
instructions on the website at 
https://james.apache.org/server/3/quick-start-cassandra.html

I have gotten to Step 5.  Did I take a wrong turn somewhere?


Ok, let's talk about the easy solution now : on master, the README.adoc 
contains everything you need to start a james server using docker-compose.


Here is an excerpt :

First, you need to build the image:
$ docker-compose -f dockerfiles/run/docker-compose.yml build

Then, you just have to start the services:
$ docker-compose -f dockerfiles/run/docker-compose.yml up

It should just work, let us know if it's not the case.

Cheers,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Problems building James/Cassandra backend

2016-10-03 Thread Matthieu Baechler

Le 03/10/2016 à 20:57, Marc Chamberlin a écrit :

[...]


I had to modify the command to start the James server slightly to 
point the jar file to what I believe is the correct location. Please 
verify that my command I issued is correct. That resulted in what 
appears to be 6 repetitions of an error that seems to center around 
"cassandra.port" Because these walkbacks are so long I will only show 
the first one. Got any ideas on what I have done wrong? Marc.


bigbang:/james/docker/james-project # java 
-Dworking.directory=dockerfiles/run/guice/destination/conf -jar 
server/container/guice/cassandra-guice/target/james-server-cassandra-guice-3.0.0-beta5-SNAPSHOT.jar 

The error is really not helpful but it looks like you you should define 
working.directory to dockerfiles/run/guice/destination/ or even 
$PWD/dockerfiles/run/guice/destination/ (removing trailing conf name and 
maybe providing a absolute path).


Out of curiosity, why don't you run the docker image of James ?

Cheers,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Problems building James/Cassandra backend

2016-10-03 Thread Matthieu Baechler

Le 03/10/2016 à 03:09, Marc Chamberlin a écrit :

[...]

Hi Matthiew and the rest of the James server-users list -

Sorry for my delay in replying, I got sidelined by TLS/SSL issues and 
had to focus on that for awhile. Now back to Apache-James - Yes your 
PR did get me further and I now have both cassandra and elasticsearch 
running under Docker. I am attempting to wade through the 
configuration setup now and have a couple of questions that I need 
help with. First let me say that I am editing the .properties and .xml 
files under dockerfiles/run/guice/destination/conf which is my best 
guess as to what I need to be doing?



Good guess

My first question relates to the cassandra.properties file. According 
to the instructions at 
https://james.apache.org/server/3/config-cassandra.html



*cassandra.ip*
Is the IP (or host) of the Cassandra used. (cluster is not yet
supported)

Am I suppose to assign the internal private or an external public IP 
address for the host that Cassandra is running on? If external, does 
this host have to be in a DMZ?   I don't know how this is going to be 
used hence the reason I am asking...  The version of the 
cassandra.properties file that I got when I cloned the GIT repository 
had it pre-configured as  cassandra.ip = cassandra which I am sure 
must be wrong but then again I have little experience with Docker so I 
could be wrong...
So the documentation uses --link docker option, it creates to right 
alias into james container so that cassandra resolves to cassandra IP.
The cool thing about that is : cassandra port is not routed outside 
docker private network so you don't have to care too much about 
cassandra security.




My second question concerns setting up the SMTP server to use 
Authentication. Again according to the instructions at 
https://james.apache.org/server/3/config-smtp-lmtp.html it says -


Configuring Apache James Server for Authentication SMTP is a 
multi-step process. It requires several adjustments of the 
smtpserver.xml. To enable SMTP AUTH, do the following:


 1. As mentioned above, SMTP AUTH requires that Apache James Server be
able to distinguish between mail intended for local delivery and
mail intended for remote delivery. Apache James Server makes this
determination by matching the domain to which the mail was sent
against the  element of the Apache James Server
configuration block. Any local domains should be explicitly listed
as  elements in this section.

My trouble is I cannot figure out where the  elements are 
to be configured. I grepped through all the config files (basically 
everything downloaded from the GIT repo) and cannot find any file 
containing a section for defining servernames. (I did find a number of 
references to it however...) So where is this servernames section hiding?
Depending on your domain backend, you can define statically the domains 
into domainlist.xml (I guess servernames got replaced by domainnames) or 
dynamically by calling administration API.


With cassandra, we rather use dynamic config, so take a look at "how to 
call james-cli" in the documentation, there's an API like "adddomain" in it.


Thanks as always for helping guide me out of the woods... I am sure I 
will have more questions but don't want to proceed any further until I 
get the configuration done correctly.  Marc...

You're welcome.

--
Matthieu Baechler



-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Problems building James/Cassandra backend

2016-09-26 Thread Matthieu Baechler

Le 24/09/2016 à 02:05, Marc Chamberlin a écrit :

On 9/23/2016 1:17 AM, Matthieu Baechler wrote:

Hi Marc,

Thank you for reporting about that.

I created an issue for that : 
https://issues.apache.org/jira/browse/JAMES-1827


I tried to fix the documentation here : 
https://github.com/linagora/james-project/pull/415


Could you check that my PR fixes your problem ?

Regards,



Hi Matthiew,  Thanks for the update, I got further, at least I got 
Maven to compile the Guice Cassandra project. But when I attempted to 
deploy it, using your new fix, things didn't go well -


bigbang:/james/docker/james-project # docker run --name=cassandra 
cassandra:2.2.3

Error response from daemon: 404 page not found

I just tested that and it works, could you retry ?

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: JAMES website?

2016-09-25 Thread Matthieu Baechler

Hi,

You can retrieve sources and javadoc from maven is you only need that.

Regards,

--
Matthieu Baechler

Le 26/09/2016 à 05:48, Jerry Malcolm a écrit :
I understand how spf works.  I need the javadoc to the jspf classes so 
I can program to them.



On 9/25/2016 1:20 PM, Luuk wrote:

On 25-09-16 19:52, Jerry Malcolm wrote:
Thanks for the info.  I'm curious, though, why the need to take the 
old site down before having the new site up.


I'm trying to find the documentation for using jspf.  Is there an 
alternate site that might have that documentation until the new 
james site is up?





not james specific, but specific to spf:
http://www.openspf.org/



-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7797 / Virus Database: 4656/13081 - Release Date: 
09/25/16



-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org




-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Problems building James/Cassandra backend

2016-09-23 Thread Matthieu Baechler

Hi Marc,

Thank you for reporting about that.

I created an issue for that : 
https://issues.apache.org/jira/browse/JAMES-1827


I tried to fix the documentation here : 
https://github.com/linagora/james-project/pull/415


Could you check that my PR fixes your problem ?

Regards,

--
Matthieu Baechler

On 09/23/2016 12:03 AM, Marc Chamberlin wrote:
Hi - I was attempting to follow the quick start for Cassandra backend 
guide at https://james.apache.org/server/3/quick-start-cassandra.html 
and ran into troubles in Step 3 - Compile.  Running on OpenSuSE 42.1 
(Leap) and got the following warnings/errors -


Downloaded: 
https://repo.maven.apache.org/maven2/biz/aQute/bnd/bndlib/2.1.0/bndlib-2.1.0.jar 
(1356 KB at 18.2 KB/sec)

[WARNING]
[WARNING] Some problems were encountered while building the effective 
model for org.apache.james:apache-mailet-standard:bundle:2.5.1-SNAPSHOT
[WARNING] 
'dependencies.dependency.(groupId:artifactId:type:classifier)' must be 
unique: org.mockito:mockito-core:jar -> duplicate declaration of 
version (?) @ 
org.apache.james:apache-mailet-standard:[unknown-version], 
/james/docker/james-project/mailet/standard/pom.xml, line 84, column 21

[WARNING]
[WARNING] It is highly recommended to fix these problems because they 
threaten the stability of your build.

[WARNING]
[WARNING] For this reason, future Maven versions might no longer 
support building such malformed projects.

[WARNING]
[ERROR] [ERROR] Could not find the selected project in the reactor: 
server/container/cassandra-guice @
[ERROR] Could not find the selected project in the reactor: 
server/container/cassandra-guice -> [Help 1]

[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with 
the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException



Any ideas what when wrong and what I need to do?   Thanks in 
advance...   Marc...




-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org




-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: james v3-beta4 start

2016-09-20 Thread Matthieu Baechler

Hi,

We provide a docker image that works out of the box and the README 
explains how to build the image, too.


Could you please have a try with docker ?

We will also try to release a beta soon, beta4 is very old now (maybe 
two years).


Regards,

--

Matthieu Baechler


On 09/20/2016 09:10 AM, li hai ming wrote:

thanks.

does james-dev know the issue and has plan to fix?

as a beta version, such _obvious_ issue is not good.

via Newton 
Mail<https://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.5.43&pv=5.0.2&source=email_footer_2>
On Tue, Sep 20, 2016 at 1:29 PM, Shawn Fu Sheng 
mailto:sh...@victz.com>> wrote:


Hi,

I had same problem with you. I tried JDK 6&7&8,

JDK 6 Started ok. Able to sent out emails, able to receive email from local 
domain. Can't receive from outside domain. Pop working ok, imap can see how 
many new email, but unable download.

JDK7&8 unable start, same issue with yours. even after I copied jaxb-impl.jar

I didn't try run.sh

Hope this is helpful to you.

Thanks and Regards,
Shawn


On 20 Sep 2016, at 1:06 PM, lihai ming  wrote:

i already copied jaxb-impl.jar under ../conf/lib
my java is [root@iZ28m97ac83Z lib]# java -versionopenjdk version 
"1.8.0_101"OpenJDK Runtime Environment (build 1.8.0_101-b13)OpenJDK 64-Bit 
Server VM (build 25.101-b13, mixed mode)
i use sudo su to root
then under .../james/bin/
using ./run.sh, james starts OK
using ./james start, no lucky. in wrapper.log it always says
##STATUS | wrapper  | 2016/09/20 12:55:30 | --> Wrapper Started as DaemonSTATUS | wrapper 
 | 2016/09/20 12:55:30 | Launching a JVM...INFO   | jvm 1| 2016/09/20 12:55:32 | Wrapper 
(Version 3.2.3) http://wrapper.tanukisoftware.orgINFO   | jvm 1| 2016/09/20 12:55:32 |   
Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.INFO   | jvm 1| 
2016/09/20 12:55:32 |INFO   | jvm 1| 2016/09/20 12:55:33 | INFO  12:55:33,101 | 
org.apache.james.container.spring.context.JamesServerApplicationContext | Refreshing 
org.apache.james.container.spring.context.JamesServerApplicationContext@32ef1cd4: startup 
date [Tue Sep 20 12:55:33 CST 2016]; root of context hierarchyINFO   | jvm 1| 2016/09/20 
12:55:35 |INFO   | jvm 1| 2016/09/20 12:55:35 | WrapperSimpleApp: Encountered an error 
running main: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to 
create the JAXB binder; nested exception is javax.xml.bind.JAXBException: Provider 
com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: 
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of 
IllegalAnnotationExceptionsINFO   | jvm 1| 2016/09/20 12:55:35 | Class has two 
properties of the same name "outputs"##
what could be the possible reason?should i have to login as root to run ./james 
start?
or i can live with ./run.sh& ?





-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: 答复: Apache James - how IMAP is supported by James?

2016-09-19 Thread Matthieu Baechler

Hi Rami,

Le 19/09/2016 à 12:34, Rami Ojares a écrit :
Everytime I have tried James there has been problems with connections 
hanging etc.

And version 3 has been coming now for 10 years at least.
So I would be very careful before moving your emails on it.
At least test it for one month and different email clients.

- Rami 

Thank you for this very supportive email !

To be honest, James 3 started a long time ago and didn't always received 
the attention it deserves at some times.


What changed is that :
1. we have people working on it fulltime now (and even selling support 
if needed)

2. there's a plan towards 3.0 ...
3. ... and this plan includes "endurance & load testing"

So, expect your stall connection problems to be fixed before 3.0 and a 
James release in the near future.


And finally, to answer Haiming, James 3 supports IMAP without known 
blocking issue. Just remind that James 3 is still beta for some time.


Regards,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Apache James - how IMAP is supported by James?

2016-09-19 Thread Matthieu Baechler

Hi haiming,

I don't understand what you are looking for.
James v3 indeed support IMAP and a number of IMAP extensions.
Just launch the server and connect to port 143 to see by yourself.

What else do you want to know ?

Regards,

--
Matthieu Baechler

Le 19/09/2016 à 10:12, haiming li a écrit :

Thanks Bernd for forwarding the question :)

  


To be more specific, is IMAP only supported in JamesV3?

Any practical guideline URL I can refer to?

  


From: Bernd Waibel [mailto:bwai...@intarsys.de]
Sent: Monday, September 19, 2016 15:03
To: James Users List 
Subject: AW: Apache James - how IMAP is supported by James?

  

  







-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Apache james: messages are spooled and that's all

2016-09-12 Thread Matthieu Baechler

Hi Alex,

I think the problem is not in your smtp server configuration but in the 
mailet pipeline.


Could you show us your mailetcontainer.xml file ?

Best regards,

--
Matthieu Baechler

Le 12/09/2016 à 16:24, Alex Sviridov a écrit :

Hi all,

I use v3-beta5 version. When I send messages to somebody or when somebody sends 
message to me I see in logs that messages come to server and successfully 
spooled. Besides I see all got and sent messages in  
/var/store/activemq/blob-transfer/ folder. However, all messages only spooled 
and don't reach the recipient. What do I miss?
This is my smtpserver.xml



  smtpserver
  0.0.0.0:25
  200
  
file://conf/keystore
yoursecret
org.bouncycastle.jce.provider.BouncyCastleProvider
SunX509
  
 360
 0
 0
 true
 127.0.0.0/8
 0
 true
 
 
 
 



Best regards, Alex




-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Package of XMLRecipientRewriteTable?

2016-06-23 Thread Matthieu Baechler

Hi Kohta,

Obviously, you are right, it's org.apache.james.rrt.file

Would you do a Pull Request with this modification ?

--

Matthieu Baechler


On 06/21/2016 04:23 PM, Kohta Ozaki wrote:

Hi.
Thanks for great software.
I'm trying 3.0b4 on Windows.

Recipientrewritetable-template.xml contains next node.


I just wonder a correct package is org.apache.james.rrt.file.

Best regards,
Kohta.

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org




-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Using custom implementation of mailbox in james server

2016-05-02 Thread Matthieu Baechler

Hi,

Welcome to the James community !

My answers below.

On 05/02/2016 02:49 PM, Akhilesh Tyagi wrote:

Hello Guys,

I see that there are JPA, JCR, HBASE, Cassandra etc implementations
are there for mailbox. But I want to substitute my own implementation
for searching and retrieving the email data.

The overall idea I am working on is, to basically use james's server's
IMAP implementation for ONLY RETRIEVAL AND SEARCHING my email data. I
am not concerned about the sending of emails or tagging or other
features of mail client. (At least not immediately.)

I could find that I can substitute my implementation for
authentication in james server by simply overriding the UserRepositroy
interface.

I am looking for something similar for mailbox.

The problem here is that, I am not able to pulgin my implementation in
the server because, as per code,
/MailboxConfigurationBeanFactoryPostProcessor.java , there is an if
else block that shall look for only certain predefined types of
implementations. There is no generic way for me to plugin my
implementation, unless I make the necessary change in the java source
and re compile the james-server code.

Request your help, to validate my understanding. And suggestions to
achieve my objective.
You are right about what to do to provide a mailbox implementation when 
using spring.


Another way is to write a Guice application based on what we did in 
CassandraJamesServerMain.


Regards,

--
Matthieu Baechler

-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Building james

2015-08-27 Thread Matthieu Baechler

Hi Mike,

It looks like you build only james-project. You should run mvn in the 
top-level directory instead to build the whole server.


--
Matthieu Baechler

On 27/08/2015 17:35, Mike lepore wrote:

I guess there's something I didn't follow correctly.  Where do the james
jars and conf get installed to?  I can't find them after executing the
commands below.  Admittedly, not a maven expert.

mike@dev:$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO]

[INFO] Building Apache James Project 1.8.3-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ james-project ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.4:process (default) @
james-project ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (jar) @ james-project ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar:
/data/projects/LIC/james/james3/20150827/james-parent/james-project/target/james-project-1.8.3-SNAPSHOT.jar

[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (test-jar) @ james-project ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar:
/data/projects/LIC/james/james3/20150827/james-parent/james-project/target/james-project-1.8.3-SNAPSHOT-tests.jar

[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) >
generate-sources @ james-project >>>
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) <
generate-sources @ james-project <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @
james-project ---
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:test-jar (attach-sources) >
generate-sources @ james-project >>>
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:test-jar (attach-sources) <
generate-sources @ james-project <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:test-jar (attach-sources) @
james-project ---
[INFO]
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @
james-project ---
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @
james-project ---
[INFO] Installing
/data/projects/LIC/james/james3/20150827/james-parent/james-project/pom.xml
to
/home/mike/.m2/repository/org/apache/james/james-project/1.8.3-SNAPSHOT/james-project-1.8.3-SNAPSHOT.pom

[INFO] Installing
/data/projects/LIC/james/james3/20150827/james-parent/james-project/target/james-project-1.8.3-SNAPSHOT-tests.jar
to
/home/mike/.m2/repository/org/apache/james/james-project/1.8.3-SNAPSHOT/james-project-1.8.3-SNAPSHOT-tests.jar

[INFO] Installing
/data/projects/LIC/james/james3/20150827/james-parent/james-project/target/james-project-1.8.3-SNAPSHOT-site.xml
to
/home/mike/.m2/repository/org/apache/james/james-project/1.8.3-SNAPSHOT/james-project-1.8.3-SNAPSHOT-site.xml

[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 2.359 s
[INFO] Finished at: 2015-08-27T11:27:05-04:00
[INFO] Final Memory: 17M/303M
[INFO]

mike@lic1:/share/projects/LIC/james/james3/20150827/james-parent/james-project$
ll
total 100
  8 drwxrwxr-x+ 4 mike mike  4096 Aug 27 11:27 ./
  8 drwxrwxr-x+ 6 mike mike  4096 Aug 27 11:19 ../
  4 -rw-rw-r--+ 1 mike mike38 Aug 27 11:20 .git
60 -rw-rw-r--+ 1 mike mike 58108 Aug 27 11:20 pom.xml
  4 -rw-rw-r--+ 1 mike mike  1641 Aug 27 11:20 README.txt
  8 drwxrwxr-x+ 4 mike mike  4096 Aug 27 11:20 src/
  8 drwxrwxr-x+ 4 mike mike  4096 Aug 27 11:27 target/
mike@lic1:/share/projects/LIC/james/james3/20150827/james-parent/james-project$
ll target/
total 68
  8 drwxrwxr-x+ 4 mike mike 4096 Aug 27 11:27 ./
  8 drwxrwxr-x+ 4 mike mike 4096 Aug 27 11:27 ../
12 -rw-rw-r--+ 1 mike mike 9345 Aug 27 11:27
james-project-1.8.3-SNAPSHOT.jar
  8 -rw-rw-r--+ 1 mike mike 4633 Aug 27 11:27
james-project-1.8.3-SNAPSHOT-site.xml
12 -rw-rw-r--+ 1 mike mike 9345 Aug 27 11:27
james-project-1.8.3-SNAPSHOT-tests.jar
  8 drwxrwxr-x+ 2 mike mike 4096 Aug 27 11:27 maven-archiver/
  8 drwxrwxr-x+ 3 mike mike 4096 Aug 27 11:27
maven-shared-archive-resources/
  4 -rw-rw-r--+ 1 mike mike   30 Aug 27 11:27 .plxarc
mike@lic1:/share/projects/LIC/james/james3/20150827/james-parent/james-project$
unzip -l target/james-project-1.8.3-SNAPSHOT.jar
Archive:  target/james-project-1.8.3-SNAPSHOT.jar
   Length  DateTimeName
-  -- -   
 0  2015-08-27 11:27   META-INF/
   448  2015-08-27 11:27   META-INF/MANIFEST.MF
 0  2015-08-27 11:27   META-INF/maven/
 0  2015-08-27 11:27 META-INF/maven/org.apache.james/
 0  2015-08-27 11:27 META-INF/maven/org.apache.james/james-project/
 58108  2015-08-2

Re: Mail repository

2013-10-24 Thread Matthieu Baechler
Hi Patrick,

I'm quite new to James too, but I think I can answer some of your
questions. See below.

Le mercredi 23 octobre 2013 à 13:26 -0700, Patrick Sauts a écrit :
> Hi,
> I'm new with James and I have a fez questions.
> What is the exact purpose of the mail repository ?

It's a store for messages and mailboxes. It seems to be very close to
IMAP semantic.

> I'm currently writing an implementation of the mail repository for hbase, is
> it of any use ?

There's already one in
http://svn.apache.org/repos/asf/james/mailbox/trunk/hbase

> Where do hard bounces are stored ?
> Thank you for your answers.
> 
> Patrick Sauts
> 
> 

-- 
Matthieu Baechler 


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Replacement for javax.mail?

2013-05-17 Thread Matthieu Baechler
Hi James,

I have the exact same need and I evaluated every libraries I found to
replace javax.mail.

My conclusion is that no implementation is good enough for my project
and we decided to stick with our own implementation of IMAP protocol
which is very limited but that we are able to enhance with time.

If you are willing to write a full javax.mail replacement, I can
contribute on the IMAP side, so keep me updated about your intentions.

-- 
Matthieu Baechler



-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



Re: Compiling SVN 1084598

2011-03-24 Thread Matthieu Baechler
Hi,


Le mercredi 23 mars 2011 à 15:51 +0100, Felix Knecht a écrit :
> Hi Darko
> 
> You can add following to your .m2/settings.xml:
> 
>
>  
>
>  true
>
>
>  
>  apache.snapshots
>  Apache Snapshot Repository
>  http://repository.apache.org/snapshots
>  
>false
>  
>
>   
>  
>
> 
> This will add the snapshot repository where the wanted pom 
> (org.apache.james:james-server-root:pom:1.6-SNAPSHOT) can be found.

Where can I found sources for this artifact
(org.apache.james:james-server-root) ?


-- 
Matthieu Baechler 


-
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org