39. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 8/16/2019 12:02:01 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

39.1 Files compared

# Location File Last Modified
1 Direct_DSM.zip\Direct_DSM\configurations\demo\apache-james config.xml Tue Aug 13 17:30:04 2019 UTC
2 Direct_DSM.zip\Direct_DSM\configurations\demo\apache-james config.xml Thu Aug 15 20:39:10 2019 UTC

39.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 13 1658
Changed 12 24
Inserted 0 0
Removed 0 0

39.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

39.4 Active regular expressions

No regular expressions were active.

39.5 Comparison detail

  1   <?xml 
  2     version="1 .0"
  3   ?>
  4   <!DOCTYPE  config [
  5   <!ENTITY l istserverC onfig SYST EM "../con f/james-li stmanager. xml">
  6   <!ENTITY l istserverS tores SYST EM "../con f/james-li ststores.x ml">
  7   <!ENTITY f etchmailCo nfig SYSTE M "../conf /james-fet chmail.xml ">
  8   <!ENTITY s mtphandler chainConfi g SYSTEM " ../conf/ja mes-smtpha ndlerchain .xml">
  9   ]>
  10  
  11   <config>
  12      <James>
  13  
  14   <!-- CHECK ME! -->
  15           <postmaste r> DNS . URL </postmast er>
  16  
  17         <!--  servernam es identif ies the DN S namespac e served b y this ins tance of J ames. -->
  18         <ser vernames a utodetect= "true" aut odetectIP= "true">     
  19           <servernam e> DNS . URL </serverna me>
  20         <ser vername>lo calhost</s ervername>
  21         </se rvernames>
  22  
  23         <use rnames ign oreCase="t rue" enabl eAliases=" true" enab leForwardi ng="true"/ >
  24  
  25         <!--  The inbox  repositor y is the l ocation fo r users in boxes -->
  26         <inb oxReposito ry>
  27            < repository  destinati onURL="fil e://var/ma il/inboxes /" type="M AIL"/>
  28         </in boxReposit ory>
  29      </James >
  30  
  31      <!-- Th is is an e xample con figuration  for Fetch Mail, a Ja vaMail bas ed gateway   -->
  32      &fetchm ailConfig;
  33  
  34      <!-- Se t the Java  packages  from which  to load m ailets and  matchers  -->
  35      <mailet packages>
  36         <mai letpackage >org.apach e.james.tr ansport.ma ilets</mai letpackage >
  37         <mai letpackage >org.apach e.james.tr ansport.ma ilets.smim e</mailetp ackage>
  38         <mai letpackage >org.nhind irect.gate way.smtp.j ames.maile t</mailetp ackage>
  39         <mai letpackage >org.nhind .james.mai let</maile tpackage>
  40      </maile tpackages>
  41      <matche rpackages>
  42         <mat cherpackag e>org.apac he.james.t ransport.m atchers</m atcherpack age>
  43         <mat cherpackag e>org.apac he.james.t ransport.m atchers.sm ime</match erpackage>
  44         <mat cherpackag e>org.nhin direct.gat eway.smtp. james.matc her</match erpackage>
  45         <mat cherpackag e>org.nhin d.james.ma tcher</mat cherpackag e>
  46      </match erpackages >
  47  
  48      <!-- Th e James Sp ool Manage r block  - ->
  49      <spoolm anager>
  50         <thr eads> 10 < /threads>
  51  
  52         <!--  The root  processor  is a requi red proces sor - Jame s routes a ll mail on  the spool  -->
  53         <pro cessor nam e="root">
  54  
  55            < !-- This m ailet redi rects mail  for the u ser 'postm aster' at  any local  domain to  -->
  56            < !-- the po stmaster a ddress spe cified for  the serve r. -->
  57            < mailet mat ch="All" c lass="Post masterAlia s"/>
  58  
  59            < !-- Import ant check  to avoid l ooping -->
  60            < mailet mat ch="RelayL imit=30" c lass="Null "/>
  61  
  62            < !-- Check  for viruse s -->
  63  
  64            < !-- If inf ected go t o virus pr ocessor -- >
  65            < mailet mat ch="HasMai lAttribute WithValue= org.apache .james.inf ected, tru e" class=" ToProcesso r">
  66                <process or> virus  </processo r>
  67            < /mailet>
  68  
  69            < !-- Has sp am checkin g already  been done?  -->
  70            < mailet mat ch="HasMai lAttribute =spamCheck ed" class= "ToProcess or">
  71                <process or> transp ort </proc essor>
  72            < /mailet>
  73            < !-- Spam c hecking wi ll not be  done twice  -->
  74            < mailet mat ch="All" c lass="SetM ailAttribu te">
  75                <spamChe cked>true< /spamCheck ed>
  76            < /mailet>
  77  
  78            < !-- Messag es from au thenticate d senders  never are  spam -->
  79            < mailet mat ch="SMTPAu thSuccessf ul" class= "ToProcess or">
  80                <process or> transp ort </proc essor>
  81            < /mailet>
  82  
  83            < !-- People  on this l ist agree  to pay a p enalty if  they send  spam -->
  84            < mailet mat ch="InSpam merBlackli st=query.b ondedsende r.org."
  85                     cla ss="ToProc essor">
  86               <processo r> transpo rt </proce ssor>
  87            < /mailet>
  88  
  89            < !-- Check  for delive ry from a  known spam  server -- >
  90            < mailet mat ch="InSpam merBlackli st=dnsbl.n jabl.org."
  91                     cla ss="ToProc essor">
  92               <processo r> spam </ processor>
  93               <notice>5 50 Request ed action  not taken:  rejected  - see http ://njabl.o rg/ </noti ce>
  94            < /mailet>
  95  
  96            < !-- Send r emaining m ails to th e transpor t processo r for eith er local o r remote d elivery -- >
  97            < mailet mat ch="All" c lass="ToPr ocessor">
  98                <process or> transp ort </proc essor>
  99            < /mailet>
  100         </pr ocessor>
  101  
  102         <!--  The error  processor  is requir ed.  James  may inter nally set  emails to  the -->
  103         <!--  error sta te.  The e rror proce ssor is ge nerally in voked when  there is  an -->
  104         <!--  unexpecte d error ei ther in th e mailet c hain or in ternal to  James. -->
  105         <pro cessor nam e="error">
  106            < !-- Logs a ny message s to the r epository  specified  -->
  107            < mailet mat ch="All" c lass="ToRe pository">
  108                <reposit oryPath> f ile://var/ mail/error /</reposit oryPath>
  109                <!-- An  alternativ e database  repositor y example  follows. - ->
  110                <!--
  111                <reposit oryPath> d b://maildb /deadlette r/error </ repository Path>
  112                -->
  113            < /mailet>
  114         </pr ocessor>
  115  
  116         <!--  Processor  CONFIGURA TION SAMPL E: transpo rt is a sa mple custo m processo r for loca l or -->
  117         <!--  remote de livery -->
  118         <pro cessor nam e="transpo rt">
  119            < mailet mat ch="SMTPAu thSuccessf ul" class= "SetMimeHe ader">
  120                <name>X- UserIsAuth </name>
  121                <value>t rue</value >
  122            < /mailet>
  123            < mailet mat ch="HasMai lAttribute =org.apach e.james.SM IMECheckSi gnature" c lass="SetM imeHeader" >
  124                <name>X- WasSigned< /name>
  125                <value>t rue</value >
  126            < /mailet>
  127            
  128            < mailet mat ch="HasHea der=X-VADe vProcessed " class="T oProcessor ">
  129                <process or>DirectO utgoing</p rocessor>
  130            < /mailet>
  131  
  132           <mailet ma tch="Recip AndSenderI sNotLocal= DNS . URL " class="N HINDSecuri tyAndTrust MailetCust ">
  133                <ConfigU RL>http:// localhost: 8081/confi g-service/ Configurat ionService </ConfigUR L>
  134            < MessageMon itoringSer viceURL>ht tp://local host:8081/ msg-monito r</Message Monitoring ServiceURL >
  135            < AutoDSNFai lueCreatio n>General, ReliableAn dTimely</A utoDSNFail ueCreation >
  136         </ma ilet>
  137  
  138      <mailet  match="Is Notificati on" class= "SuppressA ndTrackAgg regate">
  139                <Message Monitoring ServiceURL >http://lo calhost:80 81/msg-mon itor</Mess ageMonitor ingService URL>
  140                <Consume MDNProcess ed>true</C onsumeMDNP rocessed>              
  141            < /mailet>
  142            
  143         <mai let match= "All" clas s="AddHead er">
  144            < name>X-VAD evProcesse d</name>
  145            < value>true </value>
  146         </ma ilet>
  147  
  148         <mai let match= "HasHeader =X-WasSign ed" class= "ToProcess or">
  149            < processor> DirectOutg oing</proc essor>
  150         </ma ilet>
  151  
  152  
  153           <mailet ma tch="Recip HostIsLoca l= DNS . URL " class="T oProcessor ">
  154            < processor> DirectInco ming</proc essor>
  155         </ma ilet>
  156  
  157         <mai let match= "All" clas s="ToProce ssor">
  158            < processor> DirectOutg oing</proc essor>
  159         </ma ilet>
  160  
  161         </pr ocessor>
  162  
  163         <!--  Processor  CONFIGURA TION SAMPL E: spam is  a sample  custom pro cessor for  handling  -->
  164         <pro cessor nam e="spam">
  165            < !-- To log  the messa ge to a re pository,  this match er/mailet  configurat ion should  be uncomm ented. -->
  166            < !-- This i s the defa ult config uration. - ->
  167            < mailet mat ch="All" c lass="ToRe pository">
  168                <reposit oryPath>fi le://var/m ail/spam/< /repositor yPath>
  169            < /mailet>
  170         </pr ocessor>
  171  
  172         <!--  messages  containing  viruses.  -->
  173         <pro cessor nam e="virus">
  174            < !-- To avo id a loop  while boun cing -->
  175            < mailet mat ch="All" c lass="SetM ailAttribu te">
  176                <org.apa che.james. infected>t rue, bounc ing</org.a pache.jame s.infected >
  177            < /mailet>
  178  
  179            < !-- If the  sender is  authentic ated, noti fy the inf ection -->
  180            < mailet mat ch="SMTPAu thSuccessf ul" class= "Bounce">
  181                <inline> heads</inl ine>
  182                <attachm ent>none</ attachment >
  183                <notice>  Warning:  We were un able to de liver the  message be low becaus e it was f ound infec ted by vir us(es). </ notice>
  184            < /mailet>
  185  
  186            < !-- In any  other sit uation gho st it, -->
  187            < !-- as vir uses almos t always s poof the s ender's ad dress -->
  188            < mailet mat ch="All" c lass="Null " />
  189         </pr ocessor>
  190  
  191         <!--  This proc essor hand les messag es that ar e for loca l domains,  where the  user is u nknown -->
  192         <pro cessor nam e="local-a ddress-err or">
  193            < mailet mat ch="All" c lass="ToRe pository">
  194                <reposit oryPath> f ile://var/ mail/addre ss-error/< /repositor yPath>
  195            < /mailet>
  196         </pr ocessor>
  197  
  198         <!--  This proc essor hand les messag es that ar e for fore ign domain s, where r elaying is  denied -- >
  199         <!--  As of Jam es v2.2, t his proces sor can be  deprecate d by using  the <auth orizedAddr esses> tag
  200               in the SM TP Server,  and rejec ting the m essage in  the protoc ol transac tion.  -->
  201         <pro cessor nam e="relay-d enied">
  202            < mailet mat ch="All" c lass="ToRe pository">
  203                <reposit oryPath>fi le://var/m ail/relay- denied/</r epositoryP ath>
  204            < /mailet>
  205         </pr ocessor>
  206  
  207      <!-- Ex perimental  processor  for outgo ing Direct  messages  -->
  208       <proce ssor name= "DirectOut going">
  209                <mailet  match="All " class="R emoteDeliv ery">
  210           <!-- This  is set to  DNS            when on an  actual VA  system -- >
  211                    <out going>file ://var/mai l/DirectOu tgoing</ou tgoing>
  212                    <gat eway>local host:857</ gateway>
  213                    <mai l.smtp.sta rttls.enab le>true</m ail.smtp.s tarttls.en able>
  214                </mailet >
  215  
  216            < mailet mat ch="All" c lass="ToPr ocessor">
  217                <process or>Finishe d</process or>
  218            < /mailet>
  219       </proc essor>
  220  
  221       <proce ssor name= "DirectInc oming">
  222           <mailet ma tch="Sende rHostIsLoc al= DNS . URL " class="L ocalMailet ">
  223            < ConfigURL> http://loc alhost:808 1/config-s ervice/Con figuration Service</C onfigURL>
  224         </ma ilet>
  225         <mai let match= "All" clas s="StoreMa il"></mail et>
  226         <mai let match= "All" clas s="ToProce ssor">
  227            < processor> Finished</ processor>
  228         </ma ilet>       
  229       </proc essor>
  230  
  231      <proces sor name=" Finished">
  232      </proce ssor>
  233  
  234       <!-- D SNBounce p roperly cr eate a DSN  compliant  bounce -- >
  235       <proce ssor name= "bounces">
  236            < mailet mat ch="All" c lass="DSNB ounce">
  237                <passThr ough>false </passThro ugh>
  238  
  239                <!-- opt ional subj ect prefix  prepended  to the or iginal mes sage -->
  240                <!--
  241                <prefix> [bounce]</ prefix>
  242                -->
  243                
  244                <!-- mes sage, head s or none,  default=m essage -->
  245                <!--
  246                <attachm ent>heads< /attachmen t>
  247                -->
  248                
  249                <!-- the  message s ent in the  bounce, t he first o ccurrence  of the pat tern [mach ine] is -- >
  250                <!-- rep laced with  the name  of the exe cuting mac hine -->
  251                <!-- Def ault: Hi.  This is th e James ma il server  at [machin e] ... -->
  252                <!--
  253                <message String>Her e is [mach ine]. I'm  not able t o deliver  this messa ge.</messa geString>
  254                -->
  255              </mailet>
  256         </pr ocessor>
  257      </spool manager>
  258  
  259      <!-- DN S Server B lock -->
  260      <!-- -- >
  261      <!-- Sp ecifies DN S Server i nformation  for use b y various  components  inside -- >
  262      <!-- Ja mes. -->
  263      <!-- -- >
  264      <!-- If  autodisco ver is tru e, James w ill attemp t to autod iscover th e DNS serv ers config ured on yo ur underly ing system .-->
  265      <!-- Cu rrently, t his works  if the OS  has a unix -like /etc /resolv.co nf,-->
  266      <!-- or  the syste m is Windo ws based w ith ipconf ig or wini pcfg.-->
  267      <!-- -- >
  268      <!-- If  no DNS se rvers are  found and  you have n ot specifi ed any bel ow, 127.0. 0.1 will b e used-->
  269      <!-- If  you use a utodiscove r and add  DNS server s manually  a combina tion of al l the dns  servers wi ll be used   -->
  270      <!--  - ->
  271      <!-- In formation  includes a  list of D NS Servers  to be use d by James .  These a re -->
  272      <!-- sp ecified by  the serve r elements , each of  which is a  child ele ment of th e -->
  273      <!-- se rvers elem ent.  Each  server el ement is t he IP addr ess of a s ingle DNS  server. -- >
  274      <!-- Th e servers  element ca n have mul tiple serv er childre n. -->
  275      <dnsser ver>
  276         <ser vers>
  277            < !--Enter i p address  of your DN S server,  one IP add ress per s erver -->
  278            < !-- elemen t. -->
  279         <ser ver>127.0. 0.1</serve r>
  280         </se rvers>
  281         <!--  Change au todiscover  to false  if you wou ld like to  turn off  autodiscov ery -->
  282         <!--  and set t he DNS ser vers manua lly in the  <servers>  section - ->
  283         <aut odiscover> true</auto discover>
  284         <aut horitative >false</au thoritativ e>
  285  
  286         <!--  Maximum n umber of e ntries to  maintain i n the DNS  cache -->
  287         <max cachesize> 50000</max cachesize>
  288      </dnsse rver>
  289  
  290      <!-- Th e RemoteMa nager serv er is enab led by def ault -->
  291      <!-- Di sabling bl ocks will  stop them  from liste ning, -->
  292      <!-- bu t does not  free as m any resour ces as rem oving them  would -->
  293      <remote manager en abled="fal se">
  294         <por t>4555</po rt>
  295         <!--   Uncommen t this if  you want t o bind to  a specific  inetaddre ss -->
  296         <!--
  297         <bin d> </bind>
  298         -->
  299         <!--   Uncommen t this if  you want t o use TLS  (SSL) on t his port - ->
  300         <!--
  301         <use TLS>true</ useTLS>
  302         -->
  303         <han dler>
  304            < !-- This i s the name  used by t he server  to identif y itself i n the Remo teManager  -->
  305            < !-- protoc ol.  If au todetect i s TRUE, th e server w ill discov er its -->
  306            < !-- own ho st name an d use that  in the pr otocol.  I f discover y fails, - ->
  307            < !-- the va lue of 'lo calhost' i s used.  I f autodete ct is FALS E, James - ->
  308            < !-- will u se the spe cified val ue. -->
  309              <helloName  autodetec t="false"> DNS . URL </helloNam e>
  310            < administra tor_accoun ts>
  311   <!-- CHECK ME! -->
  312                <!-- Cha nge the de fault logi n/password . -->
  313                <account  login="ro ot" passwo rd="XXXXXX XX"/>
  314            < /administr ator_accou nts>
  315            < connection timeout> 6 0000 </con nectiontim eout>
  316            < !-- The pr ompt direc tive adds  a prompt t o every ou tput from  RemoteMana ger -->
  317            < !-- 
  318            < prompt>jam es&gt;</pr ompt>
  319            - ->
  320         </ha ndler>
  321      </remot emanager>
  322  
  323       <!-- T he POP3 se rver is en abled by d efault -->
  324       <!-- D isabling b locks will  stop them  from list ening, -->
  325       <!-- b ut does no t free as  many resou rces as re moving the m would -- >
  326      <pop3se rver enabl ed="false" >
  327         <!--  port 995  is the wel l-known/IA NA registe red port f or POP3S   ie over SS L/TLS -->
  328         <!--  port 110  is the wel l-known/IA NA registe red port f or Standar d POP3 -->
  329         <por t>110</por t>
  330  
  331         <!--  Uncomment  this if y ou want to  bind to a  specific  inetaddres s -->
  332         <!--
  333         <bin d> </bind>
  334         -->
  335         <!--   Uncommen t this if  you want t o use TLS  (SSL) on t his port - ->
  336         <!--
  337         <use TLS>true</ useTLS>
  338         -->
  339  
  340         <han dler>
  341            < !-- This i s the name  used by t he server  to identif y itself i n the POP3  -->
  342            < !-- protoc ol.  If au todetect i s TRUE, th e server w ill discov er its -->
  343            < !-- own ho st name an d use that  in the pr otocol.  I f discover y fails, - ->
  344            < !-- the va lue of 'lo calhost' i s used.  I f autodete ct is FALS E, James - ->
  345            < !-- will u se the spe cified val ue. -->
  346              <helloName  autodetec t="false"> DNS . URL </helloNam e>
  347            < connection timeout>12 0000</conn ectiontime out>
  348         </ha ndler>
  349      </pop3s erver>
  350  
  351       <!-- T he SMTP se rver is en abled by d efault -->
  352       <!-- D isabling b locks will  stop them  from list ening, -->
  353       <!-- b ut does no t free as  many resou rces as re moving the m would -- >
  354      <smtpse rver enabl ed="true">
  355         <!--  port 25 i s the well -known/IAN A register ed port fo r SMTP -->
  356         <por t>25</port >
  357  
  358         <!--  Uncomment  this if y ou want to  bind to a  specific  inetaddres s -->
  359         <!--  Please NO TE: you sh ould add t his IP als o to your  RemoteAddr NotInNetwo rk -->
  360         <!--  in order  to avoid r elay check  for local lly genera ted bounce s -->
  361         <!--
  362         <bin d> </bind>
  363         -->
  364         <!--  Uncomment  this if y ou want to  use TLS ( SSL) on th is port -- >
  365         <!--
  366      <useTLS >true</use TLS>
  367         -->
  368   <handler>
  369            < !-- This i s the name  used by t he server  to identif y itself i n the SMTP  -->
  370            < !-- protoc ol.  If au todetect i s TRUE, th e server w ill discov er its -->
  371            < !-- own ho st name an d use that  in the pr otocol.  I f discover y fails, - ->
  372            < !-- the va lue of 'lo calhost' i s used.  I f autodete ct is FALS E, James - ->
  373            < !-- will u se the spe cified val ue. -->
  374              <helloName  autodetec t="false"> DNS . URL </helloNam e>
  375            < connection timeout>36 0000</conn ectiontime out>
  376  
  377            < !--  Uncom ment this  if you wan t to requi re SMTP au thenticati on.
  378  
  379                   suppo rted value s:
  380                   true:  required  but announ ced only t o not auth orizedAddr esses
  381                   false : don't us e AUTH
  382                   annou nce: like  true, but  always ann ounce AUTH  capabilit y to clien ts
  383  
  384                   The c orrect beh aviour per  RFC value  would be  false or a nnounce
  385                   but w e still su pport true  for backw ard compat ibility an d because
  386                   some  webmail cl ient fails  when AUTH  is announ ced but no  authentic ation
  387                   infor mation has  been prov ided
  388              -->
  389            < authRequir ed>false</ authRequir ed>
  390  
  391   <!-- CHECK ME! -->
  392            < !--  Uncom ment this  if you wan t to autho rize speci fic addres ses/networ ks.
  393                   If yo u use SMTP  AUTH, add resses tha t match th ose specif ied here w ill
  394                   be pe rmitted to  relay wit hout SMTP  AUTH.  If  you do not  use SMTP
  395                   AUTH,  and you s pecify add reses here , then onl y addresse s that mat ch
  396                   those  specified  will be p ermitted t o relay.
  397  
  398                   Addre sses may b e specifie d as a an  IP address  or domain  name, wit h an
  399                   optio nal netmas k, e.g.,
  400  
  401                   127.* , 127.0.0. 0/8, 127.0 .0.0/255.0 .0.0, and  localhost/ 8 are all  the same
  402  
  403                   See a lso the Re moteAddrNo tInNetwork  matcher i n the tran sport proc essor.
  404                   You w ould gener ally use o ne OR the  other appr oach.
  405            - ->
  406            < !--
  407            < authorized Addresses> 127.0.0.0/ 8</authori zedAddress es>
  408            - ->
  409  
  410            < !--  Uncom ment this  if you wan t to verif y sender a ddresses,  ensuring t hat -->
  411            < !--  the s ender addr ess matche s the user  who has a uthenticat ed. -->
  412            < !--  This  prevents a  user of y our mail s erver from  acting as  someone e lse -->
  413            < !--
  414            < verifyIden tity>true< /verifyIde ntity>
  415            - ->
  416  
  417            < !--  This  sets the m aximum all owed messa ge size (i n kilobyte s) for thi s -->
  418            < !--  SMTP  service. I f unspecif ied, the v alue defau lts to 0,  which mean s no limit . -->
  419            < maxmessage size>0</ma xmessagesi ze>
  420            
  421            < !--  This  sets wethe r to enfor ce the use  of HELO/E HLO saluta tion befor e a -->
  422            < !--  MAIL  command is  accepted.  If unspec ified, the  value def aults to t rue -->
  423            < !-- 
  424            < heloEhloEn forcement> true</helo EhloEnforc ement>
  425            - ->
  426  
  427            < !-- SMTP H andler Cha in customi zation -->
  428            < !-- Uncomm ent this a nd edit ja mes-smtpha ndlerchain .xml confi guration f ile to -->
  429            < !-- enable  the exper imental fa stfail fea tures. Loo k at the j ames-smtph andlerchai n.xml -->
  430            < !-- for fu rther info rmations - ->
  431            < !-- 
  432            & smtphandle rchainConf ig;
  433            - ->
  434                
  435         </ha ndler>
  436      </smtps erver>
  437  
  438       <!-- T he SMTPS s erver is e nabled by  default -- >
  439      <smtpse rver-tls e nabled="fa lse">
  440         <!--  port 25 i s the well -known/IAN A register ed port fo r SMTP -->
  441      <port>2 5</port>
  442      <useTLS >true</use TLS>
  443      <handle r>
  444            <helloName  autodetec t="false"> DNS . URL </helloNam e>
  445          <co nnectionti meout>3600 00</connec tiontimeou t>
  446         <aut hRequired> false</aut hRequired>
  447         <max messagesiz e>0</maxme ssagesize>
  448         </ha ndler>
  449      </smtps erver-tls>
  450  
  451       <!-- T he NNTP se rver is en abled by d efault -->
  452       <!-- D isabling b locks will  stop them  from list ening, -->
  453       <!-- b ut does no t free as  many resou rces as re moving the m would -- >
  454       <!-- N NTP-specif ic: if you  disable t he NNTP Se rver, you  should als o set the  nntp-repos itory's
  455            t hreadCount  to 0, oth erwise the re will be  threads a ctive and  polling  - ->
  456      <nntpse rver enabl ed="false" >
  457      <!-- TH E NNTP PRO TOCOL IS E XPERIMENTA L AND NOT  AS WELL TE STED AS SM TP AND POP 3 IN THIS  RELEASE.
  458           Th e James pr oject reco mmends tha t you chec k the Jame s web site  for updat es to the  NNTP
  459           se rvice.  -- >
  460         <!--  port 563  is the wel l-known/IA NA registe red port f or NNTP ov er SSL/TLS  -->
  461         <!--  port 119  is the wel l-known/IA NA registe red port f or Standar d NNTP -->
  462         <por t>119</por t>
  463  
  464         <!--  Uncomment  this if y ou want to  bind to a  specific  inetaddres s -->
  465         <!--
  466         <bin d> </bind>
  467         -->
  468         <!--  Uncomment  this if y ou want to  use TLS ( SSL)  on t his port - ->
  469         <!--
  470         <use TLS>true</ useTLS>
  471         -->
  472  
  473         <han dler>
  474            < !-- This i s the name  used by t he server  to identif y itself i n the NNTP  -->
  475            < !-- protoc ol.  If au todetect i s TRUE, th e server w ill discov er its -->
  476            < !-- own ho st name an d use that  in the pr otocol.  I f discover y fails, - ->
  477            < !-- the va lue of 'lo calhost' i s used.  I f autodete ct is FALS E, James - ->
  478            < !-- will u se the spe cified val ue. -->
  479              <helloName  autodetec t="false"> DNS . URL </helloNam e>
  480            < connection timeout>12 0000</conn ectiontime out>
  481              <!-- Set t he authReq uired valu e to true  to enable  authentica ted NNTP - ->
  482            < authRequir ed>false</ authRequir ed>
  483         </ha ndler>
  484      </nntps erver>
  485  
  486      <nntp-r epository>
  487         <!--  If this i s set to t rue, posti ng will be  disallowe d. -->
  488         <rea dOnly>fals e</readOnl y>
  489  
  490         <roo tPath>file ://var/nnt p/groups</ rootPath>
  491         <tem pPath>file ://var/nnt p/temp</te mpPath>
  492         <art icleIDPath >file://va r/nntp/art icleid</ar ticleIDPat h>
  493         <art icleIDDoma inSuffix>n ews.james. apache.org </articleI DDomainSuf fix>
  494  
  495         <!--  The news  groups hos ted in thi s NNTP rep ository. - ->
  496         <!--  Groups he re will be  added to  those foun d in the f ile system ,
  497               but remov ing groups  from here  will NOT  remove the m from the
  498               server.   Change <ne wsgroups>  to <newsgr oups only= "true"> to
  499               restrict  newsgroups  to ONLY t hose found  in this l ist.  -->
  500         <new sgroups>
  501            < newsgroup> org.apache .james.dev </newsgrou p>
  502            < newsgroup> org.apache .james.use r</newsgro up>
  503            < newsgroup> org.apache .avalon.de v</newsgro up>
  504            < newsgroup> org.apache .avalon.us er</newsgr oup>
  505         </ne wsgroups>
  506  
  507         <spo ol>
  508            < configurat ion>
  509                <spoolPa th>file:// var/nntp/s pool</spoo lPath>
  510                <!-- The  number of  threads t hat proces s spooler  related ta sks. -->
  511                <threadC ount>1</th readCount>
  512                <!-- The  spool thr ead(s) sho uld idle f or some ti me, if it  has nothin g to do  - ->
  513                <threadI dleTime>60 000</threa dIdleTime>
  514            < /configura tion>
  515         </sp ool>
  516      </nntp- repository >
  517  
  518      <!-- Sp ool reposi tory confi guration - ->
  519      <!-- Th e spool re pository i s the loca tion where  incoming  mails are  temporaril y stored - ->
  520      <!-- be fore being  processed . -->
  521      <spoolr epository  destinatio nURL="file ://var/mai l/spool/"  type="SPOO L"/>
  522    
  523      <!-- Al ternative  spool repo sitory def inition fo r JDBC use  -->
  524      <!--
  525      <spoolr epository  destinatio nURL="db:/ /maildb/sp ool/spool"  type="SPO OL"/>
  526      -->
  527    
  528      <!-- Al ternative  spool repo sitory def inition fo r JDBC use  -->
  529      <!-- St ores messa ge body in  file syst em, rest i n database  -->
  530      <!--
  531      <spoolr epository  destinatio nURL="dbfi le://maild b/spool/sp ool" type= "SPOOL"/>
  532      -->
  533  
  534      <!-- Th e Mailstor e block -- >
  535      <mailst ore>
  536         <rep ositories>
  537  
  538            < !-- File b ased repos itories.   These repo sitories s tore all m essage dat a -->
  539            < !-- in the  file syst em. -->
  540            < repository  class="or g.apache.j ames.mailr epository. AvalonMail Repository ">
  541                <protoco ls>
  542                   <prot ocol>file< /protocol>
  543                </protoc ols>
  544                <types>
  545                   <type >MAIL</typ e>
  546                </types>
  547            < /repositor y>
  548            < repository  class="or g.apache.j ames.mailr epository. AvalonSpoo lRepositor y">
  549                <protoco ls>
  550                   <prot ocol>file< /protocol>
  551                </protoc ols>
  552                <types>
  553                   <type >SPOOL</ty pe>
  554                </types>
  555            < /repositor y>
  556  
  557            < !-- JDBC b ased repos itories.   These repo sitories s tore all m essage dat a -->
  558            < !-- in the  database.  -->
  559            < repository  class="or g.apache.j ames.mailr epository. JDBCMailRe pository">
  560                <protoco ls>
  561                   <prot ocol>db</p rotocol>
  562                </protoc ols>
  563                <types>
  564                   <type >MAIL</typ e>
  565                </types>
  566                <config>
  567                   <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e>
  568                   <!--  Set the si ze thresho ld for in  memory han dling of s toring ope rations -- >
  569                   <!--  Default is  currently  409600000  due to a  bug with m ysql and b inary stre am -->
  570                   <!--  currently  under inve stigation.  Please ch ange this  only if yo u know wha t -->
  571                   <!--  you do, th is is EXPE RIMENTAL - ->
  572                   <!--
  573                   <inMe morySizeLi mit>4096</ inMemorySi zeLimit>
  574                    -->
  575                </config >
  576            < /repositor y>
  577  
  578            < repository  class="or g.apache.j ames.mailr epository. JDBCSpoolR epository" >
  579                <protoco ls>
  580                   <prot ocol>db</p rotocol>
  581                </protoc ols>
  582                <types>
  583                   <type >SPOOL</ty pe>
  584                </types>
  585                <config>
  586                   <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e>
  587                   <maxc ache>1000< /maxcache>
  588                   <!--  Set the si ze thresho ld for in  memory han dling of s toring ope rations -- >
  589                   <!--  Default is  currently  409600000  due to a  bug with m ysql and b inary stre am -->
  590                   <!--  currently  under inve stigation.  Please ch ange this  only if yo u know wha t -->
  591                   <!--  you do, th is is EXPE RIMENTAL - ->
  592                   <!--
  593                   <inMe morySizeLi mit>4096</ inMemorySi zeLimit>
  594                    -->
  595                </config >
  596            < /repositor y>
  597  
  598            < !-- These  repositori es store m essage del ivery and  headers in  the DB, a nd the bod y to the f ilesystem  -->
  599            < repository  class="or g.apache.j ames.mailr epository. JDBCMailRe pository">
  600                <protoco ls>
  601                   <prot ocol>dbfil e</protoco l>
  602                </protoc ols>
  603                <types>
  604                   <type >MAIL</typ e>
  605                </types>
  606                <config>
  607                   <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e>
  608                   <file store>file ://var/dbm ail</files tore>
  609                </config >
  610            < /repositor y>
  611  
  612            < repository  class="or g.apache.j ames.mailr epository. JDBCSpoolR epository" >
  613                <protoco ls>
  614                   <prot ocol>dbfil e</protoco l>
  615                </protoc ols>
  616                <types>
  617                   <type >SPOOL</ty pe>
  618                </types>
  619                <config>
  620                   <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e>
  621                   <file store>file ://var/dbm ail</files tore>
  622                   <maxc ache>1000< /maxcache>
  623                </config >
  624            < /repositor y>
  625  
  626            < !-- The mb ox reposit ory is des igned for  MAIL only;  SPOOL per formance w ould be le ss than id eal-->
  627            < repository  class="or g.apache.j ames.mailr epository. MBoxMailRe pository">
  628                <protoco ls>
  629                   <prot ocol>mbox< /protocol>
  630                </protoc ols>
  631                <types>
  632                   <type >MAIL</typ e>
  633                </types>
  634            < /repositor y>
  635  
  636            < repository  class="or g.apache.j ames.mailr epository. filepair.F ile_Persis tent_Objec t_Reposito ry">
  637                <protoco ls>
  638                   <prot ocol>file< /protocol>
  639                </protoc ols>
  640                <types>
  641                   <type >OBJECT</t ype>
  642                </types>
  643                <models>
  644                   <mode l>SYNCHRON OUS</model >
  645                   <mode l>ASYNCHRO NOUS</mode l>
  646                   <mode l>CACHE</m odel>
  647                </models >
  648            < /repositor y>
  649  
  650            < repository  class="or g.apache.j ames.mailr epository. filepair.F ile_Persis tent_Strea m_Reposito ry">
  651                <protoco ls>
  652                   <prot ocol>file< /protocol>
  653                </protoc ols>
  654                <types>
  655                   <type >STREAM</t ype>
  656                </types>
  657                <models>
  658                   <mode l>SYNCHRON OUS</model >
  659                   <mode l>ASYNCHRO NOUS</mode l>
  660                   <mode l>CACHE</m odel>
  661                </models >
  662            < /repositor y>
  663         </re positories >
  664  
  665      </mails tore>
  666  
  667  
  668      <!-- Th e User Sto rage block  -->
  669      <users- store>
  670         <!--  Configure  User Repo sitories h ere. -->
  671         <!--  -->
  672         <!--  User repo sitories a re require d for the  following  purposes:  -->
  673         <!--     - stor ing James  user infor mation, in cluding fo rwards, al iases, -->
  674         <!--       and  authentica tion data.  -->
  675         <!--     - hold ing lists  of users f or the lis tserv mail et -->
  676         <!--  Currently , two diff erent stor age option s are avai lable: -->
  677         <!--     - file -based sto rage using  Java seri alization  -->
  678         <!--     - data base-backe d storage  -->
  679         <!--  (Use of d atabase or  file-syst em is defi ned on a " per-reposi tory" basi s) -->
  680         <!--  -->
  681         <!--  Note: One  user repo sitory is  required f or James:  -->
  682         <!--    LocalUs ers - the  users for  whom you a re providi ng POP3, N NTP, or SM TP service  -->
  683         <!--  -->
  684         <!--  Other rep ositories  may be use d by match ers or mai lets. -->
  685  
  686         <!--  Default:  File-based  user repo sitories   Use these  configurat ions to st ore user i nfo in the  filesyste m  -->
  687         <!--  The Local Users repo sitory, fo r storing  James' Use r info. -- >
  688         <rep ository na me="LocalU sers" clas s="org.apa che.james. userreposi tory.Users FileReposi tory">
  689            < destinatio n URL="fil e://var/us ers/"/>
  690         </re pository>
  691  
  692  
  693         <!--  Database  backed use r reposito ries -->
  694         <!--  -->
  695         <!--  Use these  configura tions to s tore user  info in a  database.  -->
  696         <!--  Note: The  <data-sou rce> eleme nt must re fer to a c onnection  configured  -->
  697         <!--        in  the <datab ase-connec tions> con figuration  section.  -->
  698  
  699         <!--  The Local Users repo sitory, fo r storing  James' Use r info. -- >
  700         <!--  
  701         <rep ository na me="LocalU sers" clas s="org.apa che.james. userreposi tory.James UsersJdbcR epository"  destinati onURL="db: //maildb/u sers">
  702            < sqlFile>fi le://conf/ sqlResourc es.xml</sq lFile>
  703         </re pository>
  704         -->
  705  
  706         <!--  This is a n example  configurat ion includ ing config uration fo r a list s erver. -->
  707         <!--  CHECKME:  before unc ommenting  this, edit  the confi guration f ile's cont ents   -->
  708         <!--
  709           &l istserverS tores;
  710         -->
  711  
  712      </users -store>
  713  
  714      <!-- Th e database -connectio ns block - ->
  715      <databa se-connect ions>
  716         <!--  These con nections a re referre d to by na me elsewhe re in the  config fil e -->
  717   <!-- CHECK ME! -->
  718         <!--  To allow  James to u se a datab ase you mu st configu re the dat abase conn ection her e. -->
  719         <!--  If you ar e not usin g a databa se, you ca n leave th is section  unchanged . -->
  720         <!--  These con nections a re referre d to by na me in URLs  elsewhere  in the co nfig file.  -->
  721         <!--
  722               James has  previousl y used an  in-house c onnection  pool, Mord red.
  723               Mordred i s being de precated i n favor of  Jakarta C ommons DBC P.
  724               To use DB CP:    org .apache.ja mes.util.d bcp.JdbcDa taSource
  725               To use Mo rdred: org .apache.ja mes.util.m ordred.Jdb cDataSourc e
  726  
  727               Change it  back, of  course, to  use Mordr ed.
  728  
  729               NOTE: DBC P is confi gured to r ecover fro m a databa se server  outage.
  730                     Thi s, alone,  may be rea son for yo u to give  it a try.
  731         -->
  732         
  733         <!--  Default J ames distr ibution in cludes Apa che Derby  database,  -->
  734         <!--  which is  easy to em bed - but  we support  all the m ajor SQL    -->
  735         <!--  databases  - just re configure  your JDBC  configurat ion -->
  736         <!--
  737         <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e">
  738            < driver>org .apache.de rby.jdbc.E mbeddedDri ver</drive r>
  739            < dburl>jdbc :derby:../ apps/james /var/derby db;create= true</dbur l>
  740            < user></use r>
  741            < password>< /password>
  742            < poolPrepar edStatemen ts>true</p oolPrepare dStatement s>
  743            < max>20</ma x>
  744         </da ta-source>
  745         -->
  746  
  747         <!--  JDBC driv er .jar li braries fo r other RD BMS can be  placed in  ~james/li b/  -->
  748  
  749         <!--  You can d ownload la test Conne ctor/J fro m   -->
  750         <!--  http://de v.mysql.co m/download s/connecto r/j/3.1.ht ml -->
  751         <!--  -->
  752         <!--  Example,  connecting  to a MySQ L database  called "m ail" on lo calhost-->
  753         <!--  -->
  754         <!--  The max v alue is th e maximum  number of  concurrent  connectio ns James w ill -->
  755         <!--  open to t his databa se-->
  756         <!--  If you se e "SQLExce ption: Giv ing up...  no connect ions avail able." in  your -->
  757         <!--  log files  or bounce d mail you  should in crease thi s value -- >
  758         <!--
  759         <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e">
  760            < driver>com .mysql.jdb c.Driver</ driver>
  761            < dburl>jdbc :mysql://1 27.0.0.1/m ail?autoRe connect=tr ue</dburl>
  762            < user>usern ame</user>
  763            < password>X XXXXXXX</p assword>
  764            < max>20</ma x>
  765         </da ta-source>
  766         -->
  767  
  768         <!--  Example,  connecting  to a Micr osoft MSSQ L database  called "m ail" on lo calhost-->
  769         <!--  -->
  770         <!--  The max v alue is th e maximum  number of  concurrent  connectio ns James w ill -->
  771         <!--  open to t his databa se-->
  772         <!--  If you se e "SQLExce ption: Giv ing up...  no connect ions avail able." in  your -->
  773         <!--  log files  or bounce d mail you  should in crease thi s value -- >
  774         <!--
  775         <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e">
  776            < driver>com .inet.tds. TdsDriver< /driver>
  777            < dburl>jdbc :inetdae7: 127.0.0.1? database=J ames</dbur l>
  778            < user>sa_ja mes</user>
  779            < password>X XXXXXXX</p assword>
  780            < max>20</ma x>
  781         </da ta-source>
  782         -->
  783  
  784         <!--  Here is a  configura tion for h sqldb (for merly Hype rsonicSQL)  -->
  785         <!--  You can d ownload th e db from  http://www .hsqldb.or g/ . Just  put the -- >
  786         <!--  hsqldb.ja r in the l ib directo ry and unc omment the  following  block -->
  787         <!--
  788         <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e">
  789            < driver>org .hsqldb.jd bcDriver</ driver>
  790            < dburl>jdbc :hsqldb:ta rget/data/ hsqldb</db url>
  791            < user>sa</u ser>
  792            < password>< /password>
  793            < max>20</ma x>
  794         </da ta-source>
  795         -->
  796  
  797      </datab ase-connec tions>
  798  
  799      <!-- Co nfiguratio n for Corn erstone Se rvices -->
  800      <connec tions>
  801         <idl e-timeout> 300000</id le-timeout >
  802         <max -connectio ns>30</max -connectio ns>
  803      </conne ctions>
  804  
  805      <!-- Th e Socket M anager blo ck -->
  806      <socket s>
  807         <ser ver-socket s>
  808            < factory na me="plain"  class="or g.apache.a valon.corn erstone.bl ocks.socke ts.Default ServerSock etFactory" />
  809   <!--
  810            < factory na me="ssl" c lass="org. apache.ava lon.corner stone.bloc ks.sockets .TLSServer SocketFact ory">
  811                <ssl-fac tory>
  812                   <keys tore>
  813                        <file>/u01 /app/ssl/c erts/ DNS . URL:PORT .jks</file >
  814                      <p assword>XX XXXXXX</pa ssword>
  815                      <k ey-passwor d>XXXXXXXX </key-pass word>
  816                      <t ype>JKS</t ype>
  817                      <p rotocol>TL S</protoco l>
  818                      <a lgorithm>S unX509</al gorithm>
  819                      <a uthenticat e-client>f alse</auth enticate-c lient>
  820                   </key store>
  821                </ssl-fa ctory>
  822            < /factory>
  823   -->
  824         </se rver-socke ts>
  825         <cli ent-socket s>
  826            < factory na me="plain"  class="or g.apache.a valon.corn erstone.bl ocks.socke ts.Default SocketFact ory"/>
  827         </cl ient-socke ts>
  828      </socke ts>
  829  
  830      <!-- Th e Thread M anager blo ck -->
  831      <thread -manager>
  832         <thr ead-group>
  833            < name>defau lt</name>
  834            < priority>5 </priority >
  835            < is-daemon> false</is- daemon>
  836            < max-thread s>100</max -threads>
  837            < min-thread s>20</min- threads>
  838            < min-spare- threads>20 </min-spar e-threads>
  839         </th read-group >
  840      </threa d-manager>
  841   </config>