JAMES-2587 all configuration files but not rabbitmq
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/0dea7f4b Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/0dea7f4b Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/0dea7f4b Branch: refs/heads/master Commit: 0dea7f4bdb45b6c8edc7fbf5770ae068666f5fc9 Parents: 6e865d6 Author: tran tien duc <[email protected]> Authored: Tue Nov 6 14:55:21 2018 +0700 Committer: Antoine Duprat <[email protected]> Committed: Fri Nov 9 08:50:43 2018 +0100 ---------------------------------------------------------------------- .../destination/conf/batchsizes.properties | 10 ++ .../destination/conf/cassandra.properties | 30 ++++ .../destination/conf/dnsservice.xml | 29 ++++ .../destination/conf/domainlist.xml | 28 ++++ .../destination/conf/elasticsearch.properties | 42 ++++++ .../destination/conf/imapserver.xml | 62 ++++++++ .../destination/conf/jmap.properties | 13 ++ .../destination/conf/jmx.properties | 29 ++++ .../destination/conf/jwt_publickey | 9 ++ .../destination/conf/listeners.xml | 31 ++++ .../destination/conf/lmtpserver.xml | 41 ++++++ .../destination/conf/logback.xml | 30 ++++ .../destination/conf/mailetcontainer.xml | 144 +++++++++++++++++++ .../destination/conf/mailrepositorystore.xml | 30 ++++ .../destination/conf/managesieveserver.xml | 65 +++++++++ .../destination/conf/pop3server.xml | 42 ++++++ .../destination/conf/recipientrewritetable.xml | 26 ++++ .../destination/conf/smtpserver.xml | 105 ++++++++++++++ .../destination/conf/tika.properties | 21 +++ .../destination/conf/usersrepository.xml | 26 ++++ .../destination/conf/webadmin.properties | 41 ++++++ 21 files changed, 854 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/batchsizes.properties ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/batchsizes.properties b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/batchsizes.properties new file mode 100644 index 0000000..47da2c5 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/batchsizes.properties @@ -0,0 +1,10 @@ +# Those properties let you configure the number of messages queried at the same time. +# IMAP FETCH command +fetch.metadata=200 +fetch.headers=200 +fetch.body=100 +fetch.full=50 +# IMAP COPY command +copy=100 +# IMAP MOVE command +move=100 http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/cassandra.properties ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/cassandra.properties b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/cassandra.properties new file mode 100644 index 0000000..27ef4a8 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/cassandra.properties @@ -0,0 +1,30 @@ +# Configuration file for cassandra mailbox +cassandra.nodes=cassandra +cassandra.keyspace=apache_james +cassandra.replication.factor=1 +cassandra.retryConnection.maxRetries=10 +cassandra.retryConnection.minDelay=5000 + +# Read com.datastax.driver.core.PoolingOptions for knowing defaults value +# No value here will default to driver's default value + +# cassandra.pooling.local.max.connections=8 +# cassandra.pooling.local.max.requests=128 +## In ms. Should be higher than socket read timeout +# cassandra.pooling.timeout=5000 +## In seconds. +# cassandra.pooling.heartbeat.timeout=30 +# cassandra.pooling.max.queue.size=256 + +## These low level tuning options controls performance related options in Cassandra related code +## The default values are documented here. Understand the effects before editing. +# mailbox.max.retry.acl=1000 +# mailbox.max.retry.modseq=100000 +# mailbox.max.retry.uid=100000 +# mailbox.max.retry.message.flags.update=1000 +# mailbox.max.retry.message.id.flags.update=1000 +# fetch.advance.row.count=1000 +# chunk.size.flags.update=20 +# chunk.size.message.read=100 +# chunk.size.expunge=100 +# mailbox.blob.part.size=102400 http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/dnsservice.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/dnsservice.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/dnsservice.xml new file mode 100644 index 0000000..0978a00 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/dnsservice.xml @@ -0,0 +1,29 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<dnsservice> + <servers> + <server>8.8.8.8</server> + <server>62.210.16.6</server> + </servers> + <autodiscover>false</autodiscover> + <authoritative>false</authoritative> + <maxcachesize>50000</maxcachesize> +</dnsservice> http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/domainlist.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/domainlist.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/domainlist.xml new file mode 100644 index 0000000..ad37476 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/domainlist.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<domainlist> + <domainnames> + <domainname>james.linagora.com</domainname> + </domainnames> + <autodetect>true</autodetect> + <autodetectIP>true</autodetectIP> + <defaultDomain>localhost</defaultDomain> +</domainlist> http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/elasticsearch.properties ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/elasticsearch.properties b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/elasticsearch.properties new file mode 100644 index 0000000..1adf0d2 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/elasticsearch.properties @@ -0,0 +1,42 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# This template file can be used as example for James Server configuration +# DO NOT USE IT AS SUCH AND ADAPT IT TO YOUR NEEDS + +# Configuration file for ElasticSearch + +elasticsearch.masterHost=elasticsearch +elasticsearch.port=9300 + +# You can alternatively provide a list of hosts following this format : +# elasticsearch.hosts=host1:9300,host2:9300 + +elasticsearch.nb.shards=1 +elasticsearch.nb.replica=0 +elasticsearch.retryConnection.maxRetries=7 +elasticsearch.retryConnection.minDelay=3000 +# Index or not attachments (default value: true) +elasticsearch.indexAttachments=true + +# Reports for metrics into ElasticSearch +# Defaults to elasticsearch.masterHost : on which server to publish metrics +elasticsearch.http.host=elasticsearch +elasticsearch.http.port=9200 +elasticsearch.metrics.reports.enabled=true +elasticsearch.metrics.reports.period=30 +elasticsearch.metrics.reports.index=james-metrics \ No newline at end of file http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/imapserver.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/imapserver.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/imapserver.xml new file mode 100644 index 0000000..6616d24 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/imapserver.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + + +<imapservers> + <imapserver enabled="true"> + <jmxName>imapserver</jmxName> + <bind>0.0.0.0:143</bind> + <connectionBacklog>200</connectionBacklog> + <tls socketTLS="false" startTLS="true"> + <!-- To create a new keystore execute: + keytool -genkey -alias james -keyalg RSA -keystore /path/to/james/conf/keystore + --> + <keystore>file://conf/keystore</keystore> + <secret>james72laBalle</secret> + <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider> + </tls> + <connectionLimit>0</connectionLimit> + <connectionLimitPerIP>0</connectionLimitPerIP> + <idleTimeInterval>120</idleTimeInterval> + <idleTimeIntervalUnit>SECONDS</idleTimeIntervalUnit> + <disabledCaps>ACL|MOVE</disabledCaps> + <enableIdle>true</enableIdle> + </imapserver> + <imapserver enabled="true"> + <jmxName>imapserver-ssl</jmxName> + <bind>0.0.0.0:993</bind> + <connectionBacklog>200</connectionBacklog> + <tls socketTLS="true" startTLS="false"> + <!-- To create a new keystore execute: + keytool -genkey -alias james -keyalg RSA -keystore /path/to/james/conf/keystore + --> + <keystore>file://conf/keystore</keystore> + <secret>james72laBalle</secret> + <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider> + </tls> + <connectionLimit>0</connectionLimit> + <connectionLimitPerIP>0</connectionLimitPerIP> + <idleTimeInterval>120</idleTimeInterval> + <idleTimeIntervalUnit>SECONDS</idleTimeIntervalUnit> + <disabledCaps>ACL|MOVE</disabledCaps> + <enableIdle>true</enableIdle> + </imapserver> +</imapservers> http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jmap.properties ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jmap.properties b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jmap.properties new file mode 100644 index 0000000..63e6702 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jmap.properties @@ -0,0 +1,13 @@ +# Configuration file for JMAP + +enabled=true + +tls.keystoreURL=file://conf/keystore +tls.secret=james72laBalle + +# +# If you wish to use OAuth authentication, you should provide a valid JWT public key. +# The following entry specify the link to the URL of the public key file, +# which should be a PEM format file. +# +jwt.publickeypem.url=file://conf/jwt_publickey http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jmx.properties ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jmx.properties b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jmx.properties new file mode 100644 index 0000000..1c39a17 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jmx.properties @@ -0,0 +1,29 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# This template file can be used as example for James Server configuration +# DO NOT USE IT AS SUCH AND ADAPT IT TO YOUR NEEDS + +# This template file can be used as example for James Server configuration +# DO NOT USE IT AS SUCH AND ADAPT IT TO YOUR NEEDS + +# See http://james.apache.org/server/3/config.html for usage + +jmx.enabled=true +jmx.address=127.0.0.1 +jmx.port=9999 http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jwt_publickey ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jwt_publickey b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jwt_publickey new file mode 100644 index 0000000..53914e0 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/jwt_publickey @@ -0,0 +1,9 @@ +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtlChO/nlVP27MpdkG0Bh +16XrMRf6M4NeyGa7j5+1UKm42IKUf3lM28oe82MqIIRyvskPc11NuzSor8HmvH8H +lhDs5DyJtx2qp35AT0zCqfwlaDnlDc/QDlZv1CoRZGpQk1Inyh6SbZwYpxxwh0fi ++d/4RpE3LBVo8wgOaXPylOlHxsDizfkL8QwXItyakBfMO6jWQRrj7/9WDhGf4Hi+ +GQur1tPGZDl9mvCoRHjFrD5M/yypIPlfMGWFVEvV5jClNMLAQ9bYFuOc7H1fEWw6 +U1LZUUbJW9/CH45YXz82CYqkrfbnQxqRb2iVbVjs/sHopHd1NTiCfUtwvcYJiBVj +kwIDAQAB +-----END PUBLIC KEY----- http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/listeners.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/listeners.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/listeners.xml new file mode 100644 index 0000000..7f956ae --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/listeners.xml @@ -0,0 +1,31 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<listeners> + <poolSize>8</poolSize> + + <listener> + <class>org.apache.james.mailbox.spamassassin.SpamAssassinListener</class> + <async>true</async> + </listener> + <listener> + <class>org.apache.james.mailbox.cassandra.MailboxOperationLoggingListener</class> + </listener> +</listeners> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/lmtpserver.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/lmtpserver.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/lmtpserver.xml new file mode 100644 index 0000000..ce079b0 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/lmtpserver.xml @@ -0,0 +1,41 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<lmtpservers> + + <lmtpserver enabled="false"> + <jmxName>lmtpserver</jmxName> + <!-- LMTP should not be reachable from outside your network so bind it to loopback--> + <bind>127.0.0.1:24</bind> + <connectionBacklog>200</connectionBacklog> + <connectiontimeout>1200</connectiontimeout> + <!-- Set the maximum simultaneous incoming connections for this service --> + <connectionLimit>0</connectionLimit> + <!-- Set the maximum simultaneous incoming connections per IP for this service --> + <connectionLimitPerIP>0</connectionLimitPerIP> + <!-- This sets the maximum allowed message size (in kilobytes) for this --> + <!-- LMTP service. If unspecified, the value defaults to 0, which means no limit. --> + <maxmessagesize>0</maxmessagesize> + <handlerchain> + <handler class="org.apache.james.lmtpserver.CoreCmdHandlerLoader"/> + </handlerchain> + </lmtpserver> + +</lmtpservers> http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/logback.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/logback.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/logback.xml new file mode 100644 index 0000000..94a639f --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/logback.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<configuration> + + <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"> + <resetJUL>true</resetJUL> + </contextListener> + + <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> + <encoder> + <pattern>%d{HH:mm:ss.SSS} %highlight([%-5level]) %logger{15} - %msg%n%rEx</pattern> + <immediateFlush>false</immediateFlush> + </encoder> + </appender> + + <appender name="LOG_FILE" class="ch.qos.logback.core.FileAppender"> + <file>/logs/james.log</file> + <encoder> + <pattern>%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx</pattern> + <immediateFlush>false</immediateFlush> + </encoder> + </appender> + + <root level="INFO"> + <appender-ref ref="CONSOLE" /> + <appender-ref ref="LOG_FILE" /> + </root> + + <logger name="com.datastax.driver.core.QueryLogger.SLOW" level="DEBUG" /> + +</configuration> http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/mailetcontainer.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/mailetcontainer.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/mailetcontainer.xml new file mode 100644 index 0000000..04d0459 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/mailetcontainer.xml @@ -0,0 +1,144 @@ +<?xml version="1.0"?> + +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<mailetcontainer enableJmx="true"> + + <context> + <postmaster>[email protected]</postmaster> + </context> + + <spooler> + <threads>20</threads> + </spooler> + + <processors> + <processor state="root" enableJmx="true"> + <mailet match="All" class="PostmasterAlias"/> + <mailet match="RelayLimit=30" class="Null"/> + <mailet match="All" class="ToProcessor"> + <processor>transport</processor> + </mailet> + </processor> + + <processor state="error" enableJmx="true"> + <mailet match="All" class="MetricsMailet"> + <metricName>mailetContainerErrors</metricName> + </mailet> + <mailet match="All" class="Bounce"/> + <mailet match="All" class="ToRepository"> + <repositoryPath>cassandra://var/mail/error/</repositoryPath> + </mailet> + </processor> + + <processor state="transport" enableJmx="true"> + <matcher name="relay-allowed" match="org.apache.james.mailetcontainer.impl.matchers.Or"> + <matcher match="SMTPAuthSuccessful"/> + <matcher match="SMTPIsAuthNetwork"/> + <matcher match="SentByMailet"/> + <matcher match="org.apache.james.jmap.mailet.SentByJmap"/> + </matcher> + + <mailet match="All" class="RemoveMimeHeader"> + <name>bcc</name> + <onMailetException>ignore</onMailetException> + </mailet> + <mailet match="All" class="RecipientRewriteTable"> + <errorProcessor>rrt-error</errorProcessor> + </mailet> + <mailet match="RecipientIsLocal" class="org.apache.james.jmap.mailet.VacationMailet"/> + <mailet match="RecipientIsLocal" class="Sieve"/> + <mailet match="RecipientIsLocal" class="AddDeliveredToHeader"/> + <mailet match="RecipientIsLocal" class="org.apache.james.jmap.mailet.filter.JMAPFiltering"/> + <mailet match="RecipientIsLocal" class="LocalDelivery"/> + <mailet match="HostIsLocal" class="ToProcessor"> + <processor>local-address-error</processor> + <notice>550 - Requested action not taken: no such user here</notice> + </mailet> + + <mailet match="relay-allowed" class="ToProcessor"> + <processor>relay</processor> + </mailet> + + <mailet match="All" class="ToProcessor"> + <processor>relay-denied</processor> + </mailet> + </processor> + + <processor state="relay" enableJmx="true"> + <mailet match="All" class="RemoteDelivery"> + <outgoingQueue>outgoing</outgoingQueue> + <delayTime>5000, 100000, 500000</delayTime> + <maxRetries>25</maxRetries> + <maxDnsProblemRetries>0</maxDnsProblemRetries> + <deliveryThreads>10</deliveryThreads> + <sendpartial>true</sendpartial> + <bounceProcessor>bounces</bounceProcessor> + </mailet> + </processor> + + <processor state="local-address-error" enableJmx="true"> + <mailet match="All" class="MetricsMailet"> + <metricName>mailetContainerLocalAddressError</metricName> + </mailet> + <mailet match="All" class="Bounce"> + <attachment>none</attachment> + </mailet> + <mailet match="All" class="ToRepository"> + <repositoryPath>cassandra://var/mail/address-error/</repositoryPath> + </mailet> + </processor> + + <processor state="relay-denied" enableJmx="true"> + <mailet match="All" class="MetricsMailet"> + <metricName>mailetContainerRelayDenied</metricName> + </mailet> + <mailet match="All" class="Bounce"> + <attachment>none</attachment> + </mailet> + <mailet match="All" class="ToRepository"> + <repositoryPath>cassandra://var/mail/relay-denied/</repositoryPath> + <notice>Warning: You are sending an e-mail to a remote server. You must be authenticated to perform such an operation</notice> + </mailet> + </processor> + + <processor state="bounces" enableJmx="true"> + <mailet match="All" class="MetricsMailet"> + <metricName>bounces</metricName> + </mailet> + <mailet match="All" class="DSNBounce"> + <passThrough>false</passThrough> + </mailet> + </processor> + + <processor state="rrt-error" enableJmx="false"> + <mailet match="All" class="ToRepository"> + <repositoryPath>cassandra://var/mail/rrt-error/</repositoryPath> + <passThrough>true</passThrough> + </mailet> + <mailet match="IsSenderInRRTLoop" class="Null"/> + <mailet match="All" class="Bounce"/> + </processor> + + </processors> + +</mailetcontainer> + + http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/mailrepositorystore.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/mailrepositorystore.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/mailrepositorystore.xml new file mode 100644 index 0000000..626e0a2 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/mailrepositorystore.xml @@ -0,0 +1,30 @@ +<?xml version="1.0"?> + +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<mailrepositorystore> + <mailrepositories> + <mailrepository class="org.apache.james.mailrepository.cassandra.CassandraMailRepository"> + <protocols> + <protocol>cassandra</protocol> + </protocols> + </mailrepository> + </mailrepositories> +</mailrepositorystore> http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/managesieveserver.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/managesieveserver.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/managesieveserver.xml new file mode 100644 index 0000000..7b0b85a --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/managesieveserver.xml @@ -0,0 +1,65 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<!-- + This template file can be used as example for James Server configuration + DO NOT USE IT AS SUCH AND ADAPT IT TO YOUR NEEDS +--> + +<!-- See http://james.apache.org/server/3/config.html for usage --> + +<managesieveservers> + + <managesieveserver enabled="false"> + + <jmxName>managesieveserver</jmxName> + + <bind>0.0.0.0:4190</bind> + + <connectionBacklog>200</connectionBacklog> + + <tls socketTLS="false" startTLS="false"> + <!-- To create a new keystore execute: + keytool -genkey -alias james -keyalg RSA -keystore /path/to/james/conf/keystore + --> + <keystore>file://conf/keystore</keystore> + <secret>james72laBalle</secret> + <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider> + <!-- The algorithm is optional and only needs to be specified when using something other + than the Sun JCE provider - You could use IbmX509 with IBM Java runtime. --> + <algorithm>SunX509</algorithm> + </tls> + + <!-- connection timeout in secconds --> + <connectiontimeout>360</connectiontimeout> + + <!-- Set the maximum simultaneous incoming connections for this service --> + <connectionLimit>0</connectionLimit> + + <!-- Set the maximum simultaneous incoming connections per IP for this service --> + <connectionLimitPerIP>0</connectionLimitPerIP> + <maxmessagesize>0</maxmessagesize> + <addressBracketsEnforcement>true</addressBracketsEnforcement> + + </managesieveserver> + +</managesieveservers> + + http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/pop3server.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/pop3server.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/pop3server.xml new file mode 100644 index 0000000..df8fbef --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/pop3server.xml @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + + +<pop3servers> + <pop3server enabled="false"> + <jmxName>pop3server</jmxName> + <bind>0.0.0.0:110</bind> + <connectionBacklog>200</connectionBacklog> + <tls socketTLS="false" startTLS="false"> + <!-- To create a new keystore execute: + keytool -genkey -alias james -keyalg RSA -keystore /path/to/james/conf/keystore + --> + <keystore>file://conf/keystore</keystore> + <secret>james72laBalle</secret> + <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider> + </tls> + <connectiontimeout>1200</connectiontimeout> + <connectionLimit>0</connectionLimit> + <connectionLimitPerIP>0</connectionLimitPerIP> + <handlerchain> + <handler class="org.apache.james.pop3server.core.CoreCmdHandlerLoader"/> + </handlerchain> + </pop3server> +</pop3servers> http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/recipientrewritetable.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/recipientrewritetable.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/recipientrewritetable.xml new file mode 100644 index 0000000..3d44578 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/recipientrewritetable.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<!-- The default table for storing James' RecipientRewriteTable mappings. --> +<recipientrewritetable> + <recursiveMapping>true</recursiveMapping> + <mappingLimit>10</mappingLimit> +</recipientrewritetable> + http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/smtpserver.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/smtpserver.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/smtpserver.xml new file mode 100644 index 0000000..e464ca6 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/smtpserver.xml @@ -0,0 +1,105 @@ +<?xml version="1.0"?> + +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<smtpservers> + <smtpserver enabled="true"> + <jmxName>smtpserver-global</jmxName> + <bind>0.0.0.0:25</bind> + <connectionBacklog>200</connectionBacklog> + <tls socketTLS="false" startTLS="false"> + <keystore>file://conf/keystore</keystore> + <secret>james72laBalle</secret> + <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider> + <algorithm>SunX509</algorithm> + </tls> + <connectiontimeout>360</connectiontimeout> + <connectionLimit>0</connectionLimit> + <connectionLimitPerIP>0</connectionLimitPerIP> + <authRequired>false</authRequired> + <authorizedAddresses>127.0.0.0/8</authorizedAddresses> + <verifyIdentity>true</verifyIdentity> + <maxmessagesize>0</maxmessagesize> + <addressBracketsEnforcement>true</addressBracketsEnforcement> + <smtpGreeting>JAMES Linagora's SMTP awesome Server</smtpGreeting> + <handlerchain> + <handler class="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/> + <handler class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/> + </handlerchain> + </smtpserver> + <smtpserver enabled="true"> + <jmxName>smtpserver-TLS</jmxName> + <bind>0.0.0.0:465</bind> + <connectionBacklog>200</connectionBacklog> + <tls socketTLS="true" startTLS="false"> + <keystore>file://conf/keystore</keystore> + <secret>james72laBalle</secret> + <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider> + <algorithm>SunX509</algorithm> + </tls> + <connectiontimeout>360</connectiontimeout> + <connectionLimit>0</connectionLimit> + <connectionLimitPerIP>0</connectionLimitPerIP> + <!-- + Authorize only local users + --> + <authRequired>true</authRequired> + <authorizedAddresses>127.0.0.0/8</authorizedAddresses> + <!-- Trust authenticated users --> + <verifyIdentity>false</verifyIdentity> + <maxmessagesize>0</maxmessagesize> + <addressBracketsEnforcement>true</addressBracketsEnforcement> + <smtpGreeting>JAMES Linagora's SMTP awesome Server</smtpGreeting> + <handlerchain> + <handler class="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/> + <handler class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/> + </handlerchain> + </smtpserver> + <smtpserver enabled="true"> + <jmxName>smtpserver-authenticated</jmxName> + <bind>0.0.0.0:587</bind> + <connectionBacklog>200</connectionBacklog> + <tls socketTLS="false" startTLS="true"> + <keystore>file://conf/keystore</keystore> + <secret>james72laBalle</secret> + <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider> + <algorithm>SunX509</algorithm> + </tls> + <connectiontimeout>360</connectiontimeout> + <connectionLimit>0</connectionLimit> + <connectionLimitPerIP>0</connectionLimitPerIP> + <!-- + Authorize only local users + --> + <authRequired>true</authRequired> + <authorizedAddresses>127.0.0.0/8</authorizedAddresses> + <!-- Trust authenticated users --> + <verifyIdentity>false</verifyIdentity> + <maxmessagesize>0</maxmessagesize> + <addressBracketsEnforcement>true</addressBracketsEnforcement> + <smtpGreeting>JAMES Linagora's SMTP awesome Server</smtpGreeting> + <handlerchain> + <handler class="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/> + <handler class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/> + </handlerchain> + </smtpserver> +</smtpservers> + + http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/tika.properties ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/tika.properties b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/tika.properties new file mode 100644 index 0000000..5e0229a --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/tika.properties @@ -0,0 +1,21 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +tika.enabled=true +tika.host=tika +tika.port=9998 +tika.timeoutInMillis=3000 http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/usersrepository.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/usersrepository.xml b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/usersrepository.xml new file mode 100644 index 0000000..c745677 --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/usersrepository.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<usersrepository name="LocalUsers"> + <algorithm>MD5</algorithm> + <enableVirtualHosting>true</enableVirtualHosting> + <enableForwarding>true</enableForwarding> +</usersrepository> + http://git-wip-us.apache.org/repos/asf/james-project/blob/0dea7f4b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/webadmin.properties ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/webadmin.properties b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/webadmin.properties new file mode 100644 index 0000000..36b6f1e --- /dev/null +++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/webadmin.properties @@ -0,0 +1,41 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# This template file can be used as example for James Server configuration +# DO NOT USE IT AS SUCH AND ADAPT IT TO YOUR NEEDS + +enabled=true +port=8000 +host=localhost + +# Defaults to false +https.enabled=false + +# Compulsory when enabling HTTPS +#https.keystore=/path/to/keystore +#https.password=password + +# Optional when enabling HTTPS (self signed) +#https.trust.keystore +#https.trust.password + +# Defaults to false +#jwt.enabled=true + +# Defaults to false +#cors.enable=true +#cors.origin \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
