You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Rich P <te...@hotmail.com> on 2021/03/30 15:47:42 UTC

Minimal possible build for Spring-based version of James server

Hello --

I just created a snapshot build of 3.7.0 with command line Maven 3.6.3 using "mvn package -DskipTests".  Does this create the smallest possible build needed for a standalone James server (no Docker/Cassandra, etc.)?

My goal is to build a James server that acts as an SMTP transfer agent for other servers using the least amount of dependencies.  Besides the base James engine, I want to use jSPF and jDKIM.

Thank you!
Rich P


Re: Minimal possible build for Spring-based version of James server

Posted by Tellier Benoit <bt...@apache.org>.
Hello Rich,

Le 10/04/2021 à 03:02, tempbox17@hotmail.com a écrit :
> Thanks Benoit --
> 
> I appreciate the response and your links.
> 
> [...]
> 
> I might consider the distributed server if it solves a more immediate 
> issue I have: I can't easily retrieve messages sent to the address-error 
> folder.  I use jSPF and it works great until false positives land in that 
> folder and I need to forward them to the correct user.  Does the 
> distributed server solve that problem?

Guice packqging solves that problem!

The WebAdmin REST endpoints enable to list the content of mail
repositories without reading their content on disk.

https://github.com/apache/james-project/blob/master/src/site/markdown/server/manage-webadmin.md#administrating-mail-repositories

Of course, this is not available on top of Spring.

Cheers,

Benoit

> 
> Thanks again!
> Rich
> 
> 
> 
> From:   "Tellier Benoit" <bt...@apache.org>
> To:     server-user@james.apache.org
> Date:   04/09/2021 03:19 PM
> Subject:        Re: Minimal possible build for Spring-based version of 
> James server
> 
> 
> 
> Hello Rich,
> 
> Sorry for the late reply,
> 
> Spring packaging do not allow to start the distributed server -
> Cassandra/ElasticSearch.
> 
> Build instructions for the docker:
> https://github.com/apache/james-project#run-james-with-guice--cassandra--rabbitmq--s3--elasticsearch
> 
> 
>> My goal is to build a James server that acts as an SMTP transfer agent
> for other servers using the least amount of dependencies.
> 
> Then you likely need to assemble the Guice modules yourself in order to
> get your own specific James server, answering your own very needs. My
> company likely can offer support doing so.
> 
> We have had this kind of customization in the test suite:
> https://github.com/apache/james-project/blob/james-project-3.5.0/mpt/impl/smtp/cassandra-rabbitmq-object-storage/src/test/java/org/apache/james/mpt/smtp/CassandraRabbitMQAwsS3SmtpTestRuleFactory.java
> 
> 
> We have a minimal SMTP server but backed by the JPA technology:
> https://github.com/apache/james-project/tree/master/server/container/guice/jpa-smtp
> 
> 
> Cheers,
> 
> Benoit
> 
> 
> Le 30/03/2021 à 22:47, Rich P a écrit :
>> Hello --
>>
>> I just created a snapshot build of 3.7.0 with command line Maven 3.6.3 
> using "mvn package -DskipTests".  Does this create the smallest possible 
> build needed for a standalone James server (no Docker/Cassandra, etc.)?
>>
>> My goal is to build a James server that acts as an SMTP transfer agent 
> for other servers using the least amount of dependencies.  Besides the 
> base James engine, I want to use jSPF and jDKIM.
>>
>> Thank you!
>> Rich P
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 
> 
> 
> 

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


Re: Minimal possible build for Spring-based version of James server

Posted by te...@hotmail.com.
Thanks Benoit --

I appreciate the response and your links.

Using Spring packaging is fairly convenient for my use cases right now. 
Having to use Docker, Cassandra, etc. seems to be too resource-intensive 
for my needs and would (I think) create a larger binary and use more RAM 
and disk space. 

I might consider the distributed server if it solves a more immediate 
issue I have: I can't easily retrieve messages sent to the address-error 
folder.  I use jSPF and it works great until false positives land in that 
folder and I need to forward them to the correct user.  Does the 
distributed server solve that problem?

Thanks again!
Rich



From:   "Tellier Benoit" <bt...@apache.org>
To:     server-user@james.apache.org
Date:   04/09/2021 03:19 PM
Subject:        Re: Minimal possible build for Spring-based version of 
James server



Hello Rich,

Sorry for the late reply,

Spring packaging do not allow to start the distributed server -
Cassandra/ElasticSearch.

Build instructions for the docker:
https://github.com/apache/james-project#run-james-with-guice--cassandra--rabbitmq--s3--elasticsearch


> My goal is to build a James server that acts as an SMTP transfer agent
for other servers using the least amount of dependencies.

Then you likely need to assemble the Guice modules yourself in order to
get your own specific James server, answering your own very needs. My
company likely can offer support doing so.

We have had this kind of customization in the test suite:
https://github.com/apache/james-project/blob/james-project-3.5.0/mpt/impl/smtp/cassandra-rabbitmq-object-storage/src/test/java/org/apache/james/mpt/smtp/CassandraRabbitMQAwsS3SmtpTestRuleFactory.java


We have a minimal SMTP server but backed by the JPA technology:
https://github.com/apache/james-project/tree/master/server/container/guice/jpa-smtp


Cheers,

Benoit


Le 30/03/2021 à 22:47, Rich P a écrit :
> Hello --
> 
> I just created a snapshot build of 3.7.0 with command line Maven 3.6.3 
using "mvn package -DskipTests".  Does this create the smallest possible 
build needed for a standalone James server (no Docker/Cassandra, etc.)?
> 
> My goal is to build a James server that acts as an SMTP transfer agent 
for other servers using the least amount of dependencies.  Besides the 
base James engine, I want to use jSPF and jDKIM.
> 
> Thank you!
> Rich P
> 
> 

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





Re: Minimal possible build for Spring-based version of James server

Posted by Tellier Benoit <bt...@apache.org>.
Hello Rich,

Sorry for the late reply,

Spring packaging do not allow to start the distributed server -
Cassandra/ElasticSearch.

Build instructions for the docker:
https://github.com/apache/james-project#run-james-with-guice--cassandra--rabbitmq--s3--elasticsearch

> My goal is to build a James server that acts as an SMTP transfer agent
for other servers using the least amount of dependencies.

Then you likely need to assemble the Guice modules yourself in order to
get your own specific James server, answering your own very needs. My
company likely can offer support doing so.

We have had this kind of customization in the test suite:
https://github.com/apache/james-project/blob/james-project-3.5.0/mpt/impl/smtp/cassandra-rabbitmq-object-storage/src/test/java/org/apache/james/mpt/smtp/CassandraRabbitMQAwsS3SmtpTestRuleFactory.java

We have a minimal SMTP server but backed by the JPA technology:
https://github.com/apache/james-project/tree/master/server/container/guice/jpa-smtp

Cheers,

Benoit


Le 30/03/2021 à 22:47, Rich P a écrit :
> Hello --
> 
> I just created a snapshot build of 3.7.0 with command line Maven 3.6.3 using "mvn package -DskipTests".  Does this create the smallest possible build needed for a standalone James server (no Docker/Cassandra, etc.)?
> 
> My goal is to build a James server that acts as an SMTP transfer agent for other servers using the least amount of dependencies.  Besides the base James engine, I want to use jSPF and jDKIM.
> 
> Thank you!
> Rich P
> 
> 

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