Author: eric
Date: Mon Dec 20 12:45:08 2010
New Revision: 1051086

URL: http://svn.apache.org/viewvc?rev=1051086&view=rev
Log:
Add example for second SMTP Server with SSL (JAMES-1105)

Added:
    
james/server/trunk/container-spring/src/main/config/examples/smtpserver-ssl.xml

Added: 
james/server/trunk/container-spring/src/main/config/examples/smtpserver-ssl.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/container-spring/src/main/config/examples/smtpserver-ssl.xml?rev=1051086&view=auto
==============================================================================
--- 
james/server/trunk/container-spring/src/main/config/examples/smtpserver-ssl.xml 
(added)
+++ 
james/server/trunk/container-spring/src/main/config/examples/smtpserver-ssl.xml 
Mon Dec 20 12:45:08 2010
@@ -0,0 +1,54 @@
+<!--
+  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.                                           
+ -->
+ <!--
+   You can add a second SMTP server with SSL enabled in spring context
+     <bean id="smtpserver-ssl" 
class="org.apache.james.smtpserver.netty.SMTPServer">
+         <property name="protocolHandlerChain" 
ref="smtpProtocolHandlerChain-ssl"/>
+     </bean>
+     <bean id="smtpserver-ssl" 
class="org.apache.james.protocols.spring.BeanFactoryProtocolHandlerChain">
+        <property name="coreHandlersPackage" 
value="org.apache.james.lmtpserver.CoreCmdHandlerLoader"/>
+        <property name="beanName" value="smtpserver-ssl"/>
+     </bean>
+   You also need to define another jmxName (see 
https://issues.apache.org/jira/browse/JAMES-1105)
+ -->
+ <smtpserver enabled="true">
+  <port>465</port>
+  <connectionBacklog>200</connectionBacklog>
+  <tls socketTLS="true" startTLS="false">
+    <keystore>file://conf/keystore/keystore></keystore>
+    <secret>password</secret>
+    <provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider>
+  </tls>
+  <jmxName>smtpserver-ssl</jmxName>
+  <handler>
+    <helloName autodetect="false">localhost.tld</helloName>
+    <connectiontimeout>360</connectiontimeout>
+    <connectionLimit> 0 </connectionLimit>
+    <connectionLimitPerIP> 0 </connectionLimitPerIP>
+    <authRequired>true</authRequired>
+    <authorizedAddresses>127.0.0.0/8</authorizedAddresses>
+    <authRequired>true</authRequired>
+    <maxmessagesize>0</maxmessagesize>
+    <addressBracketsEnforcement>true</addressBracketsEnforcement>
+    <handlerchain>
+      <handler class="org.apache.james.smtpserver.fastfail.ValidRcptHandler" />
+      <handler class="org.apache.james.smtpserver.CoreCmdHandlerLoader" />
+    </handlerchain>
+  </handler>
+</smtpserver>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to