mailiverse/deploy/james/apache-james-conf/recipientrewritetable-template.conf

58 lines
2.4 KiB
Plaintext
Raw Normal View History

2013-08-09 17:31:37 -04:00
<?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 -->
<!-- If set recursiveMapping false only the first mapping will get processed. -->
<!-- Default true. -->
<!-- By setting the mappingLimit you can specify how much mapping will get processed -->
<!-- before a bounce will send. This avoid infinity loops. Default 10. -->
<!--
<recipientrewritetable class="org.apache.james.rrt.xml.XMLRecipientRewriteTable">
<recursiveMapping>true</recursiveMapping>
<mappingLimit>10</mappingLimit>
<mapping>some@domain=someuser</mapping>
</recipientrewritetable>
-->
<!-- Database backed RecipientRewritetable -->
<!-- -->
<!-- Use these configurations to store the RecipientRewriteTable in a database. -->
<!--
<recipientrewritetable class="org.apache.james.rrt.jdbc.JDBCRecipientRewriteTable" destinationURL="db://maildb/RecipientRewriteTable">
<recursiveMapping>true</recursiveMapping>
<mappingLimit>10</mappingLimit>
<sqlFile>file://conf/sqlResources.xml</sqlFile>
</recipientrewritetable>
-->
<!-- The default table for storing James' RecipientRewriteTable mappings. -->
<recipientrewritetable class="org.apache.james.rrt.jpa.JPARecipientRewriteTable">
<recursiveMapping>true</recursiveMapping>
<mappingLimit>10</mappingLimit>
</recipientrewritetable>