40. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/13/2019 2:49:40 PM Central 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.

40.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\DSM\Direct Implementation\java\install\src\scripts config.xml Tue Mar 12 21:52:22 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\DSM-scrubbed\Direct Implementation\java\install\src\scripts config.xml Wed Mar 13 14:35:00 2019 UTC

40.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 2842
Changed 1 2
Inserted 0 0
Removed 0 0

40.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

40.4 Active regular expressions

No regular expressions were active.

40.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    Licensed  to the Apa che Softwa re Foundat ion (ASF)  under one    
  12    or more c ontributor  license a greements.   See the  NOTICE fil
  13    distribut ed with th is work fo r addition al informa tion         
  14    regarding  copyright  ownership .  The ASF  licenses  this file    
  15    to you un der the Ap ache Licen se, Versio n 2.0 (the              
  16    "License" ); you may  not use t his file e xcept in c ompliance    
  17    with the  License.   You may ob tain a cop y of the L icense at    
  18                                                                        
  19      http:// www.apache .org/licen ses/LICENS E-2.0                   
  20                                                                        
  21     Unless r equired by  applicabl e law or a greed to i n writing,    
  22    software  distribute d under th e License  is distrib uted on an   
  23    "AS IS" B ASIS, WITH OUT WARRAN TIES OR CO NDITIONS O F ANY        
  24    KIND, eit her expres s or impli ed.  See t he License  for the     
  25    specific  language g overning p ermissions  and limit ations       
  26    under the  License.   
  27   -->
  28   <!--  Conf iguration  file for t he ASF Jam es server  -->
  29  
  30   <!--  This  file cont ains impor tant setti ngs that c ontrol the  behaviour  -->
  31   <!--  of a ll of the  services a nd reposit ories. -->
  32  
  33   <!--                                  READM E!                               -->
  34  
  35   <!-- This  configurat ion file i s designed  to run wi thout alte ration for  simple te sts. -->
  36   <!-- It as sumes you  have a DNS  server on  localhost  and assig ns a root  password o f root. -- >
  37  
  38   <!-- In ca se the def aults do n ot suit yo u, the ite ms you are  most like ly to need  to change  -->
  39   <!-- are p receded by  a CHECKME ! or CONFI RM? commen t in the l eft margin . -->
  40  
  41   <!-- For p roduction  use you wi ll probabl y need to  make more  extensive  changes, s ee -->
  42   <!-- http: //james.ap ache.org/s erver/2.3. 0/ -->
  43  
  44   <!-- $Revi sion: 7766 55 $ Commi tted on $D ate: 2009- 05-20 11:4 3:57 +0100  (Wed, 20  May 2009)  $ by: $Aut hor: rdonk in $ -->
  45  
  46   <config>
  47      <James>
  48  
  49   <!-- CHECK ME! -->
  50         <!--  This is t he postmas ter email  address fo r this mai l server.  -->
  51         <!--  Set this  to the app ropriate e mail addre ss for err or reports  -->
  52         <!--  If this i s set to a  non-local  email add ress, the  mail serve r -->
  53         <!--  will stil l function , but will  generate  a warning  on startup . -->
  54         <pos tmaster>Po stmaster@l ocalhost</ postmaster >
  55  
  56         <!--  servernam es identif ies the DN S namespac e served b y this ins tance of J ames. -->
  57         <!--  These ser vernames a re used fo r both mat cher/maile t processi ng and SMT P auth -->
  58         <!--  to determ ine when a  mail is i ntended fo r local de livery. -- >
  59         <!--  -->
  60         <!--  If autode tect is TR UE, James  wil attemp t to disco ver its ow n host nam e AND -->
  61         <!--  use any e xplicitly  specified  servername s. -->
  62         <!--  If autode tect is FA LSE, James  will use  only the s pecified s ervernames . -->
  63         <!--  -->
  64         <!--  If autode tectIP is  not FALSE,  James wil l also all ow add the  IP addres s for each  servernam e. -->
  65         <!--  The autom atic IP de tection is  to suppor t RFC 2821 , Sec 4.1. 3, address  literals.  -->
  66         <!--  -->
  67         <!--  To overri de autodet ected serv er names s imply add  explicit s ervername  elements.  -->
  68         <!--  In most c ases this  will be ne cessary. - ->
  69         <!--  By defaul t, the ser vername 'l ocalhost'  is specifi ed. This c an be remo ved, if re quired. -- >
  70         <!--  -->
  71         <!--  Warning:  If you are  using fet chmail it  is importa nt to incl ude the -- >
  72         <!--  fetched d omains in  the server  name list  to preven t looping.        -->
  73         <ser vernames a utodetect= "true" aut odetectIP= "true">
  74   <!-- CONFI RM? -->
  75            < servername >localhost </serverna me>
  76         </se rvernames>
  77  
  78         <!--  Set wheth er user na mes are ca se sensiti ve or case  insensiti ve -->
  79         <!--  Set wheth er to enab le local a liases -->
  80         <!--  Set wheth er to enab le forward ing -->
  81         <use rnames ign oreCase="t rue" enabl eAliases=" true" enab leForwardi ng="true"/ >
  82  
  83         <!--  The inbox  repositor y is the l ocation fo r users in boxes -->
  84         <!--  Default s etting: fi le based r epository  - enter pa th ( use   "file:///"  for absol ute) -->
  85         <inb oxReposito ry>
  86            < repository  destinati onURL="fil e://var/ma il/inboxes /" type="M AIL"/>
  87         </in boxReposit ory>
  88  
  89         <!--  Alternati ve inbox r epository  definition  for DB us e. -->
  90         <!--  The forma t for the  destinatio nURL is "d b://<data- source>/<t able>" -->
  91         <!--  <data-sou rce> is th e datasour ce name se t up in th e database -connectio ns block,  below -->
  92         <!--  <table> i s the name  of the ta ble to sto re user in boxes in - ->
  93         <!--  The user  name is us ed as <rep ositoryNam e> for thi s reposito ry config.  -->
  94         <!--
  95         <inb oxReposito ry>
  96            < repository  destinati onURL="db: //maildb/i nbox/" typ e="MAIL"/>
  97         </in boxReposit ory>
  98         -->
  99  
  100         <!--  Alternati ve inbox r epository  definition  for DB us e. -->
  101         <!--  Stores me ssage body  in file s ystem, res t in datab ase -->
  102         <!--  
  103         <inb oxReposito ry>
  104            < repository  destinati onURL="dbf ile://mail db/inbox/"  type="MAI L"/>
  105         </in boxReposit ory>
  106         -->
  107  
  108         <!--  Alternati ve inbox r epository  definition  for mbox  use. -->
  109         <!--  This meth od uses UN IX standar d mbox fil es and is  meant for  people usi ng mbox fi les -->
  110         <!--  with syst ems such a s mail lis t archive  displayers  -->
  111         <!--  Note that  dot-locki ng is not  currently  supported  -->
  112         <!--  so networ k (write)  accesses m ay cause m box corrup tion -->
  113         <!--  the sampl e mbox URL  is an abs olute URL;  mbox:///v ar/mail wi ll put the  users mbo x files in  /var/mail /-->
  114         <!--
  115         <inb oxReposito ry>
  116            < repository  destinati onURL="mbo x:///var/m ail/" type ="MAIL"/>
  117         </in boxReposit ory>
  118         -->
  119      </James >
  120  
  121      <!-- Th is is an e xample con figuration  for Fetch Mail, a Ja vaMail bas ed gateway   -->
  122      <!-- se rvice that  pulls mes sages from  other sou rces, and  inserts th em into th e -->
  123      <!-- sp ool.  They  are then  processed  normally,  although F etchMail g enerally     -->
  124      <!-- ha s to fabri cate some  of the env elope info rmation.   FetchMail  should be    -->
  125      <!-- co nsidered a  mail gate way, rathe r than a r elay, in R FC terms.               -->
  126      <!-- Fe tchmail is  a functio nally rich er replace ment for F etchPOP.                -->
  127      <!-- CH ECKME: Fet chMail is  disabled b y default,  and must  be configu red to use . -->
  128      <!-- Ed it the fil e referred  to by fet chmailConf ig to enab le and con figure.      -->
  129      &fetchm ailConfig;
  130  
  131      <!-- Se t the Java  packages  from which  to load m ailets and  matchers  -->
  132      <mailet packages>
  133         <mai letpackage >org.apach e.james.tr ansport.ma ilets</mai letpackage >
  134         <mai letpackage >org.apach e.james.tr ansport.ma ilets.smim e</mailetp ackage>
  135         <mai letpackage >org.nhind irect.gate way.smtp.j ames.maile t</mailetp ackage>
  136         <mai letpackage >org.nhind .james.mai let</maile tpackage>
  137      </maile tpackages>
  138      <matche rpackages>
  139         <mat cherpackag e>org.apac he.james.t ransport.m atchers</m atcherpack age>
  140         <mat cherpackag e>org.apac he.james.t ransport.m atchers.sm ime</match erpackage>
  141         <mat cherpackag e>org.nhin direct.gat eway.smtp. james.matc her</match erpackage>
  142         <mat cherpackag e>org.nhin d.james.ma tcher</mat cherpackag e>
  143      </match erpackages >
  144  
  145      <!-- Th e James Sp ool Manage r block  - ->
  146      <!-- -- >
  147      <!-- Th is block i s responsi ble for pr ocessing m essages on  the spool . -->
  148      <spoolm anager>
  149         <!--  Number of  spool thr eads -->
  150         <thr eads> 10 < /threads>
  151  
  152         <!--  The root  processor  is a requi red proces sor - Jame s routes a ll mail on  the spool  -->
  153         <!--  through t his proces sor first.  -->
  154         <!--  -->
  155         <!--  This conf iguration  is a sampl e configur ation for  the root p rocessor.  -->
  156         <pro cessor nam e="root">
  157  
  158            < !-- This m ailet redi rects mail  for the u ser 'postm aster' at  any local  domain to  -->
  159            < !-- the po stmaster a ddress spe cified for  the serve r. The pos tmaster ad dress -->
  160            < !-- is req uired by r fc822. Do  not remove  this mail et unless  you are me eting -->
  161            < !-- this r equirement  through o ther means  (e.g. a X ML/JDBCVir tualUserTa ble mailet ) -->
  162            < mailet mat ch="All" c lass="Post masterAlia s"/>
  163  
  164            < !-- Checks  that the  email Send er is asso ciated wit h a valid  domain. -- >
  165            < !-- Useful  for detec ting and e liminating  spam. -->
  166            < !-- For th is block t o function , the spam  processor  must be c onfigured.  -->
  167            < !--
  168            < mailet mat ch="Sender InFakeDoma in=64.55.1 05.9,64.94 .110.11,19 4.205.62.1 22,194.205 .62.62,195 .7.77.20,2 06.253.214 .102,212.1 81.91.6,21 9.88.106.8 0,194.205. 62.42,216. 35.187.246 ,203.119.4 .6" class= "ToProcess or">
  169                <process or> spam < /processor >
  170            < /mailet>
  171            - ->
  172  
  173            < !-- Import ant check  to avoid l ooping -->
  174            < mailet mat ch="RelayL imit=30" c lass="Null "/>
  175  
  176            < !-- Check  for viruse s -->
  177            < !-- -->
  178            < !-- Does a n antiviru s scan che ck using a  ClamAV da emon (CLAM D). -->
  179            < !-- -->
  180            < !-- Intera cts direct ly with th e daemon u sing the " stream" me thod, -->
  181            < !-- which  should hav e the lowe st possibl e overhead . -->
  182            < !-- The CL AMD daemon  will typi cally resi de on loca lhost, but  could res ide on a - ->
  183            < !-- differ ent host.  -->
  184            < !-- It may  also cons ist on a s et of mult iple daemo ns, each r esiding on  a differe nt -->
  185            < !-- server  and on di fferent IP  number. - ->
  186            < !-- In suc h case a D NS host na me with mu ltiple IP  addresses  (round-rob in load sh aring) -->
  187            < !-- is sup ported by  the mailet  (but on t he same po rt number) . -->
  188            < !-- -->
  189            < !-- Handle s the foll owing init  parameter s: -->
  190            < !-- <debug > -->
  191            < !-- <host> : the host  name of t he server  where CLAM D runs. It  can eithe r be -->
  192            < !--     a  machine na me, such a s -->
  193            < !--     "j ava.sun.co m", or a t extual rep resentatio n of its - ->
  194            < !--     IP  address.  If a liter al IP addr ess is sup plied, onl y the -->
  195            < !--     va lidity of  the addres s format i s checked.  -->
  196            < !--     If  the machi ne name re solves to  multiple I P addresse s, round-r obin load  sharing wi ll -->
  197            < !--     be  used. -->
  198            < !--     Th e default  is "localh ost". -->
  199            < !-- <port> : the port  on which  CLAMD list ens. The d efault is  "3310". -- >
  200            < !-- <maxPi ngs>: the  maximum nu mber of co nnection r etries dur ing startu p. -->
  201            < !--     If  the value  is "0" no  startup t est will b e done. -- >
  202            < !--     Th e default  is "6". -- >
  203            < !-- <pingI ntervalMil li>: the i nterval (i n millisec onds) -->
  204            < !--     be tween each  connectio n retry du ring start up. -->
  205            < !--     Th e default  is "30000"  (30 secon ds). -->
  206            < !-- <strea mBufferSiz e>: the Bu fferedOutp utStream b uffer size  to use  - ->
  207            < !--     wr iting to t he stream  connection . The defa ult is "81 92". -->
  208            < !--
  209            < mailet mat ch="All" c lass="Clam AVScan" on MailetExce ption="ign ore">
  210                <debug>  true </deb ug>
  211            < /mailet> 
  212            - ->
  213  
  214            < !-- If inf ected go t o virus pr ocessor -- >
  215            < mailet mat ch="HasMai lAttribute WithValue= org.apache .james.inf ected, tru e" class=" ToProcesso r">
  216                <process or> virus  </processo r>
  217            < /mailet>
  218  
  219            < !-- Check  attachment  extension s for poss ible virus es -->
  220            < !-- The "- z" option  requests t he check t o be non-r ecursively  applied - ->
  221            < !-- to the  contents  of any att ached '*.z ip' file.  -->
  222            < !-- 
  223            < mailet mat ch="Attach mentFileNa meIs=-d -z  *.exe *.c om *.bat * .cmd *.pif  *.scr *.v bs *.avi * .mp3 *.mpe g *.shs" c lass="Boun ce" onMatc hException ="error">
  224                <inline> heads</inl ine>
  225                <attachm ent>none</ attachment >
  226                <passThr ough>false </passThro ugh>
  227                <prefix> [REJECTED] </prefix>
  228                <notice>
  229   The Securi ty Policy  of XXX doe s not allo w to forwa rd message s containi ng attachm ents havin g any of t he extensi ons .exe,  .com, .bat , .cmd, .p if, .scr,  .vbs, .avi , .mp3, .m peg, .shs,  therefore  your mess age has be en rejecte d.
  230  
  231   Please don 't reply t o this e-m ail as it  has been a utomatical ly sent by  the antiv irus syste m.
  232  
  233   Regards, P ostmaster  XXX.YYY
  234   .......... .......... .......... .......
  235                </notice >
  236            < /mailet>
  237            - ->
  238  
  239            < !-- Whitel ist Manage ment -->
  240            < !-- Manage s for each  local use r a "white  list" of  remote add resses who se message s -->
  241            < !-- should  never be  blocked as  spam. -->
  242            < !-- -->
  243            < !-- If <au tomaticIns ert> is tr ue, it wil l check, f or a local  sender, i f a remote  recipient  -->
  244            < !-- is alr eady in th e list: if  not, it w ill be aut omatically  inserted.  -->
  245            < !-- This i s under th e interpre tation tha t if a loc al sender  X sends a  message to  a -->
  246            < !-- remote  recipient  Y, then l ater on if  a message  is sent b y Y to X i t should b e -->
  247            < !-- consid ered alway s valid an d never bl ocked; hen ce Y shoul d be in th e white li st -->
  248            < !-- of X.  -->
  249            < !-- -->
  250            < !-- Anothe r mode of  operations  is when a  local sen der sends  a message  to <whitel istManager Address> - ->
  251            < !-- with o ne of thre e specific  values in  the subje ct, to -->
  252            < !-- (i) se nd back a  message di splaying a  list of t he address es in his  own list ( <displayFl ag>); -->
  253            < !-- (ii) i nsert some  new addre sses in hi s own list  (<insertF lag>); -->
  254            < !-- (iii)  remove som e addresse s from his  own list  (<removeFl ag>). -->
  255            < !-- In all  of the th ree above  cases the  message wi ll be ghos ted and th e postmast er will re ply -->
  256            < !-- to the  sender. - ->
  257            < !-- -->
  258            < !-- The se nder name  is always  converted  to its pri mary name  (handling  aliases).  -->
  259            < !--
  260            < mailet mat ch="SMTPAu thSuccessf ul" class= "WhiteList Manager" o nMailetExc eption="ig nore">
  261                <reposit oryPath>db ://maildb< /repositor yPath>
  262                <automat icInsert>t rue</autom aticInsert >
  263                <whiteli stManagerA ddress>whi telist.man ager@xxx.y yy</whitel istManager Address>
  264                <display Flag>displ ay</displa yFlag>
  265                <insertF lag>insert </insertFl ag>
  266                <removeF lag>remove </removeFl ag>
  267            < /mailet>
  268            - ->
  269  
  270            < !-- "not s pam" bayes ian analys is feeder.  -->
  271            < !--
  272            < mailet mat ch="Recipi entIs=not. spam@xxx.y yy" class= "BayesianA nalysisFee der">
  273                <reposit oryPath> d b://maildb  </reposit oryPath>
  274                <feedTyp e>ham</fee dType>
  275                <maxSize >200000</m axSize>
  276            < /mailet>
  277            - ->
  278        
  279            < !-- "spam"  bayesian  analysis f eeder. -->
  280            < !--
  281            < mailet mat ch="Recipi entIs=spam @xxx.yyy"  class="Bay esianAnaly sisFeeder" >
  282                <reposit oryPath> d b://maildb  </reposit oryPath>
  283                <feedTyp e>spam</fe edType>
  284                <maxSize >200000</m axSize>
  285            < /mailet>
  286            - ->
  287  
  288            < !-- sample  SMIME mai lets confi guration - ->
  289            < !-- In ord er to use  SMIME capa bilities y ou need to  install t he bouncyc astle JCE  -->
  290            < !-- provid er in your  environme nt (james/ lib) -->
  291            < !-- e.g: b cprov-jdk1 4-129.jar  from http: //www.boun cycastle.o rg/latest_ releases.h tml -->
  292            < !-- 
  293            < mailet mat ch="IsSMIM EEncrypted " class="S MIMEDecryp t">
  294                <keyStor eType>pkcs 12</keySto reType>
  295                <keyStor eFileName> c:/path.pf x</keyStor eFileName>
  296                <keyStor ePassword> myKeyStore Pass</keyS torePasswo rd>
  297                <keyAlia s>myKeyAli as</keyAli as>
  298                <keyAlia sPassword> myKeyPass< /keyAliasP assword>
  299            < /mailet>
  300            
  301            < mailet mat ch="IsSMIM ESigned" c lass="SMIM ECheckSign ature">
  302                <keyStor eType>pkcs 12</keySto reType>
  303                <keyStor eFileName> c:/path.pf x</keyStor eFileName>
  304                <keyStor ePassword> myKeyStore Pass</keyS torePasswo rd>
  305                <strip>f alse</stri p>
  306                <onlyTru sted>true< /onlyTrust ed>
  307            < /mailet>
  308            - ->
  309  
  310            < !--
  311            < mailet mat ch="All" c lass="XMLV irtualUser Table">
  312                <!- 1:1  mapping ->
  313                <mapping >morgoth@m iddle-eart h=sauron@m ordor</map ping>
  314                <!- 1:n  mapping ->
  315                <mapping >istari@mi ddle-earth =saruman@i sengard;ra digast;gan dalf</mapp ing>
  316                <!- DSN  mapping ->
  317                <mapping >boromir@o sgilliath= error:550  Requested  action not  taken: no  such user  here</map ping>
  318                <!- rege x based ma pping ->
  319                <mapping >*@osgilli ath=regex: (.*)@osgil liath:${1} @minas-tir ith</mappi ng>
  320                <!- both  standard  and regex  mapping ->
  321                <mapping >ring@*=on ering@mord or;regex:r ing@(.*):r ing@${1}</ mapping>
  322                <!- cond itional re gex mappin g example  ->
  323                <mapping >*@listser ver=regex: (.*)-on@li stserver:$ {1}-subscr ibe@listse rver;
  324                                        regex: (.*)-off@l istserver: ${1}-unsub scribe@lis tserver
  325                </mappin g>
  326            < /mailet>
  327            - ->
  328  
  329            < !-- Anti-s pam proces sing -->
  330            < !-- The fo llowing tw o entries  avoid doub le anti-sp am analysi s -->
  331            < !-- for fo rwarded me ssages. -- >
  332            < !-- Has sp am checkin g already  been done?  -->
  333            < mailet mat ch="HasMai lAttribute =spamCheck ed" class= "ToProcess or">
  334                <process or> transp ort </proc essor>
  335            < /mailet>
  336            < !-- Spam c hecking wi ll not be  done twice  -->
  337            < mailet mat ch="All" c lass="SetM ailAttribu te">
  338                <spamChe cked>true< /spamCheck ed>
  339            < /mailet>
  340  
  341            < !-- White  List:
  342                  If you  use block  lists, yo u will pro bably want  to check
  343                  for kn own permit ted sender s.  This i s particul arly true
  344                  if you  use more  aggressive  block lis ts, such a s SPEWS,
  345                  that a re prone t o block en tire subne ts without  regard
  346                  for no n-spamming  senders.
  347            - ->
  348  
  349            < !-- Messag es from au thenticate d senders  never are  spam -->
  350            < mailet mat ch="SMTPAu thSuccessf ul" class= "ToProcess or">
  351                <process or> transp ort </proc essor>
  352            < /mailet>
  353  
  354            < !-- Messag es signed  by trusted  users nev er are spa m -->
  355            < !-- Uncomm enting the  following  entry, me ssages wit h valid si gnatures w ill never  be conside red spam.  -->
  356            < !-- This c an be a va lid policy  *if* SMIM ECheckSign ature was  invoked -- >
  357            < !-- with < onlyTruste d>true</on lyTrusted>  set -->
  358            < !--
  359            < mailet mat ch="HasMai lAttribute =org.apach e.james.SM IMECheckSi gnature" c lass="ToPr ocessor">
  360                <process or> transp ort </proc essor>
  361            < /mailet>
  362            - ->
  363  
  364            < !-- specif ic known s enders -->
  365            < !--
  366            < mailet mat ch="Sender Is=goodboy @goodhost"
  367                     cla ss="ToProc essor">
  368                <process or> transp ort </proc essor>
  369            < /mailet>
  370            - ->
  371  
  372            < !-- People  on this l ist agree  to pay a p enalty if  they send  spam -->
  373            < mailet mat ch="InSpam merBlackli st=query.b ondedsende r.org."
  374                     cla ss="ToProc essor">
  375               <processo r> transpo rt </proce ssor>
  376            < /mailet>
  377  
  378            < !-- E-mail  legally r equired no t to be sp am (see: h ttp://www. habeas.com ) -->
  379            < !--
  380            < mailet mat ch="HasHab easWarrant Mark" clas s="ToProce ssor">
  381                <process or> transp ort </proc essor>
  382            < /mailet>
  383            - ->
  384  
  385            < !-- If the  sender is  in a reci pient's wh itelist, i t is a val id sender,  -->
  386            < !-- and as  such the  message sh ould not b e consider ed spam fo r such rec ipient. -- >
  387            < !--
  388            < mailet mat ch="IsInWh iteList=db ://maildb"  class="To Processor"  onMatchEx ception="n oMatch">
  389                <process or> transp ort </proc essor>
  390            < /mailet>
  391            - ->
  392  
  393            < !-- End of  White Lis t -->
  394  
  395            < !-- Check  for delive ry from a  known spam  server -- >
  396            < !-- This s et of matc hers/maile ts redirec t all emai ls from kn own -->
  397            < !-- black  holes, ope n relays,  and spam s ervers to  the spam p rocessor - ->
  398            < !-- For th is set to  function p roperly, t he spam pr ocessor mu st be conf igured. -- >
  399            < mailet mat ch="InSpam merBlackli st=dnsbl.n jabl.org."
  400                     cla ss="ToProc essor">
  401               <processo r> spam </ processor>
  402               <notice>5 50 Request ed action  not taken:  rejected  - see http ://njabl.o rg/ </noti ce>
  403            < /mailet>
  404            
  405            < !-- Sample  matching  to kill a  message (s end to Nul l) -->
  406            < !--
  407            < mailet mat ch="Recipi entIs=badb oy@badhost " class="N ull"/>
  408            - ->
  409  
  410            < !-- Anti s pam bayesi an analysi s -->
  411            < !--
  412            < mailet mat ch="All" c lass="Baye sianAnalys is" onMail etExceptio n="ignore" >
  413                <reposit oryPath>db ://maildb< /repositor yPath>
  414           <m axSize>200 000</maxSi ze>
  415                <headerN ame>X-Mess ageIsSpamP robability </headerNa me>
  416                <ignoreL ocalSender >true</ign oreLocalSe nder>
  417            < /mailet>
  418  
  419            < mailet mat ch="Compar eNumericHe aderValue= X-MessageI sSpamProba bility > 0 .90" class ="SetMailA ttribute"  onMatchExc eption="no Match">
  420                <isSpam> true</isSp am>
  421            < /mailet>
  422  
  423            < mailet mat ch="Compar eNumericHe aderValue= X-MessageI sSpamProba bility > 0 .90" class ="SetMimeH eader" onM atchExcept ion="noMat ch">
  424                <name>X- MessageIsS pam</name>
  425                <value>t rue</value >
  426            < /mailet>
  427  
  428            < mailet mat ch="Compar eNumericHe aderValue= X-MessageI sSpamProba bility > 0 .99" class ="ToProces sor" onMat chExceptio n="noMatch ">
  429                <process or> spam < /processor >
  430                <notice> Spam not a ccepted</n otice>
  431            < /mailet>
  432            - ->
  433  
  434            < !-- Send r emaining m ails to th e transpor t processo r for eith er local o r remote d elivery -- >
  435            < mailet mat ch="All" c lass="ToPr ocessor">
  436                <process or> transp ort </proc essor>
  437            < /mailet>
  438         </pr ocessor>
  439  
  440         <!--  The error  processor  is requir ed.  James  may inter nally set  emails to  the -->
  441         <!--  error sta te.  The e rror proce ssor is ge nerally in voked when  there is  an -->
  442         <!--  unexpecte d error ei ther in th e mailet c hain or in ternal to  James. -->
  443         <!--  -->
  444         <!--  By defaul t configur ation all  email that  generates  an error  in placed  in -->
  445         <!--  an error  repository . -->
  446         <pro cessor nam e="error">
  447            < !-- If you  want to n otify the  sender the ir message  generated  an error,  uncomment  this        -->
  448            < !--
  449            < mailet mat ch="All" c lass="Boun ce"/>
  450            - ->
  451            < !-- If you  want to n otify the  postmaster  that a me ssage gene rated an e rror, unco mment this   -->
  452            < !--
  453            < mailet mat ch="All" c lass="Noti fyPostmast er"/>
  454            - ->
  455  
  456            < !-- Logs a ny message s to the r epository  specified  -->
  457            < mailet mat ch="All" c lass="ToRe pository">
  458                <reposit oryPath> f ile://var/ mail/error /</reposit oryPath>
  459                <!-- An  alternativ e database  repositor y example  follows. - ->
  460                <!--
  461                <reposit oryPath> d b://maildb /deadlette r/error </ repository Path>
  462                -->
  463            < /mailet>
  464         </pr ocessor>
  465  
  466         <!--  Processor  CONFIGURA TION SAMPL E: transpo rt is a sa mple custo m processo r for loca l or -->
  467         <!--  remote de livery -->
  468         <pro cessor nam e="transpo rt">
  469  
  470           <! -- This is  an exampl e configur ation incl uding conf iguration  for a list  server. - ->
  471           <! -- CHECKME : before u ncommentin g this, ed it the con figuration  file's co ntents   - ->
  472           <! --
  473              &listserve rConfig;
  474           -- >
  475  
  476            < mailet mat ch="SMTPAu thSuccessf ul" class= "SetMimeHe ader">
  477                <name>X- UserIsAuth </name>
  478                <value>t rue</value >
  479            < /mailet>
  480       
  481            < mailet mat ch="HasMai lAttribute =org.apach e.james.SM IMECheckSi gnature" c lass="SetM imeHeader" >
  482                <name>X- WasSigned< /name>
  483                <value>t rue</value >
  484            < /mailet>
  485  
  486            < !-- Add a  server-sid e signatur e -->
  487            < !-- In ord er to use  SMIME capa bilities y ou need to  install t he bouncyc astle JCE  -->
  488            < !-- provid er in your  environme nt (james/ lib) -->
  489            < !-- e.g: b cprov-jdk1 4-129.jar  from http: //www.boun cycastle.o rg/latest_ releases.h tml -->
  490            < !--
  491            < mailet mat ch="All" c lass="SMIM ESign" onM ailetExcep tion="igno re">
  492                <keyStor eType>jks< /keyStoreT ype>
  493                <keyStor eFileName> path.keyst ore</keySt oreFileNam e>
  494                <keyStor ePassword> myKeyStore Pass</keyS torePasswo rd>
  495                <keyAlia s>myKeyAli as</keyAli as>
  496                <keyAlia sPassword> myKeyPass< /keyAliasP assword>
  497                <signerN ame>XXX Tr usted Serv er</signer Name>
  498                <rebuild From>true< /rebuildFr om>
  499                <postmas terSigns>t rue</postm asterSigns >
  500                <debug>t rue</debug >
  501            < /mailet>
  502            - ->
  503  
  504            < !-- Experi mental quo ta Matcher  -->
  505            < !-- This m atcher nee d to calcu late the m ailbox siz e everytim e it is ca lled. This  can slow  down thing s if there  are many  mails in - ->
  506            < !-- the ma ilbox. Som e users al so report  big proble ms with th e matcher  if a JDBC  based mail repository  is used.  -->
  507            < !-- Check  if over qu ota -->
  508            < !-- 
  509            < mailet mat ch="Recipi entIsOverF ixedQuota= 20M" class ="Resend">
  510                <sender> postmaster </sender>
  511                <replyTo >postmaste r</replyTo >
  512                <reverse Path>null< /reversePa th>
  513                <inline> none</inli ne>
  514                <attachm ent>messag e</attachm ent>
  515                <prefix> [OVER QUOT A WARNING] </prefix>
  516                <message >
  517   When recei ving the a ttached me ssage, you r mailbox  is larger  than 20 MB , which is  the maxim um allowed  quota. Th e mailbox  will not b e blocked,  but we as k you to e mpty it AS AP.
  518  
  519   It is like ly that yo u have set , in your  mail clien t account,  the optio n "leave a  copy of m essages on  server".  For any he lp ask you r administ rators.
  520  
  521   Regards, P ostmaster  XXX.YYY
  522   .......... .......... .......... .......
  523                </messag e>
  524            < /mailet>
  525            - ->
  526            
  527            < mailet mat ch="Recipi entIsXdAnd NotSMIME=h ttp://loca lhost:8081 /config-se rvice/Conf igurationS ervice" cl ass="Direc tXdMailet" >
  528                <ConfigU RL>http:// localhost: 8081/confi g-service/ Configurat ionService </ConfigUR L>
  529                <Endpoin tURL>http: //localhos t:8081/xd/ services/D ocumentRep ository_Se rvice</End pointURL>
  530            < /mailet>
  531            
  532            < mailet mat ch="Recipi entIsLocal AndSMTPAut hUserIs=di rect" clas s="LocalDe livery" />
  533            
  534            < mailet mat ch="RecipA ndSenderIs NotLocal=m ydomain.co m" class=" NHINDSecur ityAndTrus tMailet">
  535                <ConfigU RL>http:// localhost: 8081/confi g-service/ Configurat ionService </ConfigUR L>
  536            < /mailet>
  537  
  538            < mailet mat ch="Recipi entIsXdAnd NotSMIME=h ttp://loca lhost:8081 /config-se rvice/Conf igurationS ervice" cl ass="Direc tXdMailet" >
  539                <ConfigU RL>http:// localhost: 8081/confi g-service/ Configurat ionService </ConfigUR L>
  540                <Endpoin tURL>http: //localhos t:8081/xd/ services/D ocumentRep ository_Se rvice</End pointURL>
  541            < /mailet>
  542  
  543            < !-- Is the  recipient  is for a  local acco unt, deliv er it loca lly -->
  544            < mailet mat ch="Recipi entIsLocal " class="L ocalDelive ry"/>
  545  
  546            < !-- If the  host is h andled by  this serve r and it d id not get  -->
  547            < !-- locall y delivere d, this is  an invali d recipien t -->
  548            < mailet mat ch="HostIs Local" cla ss="ToProc essor">
  549                <process or> local- address-er ror </proc essor>
  550                <notice> 550 - Requ ested acti on not tak en: no suc h user her e</notice>
  551            < /mailet>
  552  
  553   <!-- CHECK ME! -->
  554            < !-- This i s an anti- relay matc her/mailet  combinati on -->
  555            < !-- -->
  556            < !-- Emails  sent from  servers n ot in the  network li st are  -- >
  557            < !-- reject ed as spam .  This is  one metho d of preve nting your  -->
  558            < !-- server  from bein g used as  an open re lay.  Make  sure you  understand  -->
  559            < !-- how to  prevent y our server  from beco ming an op en relay b efore -->
  560            < !-- changi ng this co nfiguratio n. See als o <authori zedAddress es> in SMT P Server - ->
  561            < !-- -->
  562            < !-- This m atcher/mai let combin ation must  come afte r local de livery has  -->
  563            < !-- been p erformed.   Otherwise  local use rs will no t be able  to receive  -->
  564            < !-- email  from sende rs not in  this remot e address  list. -->
  565            < !-- -->
  566            < !-- If you  are using  this matc her/mailet  you will  probably w ant to -->
  567            < !-- update  the confi guration t o include  your own n etwork/add resses.  T he -->
  568            < !-- matche r can be c onfigured  with a com ma separat ed list of  IP addres ses  -->
  569            < !-- wildca rded IP su bnets, and  wildcarde d hostname  subnets.  -->
  570            < !-- e.g. " RemoteAddr NotInNetwo rk=127.0.0 .1, abc.de .*, 192.16 8.0.*" -->
  571            < !-- -->
  572            < !-- If you  are using  SMTP auth entication  then you  can (and g enerally - ->
  573            < !-- should ) disable  this match er/mailet  pair. -->
  574            < !--
  575            < mailet mat ch="Remote AddrNotInN etwork=127 .0.0.1" cl ass="ToPro cessor">
  576                <process or> relay- denied </p rocessor>
  577                <notice> 550 - Requ ested acti on not tak en: relayi ng denied< /notice>
  578            < /mailet>
  579            - ->
  580  
  581            < !-- Attemp t remote d elivery us ing the sp ecified re pository f or the spo ol, -->
  582            < !-- using  delay time  to retry  delivery a nd the max imum numbe r of retri es -->
  583            < mailet mat ch="Recipi entIsNotXd =http://lo calhost:80 81/config- service/Co nfiguratio nService"  class="Rem oteDeliver y">
  584                <outgoin g> file:// var/mail/o utgoing/ < /outgoing>
  585                <!-- alt ernative d atabase re pository e xample bel ow -->
  586                <!--
  587                <outgoin g> db://ma ildb/spool /outgoing  </outgoing >
  588                -->
  589  
  590                <!-- Del ivery Sche dule based  upon RFC  2821, 4.5. 4.1 -->
  591                <!-- 5 d ay retry p eriod, wit h 4 attemp ts in the  first
  592                     hou r, two mor e within t he first 6  hours, an d then
  593                     eve ry 6 hours  for the r est of the  period. - ->
  594                <delayTi me>  5 min utes </del ayTime>
  595                <delayTi me> 10 min utes </del ayTime>
  596                <delayTi me> 45 min utes </del ayTime>
  597                <delayTi me>  2 hou rs </delay Time>
  598                <delayTi me>  3 hou rs </delay Time>
  599                <delayTi me>  6 hou rs </delay Time>
  600                <maxRetr ies> 25 </ maxRetries >
  601  
  602                <!-- The  number of  threads t hat should  be trying  to delive r outgoing  messages  -->
  603                <deliver yThreads>  1 </delive ryThreads>
  604  
  605                <!-- If  false the  message wi ll not be  sent to gi ven server  if any re cipients f ail -->
  606                <sendpar tial>false </sendpart ial>
  607                
  608                <!-- By  default we  send boun ces to the  "bounce"  processor  -->
  609                <!-- By  removing t his config uration Ja mes will f allback to  hardcoded  bounce -- >
  610                <!-- not ifications  -->
  611                <bounceP rocessor>b ounces</bo unceProces sor>
  612  
  613                <!-- A s ingle mail  server to  deliver a ll outgoin g messages . -->
  614                <!-- Thi s is usefu l if this  server is  a backup o r failover  machine,  -->
  615                <!-- or  if you wan t all mess ages to be  routed th rough a pa rticular m ail server , -->
  616                <!-- reg ardless of  the email  addresses  specified  in the me ssage -->
  617                <!-- -->
  618                <!-- The  gateway e lement spe cifies the  gateway S MTP server  name. -->
  619                <!-- If  your gatew ay mail se rver is li stening on  a port ot her than 2 5, -->
  620                <!-- you  can set J ames to co nnect to i t on that  port using  the gatew ayPort -->
  621                <!-- ele ment. -->
  622                <!-- Alt hough norm ally multi ple addres ses are im plemented  through pr oper -->
  623                <!-- DNS  configura tion, the  RemoteDeli very mail  does allow  specifyin g -->
  624                <!-- mul tiple gate way elemen ts, each o f which ma y also hav e a port - ->
  625                <!-- e.g ., mygatew ay:2525 -- >
  626                <!-- the  gatewayPo rt element  is used a s a defaul t -->
  627                <!--
  628                <gateway > otherser ver.mydoma in.com </g ateway>
  629                <gateway Port>25</g atewayPort >
  630                -->
  631                <!-- If  the gatewa y requires  smtp auth entication  the follo wing direc tives -->
  632                <!-- (ga tewayusern ame/gatewa yPassword)  can be us ed. -->
  633                <!--
  634                <gateway username>l ogin</gate wayusernam e>
  635                <gateway Password>p ass</gatew ayPassword >
  636                -->
  637                
  638                <!-- Set  the HELO/ EHLO name  to use whe n connecti ong to rem ote SMTP-S erver -->
  639                <!--
  640                <mail.sm tp.localho st>myMailS erver</mai l.smtp.loc alhost>
  641                -->
  642            < /mailet>
  643  
  644         </pr ocessor>
  645  
  646         <!--  Processor  CONFIGURA TION SAMPL E: spam is  a sample  custom pro cessor for  handling  -->
  647         <!--  spam. -->
  648         <!--  You can e ither log  these, bou nce these,  or just i gnore them . -->
  649         <pro cessor nam e="spam">
  650            < !-- To des troy all m essages, u ncomment t his matche r/mailet c onfigurati on -->
  651            < !--
  652            < mailet mat ch="All" c lass="Null "/>
  653            - ->
  654  
  655            < !-- To not ify the se nder their  message w as marked  as spam, u ncomment t his matche r/mailet c onfigurati on -->
  656            < !--
  657            < mailet mat ch="All" c lass="Boun ce"/>
  658            - ->
  659  
  660            < !-- To not ify the po stmaster t hat a mess age was ma rked as sp am, uncomm ent this m atcher/mai let config uration -- >
  661            < !--
  662            < mailet mat ch="All" c lass="Noti fyPostmast er"/>
  663            - ->
  664  
  665            < !-- To log  the messa ge to a re pository,  this match er/mailet  configurat ion should  be uncomm ented. -->
  666            < !-- This i s the defa ult config uration. - ->
  667            < mailet mat ch="All" c lass="ToRe pository">
  668                <reposit oryPath>fi le://var/m ail/spam/< /repositor yPath>
  669  
  670                <!-- Cha nging the  repository Path, as i n this com mented out  example,  will -->
  671                <!-- cau se the mai ls to be s tored in a  database  repository .  -->
  672                <!-- Ple ase note t hat only o ne reposit oryPath el ement can  be present  for the m ailet -->
  673                <!-- con figuration . -->
  674                <!--
  675                <reposit oryPath> d b://maildb /deadlette r/spam </r epositoryP ath>
  676                -->
  677            < /mailet>
  678         </pr ocessor>
  679  
  680         <!--  messages  containing  viruses.  -->
  681         <pro cessor nam e="virus">
  682         
  683            < !-- To avo id a loop  while boun cing -->
  684            < mailet mat ch="All" c lass="SetM ailAttribu te">
  685                <org.apa che.james. infected>t rue, bounc ing</org.a pache.jame s.infected >
  686            < /mailet>
  687  
  688            < !-- If the  sender is  authentic ated, noti fy the inf ection -->
  689            < mailet mat ch="SMTPAu thSuccessf ul" class= "Bounce">
  690                <inline> heads</inl ine>
  691                <attachm ent>none</ attachment >
  692                <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>
  693            < /mailet>
  694  
  695            < !-- In any  other sit uation gho st it, -->
  696            < !-- as vir uses almos t always s poof the s ender's ad dress -->
  697            < mailet mat ch="All" c lass="Null " />
  698         </pr ocessor>
  699  
  700         <!--  This proc essor hand les messag es that ar e for loca l domains,  where the  user is u nknown -->
  701         <pro cessor nam e="local-a ddress-err or">
  702            < !-- To avo id bouncin g/archivin g spam, un comment th is matcher /mailet co nfiguratio n -->
  703            < !--
  704            < mailet mat ch="HasMai lAttribute =isSpam" c lass="Null " onMatchE xception=" noMatch"/>
  705            - ->
  706  
  707            < !-- To not ify the se nder the a ddress was  invalid,  uncomment  this match er/mailet  configurat ion -->
  708            < !-- The or iginal mes sage is no t attached  to keep t he bounce  processor  from deliv erying spa m -->
  709            < !--
  710            < mailet mat ch="All" c lass="Boun ce">
  711                <attachm ent>none</ attachment >
  712            < /mailet>
  713            - ->
  714  
  715            < !-- To not ify the po stmaster t hat a mess age had an  invalid a ddress, un comment th is matcher /mailet co nfiguratio n -->
  716            < !--
  717            < mailet mat ch="All" c lass="Noti fyPostmast er"/>
  718            - ->
  719  
  720            < mailet mat ch="All" c lass="ToRe pository">
  721                <reposit oryPath> f ile://var/ mail/addre ss-error/< /repositor yPath>
  722                <!-- An  alternativ e database  repositor y example  follows. - ->
  723                <!--
  724                <reposit oryPath> d b://maildb /deadlette r/address- error </re positoryPa th>
  725                -->
  726            < /mailet>
  727         </pr ocessor>
  728  
  729         <!--  This proc essor hand les messag es that ar e for fore ign domain s, where r elaying is  denied -- >
  730         <!--  As of Jam es v2.2, t his proces sor can be  deprecate d by using  the <auth orizedAddr esses> tag
  731               in the SM TP Server,  and rejec ting the m essage in  the protoc ol transac tion.  -->
  732         <pro cessor nam e="relay-d enied">
  733            < !-- To not ify the se nder the a ddress was  invalid,  uncomment  this match er/mailet  configurat ion -->
  734            < !-- The or iginal mes sage is no t attached  to keep t he bounce  processor  from deliv erying spa m -->
  735            < !--
  736            < mailet mat ch="All" c lass="Boun ce">
  737                <attachm ent>none</ attachment >
  738            < /mailet>
  739            - ->
  740  
  741            < !-- To not ify the po stmaster t hat a rela y request  was denied , uncommen t this mat cher/maile t configur ation -->
  742            < !--
  743            < mailet mat ch="All" c lass="Noti fyPostmast er"/>
  744            - ->
  745  
  746            < mailet mat ch="All" c lass="ToRe pository">
  747                <reposit oryPath>fi le://var/m ail/relay- denied/</r epositoryP ath>
  748                <!-- An  alternativ e database  repositor y example  follows. - ->
  749                <!--
  750                <reposit oryPath> d b://maildb /deadlette r/relay-de nied </rep ositoryPat h>
  751                -->
  752            < /mailet>
  753         </pr ocessor>
  754  
  755         <!--  This proc essor hand le the bou nces from  RemoteDeli very: As o f James v2 .3, this i s the new  -->
  756         <!--  Default.  -->
  757         <!--  -->
  758         <!--  DSNBounce  properly  create a D SN complia nt bounce  -->
  759         <pro cessor nam e="bounces ">
  760            < mailet mat ch="All" c lass="DSNB ounce">
  761                <passThr ough>false </passThro ugh>
  762  
  763                <!-- opt ional subj ect prefix  prepended  to the or iginal mes sage -->
  764                <!--
  765                <prefix> [bounce]</ prefix>
  766                -->
  767                
  768                <!-- mes sage, head s or none,  default=m essage -->
  769                <!--
  770                <attachm ent>heads< /attachmen t>
  771                -->
  772                
  773                <!-- the  message s ent in the  bounce, t he first o ccurrence  of the pat tern [mach ine] is -- >
  774                <!-- rep laced with  the name  of the exe cuting mac hine -->
  775                <!-- Def ault: Hi.  This is th e James ma il server  at [machin e] ... -->
  776                <!--
  777                <message String>Her e is [mach ine]. I'm  not able t o deliver  this messa ge.</messa geString>
  778                -->
  779              </mailet>
  780         </pr ocessor>
  781      </spool manager>
  782  
  783      <!-- DN S Server B lock -->
  784      <!-- -- >
  785      <!-- Sp ecifies DN S Server i nformation  for use b y various  components  inside -- >
  786      <!-- Ja mes. -->
  787      <!-- -- >
  788      <!-- 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 .-->
  789      <!-- Cu rrently, t his works  if the OS  has a unix -like /etc /resolv.co nf,-->
  790      <!-- or  the syste m is Windo ws based w ith ipconf ig or wini pcfg.-->
  791      <!-- -- >
  792      <!-- 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-->
  793      <!-- 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   -->
  794      <!--  - ->
  795      <!-- In formation  includes a  list of D NS Servers  to be use d by James .  These a re -->
  796      <!-- sp ecified by  the serve r elements , each of  which is a  child ele ment of th e -->
  797      <!-- se rvers elem ent.  Each  server el ement is t he IP addr ess of a s ingle DNS  server. -- >
  798      <!-- Th e servers  element ca n have mul tiple serv er childre n. -->
  799      <dnsser ver>
  800         <ser vers>
  801            < !--Enter i p address  of your DN S server,  one IP add ress per s erver -->
  802            < !-- elemen t. -->
  803            < !--
  804              <server>12 7.0.0.1</s erver>
  805            - ->
  806         </se rvers>
  807         <!--  Change au todiscover  to false  if you wou ld like to  turn off  autodiscov ery -->
  808         <!--  and set t he DNS ser vers manua lly in the  <servers>  section - ->
  809         <aut odiscover> true</auto discover>
  810         <aut horitative >false</au thoritativ e>
  811  
  812         <!--  Maximum n umber of e ntries to  maintain i n the DNS  cache -->
  813         <max cachesize> 50000</max cachesize>
  814      </dnsse rver>
  815  
  816      <!-- Th e RemoteMa nager serv er is enab led by def ault -->
  817      <!-- Di sabling bl ocks will  stop them  from liste ning, -->
  818      <!-- bu t does not  free as m any resour ces as rem oving them  would -->
  819      <remote manager en abled="tru e">
  820         <por t>4555</po rt>
  821         <!--   Uncommen t this if  you want t o bind to  a specific  inetaddre ss -->
  822         <!--
  823         <bin d> </bind>
  824         -->
  825         <!--   Uncommen t this if  you want t o use TLS  (SSL) on t his port - ->
  826         <!--
  827         <use TLS>true</ useTLS>
  828         -->
  829         <han dler>
  830            < !-- This i s the name  used by t he server  to identif y itself i n the Remo teManager  -->
  831            < !-- protoc ol.  If au todetect i s TRUE, th e server w ill discov er its -->
  832            < !-- own ho st name an d use that  in the pr otocol.  I f discover y fails, - ->
  833            < !-- the va lue of 'lo calhost' i s used.  I f autodete ct is FALS E, James - ->
  834            < !-- will u se the spe cified val ue. -->
  835            < helloName  autodetect ="true">my MailServer </helloNam e>
  836            < administra tor_accoun ts>
  837   <!-- CHECK ME! -->
  838                <!-- Cha nge the de fault logi n/password . -->
  839                  <account l ogin=" XXXX " password = AI       >
  840            < /administr ator_accou nts>
  841            < connection timeout> 6 0000 </con nectiontim eout>
  842            < !-- The pr ompt direc tive adds  a prompt t o every ou tput from  RemoteMana ger -->
  843            < !-- 
  844            < prompt>jam es&gt;</pr ompt>
  845            - ->
  846         </ha ndler>
  847      </remot emanager>
  848  
  849       <!-- T he POP3 se rver is en abled by d efault -->
  850       <!-- D isabling b locks will  stop them  from list ening, -->
  851       <!-- b ut does no t free as  many resou rces as re moving the m would -- >
  852      <pop3se rver enabl ed="true">
  853         <!--  port 995  is the wel l-known/IA NA registe red port f or POP3S   ie over SS L/TLS -->
  854         <!--  port 110  is the wel l-known/IA NA registe red port f or Standar d POP3 -->
  855         <por t>110</por t>
  856  
  857         <!--  Uncomment  this if y ou want to  bind to a  specific  inetaddres s -->
  858         <!--
  859         <bin d> </bind>
  860         -->
  861         <!--   Uncommen t this if  you want t o use TLS  (SSL) on t his port - ->
  862         <!--
  863         <use TLS>true</ useTLS>
  864         -->
  865  
  866         <han dler>
  867            < !-- This i s the name  used by t he server  to identif y itself i n the POP3  -->
  868            < !-- protoc ol.  If au todetect i s TRUE, th e server w ill discov er its -->
  869            < !-- own ho st name an d use that  in the pr otocol.  I f discover y fails, - ->
  870            < !-- the va lue of 'lo calhost' i s used.  I f autodete ct is FALS E, James - ->
  871            < !-- will u se the spe cified val ue. -->
  872            < helloName  autodetect ="true">my MailServer </helloNam e>
  873            < connection timeout>12 0000</conn ectiontime out>
  874         </ha ndler>
  875      </pop3s erver>
  876  
  877       <!-- T he SMTP se rver is en abled by d efault -->
  878       <!-- D isabling b locks will  stop them  from list ening, -->
  879       <!-- b ut does no t free as  many resou rces as re moving the m would -- >
  880      <smtpse rver enabl ed="true">
  881         <!--  port 25 i s the well -known/IAN A register ed port fo r SMTP -->
  882         <por t>25</port >
  883  
  884         <!--  Uncomment  this if y ou want to  bind to a  specific  inetaddres s -->
  885         <!--  Please NO TE: you sh ould add t his IP als o to your  RemoteAddr NotInNetwo rk -->
  886         <!--  in order  to avoid r elay check  for local lly genera ted bounce s -->
  887         <!--
  888         <bin d> </bind>
  889         -->
  890         <!--  Uncomment  this if y ou want to  use TLS ( SSL) on th is port -- >
  891         <!--
  892         <use TLS>true</ useTLS>
  893         -->
  894  
  895         <han dler>
  896            < !-- This i s the name  used by t he server  to identif y itself i n the SMTP  -->
  897            < !-- protoc ol.  If au todetect i s TRUE, th e server w ill discov er its -->
  898            < !-- own ho st name an d use that  in the pr otocol.  I f discover y fails, - ->
  899            < !-- the va lue of 'lo calhost' i s used.  I f autodete ct is FALS E, James - ->
  900            < !-- will u se the spe cified val ue. -->
  901            < helloName  autodetect ="true">my MailServer </helloNam e>
  902            < connection timeout>36 0000</conn ectiontime out>
  903  
  904            < !--  Uncom ment this  if you wan t to requi re SMTP au thenticati on.
  905  
  906                   suppo rted value s:
  907                   true:  required  but announ ced only t o not auth orizedAddr esses
  908                   false : don't us e AUTH
  909                   annou nce: like  true, but  always ann ounce AUTH  capabilit y to clien ts
  910  
  911                   The c orrect beh aviour per  RFC value  would be  false or a nnounce
  912                   but w e still su pport true  for backw ard compat ibility an d because
  913                   some  webmail cl ient fails  when AUTH  is announ ced but no  authentic ation
  914                   infor mation has  been prov ided
  915              -->
  916            < authRequir ed>announc e</authReq uired>
  917  
  918   <!-- CHECK ME! -->
  919            < !--  Uncom ment this  if you wan t to autho rize speci fic addres ses/networ ks.
  920                   If yo u use SMTP  AUTH, add resses tha t match th ose specif ied here w ill
  921                   be pe rmitted to  relay wit hout SMTP  AUTH.  If  you do not  use SMTP
  922                   AUTH,  and you s pecify add reses here , then onl y addresse s that mat ch
  923                   those  specified  will be p ermitted t o relay.
  924  
  925                   Addre sses may b e specifie d as a an  IP address  or domain  name, wit h an
  926                   optio nal netmas k, e.g.,
  927  
  928                   127.* , 127.0.0. 0/8, 127.0 .0.0/255.0 .0.0, and  localhost/ 8 are all  the same
  929  
  930                   See a lso the Re moteAddrNo tInNetwork  matcher i n the tran sport proc essor.
  931                   You w ould gener ally use o ne OR the  other appr oach.
  932            - ->
  933            < !--
  934            < authorized Addresses> 127.0.0.0/ 8</authori zedAddress es>
  935            - ->
  936  
  937            < !--  Uncom ment this  if you wan t to verif y sender a ddresses,  ensuring t hat -->
  938            < !--  the s ender addr ess matche s the user  who has a uthenticat ed. -->
  939            < !--  This  prevents a  user of y our mail s erver from  acting as  someone e lse -->
  940            < !--
  941            < verifyIden tity>true< /verifyIde ntity>
  942            - ->
  943  
  944            < !--  This  sets the m aximum all owed messa ge size (i n kilobyte s) for thi s -->
  945            < !--  SMTP  service. I f unspecif ied, the v alue defau lts to 0,  which mean s no limit . -->
  946            < maxmessage size>0</ma xmessagesi ze>
  947            
  948            < !--  This  sets wethe r to enfor ce the use  of HELO/E HLO saluta tion befor e a -->
  949            < !--  MAIL  command is  accepted.  If unspec ified, the  value def aults to t rue -->
  950            < !-- 
  951            < heloEhloEn forcement> true</helo EhloEnforc ement>
  952            - ->
  953  
  954            < !-- SMTP H andler Cha in customi zation -->
  955            < !-- Uncomm ent this a nd edit ja mes-smtpha ndlerchain .xml confi guration f ile to -->
  956            < !-- enable  the exper imental fa stfail fea tures. Loo k at the j ames-smtph andlerchai n.xml -->
  957            < !-- for fu rther info rmations - ->
  958            < !-- 
  959            & smtphandle rchainConf ig;
  960            - ->
  961                
  962         </ha ndler>
  963      </smtps erver>
  964  
  965       <!-- T he NNTP se rver is en abled by d efault -->
  966       <!-- D isabling b locks will  stop them  from list ening, -->
  967       <!-- b ut does no t free as  many resou rces as re moving the m would -- >
  968       <!-- N NTP-specif ic: if you  disable t he NNTP Se rver, you  should als o set the  nntp-repos itory's
  969            t hreadCount  to 0, oth erwise the re will be  threads a ctive and  polling  - ->
  970      <nntpse rver enabl ed="true">
  971      <!-- TH E NNTP PRO TOCOL IS E XPERIMENTA L AND NOT  AS WELL TE STED AS SM TP AND POP 3 IN THIS  RELEASE.
  972           Th e James pr oject reco mmends tha t you chec k the Jame s web site  for updat es to the  NNTP
  973           se rvice.  -- >
  974         <!--  port 563  is the wel l-known/IA NA registe red port f or NNTP ov er SSL/TLS  -->
  975         <!--  port 119  is the wel l-known/IA NA registe red port f or Standar d NNTP -->
  976         <por t>119</por t>
  977  
  978         <!--  Uncomment  this if y ou want to  bind to a  specific  inetaddres s -->
  979         <!--
  980         <bin d> </bind>
  981         -->
  982         <!--  Uncomment  this if y ou want to  use TLS ( SSL)  on t his port - ->
  983         <!--
  984         <use TLS>true</ useTLS>
  985         -->
  986  
  987         <han dler>
  988            < !-- This i s the name  used by t he server  to identif y itself i n the NNTP  -->
  989            < !-- protoc ol.  If au todetect i s TRUE, th e server w ill discov er its -->
  990            < !-- own ho st name an d use that  in the pr otocol.  I f discover y fails, - ->
  991            < !-- the va lue of 'lo calhost' i s used.  I f autodete ct is FALS E, James - ->
  992            < !-- will u se the spe cified val ue. -->
  993            < helloName  autodetect ="true">my MailServer </helloNam e>
  994            < connection timeout>12 0000</conn ectiontime out>
  995              <!-- Set t he authReq uired valu e to true  to enable  authentica ted NNTP - ->
  996            < authRequir ed>false</ authRequir ed>
  997         </ha ndler>
  998      </nntps erver>
  999  
  1000      <nntp-r epository>
  1001         <!--  If this i s set to t rue, posti ng will be  disallowe d. -->
  1002         <rea dOnly>fals e</readOnl y>
  1003  
  1004         <roo tPath>file ://var/nnt p/groups</ rootPath>
  1005         <tem pPath>file ://var/nnt p/temp</te mpPath>
  1006         <art icleIDPath >file://va r/nntp/art icleid</ar ticleIDPat h>
  1007         <art icleIDDoma inSuffix>n ews.james. apache.org </articleI DDomainSuf fix>
  1008  
  1009         <!--  The news  groups hos ted in thi s NNTP rep ository. - ->
  1010         <!--  Groups he re will be  added to  those foun d in the f ile system ,
  1011               but remov ing groups  from here  will NOT  remove the m from the
  1012               server.   Change <ne wsgroups>  to <newsgr oups only= "true"> to
  1013               restrict  newsgroups  to ONLY t hose found  in this l ist.  -->
  1014         <new sgroups>
  1015            < newsgroup> org.apache .james.dev </newsgrou p>
  1016            < newsgroup> org.apache .james.use r</newsgro up>
  1017            < newsgroup> org.apache .avalon.de v</newsgro up>
  1018            < newsgroup> org.apache .avalon.us er</newsgr oup>
  1019         </ne wsgroups>
  1020  
  1021         <spo ol>
  1022            < configurat ion>
  1023                <spoolPa th>file:// var/nntp/s pool</spoo lPath>
  1024                <!-- The  number of  threads t hat proces s spooler  related ta sks. -->
  1025                <threadC ount>1</th readCount>
  1026                <!-- The  spool thr ead(s) sho uld idle f or some ti me, if it  has nothin g to do  - ->
  1027                <threadI dleTime>60 000</threa dIdleTime>
  1028            < /configura tion>
  1029         </sp ool>
  1030      </nntp- repository >
  1031  
  1032      <!-- Sp ool reposi tory confi guration - ->
  1033      <!-- Th e spool re pository i s the loca tion where  incoming  mails are  temporaril y stored - ->
  1034      <!-- be fore being  processed . -->
  1035      <spoolr epository  destinatio nURL="file ://var/mai l/spool/"  type="SPOO L"/>
  1036    
  1037      <!-- Al ternative  spool repo sitory def inition fo r JDBC use  -->
  1038      <!--
  1039      <spoolr epository  destinatio nURL="db:/ /maildb/sp ool/spool"  type="SPO OL"/>
  1040      -->
  1041    
  1042      <!-- Al ternative  spool repo sitory def inition fo r JDBC use  -->
  1043      <!-- St ores messa ge body in  file syst em, rest i n database  -->
  1044      <!--
  1045      <spoolr epository  destinatio nURL="dbfi le://maild b/spool/sp ool" type= "SPOOL"/>
  1046      -->
  1047  
  1048      <!-- Th e Mailstor e block -- >
  1049      <mailst ore>
  1050         <rep ositories>
  1051  
  1052            < !-- File b ased repos itories.   These repo sitories s tore all m essage dat a -->
  1053            < !-- in the  file syst em. -->
  1054            < repository  class="or g.apache.j ames.mailr epository. AvalonMail Repository ">
  1055                <protoco ls>
  1056                   <prot ocol>file< /protocol>
  1057                </protoc ols>
  1058                <types>
  1059                   <type >MAIL</typ e>
  1060                </types>
  1061            < /repositor y>
  1062            < repository  class="or g.apache.j ames.mailr epository. AvalonSpoo lRepositor y">
  1063                <protoco ls>
  1064                   <prot ocol>file< /protocol>
  1065                </protoc ols>
  1066                <types>
  1067                   <type >SPOOL</ty pe>
  1068                </types>
  1069            < /repositor y>
  1070  
  1071            < !-- JDBC b ased repos itories.   These repo sitories s tore all m essage dat a -->
  1072            < !-- in the  database.  -->
  1073            < repository  class="or g.apache.j ames.mailr epository. JDBCMailRe pository">
  1074                <protoco ls>
  1075                   <prot ocol>db</p rotocol>
  1076                </protoc ols>
  1077                <types>
  1078                   <type >MAIL</typ e>
  1079                </types>
  1080                <config>
  1081                   <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e>
  1082                   <!--  Set the si ze thresho ld for in  memory han dling of s toring ope rations -- >
  1083                   <!--  Default is  currently  409600000  due to a  bug with m ysql and b inary stre am -->
  1084                   <!--  currently  under inve stigation.  Please ch ange this  only if yo u know wha t -->
  1085                   <!--  you do, th is is EXPE RIMENTAL - ->
  1086                   <!--
  1087                   <inMe morySizeLi mit>4096</ inMemorySi zeLimit>
  1088                    -->
  1089                </config >
  1090            < /repositor y>
  1091  
  1092            < repository  class="or g.apache.j ames.mailr epository. JDBCSpoolR epository" >
  1093                <protoco ls>
  1094                   <prot ocol>db</p rotocol>
  1095                </protoc ols>
  1096                <types>
  1097                   <type >SPOOL</ty pe>
  1098                </types>
  1099                <config>
  1100                   <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e>
  1101                   <maxc ache>1000< /maxcache>
  1102                   <!--  Set the si ze thresho ld for in  memory han dling of s toring ope rations -- >
  1103                   <!--  Default is  currently  409600000  due to a  bug with m ysql and b inary stre am -->
  1104                   <!--  currently  under inve stigation.  Please ch ange this  only if yo u know wha t -->
  1105                   <!--  you do, th is is EXPE RIMENTAL - ->
  1106                   <!--
  1107                   <inMe morySizeLi mit>4096</ inMemorySi zeLimit>
  1108                    -->
  1109                </config >
  1110            < /repositor y>
  1111  
  1112            < !-- These  repositori es store m essage del ivery and  headers in  the DB, a nd the bod y to the f ilesystem  -->
  1113            < repository  class="or g.apache.j ames.mailr epository. JDBCMailRe pository">
  1114                <protoco ls>
  1115                   <prot ocol>dbfil e</protoco l>
  1116                </protoc ols>
  1117                <types>
  1118                   <type >MAIL</typ e>
  1119                </types>
  1120                <config>
  1121                   <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e>
  1122                   <file store>file ://var/dbm ail</files tore>
  1123                </config >
  1124            < /repositor y>
  1125  
  1126            < repository  class="or g.apache.j ames.mailr epository. JDBCSpoolR epository" >
  1127                <protoco ls>
  1128                   <prot ocol>dbfil e</protoco l>
  1129                </protoc ols>
  1130                <types>
  1131                   <type >SPOOL</ty pe>
  1132                </types>
  1133                <config>
  1134                   <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e>
  1135                   <file store>file ://var/dbm ail</files tore>
  1136                   <maxc ache>1000< /maxcache>
  1137                </config >
  1138            < /repositor y>
  1139  
  1140            < !-- The mb ox reposit ory is des igned for  MAIL only;  SPOOL per formance w ould be le ss than id eal-->
  1141            < repository  class="or g.apache.j ames.mailr epository. MBoxMailRe pository">
  1142                <protoco ls>
  1143                   <prot ocol>mbox< /protocol>
  1144                </protoc ols>
  1145                <types>
  1146                   <type >MAIL</typ e>
  1147                </types>
  1148            < /repositor y>
  1149  
  1150            < repository  class="or g.apache.j ames.mailr epository. filepair.F ile_Persis tent_Objec t_Reposito ry">
  1151                <protoco ls>
  1152                   <prot ocol>file< /protocol>
  1153                </protoc ols>
  1154                <types>
  1155                   <type >OBJECT</t ype>
  1156                </types>
  1157                <models>
  1158                   <mode l>SYNCHRON OUS</model >
  1159                   <mode l>ASYNCHRO NOUS</mode l>
  1160                   <mode l>CACHE</m odel>
  1161                </models >
  1162            < /repositor y>
  1163  
  1164            < repository  class="or g.apache.j ames.mailr epository. filepair.F ile_Persis tent_Strea m_Reposito ry">
  1165                <protoco ls>
  1166                   <prot ocol>file< /protocol>
  1167                </protoc ols>
  1168                <types>
  1169                   <type >STREAM</t ype>
  1170                </types>
  1171                <models>
  1172                   <mode l>SYNCHRON OUS</model >
  1173                   <mode l>ASYNCHRO NOUS</mode l>
  1174                   <mode l>CACHE</m odel>
  1175                </models >
  1176            < /repositor y>
  1177         </re positories >
  1178  
  1179      </mails tore>
  1180  
  1181  
  1182      <!-- Th e User Sto rage block  -->
  1183      <users- store>
  1184         <!--  Configure  User Repo sitories h ere. -->
  1185         <!--  -->
  1186         <!--  User repo sitories a re require d for the  following  purposes:  -->
  1187         <!--     - stor ing James  user infor mation, in cluding fo rwards, al iases, -->
  1188         <!--       and  authentica tion data.  -->
  1189         <!--     - hold ing lists  of users f or the lis tserv mail et -->
  1190         <!--  Currently , two diff erent stor age option s are avai lable: -->
  1191         <!--     - file -based sto rage using  Java seri alization  -->
  1192         <!--     - data base-backe d storage  -->
  1193         <!--  (Use of d atabase or  file-syst em is defi ned on a " per-reposi tory" basi s) -->
  1194         <!--  -->
  1195         <!--  Note: One  user repo sitory is  required f or James:  -->
  1196         <!--    LocalUs ers - the  users for  whom you a re providi ng POP3, N NTP, or SM TP service  -->
  1197         <!--  -->
  1198         <!--  Other rep ositories  may be use d by match ers or mai lets. -->
  1199  
  1200         <!--  Default:  File-based  user repo sitories   Use these  configurat ions to st ore user i nfo in the  filesyste m  -->
  1201         <!--  The Local Users repo sitory, fo r storing  James' Use r info. -- >
  1202         <rep ository na me="LocalU sers" clas s="org.apa che.james. userreposi tory.Users FileReposi tory">
  1203            < destinatio n URL="fil e://var/us ers/"/>
  1204         </re pository>
  1205  
  1206  
  1207         <!--  Database  backed use r reposito ries -->
  1208         <!--  -->
  1209         <!--  Use these  configura tions to s tore user  info in a  database.  -->
  1210         <!--  Note: The  <data-sou rce> eleme nt must re fer to a c onnection  configured  -->
  1211         <!--        in  the <datab ase-connec tions> con figuration  section.  -->
  1212  
  1213         <!--  The Local Users repo sitory, fo r storing  James' Use r info. -- >
  1214         <!--  
  1215         <rep ository na me="LocalU sers" clas s="org.apa che.james. userreposi tory.James UsersJdbcR epository"  destinati onURL="db: //maildb/u sers">
  1216            < sqlFile>fi le://conf/ sqlResourc es.xml</sq lFile>
  1217         </re pository>
  1218         -->
  1219  
  1220         <!--  This is a n example  configurat ion includ ing config uration fo r a list s erver. -->
  1221         <!--  CHECKME:  before unc ommenting  this, edit  the confi guration f ile's cont ents   -->
  1222         <!--
  1223           &l istserverS tores;
  1224         -->
  1225  
  1226      </users -store>
  1227  
  1228      <!-- Th e database -connectio ns block - ->
  1229      <databa se-connect ions>
  1230         <!--  These con nections a re referre d to by na me elsewhe re in the  config fil e -->
  1231   <!-- CHECK ME! -->
  1232         <!--  To allow  James to u se a datab ase you mu st configu re the dat abase conn ection her e. -->
  1233         <!--  If you ar e not usin g a databa se, you ca n leave th is section  unchanged . -->
  1234         <!--  These con nections a re referre d to by na me in URLs  elsewhere  in the co nfig file.  -->
  1235         <!--
  1236               James has  previousl y used an  in-house c onnection  pool, Mord red.
  1237               Mordred i s being de precated i n favor of  Jakarta C ommons DBC P.
  1238               To use DB CP:    org .apache.ja mes.util.d bcp.JdbcDa taSource
  1239               To use Mo rdred: org .apache.ja mes.util.m ordred.Jdb cDataSourc e
  1240  
  1241               Change it  back, of  course, to  use Mordr ed.
  1242  
  1243               NOTE: DBC P is confi gured to r ecover fro m a databa se server  outage.
  1244                     Thi s, alone,  may be rea son for yo u to give  it a try.
  1245         -->
  1246         
  1247         <!--  Default J ames distr ibution in cludes Apa che Derby  database,  -->
  1248         <!--  which is  easy to em bed - but  we support  all the m ajor SQL    -->
  1249         <!--  databases  - just re configure  your JDBC  configurat ion -->
  1250         <!--
  1251         <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e">
  1252            < driver>org .apache.de rby.jdbc.E mbeddedDri ver</drive r>
  1253            < dburl>jdbc :derby:../ apps/james /var/derby db;create= true</dbur l>
  1254            < user></use r>
  1255            < password>< /password>
  1256            < poolPrepar edStatemen ts>true</p oolPrepare dStatement s>
  1257            < max>20</ma x>
  1258         </da ta-source>
  1259         -->
  1260  
  1261         <!--  JDBC driv er .jar li braries fo r other RD BMS can be  placed in  ~james/li b/  -->
  1262  
  1263         <!--  You can d ownload la test Conne ctor/J fro m   -->
  1264         <!--  http://de v.mysql.co m/download s/connecto r/j/3.1.ht ml -->
  1265         <!--  -->
  1266         <!--  Example,  connecting  to a MySQ L database  called "m ail" on lo calhost-->
  1267         <!--  -->
  1268         <!--  The max v alue is th e maximum  number of  concurrent  connectio ns James w ill -->
  1269         <!--  open to t his databa se-->
  1270         <!--  If you se e "SQLExce ption: Giv ing up...  no connect ions avail able." in  your -->
  1271         <!--  log files  or bounce d mail you  should in crease thi s value -- >
  1272         <!--
  1273         <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e">
  1274            < driver>com .mysql.jdb c.Driver</ driver>
  1275            < dburl>jdbc :mysql://1 27.0.0.1/m ail?autoRe connect=tr ue</dburl>
  1276            < user>usern ame</user>
  1277            < password>p assword</p assword>
  1278            < max>20</ma x>
  1279         </da ta-source>
  1280         -->
  1281  
  1282         <!--  Example,  connecting  to a Micr osoft MSSQ L database  called "m ail" on lo calhost-->
  1283         <!--  -->
  1284         <!--  The max v alue is th e maximum  number of  concurrent  connectio ns James w ill -->
  1285         <!--  open to t his databa se-->
  1286         <!--  If you se e "SQLExce ption: Giv ing up...  no connect ions avail able." in  your -->
  1287         <!--  log files  or bounce d mail you  should in crease thi s value -- >
  1288         <!--
  1289         <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e">
  1290            < driver>com .inet.tds. TdsDriver< /driver>
  1291            < dburl>jdbc :inetdae7: 127.0.0.1? database=J ames</dbur l>
  1292            < user>sa_ja mes</user>
  1293            < password>b lahblah</p assword>
  1294            < max>20</ma x>
  1295         </da ta-source>
  1296         -->
  1297  
  1298         <!--  Here is a  configura tion for h sqldb (for merly Hype rsonicSQL)  -->
  1299         <!--  You can d ownload th e db from  http://www .hsqldb.or g/ . Just  put the -- >
  1300         <!--  hsqldb.ja r in the l ib directo ry and unc omment the  following  block -->
  1301         <!--
  1302         <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e">
  1303            < driver>org .hsqldb.jd bcDriver</ driver>
  1304            < dburl>jdbc :hsqldb:ta rget/data/ hsqldb</db url>
  1305            < user>sa</u ser>
  1306            < password>< /password>
  1307            < max>20</ma x>
  1308         </da ta-source>
  1309         -->
  1310  
  1311      </datab ase-connec tions>
  1312  
  1313      <!-- Co nfiguratio n for Corn erstone Se rvices -->
  1314      <!-- -- >
  1315      <!-- Fo r a simple  configura tion, noth ing beneat h this lin e should r equire -->
  1316      <!-- al teration.  -->
  1317      <!-- -- >
  1318      <!-- Yo u will nee d to adjus t the Sock et Manager  service c onfigurati on if you  want -->
  1319      <!-- to  enable se cure socke ts (TLS) f or any Jam es service .                          -->
  1320      <!-- -- >
  1321      <!-- Co mplex or h igh volume  configura tions may  require ch anges to t he paramet ers -->
  1322      <!-- in  this sect ion.  Plea se read th e James an d Avalon d ocumentati on before  -->
  1323      <!-- at tempting t o adjust t his sectio n. -->
  1324      <!-- -- >
  1325  
  1326      <!-- Th e Connecti on Manager  block -->
  1327      <!-- -- >
  1328      <!-- Th e idle-tim eout is th e number o f millisec onds that  it will ta ke for idl e -->
  1329      <!-- cl ient conne ctions man aged by th is connect ion manage r to be ma rked at ti med out. - ->
  1330      <!-- If  no value  is specifi ed, the va lue defaul ts to 5 mi nutes, 300 000 millis econds -->
  1331      <!-- A  value of 0  means tha t client s ockets wil l not time out. -->
  1332      <!-- -- >
  1333      <!-- Th e max-conn ections pa rameter sp ecifies th e default  maximum nu mber of cl ient -->
  1334      <!-- co nnections  that this  connection  manager w ill allow  per manage d server s ocket. -->
  1335      <!-- Th is value c an be over ridden by  each indiv idual serv ice. -->
  1336      <!-- If  no value  is specifi ed, the va lue defaul ts to 30.  -->
  1337      <!-- A  value of 0  creates a  maximum o f 1 connec tion due t o the use  of the Har dResourceL imiting -- >
  1338      <!-- th read pool  by the Ser verConnect ion class.  -->
  1339      <!-- Re source lim itations i mposed by  other comp onents (i. e. max # o f threads)  may -->
  1340      <!-- se rve to lim it the num ber of ope n connecti ons. -->
  1341      <!-- -- >
  1342      <connec tions>
  1343         <idl e-timeout> 300000</id le-timeout >
  1344         <max -connectio ns>30</max -connectio ns>
  1345      </conne ctions>
  1346  
  1347      <!-- Th e Socket M anager blo ck -->
  1348      <!-- -- >
  1349      <!-- Th e server-s ockets ele ment has a  number of  factory s ub-element s. -->
  1350      <!-- Ea ch of the  factory el ements has  a name an d class at tribute -- >
  1351      <!-- Th e name att ribute for  each fact ory elemen t must be  unique.  - ->
  1352      <!-- Th e class at tribute is  the name  of a class  that impl ements the  -->
  1353      <!-- in terface or g.apache.a valon.corn erstone.se rvices.Ser verSocketF actory -->
  1354      <!-- Sp ecific fac tory eleme nts may re quire some  sub-eleme nts.  This  is -->
  1355      <!-- fa ctory clas s dependen t. -->
  1356      <!-- -- >
  1357      <!-- Th e client-s ockets ele ment has a  number of  factory s ub-element s. -->
  1358      <!-- Ea ch of the  factory el ements has  a name an d class at tribute -- >
  1359      <!-- Th e name att ribute for  each fact ory elemen t must be  unique.  - ->
  1360      <!-- Th e class at tribute is  the name  of a class  that impl ements the  -->
  1361      <!-- in terface or g.apache.a valon.corn erstone.se rvices.Soc ketFactory  -->
  1362      <!-- Sp ecific fac tory eleme nts may re quire some  sub-eleme nts.  This  is -->
  1363      <!-- fa ctory clas s dependen t. -->
  1364      <!-- -- >
  1365      <!-- In  order to  use the ss l factory  under Java  1.5 and s upport all  Clients - ->
  1366      <!-- (p articularl y Mozilla  Thunderbir d) you nee d to insta ll the Sun  JCE -->
  1367      <!-- pr ovider in  your envir onment (ja mes/lib) - ->
  1368      <!-- e. g: jre/lib /ext/sunjc e_provider .jar -->
  1369      <!--  - ->
  1370      <socket s>
  1371         <ser ver-socket s>
  1372            < factory na me="plain"  class="or g.apache.a valon.corn erstone.bl ocks.socke ts.Default ServerSock etFactory" />
  1373            < !--
  1374            < factory na me="ssl" c lass="org. apache.ava lon.corner stone.bloc ks.sockets .TLSServer SocketFact ory">
  1375                <ssl-fac tory>
  1376                   <keys tore>
  1377                      <f ile>conf/k eystore</f ile>
  1378                      <p assword>se cret</pass word>
  1379                      <k ey-passwor d>keysecre t</key-pas sword>
  1380                      <t ype>JKS</t ype>
  1381                      <p rotocol>TL S</protoco l>
  1382                      <a lgorithm>S unX509</al gorithm>
  1383                      <a uthenticat e-client>f alse</auth enticate-c lient>
  1384                   </key store>
  1385                </ssl-fa ctory>
  1386            < /factory>
  1387            - ->
  1388         </se rver-socke ts>
  1389         <cli ent-socket s>
  1390            < factory na me="plain"  class="or g.apache.a valon.corn erstone.bl ocks.socke ts.Default SocketFact ory"/>
  1391         </cl ient-socke ts>
  1392      </socke ts>
  1393  
  1394      <!-- Th e Thread M anager blo ck -->
  1395      <!-- -- >
  1396      <!-- Th e thread m anager pro vides thre ad pools f or use thr oughout th e server.  -->
  1397      <!-- -- >
  1398      <!-- A  thread poo l with the  name "def ault" must  be define d in this  thread man ager -->
  1399      <!-- co nfiguratio n. -->
  1400      <!-- -- >
  1401      <!-- Ea ch thread  pool is de fined with  a "thread -group" el ement. -->
  1402      <!-- Ea ch of thes e elements  has the f ollowing r equired su b-elements : -->
  1403      <!--    name - the  name of t he thread  pool, used  by other  components  to -->
  1404      <!--           loo kup the th read pool  -->
  1405      <!--    priority -  the threa d priority  for threa ds in the  pool.  Thi s is -->
  1406      <!--                a value b etween 0 a nd 10, wit h 5 being  the normal  -->
  1407      <!--                priority  and 10 bei ng the max imum. -->
  1408      <!--    is-daemon  - whether  the thread s in the p ool are da emon threa ds. -->
  1409      <!--    max-thread s - the ma ximum numb er of thre ads allowe d in the p ool. -->
  1410      <!--    min-thread s - the mi nimum numb er of thre ads allowe d in the p ool. (not  implemente d) -->
  1411      <!--    min-spare- threads -  (not imple mented) -- >
  1412      <thread -manager>
  1413         <thr ead-group>
  1414            < name>defau lt</name>
  1415            < priority>5 </priority >
  1416            < is-daemon> false</is- daemon>
  1417            < max-thread s>100</max -threads>
  1418            < min-thread s>20</min- threads>
  1419            < min-spare- threads>20 </min-spar e-threads>
  1420         </th read-group >
  1421      </threa d-manager>
  1422   </config>