<!--
  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>

Add example for second SMTP Server with SSL (JAMES-1105)
Add example for second SMTP Server with SSL (JAMES-1105)

git-svn-id: de9d04cf23151003780adc3e4ddb7078e3680318@1051086 13f79535-47bb-0310-9956-ffa450edef68
