http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/jmx-template.properties ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/jmx-template.properties b/server/app/src/main/resources/jmx-template.properties deleted file mode 100644 index a1dbdf8..0000000 --- a/server/app/src/main/resources/jmx-template.properties +++ /dev/null @@ -1,28 +0,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 - -# 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.address=127.0.0.1 -jmx.port=9999
http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/jmx.properties ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/jmx.properties b/server/app/src/main/resources/jmx.properties new file mode 100644 index 0000000..a1dbdf8 --- /dev/null +++ b/server/app/src/main/resources/jmx.properties @@ -0,0 +1,28 @@ +# 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.address=127.0.0.1 +jmx.port=9999 http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/lmtpserver-template.xml ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/lmtpserver-template.xml b/server/app/src/main/resources/lmtpserver-template.xml deleted file mode 100644 index 15bb62f..0000000 --- a/server/app/src/main/resources/lmtpserver-template.xml +++ /dev/null @@ -1,77 +0,0 @@ -<?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 --> - -<lmtpservers> - - <!-- The LMTP server is disabled by default --> - <!-- Disabling blocks will stop them from listening, --> - <!-- but does not free as many resources as removing them would --> - <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> - - <!-- This is the name used by the server to identify itself in the LMTP --> - <!-- protocol. If autodetect is TRUE, the server will discover its --> - <!-- own host name and use that in the protocol. If discovery fails, --> - <!-- the value of 'localhost' is used. If autodetect is FALSE, James --> - <!-- will use the specified value. --> - <!-- - <helloName autodetect="true">myMailServer</helloName> - --> - <!-- connection timeout in secconds --> - <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> - - <!-- This sets the LMTPGreeting which will be used when connect to the lmtpserver --> - <!-- If none is specified a default is generated --> - <!-- - <smtpGreeting>JAMES LMTP Server</smtpGreeting> - --> - - <handlerchain> - <!-- This loads the core CommandHandlers. Only remove this if you really --> - <!-- know what you are doing --> - <handler class="org.apache.james.lmtpserver.CoreCmdHandlerLoader"/> - </handlerchain> - - </lmtpserver> - -</lmtpservers> http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/lmtpserver.xml ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/lmtpserver.xml b/server/app/src/main/resources/lmtpserver.xml new file mode 100644 index 0000000..15bb62f --- /dev/null +++ b/server/app/src/main/resources/lmtpserver.xml @@ -0,0 +1,77 @@ +<?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 --> + +<lmtpservers> + + <!-- The LMTP server is disabled by default --> + <!-- Disabling blocks will stop them from listening, --> + <!-- but does not free as many resources as removing them would --> + <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> + + <!-- This is the name used by the server to identify itself in the LMTP --> + <!-- protocol. If autodetect is TRUE, the server will discover its --> + <!-- own host name and use that in the protocol. If discovery fails, --> + <!-- the value of 'localhost' is used. If autodetect is FALSE, James --> + <!-- will use the specified value. --> + <!-- + <helloName autodetect="true">myMailServer</helloName> + --> + <!-- connection timeout in secconds --> + <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> + + <!-- This sets the LMTPGreeting which will be used when connect to the lmtpserver --> + <!-- If none is specified a default is generated --> + <!-- + <smtpGreeting>JAMES LMTP Server</smtpGreeting> + --> + + <handlerchain> + <!-- This loads the core CommandHandlers. Only remove this if you really --> + <!-- know what you are doing --> + <handler class="org.apache.james.lmtpserver.CoreCmdHandlerLoader"/> + </handlerchain> + + </lmtpserver> + +</lmtpservers> http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/log4j-template.properties ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/log4j-template.properties b/server/app/src/main/resources/log4j-template.properties deleted file mode 100644 index fe9a8cc..0000000 --- a/server/app/src/main/resources/log4j-template.properties +++ /dev/null @@ -1,140 +0,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 - -log4j.rootLogger=DEBUG - -log4j.appender.CONS=org.apache.log4j.ConsoleAppender -log4j.appender.CONS.layout=org.apache.log4j.PatternLayout -log4j.appender.CONS.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender -log4j.appender.FILE.File=../log/james-server.log -log4j.appender.FILE.layout=org.apache.log4j.PatternLayout -log4j.appender.FILE.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.MAILBOXMANAGER=org.apache.log4j.DailyRollingFileAppender -log4j.appender.MAILBOXMANAGER.File=../log/mailboxmanager.log -log4j.appender.MAILBOXMANAGER.DatePattern='.'yyyy-MM-dd -log4j.appender.MAILBOXMANAGER.layout=org.apache.log4j.PatternLayout -log4j.appender.MAILBOXMANAGER.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.IMAPSERVER=org.apache.log4j.DailyRollingFileAppender -log4j.appender.IMAPSERVER.File=../log/imapserver.log -log4j.appender.IMAPSERVER.DatePattern='.'yyyy-MM-dd -log4j.appender.IMAPSERVER.layout=org.apache.log4j.PatternLayout -log4j.appender.IMAPSERVER.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.MAILETCONTAINER=org.apache.log4j.DailyRollingFileAppender -log4j.appender.MAILETCONTAINER.File=../log/mailetcontainer.log -log4j.appender.MAILETCONTAINER.DatePattern='.'yyyy-MM-dd -log4j.appender.MAILETCONTAINER.layout=org.apache.log4j.PatternLayout -log4j.appender.MAILETCONTAINER.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.DNSSERVICE=org.apache.log4j.DailyRollingFileAppender -log4j.appender.DNSSERVICE.File=../log/dnsservice.log -log4j.appender.DNSSERVICE.DatePattern='.'yyyy-MM-dd -log4j.appender.DNSSERVICE.layout=org.apache.log4j.PatternLayout -log4j.appender.DNSSERVICE.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.POP3SERVER=org.apache.log4j.DailyRollingFileAppender -log4j.appender.POP3SERVER.File=../log/pop3server.log -log4j.appender.POP3SERVER.DatePattern='.'yyyy-MM-dd -log4j.appender.POP3SERVER.layout=org.apache.log4j.PatternLayout -log4j.appender.POP3SERVER.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.SMTPSERVER=org.apache.log4j.DailyRollingFileAppender -log4j.appender.SMTPSERVER.File=../log/smtpserver.log -log4j.appender.SMTPSERVER.DatePattern='.'yyyy-MM-dd -log4j.appender.SMTPSERVER.layout=org.apache.log4j.PatternLayout -log4j.appender.SMTPSERVER.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.LMTPSERVER=org.apache.log4j.DailyRollingFileAppender -log4j.appender.LMTPSERVER.File=../log/lmtpserver.log -log4j.appender.LMTPSERVER.DatePattern='.'yyyy-MM-dd -log4j.appender.LMTPSERVER.layout=org.apache.log4j.PatternLayout -log4j.appender.LMTPSERVER.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.MAILREPOSITORYSTORE=org.apache.log4j.DailyRollingFileAppender -log4j.appender.MAILREPOSITORYSTORE.File=../log/mailrepositorystore.log -log4j.appender.MAILREPOSITORYSTORE.DatePattern='.'yyyy-MM-dd -log4j.appender.MAILREPOSITORYSTORE.layout=org.apache.log4j.PatternLayout -log4j.appender.MAILREPOSITORYSTORE.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.USERSREPOSITORY=org.apache.log4j.DailyRollingFileAppender -log4j.appender.USERSREPOSITORY.File=../log/usersrepository.log -log4j.appender.USERSREPOSITORY.DatePattern='.'yyyy-MM-dd -log4j.appender.USERSREPOSITORY.layout=org.apache.log4j.PatternLayout -log4j.appender.USERSREPOSITORY.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.FETCHMAIL=org.apache.log4j.DailyRollingFileAppender -log4j.appender.FETCHMAIL.File=../log/fetchmail.log -log4j.appender.FETCHMAIL.DatePattern='.'yyyy-MM-dd -log4j.appender.FETCHMAIL.layout=org.apache.log4j.PatternLayout -log4j.appender.FETCHMAIL.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.DOMAINLIST=org.apache.log4j.DailyRollingFileAppender -log4j.appender.DOMAINLIST.File=../log/domainlist.log -log4j.appender.DOMAINLIST.DatePattern='.'yyyy-MM-dd -log4j.appender.DOMAINLIST.layout=org.apache.log4j.PatternLayout -log4j.appender.DOMAINLIST.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.VIRTUALUSERTABLE=org.apache.log4j.DailyRollingFileAppender -log4j.appender.VIRTUALUSERTABLE.File=../log/virtualusertable.log -log4j.appender.VIRTUALUSERTABLE.DatePattern='.'yyyy-MM-dd -log4j.appender.VIRTUALUSERTABLE.layout=org.apache.log4j.PatternLayout -log4j.appender.VIRTUALUSERTABLE.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.appender.MAILQUEUEFACTORY=org.apache.log4j.DailyRollingFileAppender -log4j.appender.MAILQUEUEFACTORY.File=../log/mailqueuefactory.log -log4j.appender.MAILQUEUEFACTORY.DatePattern='.'yyyy-MM-dd -log4j.appender.MAILQUEUEFACTORY.layout=org.apache.log4j.PatternLayout -log4j.appender.MAILQUEUEFACTORY.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n - -log4j.logger.org.apache.jackrabbit=ERROR, CONS, FILE - -log4j.logger.org.apache.xbean.spring=WARN, CONS, FILE -log4j.logger.org.apache.activemq=WARN, CONS, FILE - -log4j.logger.org.apache.camel=WARN, CONS, FILE -log4j.logger.org.springframework=WARN, CONS, FILE -log4j.logger.org.apache.james=INFO, CONS, FILE - -log4j.logger.james=WARN, CONS, FILE -log4j.logger=DEBUG, CONS, FILE - -log4j.logger.james.mailboxmanager=INFO, MAILBOXMANAGER -log4j.logger.james.imapserver=INFO, IMAPSERVER -log4j.logger.james.mailetcontainer=INFO, MAILETCONTAINER -log4j.logger.james.mailetcontext=INFO, MAILETCONTAINER -log4j.logger.james.mailspooler=INFO, MAILETCONTAINER -log4j.logger.james.mailprocessor=INFO, MAILETCONTAINER -log4j.logger.james.dnsservice=INFO, DNSSERVICE -log4j.logger.james.pop3server=INFO, POP3SERVER -log4j.logger.james.smtpserver=INFO, SMTPSERVER -log4j.logger.james.lmtpserver=INFO, LMTPSERVER -log4j.logger.james.mailrepositorystore=INFO, MAILREPOSITORYSTORE -log4j.logger.james.usersrepository=INFO, USERSREPOSITORY -log4j.logger.james.fetchmail=INFO, FETCHMAIL -log4j.logger.james.domainlist=INFO, DOMAINLIST -log4j.logger.james.virtualusertable=INFO, VIRTUALUSERTABLE -log4j.logger.james.mailqueuefactory=INFO, MAILQUEUEFACTORY -log4j.logger.etm.core.monitor.EtmMonitor= INFO, CONS, FILE http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/mailbox-jcr-template.cnd ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/mailbox-jcr-template.cnd b/server/app/src/main/resources/mailbox-jcr-template.cnd deleted file mode 100644 index fd625fd..0000000 --- a/server/app/src/main/resources/mailbox-jcr-template.cnd +++ /dev/null @@ -1,74 +0,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 --> - -<jamesMailbox = 'http://james.apache.org/imap/jcr/'> - -[jamesMailbox:user] > mix:created - mixin - - jamesMailbox:user (String) - - jamesMailbox:subscriptionMailboxes (STRING) multiple - + * (nt:unstructured) multiple - - -[jamesMailbox:messageHeader] > mix:created, mix:lockable - mixin - - jamesMailbox:headerFieldName (STRING) mandatory - - jamesMailbox:headerValue(STRING) mandatory - - jamesMailbox:headerLineNumber (LONG) mandatory - -[jamesMailbox:messageProperty] > mix:created - mixin - - jamesMailbox:propertyNamespace (STRING) mandatory - - jamesMailbox:propertyLocalName (STRING) mandatory - - jamesMailbox:propertyValue(STRING) mandatory - - jamesMailbox:propertyOrder (Long) mandatory - -[jamesMailbox:message] > mix:referenceable, mix:created, mix:created - mixin - - jamesMailbox:mailboxUUID (String) mandatory - - jamesMailbox:uid (LONG) mandatory - - jamesMailbox:modSeq (LONG) - - jamesMailbox:size (LONG) mandatory - - jamesMailbox:answered (BOOLEAN) - - jamesMailbox:deleted (BOOLEAN) - - jamesMailbox:draft (BOOLEAN) - - jamesMailbox:flagged (BOOLEAN) - - jamesMailbox:recent (BOOLEAN) - - jamesMailbox:seen (BOOLEAN) - - jamesMailbox:internalDate (DATE) - - jamesMailbox:userFlags (STRING) multiple - - jamesMailbox:messageBodyStartOctet (LONG) mandatory - - jamesMailbox:messageTextualLineCount (LONG) - - jamesMailbox:messageSubType (String) mandatory - + messageHeader (nt:unstructured) multiple - + messageProperty (nt:unstructured) multiple - -[jamesMailbox:mailbox] > mix:referenceable, mix:lockable, mix:created - mixin - - jamesMailbox:mailboxUidValidity (LONG) - - jamesMailbox:mailboxName (STRING) - - jamesMailbox:mailboxLastUid (LONG) - - jamesMailbox:mailboxNamespace (STRING) - - jamesMailbox:mailboxUser (STRING) - + * (nt:unstructured) multiple http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/mailbox-jcr.cnd ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/mailbox-jcr.cnd b/server/app/src/main/resources/mailbox-jcr.cnd new file mode 100644 index 0000000..fd625fd --- /dev/null +++ b/server/app/src/main/resources/mailbox-jcr.cnd @@ -0,0 +1,74 @@ +/* + * 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 --> + +<jamesMailbox = 'http://james.apache.org/imap/jcr/'> + +[jamesMailbox:user] > mix:created + mixin + - jamesMailbox:user (String) + - jamesMailbox:subscriptionMailboxes (STRING) multiple + + * (nt:unstructured) multiple + + +[jamesMailbox:messageHeader] > mix:created, mix:lockable + mixin + - jamesMailbox:headerFieldName (STRING) mandatory + - jamesMailbox:headerValue(STRING) mandatory + - jamesMailbox:headerLineNumber (LONG) mandatory + +[jamesMailbox:messageProperty] > mix:created + mixin + - jamesMailbox:propertyNamespace (STRING) mandatory + - jamesMailbox:propertyLocalName (STRING) mandatory + - jamesMailbox:propertyValue(STRING) mandatory + - jamesMailbox:propertyOrder (Long) mandatory + +[jamesMailbox:message] > mix:referenceable, mix:created, mix:created + mixin + - jamesMailbox:mailboxUUID (String) mandatory + - jamesMailbox:uid (LONG) mandatory + - jamesMailbox:modSeq (LONG) + - jamesMailbox:size (LONG) mandatory + - jamesMailbox:answered (BOOLEAN) + - jamesMailbox:deleted (BOOLEAN) + - jamesMailbox:draft (BOOLEAN) + - jamesMailbox:flagged (BOOLEAN) + - jamesMailbox:recent (BOOLEAN) + - jamesMailbox:seen (BOOLEAN) + - jamesMailbox:internalDate (DATE) + - jamesMailbox:userFlags (STRING) multiple + - jamesMailbox:messageBodyStartOctet (LONG) mandatory + - jamesMailbox:messageTextualLineCount (LONG) + - jamesMailbox:messageSubType (String) mandatory + + messageHeader (nt:unstructured) multiple + + messageProperty (nt:unstructured) multiple + +[jamesMailbox:mailbox] > mix:referenceable, mix:lockable, mix:created + mixin + - jamesMailbox:mailboxUidValidity (LONG) + - jamesMailbox:mailboxName (STRING) + - jamesMailbox:mailboxLastUid (LONG) + - jamesMailbox:mailboxNamespace (STRING) + - jamesMailbox:mailboxUser (STRING) + + * (nt:unstructured) multiple http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/mailbox-maildir-template.properties ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/mailbox-maildir-template.properties b/server/app/src/main/resources/mailbox-maildir-template.properties deleted file mode 100644 index 3164d0a..0000000 --- a/server/app/src/main/resources/mailbox-maildir-template.properties +++ /dev/null @@ -1,25 +0,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 - -maildir.folder=../var/store/maildir/%domain/%user -maildir.messageNameParser.strictMode=false http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/mailbox-maildir.properties ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/mailbox-maildir.properties b/server/app/src/main/resources/mailbox-maildir.properties new file mode 100644 index 0000000..3164d0a --- /dev/null +++ b/server/app/src/main/resources/mailbox-maildir.properties @@ -0,0 +1,25 @@ +# 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 + +maildir.folder=../var/store/maildir/%domain/%user +maildir.messageNameParser.strictMode=false http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/mailbox-template.xml ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/mailbox-template.xml b/server/app/src/main/resources/mailbox-template.xml deleted file mode 100644 index 4c0cf91..0000000 --- a/server/app/src/main/resources/mailbox-template.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?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 --> - -<mailbox> - <!-- supported providers are: --> - <!-- jpa, jcr, maildir, hbase, memory --> - <!-- --> - <!-- Be aware that maildir will only work on unix like operation systems! --> - <provider>jpa</provider> -</mailbox> http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/mailbox.xml ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/mailbox.xml b/server/app/src/main/resources/mailbox.xml new file mode 100644 index 0000000..4c0cf91 --- /dev/null +++ b/server/app/src/main/resources/mailbox.xml @@ -0,0 +1,34 @@ +<?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 --> + +<mailbox> + <!-- supported providers are: --> + <!-- jpa, jcr, maildir, hbase, memory --> + <!-- --> + <!-- Be aware that maildir will only work on unix like operation systems! --> + <provider>jpa</provider> +</mailbox> http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/mailetcontainer-template.xml ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/mailetcontainer-template.xml b/server/app/src/main/resources/mailetcontainer-template.xml deleted file mode 100644 index abb8282..0000000 --- a/server/app/src/main/resources/mailetcontainer-template.xml +++ /dev/null @@ -1,518 +0,0 @@ -<?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 --> - -<!-- This block is responsible for processing messages on the spool. --> - -<mailetcontainer enableJmx="true"> - - <!-- MailAddress used for PostMaster --> - <context> - <postmaster>postmaster@localhost</postmaster> - </context> - - <!-- Number of spool threads --> - <spooler> - <threads>20</threads> - </spooler> - - <processors> - - <!-- The root processor is a required processor - James routes all mail on the spool --> - <!-- through this processor first. --> - <!-- --> - <!-- This configuration is a sample configuration for the root processor. --> - <processor state="root" enableJmx="true"> - - <!-- This mailet redirects mail for the user 'postmaster' at any local domain to --> - <!-- the postmaster address specified for the server. The postmaster address --> - <!-- is required by rfc822. Do not remove this mailet unless you are meeting --> - <!-- this requirement through other means (e.g. a XML/JDBCRecipientRewriteTable defined in recipientrewritetable-store.xml) --> - <mailet match="All" class="PostmasterAlias"/> - - <!-- Important check to avoid looping --> - <mailet match="RelayLimit=30" class="Null"/> - - <!-- Check attachment extensions for possible viruses --> - <!-- The "-z" option requests the check to be non-recursively applied --> - <!-- to the contents of any attached '*.zip' file. --> - <!-- - <mailet match="AttachmentFileNameIs=-d -z *.exe *.com *.bat *.cmd *.pif *.scr *.vbs *.avi *.mp3 *.mpeg *.shs" class="Bounce" onMatchException="error"> - <inline>heads</inline> - <attachment>none</attachment> - <passThrough>false</passThrough> - <prefix>[REJECTED]</prefix> - <notice> -The Security Policy of XXX does not allow to forward messages containing attachments having any of the extensions .exe, .com, .bat, .cmd, .pif, .scr, .vbs, .avi, .mp3, .mpeg, .shs, therefore your message has been rejected. - -Please don't reply to this e-mail as it has been automatically sent by the antivirus system. - -Regards, Postmaster XXX.YYY -..................................... - </notice> - </mailet> - --> - - <!-- sample SMIME mailets configuration --> - <!-- - <mailet match="IsSMIMEEncrypted" class="SMIMEDecrypt"> - <keyStoreType>pkcs12</keyStoreType> - <keyStoreFileName>c:/path.pfx</keyStoreFileName> - <keyStorePassword>myKeyStorePass</keyStorePassword> - <keyAlias>myKeyAlias</keyAlias> - <keyAliasPassword>myKeyPass</keyAliasPassword> - </mailet> - - <mailet match="IsSMIMESigned" class="SMIMECheckSignature"> - <keyStoreType>pkcs12</keyStoreType> - <keyStoreFileName>c:/path.pfx</keyStoreFileName> - <keyStorePassword>myKeyStorePass</keyStorePassword> - <strip>false</strip> - <onlyTrusted>true</onlyTrusted> - </mailet> - --> - - - <!-- Anti-spam processing --> - <!-- The following two entries avoid double anti-spam analysis --> - <!-- for forwarded messages. --> - <!-- Has spam checking already been done? --> - <mailet match="HasMailAttribute=spamChecked" class="ToProcessor"> - <processor>transport</processor> - </mailet> - <!-- Spam checking will not be done twice --> - <mailet match="All" class="SetMailAttribute"> - <spamChecked>true</spamChecked> - </mailet> - - <!-- White List: - If you use block lists, you will probably want to check - for known permitted senders. This is particularly true - if you use more aggressive block lists, such as SPEWS, - that are prone to block entire subnets without regard - for non-spamming senders. - --> - - <!-- Messages from authenticated senders never are spam --> - <mailet match="SMTPAuthSuccessful" class="ToProcessor"> - <processor>transport</processor> - </mailet> - - <!-- Messages signed by trusted users never are spam --> - <!-- Uncommenting the following entry, messages with valid signatures will never be considered spam. --> - <!-- This can be a valid policy *if* SMIMECheckSignature was invoked --> - <!-- with<onlyTrusted>true</onlyTrusted>set --> - <!-- - <mailet match="HasMailAttribute=org.apache.james.SMIMECheckSignature" class="ToProcessor"> - <processor>transport</processor> - </mailet> - --> - - <!-- specific known senders --> - <!-- - <mailet match="SenderIs=goodboy@goodhost" - class="ToProcessor"> - <processor>transport</processor> - </mailet> - --> - - <!-- End of White List --> - - <!-- Sample matching to kill a message (send to Null) --> - <!-- - <mailet match="RecipientIs=badboy@badhost" class="Null"/> - --> - <!-- - <mailet match="CompareNumericHeaderValue=X-MessageIsSpamProbability >0.90" class="SetMailAttribute" onMatchException="noMatch"> - <isSpam>true</isSpam> - </mailet> - - <mailet match="CompareNumericHeaderValue=X-MessageIsSpamProbability >0.90" class="SetMimeHeader" onMatchException="noMatch"> - <name>X-MessageIsSpam</name> - <value>true</value> - </mailet> - - <mailet match="CompareNumericHeaderValue=X-MessageIsSpamProbability >0.99" class="ToProcessor" onMatchException="noMatch"> - <processor>spam</processor> - <notice>Spam not accepted</notice> - </mailet> - --> - - <!-- Send remaining mails to the transport processor for either local or remote delivery --> - <mailet match="All" class="ToProcessor"> - <processor>transport</processor> - </mailet> - - </processor> - - <!-- The error processor is required. James may internally set emails to the --> - <!-- error state. The error processor is generally invoked when there is an --> - <!-- unexpected error either in the mailet chain or internal to James. --> - <!-- --> - <!-- By default configuration all email that generates an error in placed in --> - <!-- an error repository. --> - <processor state="error" enableJmx="true"> - <!-- If you want to notify the sender their message generated an error, uncomment this --> - <!-- - <mailet match="All" class="Bounce"/> - --> - <!-- If you want to notify the postmaster that a message generated an error, uncomment this --> - <!-- - <mailet match="All" class="NotifyPostmaster"/> - --> - - <!-- Logs any messages to the repository specified --> - <mailet match="All" class="ToRepository"> - <repositoryPath>file://var/mail/error/</repositoryPath> - <!-- An alternative database repository example follows. --> - <!-- - <repositoryPath>db://maildb/deadletter/error</repositoryPath> - --> - </mailet> - </processor> - - <!-- Processor CONFIGURATION SAMPLE: transport is a sample custom processor for local or --> - <!-- remote delivery --> - <processor state="transport" enableJmx="true"> - - <!-- This is an example configuration including configuration for a list server. --> - <!-- CHECKME: before uncommenting this, edit the configuration file's contents --> - <!-- - &listserverConfig; - --> - - <mailet match="SMTPAuthSuccessful" class="SetMimeHeader"> - <name>X-UserIsAuth</name> - <value>true</value> - </mailet> - - <mailet match="HasMailAttribute=org.apache.james.SMIMECheckSignature" class="SetMimeHeader"> - <name>X-WasSigned</name> - <value>true</value> - </mailet> - - <!-- Add a server-side signature --> - <!-- - <mailet match="All" class="SMIMESign" onMailetException="ignore"> - <keyStoreType>jks</keyStoreType> - <keyStoreFileName>path.keystore</keyStoreFileName> - <keyStorePassword>myKeyStorePass</keyStorePassword> - <keyAlias>myKeyAlias</keyAlias> - <keyAliasPassword>myKeyPass</keyAliasPassword> - <signerName>XXX Trusted Server</signerName> - <rebuildFrom>true</rebuildFrom> - <postmasterSigns>true</postmasterSigns> - <debug>true</debug> - </mailet> - --> - - <!-- Experimental quota Matcher --> - <!-- Check if over quota --> - <!-- - - <mailet match="IsOverQuota" class="ToProcessor"> - <processor>over-quota</processor> - </mailet> - --> - - <!-- The RecipientRewriteTable will use the definitions found in recipientrewritetablexml --> - <mailet match="All" class="RecipientRewriteTable" /> - - <!-- Place a copy in the user Sent folder --> - <mailet match="SenderIsLocal" class="ToSenderFolder"> - <folder>Sent</folder> - <consume>false</consume> - </mailet> - - <!-- Is the recipient is for a local account, deliver it locally --> - <mailet match="RecipientIsLocal" class="Sieve"/> - <mailet match="RecipientIsLocal" class="AddDeliveredToHeader"/> - <mailet match="RecipientIsLocal" class="LocalDelivery"/> - - <!-- If the host is handled by this server and it did not get --> - <!-- locally delivered, this is an invalid recipient --> - <mailet match="HostIsLocal" class="ToProcessor"> - <processor>local-address-error</processor> - <notice>550 - Requested action not taken: no such user here</notice> - </mailet> - -<!-- CHECKME! --> - <!-- This is an anti-relay matcher/mailet combination --> - <!-- --> - <!-- Emails sent from servers not in the network list are --> - <!-- rejected as spam. This is one method of preventing your --> - <!-- server from being used as an open relay. Make sure you understand --> - <!-- how to prevent your server from becoming an open relay before --> - <!-- changing this configuration. See also<authorizedAddresses>in SMTP Server --> - <!-- --> - <!-- This matcher/mailet combination must come after local delivery has --> - <!-- been performed. Otherwise local users will not be able to receive --> - <!-- email from senders not in this remote address list. --> - <!-- --> - <!-- If you are using this matcher/mailet you will probably want to --> - <!-- update the configuration to include your own network/addresses. The --> - <!-- matcher can be configured with a comma separated list of IP addresses --> - <!-- wildcarded IP subnets, and wildcarded hostname subnets. --> - <!-- e.g. "RemoteAddrNotInNetwork=127.0.0.1, abc.de.*, 192.168.0.*" --> - <!-- --> - <!-- If you are using SMTP authentication then you can (and generally --> - <!-- should) disable this matcher/mailet pair. --> - <mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor"> - <processor>relay-denied</processor> - <notice>550 - Requested action not taken: relaying denied</notice> - </mailet> - - <!-- Attempt remote delivery using the specified repository for the spool, --> - <!-- using delay time to retry delivery and the maximum number of retries --> - <mailet match="All" class="RemoteDelivery"> - <outgoingQueue>outgoing</outgoingQueue> - - <!-- Delivery Schedule based upon RFC 2821, 4.5.4.1 --> - <!-- 5 day retry period, with 4 attempts in the first - hour, two more within the first 6 hours, and then - every 6 hours for the rest of the period. - This format is not yet supported, instead, use a unique - tag with the list of delays in milliseconds separated by commas. - <delayTime>5 minutes</delayTime> - <delayTime>10 minutes</delayTime> - <delayTime>45 minutes</delayTime> - <delayTime>2 hours</delayTime> - <delayTime>3 hours</delayTime> - <delayTime>6 hours</delayTime> - --> - <delayTime>5000, 100000, 500000</delayTime> - <maxRetries>25</maxRetries> - - <!-- The max reties which will used if no A or MX record for the domain was found. --> - <!-- If 0 it will fail on first time --> - <maxDnsProblemRetries>0</maxDnsProblemRetries> - - <!-- The number of threads that should be trying to deliver outgoing messages --> - <deliveryThreads>10</deliveryThreads> - - <!-- If false the message will not be sent to given server if any recipients fail --> - <sendpartial>true</sendpartial> - - <!-- By default we send bounces to the "bounce" processor --> - <!-- By removing this configuration James will fallback to hardcoded bounce --> - <!-- notifications --> - <bounceProcessor>bounces</bounceProcessor> - - <!-- A single mail server to deliver all outgoing messages. --> - <!-- This is useful if this server is a backup or failover machine, --> - <!-- or if you want all messages to be routed through a particular mail server, --> - <!-- regardless of the email addresses specified in the message --> - <!-- --> - <!-- The gateway element specifies the gateway SMTP server name. --> - <!-- If your gateway mail server is listening on a port other than 25, --> - <!-- you can set James to connect to it on that port using the gatewayPort --> - <!-- element. --> - <!-- Although normally multiple addresses are implemented through proper --> - <!-- DNS configuration, the RemoteDelivery mail does allow specifying --> - <!-- multiple gateway elements, each of which may also have a port --> - <!-- e.g., mygateway:2525 --> - <!-- the gatewayPort element is used as a default --> - <!-- - <gateway>otherserver.mydomain.com</gateway> - <gatewayPort>25</gatewayPort> - --> - <!-- If the gateway requires smtp authentication the following directives --> - <!-- (gatewayUsername/gatewayPassword) can be used. --> - <!-- - <gatewayUsername>login</gatewayUsername> - <gatewayPassword>pass</gatewayPassword> - --> - - <!-- Set the HELO/EHLO name to use when connectiong to remote SMTP-Server --> - <!-- - <mail.smtp.localhost>myMailServer</mail.smtp.localhost> - --> - </mailet> - - </processor> - - <processor state="over-quota" enableJmx="true"> - <mailet match="All" class="MetricsMailet"> - <metricName>mailet-over-quota-error</metricName> - </mailet> - <mailet match="All" class="Bounce"> - <message>The following recipients do not have enough space for storing the email you sent them.</message> - <attachment>none</attachment> - </mailet> - <mailet match="All" class="ToRepository"> - <repositoryPath>file://var/mail/over-quota-error/</repositoryPath> - </mailet> - </processor> - - - <!-- Processor CONFIGURATION SAMPLE: spam is a sample custom processor for handling --> - <!-- spam. --> - <!-- You can either log these, bounce these, or just ignore them. --> - <processor state="spam" enableJmx="true"> - - <!-- To place the spam messages in the user junk folder, uncomment this matcher/mailet configuration --> - <!-- - <mailet match="RecipientIsLocal" class="ToRecipientFolder"> - <folder>Junk</folder> - <consume>false</consume> - </mailet> - --> - - <!-- To destroy all messages, uncomment this matcher/mailet configuration --> - <!-- - <mailet match="All" class="Null"/> - --> - - <!-- To notify the sender their message was marked as spam, uncomment this matcher/mailet configuration --> - <!-- - <mailet match="All" class="Bounce"/> - --> - - <!-- To notify the postmaster that a message was marked as spam, uncomment this matcher/mailet configuration --> - <!-- - <mailet match="All" class="NotifyPostmaster"/> - --> - - <!-- To log the message to a repository, this matcher/mailet configuration should be uncommented. --> - <!-- This is the default configuration. --> - <mailet match="All" class="ToRepository"> - <repositoryPath>file://var/mail/spam/</repositoryPath> - - <!-- Changing the repositoryPath, as in this commented out example, will --> - <!-- cause the mails to be stored in a database repository. --> - <!-- Please note that only one repositoryPath element can be present for the mailet --> - <!-- configuration. --> - <!-- - <repositoryPath>db://maildb/deadletter/spam</repositoryPath> - --> - </mailet> - </processor> - - <!-- messages containing viruses. --> - <processor state="virus" enableJmx="true"> - - <!-- To avoid a loop while bouncing --> - <mailet match="All" class="SetMailAttribute"> - <org.apache.james.infected>true, bouncing</org.apache.james.infected> - </mailet> - - <!-- If the sender is authenticated, notify the infection --> - <mailet match="SMTPAuthSuccessful" class="Bounce"> - <inline>heads</inline> - <attachment>none</attachment> - <notice>Warning: We were unable to deliver the message below because it was found infected by virus(es).</notice> - </mailet> - - <!-- In any other situation ghost it, --> - <!-- as viruses almost always spoof the sender's address --> - <mailet match="All" class="Null" /> - </processor> - - <!-- This processor handles messages that are for local domains, where the user is unknown --> - <processor state="local-address-error" enableJmx="true"> - <!-- To avoid bouncing/archiving spam, uncomment this matcher/mailet configuration --> - <!-- - <mailet match="HasMailAttribute=isSpam" class="Null" onMatchException="noMatch"/> - --> - - <!-- To notify the sender the address was invalid, uncomment this matcher/mailet configuration --> - <!-- The original message is not attached to keep the bounce processor from deliverying spam --> - <!-- - <mailet match="All" class="Bounce"> - <attachment>none</attachment> - </mailet> - --> - - <!-- To notify the postmaster that a message had an invalid address, uncomment this matcher/mailet configuration --> - <!-- - <mailet match="All" class="NotifyPostmaster"/> - --> - - <mailet match="All" class="ToRepository"> - <repositoryPath>file://var/mail/address-error/</repositoryPath> - <!-- An alternative database repository example follows. --> - <!-- - <repositoryPath>db://maildb/deadletter/address-error</repositoryPath> - --> - </mailet> - </processor> - - <!-- This processor handles messages that are for foreign domains, where relaying is denied --> - <!-- As of James v2.2, this processor can be deprecated by using the<authorizedAddresses>tag - in the SMTP Server, and rejecting the message in the protocol transaction. --> - <processor state="relay-denied" enableJmx="true"> - <!-- To notify the sender the address was invalid, uncomment this matcher/mailet configuration --> - <!-- The original message is not attached to keep the bounce processor from deliverying spam --> - <!-- - <mailet match="All" class="Bounce"> - <attachment>none</attachment> - </mailet> - --> - - <!-- To notify the postmaster that a relay request was denied, uncomment this matcher/mailet configuration --> - <!-- - <mailet match="All" class="NotifyPostmaster"/> - --> - - <mailet match="All" class="ToRepository"> - <repositoryPath>file://var/mail/relay-denied/</repositoryPath> - <!-- An alternative database repository example follows. --> - <!-- - <repositoryPath>db://maildb/deadletter/relay-denied</repositoryPath> - --> - </mailet> - </processor> - - <!-- This processor handle the bounces from RemoteDelivery: As of James v2.3, this is the new --> - <!-- Default. --> - <!-- --> - <!-- DSNBounce properly create a DSN compliant bounce --> - <processor state="bounces" enableJmx="true"> - <mailet match="All" class="DSNBounce"> - <passThrough>false</passThrough> - - <!-- optional subject prefix prepended to the original message --> - <!-- - <prefix>[bounce]</prefix> - --> - - <!-- message, heads or none, default=message --> - <!-- - <attachment>heads</attachment> - --> - - <!-- the message sent in the bounce, the first occurrence of the pattern [machine] is --> - <!-- replaced with the name of the executing machine --> - <!-- Default: Hi. This is the James mail server at [machine] ... --> - <!-- - <messageString>Here is [machine]. I'm not able to deliver this message.</messageString> - --> - </mailet> - </processor> - - </processors> - -</mailetcontainer> http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/mailetcontainer.xml ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/mailetcontainer.xml b/server/app/src/main/resources/mailetcontainer.xml new file mode 100644 index 0000000..abb8282 --- /dev/null +++ b/server/app/src/main/resources/mailetcontainer.xml @@ -0,0 +1,518 @@ +<?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 --> + +<!-- This block is responsible for processing messages on the spool. --> + +<mailetcontainer enableJmx="true"> + + <!-- MailAddress used for PostMaster --> + <context> + <postmaster>postmaster@localhost</postmaster> + </context> + + <!-- Number of spool threads --> + <spooler> + <threads>20</threads> + </spooler> + + <processors> + + <!-- The root processor is a required processor - James routes all mail on the spool --> + <!-- through this processor first. --> + <!-- --> + <!-- This configuration is a sample configuration for the root processor. --> + <processor state="root" enableJmx="true"> + + <!-- This mailet redirects mail for the user 'postmaster' at any local domain to --> + <!-- the postmaster address specified for the server. The postmaster address --> + <!-- is required by rfc822. Do not remove this mailet unless you are meeting --> + <!-- this requirement through other means (e.g. a XML/JDBCRecipientRewriteTable defined in recipientrewritetable-store.xml) --> + <mailet match="All" class="PostmasterAlias"/> + + <!-- Important check to avoid looping --> + <mailet match="RelayLimit=30" class="Null"/> + + <!-- Check attachment extensions for possible viruses --> + <!-- The "-z" option requests the check to be non-recursively applied --> + <!-- to the contents of any attached '*.zip' file. --> + <!-- + <mailet match="AttachmentFileNameIs=-d -z *.exe *.com *.bat *.cmd *.pif *.scr *.vbs *.avi *.mp3 *.mpeg *.shs" class="Bounce" onMatchException="error"> + <inline>heads</inline> + <attachment>none</attachment> + <passThrough>false</passThrough> + <prefix>[REJECTED]</prefix> + <notice> +The Security Policy of XXX does not allow to forward messages containing attachments having any of the extensions .exe, .com, .bat, .cmd, .pif, .scr, .vbs, .avi, .mp3, .mpeg, .shs, therefore your message has been rejected. + +Please don't reply to this e-mail as it has been automatically sent by the antivirus system. + +Regards, Postmaster XXX.YYY +..................................... + </notice> + </mailet> + --> + + <!-- sample SMIME mailets configuration --> + <!-- + <mailet match="IsSMIMEEncrypted" class="SMIMEDecrypt"> + <keyStoreType>pkcs12</keyStoreType> + <keyStoreFileName>c:/path.pfx</keyStoreFileName> + <keyStorePassword>myKeyStorePass</keyStorePassword> + <keyAlias>myKeyAlias</keyAlias> + <keyAliasPassword>myKeyPass</keyAliasPassword> + </mailet> + + <mailet match="IsSMIMESigned" class="SMIMECheckSignature"> + <keyStoreType>pkcs12</keyStoreType> + <keyStoreFileName>c:/path.pfx</keyStoreFileName> + <keyStorePassword>myKeyStorePass</keyStorePassword> + <strip>false</strip> + <onlyTrusted>true</onlyTrusted> + </mailet> + --> + + + <!-- Anti-spam processing --> + <!-- The following two entries avoid double anti-spam analysis --> + <!-- for forwarded messages. --> + <!-- Has spam checking already been done? --> + <mailet match="HasMailAttribute=spamChecked" class="ToProcessor"> + <processor>transport</processor> + </mailet> + <!-- Spam checking will not be done twice --> + <mailet match="All" class="SetMailAttribute"> + <spamChecked>true</spamChecked> + </mailet> + + <!-- White List: + If you use block lists, you will probably want to check + for known permitted senders. This is particularly true + if you use more aggressive block lists, such as SPEWS, + that are prone to block entire subnets without regard + for non-spamming senders. + --> + + <!-- Messages from authenticated senders never are spam --> + <mailet match="SMTPAuthSuccessful" class="ToProcessor"> + <processor>transport</processor> + </mailet> + + <!-- Messages signed by trusted users never are spam --> + <!-- Uncommenting the following entry, messages with valid signatures will never be considered spam. --> + <!-- This can be a valid policy *if* SMIMECheckSignature was invoked --> + <!-- with<onlyTrusted>true</onlyTrusted>set --> + <!-- + <mailet match="HasMailAttribute=org.apache.james.SMIMECheckSignature" class="ToProcessor"> + <processor>transport</processor> + </mailet> + --> + + <!-- specific known senders --> + <!-- + <mailet match="SenderIs=goodboy@goodhost" + class="ToProcessor"> + <processor>transport</processor> + </mailet> + --> + + <!-- End of White List --> + + <!-- Sample matching to kill a message (send to Null) --> + <!-- + <mailet match="RecipientIs=badboy@badhost" class="Null"/> + --> + <!-- + <mailet match="CompareNumericHeaderValue=X-MessageIsSpamProbability >0.90" class="SetMailAttribute" onMatchException="noMatch"> + <isSpam>true</isSpam> + </mailet> + + <mailet match="CompareNumericHeaderValue=X-MessageIsSpamProbability >0.90" class="SetMimeHeader" onMatchException="noMatch"> + <name>X-MessageIsSpam</name> + <value>true</value> + </mailet> + + <mailet match="CompareNumericHeaderValue=X-MessageIsSpamProbability >0.99" class="ToProcessor" onMatchException="noMatch"> + <processor>spam</processor> + <notice>Spam not accepted</notice> + </mailet> + --> + + <!-- Send remaining mails to the transport processor for either local or remote delivery --> + <mailet match="All" class="ToProcessor"> + <processor>transport</processor> + </mailet> + + </processor> + + <!-- The error processor is required. James may internally set emails to the --> + <!-- error state. The error processor is generally invoked when there is an --> + <!-- unexpected error either in the mailet chain or internal to James. --> + <!-- --> + <!-- By default configuration all email that generates an error in placed in --> + <!-- an error repository. --> + <processor state="error" enableJmx="true"> + <!-- If you want to notify the sender their message generated an error, uncomment this --> + <!-- + <mailet match="All" class="Bounce"/> + --> + <!-- If you want to notify the postmaster that a message generated an error, uncomment this --> + <!-- + <mailet match="All" class="NotifyPostmaster"/> + --> + + <!-- Logs any messages to the repository specified --> + <mailet match="All" class="ToRepository"> + <repositoryPath>file://var/mail/error/</repositoryPath> + <!-- An alternative database repository example follows. --> + <!-- + <repositoryPath>db://maildb/deadletter/error</repositoryPath> + --> + </mailet> + </processor> + + <!-- Processor CONFIGURATION SAMPLE: transport is a sample custom processor for local or --> + <!-- remote delivery --> + <processor state="transport" enableJmx="true"> + + <!-- This is an example configuration including configuration for a list server. --> + <!-- CHECKME: before uncommenting this, edit the configuration file's contents --> + <!-- + &listserverConfig; + --> + + <mailet match="SMTPAuthSuccessful" class="SetMimeHeader"> + <name>X-UserIsAuth</name> + <value>true</value> + </mailet> + + <mailet match="HasMailAttribute=org.apache.james.SMIMECheckSignature" class="SetMimeHeader"> + <name>X-WasSigned</name> + <value>true</value> + </mailet> + + <!-- Add a server-side signature --> + <!-- + <mailet match="All" class="SMIMESign" onMailetException="ignore"> + <keyStoreType>jks</keyStoreType> + <keyStoreFileName>path.keystore</keyStoreFileName> + <keyStorePassword>myKeyStorePass</keyStorePassword> + <keyAlias>myKeyAlias</keyAlias> + <keyAliasPassword>myKeyPass</keyAliasPassword> + <signerName>XXX Trusted Server</signerName> + <rebuildFrom>true</rebuildFrom> + <postmasterSigns>true</postmasterSigns> + <debug>true</debug> + </mailet> + --> + + <!-- Experimental quota Matcher --> + <!-- Check if over quota --> + <!-- + + <mailet match="IsOverQuota" class="ToProcessor"> + <processor>over-quota</processor> + </mailet> + --> + + <!-- The RecipientRewriteTable will use the definitions found in recipientrewritetablexml --> + <mailet match="All" class="RecipientRewriteTable" /> + + <!-- Place a copy in the user Sent folder --> + <mailet match="SenderIsLocal" class="ToSenderFolder"> + <folder>Sent</folder> + <consume>false</consume> + </mailet> + + <!-- Is the recipient is for a local account, deliver it locally --> + <mailet match="RecipientIsLocal" class="Sieve"/> + <mailet match="RecipientIsLocal" class="AddDeliveredToHeader"/> + <mailet match="RecipientIsLocal" class="LocalDelivery"/> + + <!-- If the host is handled by this server and it did not get --> + <!-- locally delivered, this is an invalid recipient --> + <mailet match="HostIsLocal" class="ToProcessor"> + <processor>local-address-error</processor> + <notice>550 - Requested action not taken: no such user here</notice> + </mailet> + +<!-- CHECKME! --> + <!-- This is an anti-relay matcher/mailet combination --> + <!-- --> + <!-- Emails sent from servers not in the network list are --> + <!-- rejected as spam. This is one method of preventing your --> + <!-- server from being used as an open relay. Make sure you understand --> + <!-- how to prevent your server from becoming an open relay before --> + <!-- changing this configuration. See also<authorizedAddresses>in SMTP Server --> + <!-- --> + <!-- This matcher/mailet combination must come after local delivery has --> + <!-- been performed. Otherwise local users will not be able to receive --> + <!-- email from senders not in this remote address list. --> + <!-- --> + <!-- If you are using this matcher/mailet you will probably want to --> + <!-- update the configuration to include your own network/addresses. The --> + <!-- matcher can be configured with a comma separated list of IP addresses --> + <!-- wildcarded IP subnets, and wildcarded hostname subnets. --> + <!-- e.g. "RemoteAddrNotInNetwork=127.0.0.1, abc.de.*, 192.168.0.*" --> + <!-- --> + <!-- If you are using SMTP authentication then you can (and generally --> + <!-- should) disable this matcher/mailet pair. --> + <mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor"> + <processor>relay-denied</processor> + <notice>550 - Requested action not taken: relaying denied</notice> + </mailet> + + <!-- Attempt remote delivery using the specified repository for the spool, --> + <!-- using delay time to retry delivery and the maximum number of retries --> + <mailet match="All" class="RemoteDelivery"> + <outgoingQueue>outgoing</outgoingQueue> + + <!-- Delivery Schedule based upon RFC 2821, 4.5.4.1 --> + <!-- 5 day retry period, with 4 attempts in the first + hour, two more within the first 6 hours, and then + every 6 hours for the rest of the period. + This format is not yet supported, instead, use a unique + tag with the list of delays in milliseconds separated by commas. + <delayTime>5 minutes</delayTime> + <delayTime>10 minutes</delayTime> + <delayTime>45 minutes</delayTime> + <delayTime>2 hours</delayTime> + <delayTime>3 hours</delayTime> + <delayTime>6 hours</delayTime> + --> + <delayTime>5000, 100000, 500000</delayTime> + <maxRetries>25</maxRetries> + + <!-- The max reties which will used if no A or MX record for the domain was found. --> + <!-- If 0 it will fail on first time --> + <maxDnsProblemRetries>0</maxDnsProblemRetries> + + <!-- The number of threads that should be trying to deliver outgoing messages --> + <deliveryThreads>10</deliveryThreads> + + <!-- If false the message will not be sent to given server if any recipients fail --> + <sendpartial>true</sendpartial> + + <!-- By default we send bounces to the "bounce" processor --> + <!-- By removing this configuration James will fallback to hardcoded bounce --> + <!-- notifications --> + <bounceProcessor>bounces</bounceProcessor> + + <!-- A single mail server to deliver all outgoing messages. --> + <!-- This is useful if this server is a backup or failover machine, --> + <!-- or if you want all messages to be routed through a particular mail server, --> + <!-- regardless of the email addresses specified in the message --> + <!-- --> + <!-- The gateway element specifies the gateway SMTP server name. --> + <!-- If your gateway mail server is listening on a port other than 25, --> + <!-- you can set James to connect to it on that port using the gatewayPort --> + <!-- element. --> + <!-- Although normally multiple addresses are implemented through proper --> + <!-- DNS configuration, the RemoteDelivery mail does allow specifying --> + <!-- multiple gateway elements, each of which may also have a port --> + <!-- e.g., mygateway:2525 --> + <!-- the gatewayPort element is used as a default --> + <!-- + <gateway>otherserver.mydomain.com</gateway> + <gatewayPort>25</gatewayPort> + --> + <!-- If the gateway requires smtp authentication the following directives --> + <!-- (gatewayUsername/gatewayPassword) can be used. --> + <!-- + <gatewayUsername>login</gatewayUsername> + <gatewayPassword>pass</gatewayPassword> + --> + + <!-- Set the HELO/EHLO name to use when connectiong to remote SMTP-Server --> + <!-- + <mail.smtp.localhost>myMailServer</mail.smtp.localhost> + --> + </mailet> + + </processor> + + <processor state="over-quota" enableJmx="true"> + <mailet match="All" class="MetricsMailet"> + <metricName>mailet-over-quota-error</metricName> + </mailet> + <mailet match="All" class="Bounce"> + <message>The following recipients do not have enough space for storing the email you sent them.</message> + <attachment>none</attachment> + </mailet> + <mailet match="All" class="ToRepository"> + <repositoryPath>file://var/mail/over-quota-error/</repositoryPath> + </mailet> + </processor> + + + <!-- Processor CONFIGURATION SAMPLE: spam is a sample custom processor for handling --> + <!-- spam. --> + <!-- You can either log these, bounce these, or just ignore them. --> + <processor state="spam" enableJmx="true"> + + <!-- To place the spam messages in the user junk folder, uncomment this matcher/mailet configuration --> + <!-- + <mailet match="RecipientIsLocal" class="ToRecipientFolder"> + <folder>Junk</folder> + <consume>false</consume> + </mailet> + --> + + <!-- To destroy all messages, uncomment this matcher/mailet configuration --> + <!-- + <mailet match="All" class="Null"/> + --> + + <!-- To notify the sender their message was marked as spam, uncomment this matcher/mailet configuration --> + <!-- + <mailet match="All" class="Bounce"/> + --> + + <!-- To notify the postmaster that a message was marked as spam, uncomment this matcher/mailet configuration --> + <!-- + <mailet match="All" class="NotifyPostmaster"/> + --> + + <!-- To log the message to a repository, this matcher/mailet configuration should be uncommented. --> + <!-- This is the default configuration. --> + <mailet match="All" class="ToRepository"> + <repositoryPath>file://var/mail/spam/</repositoryPath> + + <!-- Changing the repositoryPath, as in this commented out example, will --> + <!-- cause the mails to be stored in a database repository. --> + <!-- Please note that only one repositoryPath element can be present for the mailet --> + <!-- configuration. --> + <!-- + <repositoryPath>db://maildb/deadletter/spam</repositoryPath> + --> + </mailet> + </processor> + + <!-- messages containing viruses. --> + <processor state="virus" enableJmx="true"> + + <!-- To avoid a loop while bouncing --> + <mailet match="All" class="SetMailAttribute"> + <org.apache.james.infected>true, bouncing</org.apache.james.infected> + </mailet> + + <!-- If the sender is authenticated, notify the infection --> + <mailet match="SMTPAuthSuccessful" class="Bounce"> + <inline>heads</inline> + <attachment>none</attachment> + <notice>Warning: We were unable to deliver the message below because it was found infected by virus(es).</notice> + </mailet> + + <!-- In any other situation ghost it, --> + <!-- as viruses almost always spoof the sender's address --> + <mailet match="All" class="Null" /> + </processor> + + <!-- This processor handles messages that are for local domains, where the user is unknown --> + <processor state="local-address-error" enableJmx="true"> + <!-- To avoid bouncing/archiving spam, uncomment this matcher/mailet configuration --> + <!-- + <mailet match="HasMailAttribute=isSpam" class="Null" onMatchException="noMatch"/> + --> + + <!-- To notify the sender the address was invalid, uncomment this matcher/mailet configuration --> + <!-- The original message is not attached to keep the bounce processor from deliverying spam --> + <!-- + <mailet match="All" class="Bounce"> + <attachment>none</attachment> + </mailet> + --> + + <!-- To notify the postmaster that a message had an invalid address, uncomment this matcher/mailet configuration --> + <!-- + <mailet match="All" class="NotifyPostmaster"/> + --> + + <mailet match="All" class="ToRepository"> + <repositoryPath>file://var/mail/address-error/</repositoryPath> + <!-- An alternative database repository example follows. --> + <!-- + <repositoryPath>db://maildb/deadletter/address-error</repositoryPath> + --> + </mailet> + </processor> + + <!-- This processor handles messages that are for foreign domains, where relaying is denied --> + <!-- As of James v2.2, this processor can be deprecated by using the<authorizedAddresses>tag + in the SMTP Server, and rejecting the message in the protocol transaction. --> + <processor state="relay-denied" enableJmx="true"> + <!-- To notify the sender the address was invalid, uncomment this matcher/mailet configuration --> + <!-- The original message is not attached to keep the bounce processor from deliverying spam --> + <!-- + <mailet match="All" class="Bounce"> + <attachment>none</attachment> + </mailet> + --> + + <!-- To notify the postmaster that a relay request was denied, uncomment this matcher/mailet configuration --> + <!-- + <mailet match="All" class="NotifyPostmaster"/> + --> + + <mailet match="All" class="ToRepository"> + <repositoryPath>file://var/mail/relay-denied/</repositoryPath> + <!-- An alternative database repository example follows. --> + <!-- + <repositoryPath>db://maildb/deadletter/relay-denied</repositoryPath> + --> + </mailet> + </processor> + + <!-- This processor handle the bounces from RemoteDelivery: As of James v2.3, this is the new --> + <!-- Default. --> + <!-- --> + <!-- DSNBounce properly create a DSN compliant bounce --> + <processor state="bounces" enableJmx="true"> + <mailet match="All" class="DSNBounce"> + <passThrough>false</passThrough> + + <!-- optional subject prefix prepended to the original message --> + <!-- + <prefix>[bounce]</prefix> + --> + + <!-- message, heads or none, default=message --> + <!-- + <attachment>heads</attachment> + --> + + <!-- the message sent in the bounce, the first occurrence of the pattern [machine] is --> + <!-- replaced with the name of the executing machine --> + <!-- Default: Hi. This is the James mail server at [machine] ... --> + <!-- + <messageString>Here is [machine]. I'm not able to deliver this message.</messageString> + --> + </mailet> + </processor> + + </processors> + +</mailetcontainer> http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/mailrepositorystore-template.xml ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/mailrepositorystore-template.xml b/server/app/src/main/resources/mailrepositorystore-template.xml deleted file mode 100644 index 291fa24..0000000 --- a/server/app/src/main/resources/mailrepositorystore-template.xml +++ /dev/null @@ -1,96 +0,0 @@ -<?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 --> - -<mailrepositorystore> - - <mailrepositories> - - <!-- File based repositories. These repositories store all message data --> - <!-- in the file system. --> - <mailrepository class="org.apache.james.mailrepository.file.FileMailRepository"> - <protocols> - <protocol>file</protocol> - </protocols> - <!-- Set if the messages should be listed sorted. False by default --> - <config FIFO="false" CACHEKEYS="true"/> - </mailrepository> - - <!-- JDBC based repositories. These repositories store all message data --> - <!-- in the database. --> - <mailrepository class="org.apache.james.mailrepository.jdbc.JDBCMailRepository"> - <protocols> - <protocol>db</protocol> - </protocols> - <config> - <sqlFile>file://conf/sqlResources.xml</sqlFile> - <!-- Set the size threshold for in memory handling of storing operations --> - <!-- Default is currently 409600000 due to a bug with mysql and binary stream --> - <!-- currently under investigation. Please change this only if you know what --> - <!-- you do. --> - <!-- - <inMemorySizeLimit>4096</inMemorySizeLimit> - --> - </config> - </mailrepository> - - <!-- These repositories store message delivery and headers in the DB, and the body to the filesystem --> - <mailrepository class="org.apache.james.mailrepository.jdbc.JDBCMailRepository"> - <protocols> - <protocol>dbfile</protocol> - </protocols> - <config> - <sqlFile>file://conf/sqlResources.xml</sqlFile> - <filestore>file://var/dbmail</filestore> - </config> - </mailrepository> - - <!-- The mbox repository is designed for MAIL only; SPOOL performance would be less than ideal--> - <mailrepository class="org.apache.james.mailrepository.file.MBoxMailRepository"> - <protocols> - <protocol>mbox</protocol> - </protocols> - <!-- Set if the messages should be listed sorted. False by default --> - <config FIFO="false"/> - </mailrepository> - - <!-- If you enable this you need to make sure that embedded Jackrabbit instance is started as well. Check the container configuration --> - <!-- - <mailrepository class="org.apache.james.mailrepository.jcr.JCRMailRepository"> - <protocols> - <protocol>jcr</protocol> - </protocols> - <config> - <repository>//localhost/jackrabbit.repository</repository> - <username>admin</username> - <password>admin</password> - <workspace>default</workspace> - </config> - </mailrepository> - --> - </mailrepositories> - -</mailrepositorystore> http://git-wip-us.apache.org/repos/asf/james-project/blob/ee131ea6/server/app/src/main/resources/mailrepositorystore.xml ---------------------------------------------------------------------- diff --git a/server/app/src/main/resources/mailrepositorystore.xml b/server/app/src/main/resources/mailrepositorystore.xml new file mode 100644 index 0000000..291fa24 --- /dev/null +++ b/server/app/src/main/resources/mailrepositorystore.xml @@ -0,0 +1,96 @@ +<?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 --> + +<mailrepositorystore> + + <mailrepositories> + + <!-- File based repositories. These repositories store all message data --> + <!-- in the file system. --> + <mailrepository class="org.apache.james.mailrepository.file.FileMailRepository"> + <protocols> + <protocol>file</protocol> + </protocols> + <!-- Set if the messages should be listed sorted. False by default --> + <config FIFO="false" CACHEKEYS="true"/> + </mailrepository> + + <!-- JDBC based repositories. These repositories store all message data --> + <!-- in the database. --> + <mailrepository class="org.apache.james.mailrepository.jdbc.JDBCMailRepository"> + <protocols> + <protocol>db</protocol> + </protocols> + <config> + <sqlFile>file://conf/sqlResources.xml</sqlFile> + <!-- Set the size threshold for in memory handling of storing operations --> + <!-- Default is currently 409600000 due to a bug with mysql and binary stream --> + <!-- currently under investigation. Please change this only if you know what --> + <!-- you do. --> + <!-- + <inMemorySizeLimit>4096</inMemorySizeLimit> + --> + </config> + </mailrepository> + + <!-- These repositories store message delivery and headers in the DB, and the body to the filesystem --> + <mailrepository class="org.apache.james.mailrepository.jdbc.JDBCMailRepository"> + <protocols> + <protocol>dbfile</protocol> + </protocols> + <config> + <sqlFile>file://conf/sqlResources.xml</sqlFile> + <filestore>file://var/dbmail</filestore> + </config> + </mailrepository> + + <!-- The mbox repository is designed for MAIL only; SPOOL performance would be less than ideal--> + <mailrepository class="org.apache.james.mailrepository.file.MBoxMailRepository"> + <protocols> + <protocol>mbox</protocol> + </protocols> + <!-- Set if the messages should be listed sorted. False by default --> + <config FIFO="false"/> + </mailrepository> + + <!-- If you enable this you need to make sure that embedded Jackrabbit instance is started as well. Check the container configuration --> + <!-- + <mailrepository class="org.apache.james.mailrepository.jcr.JCRMailRepository"> + <protocols> + <protocol>jcr</protocol> + </protocols> + <config> + <repository>//localhost/jackrabbit.repository</repository> + <username>admin</username> + <password>admin</password> + <workspace>default</workspace> + </config> + </mailrepository> + --> + </mailrepositories> + +</mailrepositorystore> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
