Produced by Araxis Merge on 8/16/2019 12:02:03 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Direct_DSM.zip\Direct_DSM\configurations\test2\apache-james | config.xml | Tue Aug 13 17:30:04 2019 UTC |
| 2 | Direct_DSM.zip\Direct_DSM\configurations\test2\apache-james | config.xml | Fri Aug 16 14:26:45 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 7 | 1860 |
| Changed | 6 | 14 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 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 e | |
| 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 | <config> | |
| 29 | <James> | |
| 30 | <postmaste r> DNS . URL </postmast er> | |
| 31 | <ser vernames a utodetect= "true" aut odetectIP= "true"> | |
| 32 | <servernam e> DNS . URL </serverna me> | |
| 33 | <servernam e> DNS . URL </serverna me> | |
| 34 | <ser vername>lo calhost</s ervername> | |
| 35 | </se rvernames> | |
| 36 | ||
| 37 | <!-- Set wheth er user na mes are ca se sensiti ve or case insensiti ve --> | |
| 38 | <!-- Set wheth er to enab le local a liases --> | |
| 39 | <!-- Set wheth er to enab le forward ing --> | |
| 40 | <use rnames ign oreCase="t rue" enabl eAliases=" true" enab leForwardi ng="true"/ > | |
| 41 | ||
| 42 | <!-- The inbox repositor y is the l ocation fo r users in boxes --> | |
| 43 | <!-- Default s etting: fi le based r epository - enter pa th ( use "file:///" for absol ute) --> | |
| 44 | <inb oxReposito ry> | |
| 45 | < repository destinati onURL="fil e://var/ma il/inboxes /" type="M AIL"/> | |
| 46 | </in boxReposit ory> | |
| 47 | </James > | |
| 48 | ||
| 49 | &fetchm ailConfig; | |
| 50 | ||
| 51 | <!-- Se t the Java packages from which to load m ailets and matchers --> | |
| 52 | <mailet packages> | |
| 53 | <mai letpackage >org.apach e.james.tr ansport.ma ilets</mai letpackage > | |
| 54 | <mai letpackage >org.apach e.james.tr ansport.ma ilets.smim e</mailetp ackage> | |
| 55 | <mai letpackage >org.nhind irect.gate way.smtp.j ames.maile t</mailetp ackage> | |
| 56 | <mai letpackage >org.nhind .james.mai let</maile tpackage> | |
| 57 | </maile tpackages> | |
| 58 | <matche rpackages> | |
| 59 | <mat cherpackag e>org.apac he.james.t ransport.m atchers</m atcherpack age> | |
| 60 | <mat cherpackag e>org.apac he.james.t ransport.m atchers.sm ime</match erpackage> | |
| 61 | <mat cherpackag e>org.nhin direct.gat eway.smtp. james.matc her</match erpackage> | |
| 62 | <mat cherpackag e>org.nhin d.james.ma tcher</mat cherpackag e> | |
| 63 | </match erpackages > | |
| 64 | ||
| 65 | <!-- Th e James Sp ool Manage r block - -> | |
| 66 | <spoolm anager> | |
| 67 | <thr eads> 10 < /threads> | |
| 68 | <!-- The root processor is a requi red proces sor - Jame s routes a ll mail on the spool --> | |
| 69 | <pro cessor nam e="root"> | |
| 70 | < mailet mat ch="All" c lass="Post masterAlia s"/> | |
| 71 | < !-- Import ant check to avoid l ooping --> | |
| 72 | < mailet mat ch="RelayL imit=30" c lass="Null "/> | |
| 73 | < !-- If inf ected go t o virus pr ocessor -- > | |
| 74 | < mailet mat ch="HasMai lAttribute WithValue= org.apache .james.inf ected, tru e" class=" ToProcesso r"> | |
| 75 | <process or> virus </processo r> | |
| 76 | < /mailet> | |
| 77 | < !-- Anti-s pam proces sing --> | |
| 78 | < !-- The fo llowing tw o entries avoid doub le anti-sp am analysi s --> | |
| 79 | < !-- for fo rwarded me ssages. -- > | |
| 80 | < !-- Has sp am checkin g already been done? --> | |
| 81 | < mailet mat ch="HasMai lAttribute =spamCheck ed" class= "ToProcess or"> | |
| 82 | <process or> transp ort </proc essor> | |
| 83 | < /mailet> | |
| 84 | < !-- Spam c hecking wi ll not be done twice --> | |
| 85 | < mailet mat ch="All" c lass="SetM ailAttribu te"> | |
| 86 | <spamChe cked>true< /spamCheck ed> | |
| 87 | < /mailet> | |
| 88 | < !-- Messag es from au thenticate d senders never are spam --> | |
| 89 | < mailet mat ch="SMTPAu thSuccessf ul" class= "ToProcess or"> | |
| 90 | <process or> transp ort </proc essor> | |
| 91 | < /mailet> | |
| 92 | < !-- People on this l ist agree to pay a p enalty if they send spam --> | |
| 93 | < mailet mat ch="InSpam merBlackli st=query.b ondedsende r.org." | |
| 94 | cla ss="ToProc essor"> | |
| 95 | <processo r> transpo rt </proce ssor> | |
| 96 | < /mailet> | |
| 97 | ||
| 98 | < !-- End of White Lis t --> | |
| 99 | ||
| 100 | < !-- Check for delive ry from a known spam server -- > | |
| 101 | < !-- This s et of matc hers/maile ts redirec t all emai ls from kn own --> | |
| 102 | < !-- black holes, ope n relays, and spam s ervers to the spam p rocessor - -> | |
| 103 | < !-- For th is set to function p roperly, t he spam pr ocessor mu st be conf igured. -- > | |
| 104 | < !-- mailet match="In SpammerBla cklist=dns bl.njabl.o rg." | |
| 105 | cla ss="ToProc essor"> | |
| 106 | <processo r> spam </ processor> | |
| 107 | <notice>5 50 Request ed action not taken: rejected - see http ://njabl.o rg/ </noti ce> | |
| 108 | /mailet--> | |
| 109 | ||
| 110 | < !-- Send r emaining m ails to th e transpor t processo r for eith er local o r remote d elivery -- > | |
| 111 | < mailet mat ch="All" c lass="ToPr ocessor"> | |
| 112 | <process or> transp ort </proc essor> | |
| 113 | < /mailet> | |
| 114 | </pr ocessor> | |
| 115 | ||
| 116 | <!-- The error processor is requir ed. James may inter nally set emails to the --> | |
| 117 | <!-- error sta te. The e rror proce ssor is ge nerally in voked when there is an --> | |
| 118 | <!-- unexpecte d error ei ther in th e mailet c hain or in ternal to James. --> | |
| 119 | <!-- --> | |
| 120 | <!-- By defaul t configur ation all email that generates an error in placed in --> | |
| 121 | <!-- an error repository . --> | |
| 122 | <pro cessor nam e="error"> | |
| 123 | < !-- If you want to n otify the sender the ir message generated an error, uncomment this --> | |
| 124 | < !-- | |
| 125 | < mailet mat ch="All" c lass="Boun ce"/> | |
| 126 | - -> | |
| 127 | < !-- If you want to n otify the postmaster that a me ssage gene rated an e rror, unco mment this --> | |
| 128 | < !-- | |
| 129 | < mailet mat ch="All" c lass="Noti fyPostmast er"/> | |
| 130 | - -> | |
| 131 | ||
| 132 | < !-- Logs a ny message s to the r epository specified --> | |
| 133 | < mailet mat ch="All" c lass="ToRe pository"> | |
| 134 | <reposit oryPath> f ile://var/ mail/error /</reposit oryPath> | |
| 135 | <!-- An alternativ e database repositor y example follows. - -> | |
| 136 | <!-- | |
| 137 | <reposit oryPath> d b://maildb /deadlette r/error </ repository Path> | |
| 138 | --> | |
| 139 | < /mailet> | |
| 140 | </pr ocessor> | |
| 141 | ||
| 142 | <!-- Processor CONFIGURA TION SAMPL E: transpo rt is a sa mple custo m processo r for loca l or --> | |
| 143 | <!-- remote de livery --> | |
| 144 | <pro cessor nam e="transpo rt"> | |
| 145 | ||
| 146 | <! -- This is an exampl e configur ation incl uding conf iguration for a list server. - -> | |
| 147 | <! -- CHECKME : before u ncommentin g this, ed it the con figuration file's co ntents - -> | |
| 148 | <! -- | |
| 149 | &listserve rConfig; | |
| 150 | -- > | |
| 151 | ||
| 152 | < mailet mat ch="SMTPAu thSuccessf ul" class= "SetMimeHe ader"> | |
| 153 | <name>X- UserIsAuth </name> | |
| 154 | <value>t rue</value > | |
| 155 | < /mailet> | |
| 156 | ||
| 157 | < mailet mat ch="HasMai lAttribute =org.apach e.james.SM IMECheckSi gnature" c lass="SetM imeHeader" > | |
| 158 | <name>X- WasSigned< /name> | |
| 159 | <value>t rue</value > | |
| 160 | < /mailet> | |
| 161 | ||
| 162 | <!-- <mai let match= "Recipient IsXdAndNot SMIME=http ://localho st:8081/co nfig-servi ce/Configu rationServ ice" class ="DirectXd Mailet"> | |
| 163 | <Con figURL>htt p://localh ost:8081/c onfig-serv ice/Config urationSer vice</Conf igURL> | |
| 164 | <End pointURL>h ttp://loca lhost:8081 /xd/servic es/Documen tRepositor y_Service< /EndpointU RL> | |
| 165 | </ mailet> | |
| 166 | --> | |
| 167 | <mai let match= "HasHeader =X-VATest2 Processed" class="To Processor" > | |
| 168 | <proce ssor>Direc tOutgoing< /processor > | |
| 169 | </ma ilet> | |
| 170 | ||
| 171 | <mailet ma tch="Recip AndSenderI sNotLocal= DNS . URL " class="N HINDSecuri tyAndTrust MailetCust "> | |
| 172 | <Con figURL>htt p://localh ost:8081/c onfig-serv ice/Config urationSer vice</Conf igURL> | |
| 173 | <Messa geMonitori ngServiceU RL>http:// localhost: 8081/msg-m onitor</Me ssageMonit oringServi ceURL> | |
| 174 | <AutoD SNFailueCr eation>Gen eral</Auto DSNFailueC reation> | |
| 175 | </ma ilet> | |
| 176 | ||
| 177 | <mai let match= "IsNotific ation" cla ss="Suppre ssAndTrack Aggregate" > | |
| 178 | <Message Monitoring ServiceURL >http://lo calhost:80 81/msg-mon itor</Mess ageMonitor ingService URL> | |
| 179 | <Consume MDNProcess ed>true</C onsumeMDNP rocessed> | |
| 180 | </ mailet> | |
| 181 | ||
| 182 | <mai let match= "All" clas s="AddHead er"> | |
| 183 | <name> X-VATest2P rocessed</ name> | |
| 184 | <value >true</val ue> | |
| 185 | </ma ilet> | |
| 186 | ||
| 187 | <mai let match= "HasHeader =X-WasSign ed" class= "ToProcess or"> | |
| 188 | <proce ssor>Direc tOutgoing< /processor > | |
| 189 | </ma ilet> | |
| 190 | ||
| 191 | <mailet ma tch="Recip HostIsLoca l= DNS . URL " class="T oProcessor "> | |
| 192 | <proce ssor>Direc tIncoming< /processor > | |
| 193 | </ma ilet> | |
| 194 | ||
| 195 | <mai let match= "All" clas s="ToProce ssor"> | |
| 196 | <proce ssor>Direc tOutgoing< /processor > | |
| 197 | </ma ilet> | |
| 198 | </pr ocessor> | |
| 199 | ||
| 200 | <!-- Processor CONFIGURA TION SAMPL E: spam is a sample custom pro cessor for handling --> | |
| 201 | <!-- spam. --> | |
| 202 | <!-- You can e ither log these, bou nce these, or just i gnore them . --> | |
| 203 | <pro cessor nam e="spam"> | |
| 204 | < !-- To log the messa ge to a re pository, this match er/mailet configurat ion should be uncomm ented. --> | |
| 205 | < !-- This i s the defa ult config uration. - -> | |
| 206 | < mailet mat ch="All" c lass="ToRe pository"> | |
| 207 | <reposit oryPath>fi le://var/m ail/spam/< /repositor yPath> | |
| 208 | <!-- | |
| 209 | <reposit oryPath> d b://maildb /deadlette r/spam </r epositoryP ath> | |
| 210 | --> | |
| 211 | < /mailet> | |
| 212 | </pr ocessor> | |
| 213 | ||
| 214 | <!-- messages containing viruses. --> | |
| 215 | <pro cessor nam e="virus"> | |
| 216 | < !-- To avo id a loop while boun cing --> | |
| 217 | < mailet mat ch="All" c lass="SetM ailAttribu te"> | |
| 218 | <org.apa che.james. infected>t rue, bounc ing</org.a pache.jame s.infected > | |
| 219 | < /mailet> | |
| 220 | ||
| 221 | < !-- If the sender is authentic ated, noti fy the inf ection --> | |
| 222 | < mailet mat ch="SMTPAu thSuccessf ul" class= "Bounce"> | |
| 223 | <inline> heads</inl ine> | |
| 224 | <attachm ent>none</ attachment > | |
| 225 | <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> | |
| 226 | < /mailet> | |
| 227 | ||
| 228 | < !-- In any other sit uation gho st it, --> | |
| 229 | < !-- as vir uses almos t always s poof the s ender's ad dress --> | |
| 230 | < mailet mat ch="All" c lass="Null " /> | |
| 231 | </pr ocessor> | |
| 232 | ||
| 233 | <!-- This proc essor hand les messag es that ar e for loca l domains, where the user is u nknown --> | |
| 234 | <pro cessor nam e="local-a ddress-err or"> | |
| 235 | < mailet mat ch="All" c lass="ToRe pository"> | |
| 236 | <reposit oryPath> f ile://var/ mail/addre ss-error/< /repositor yPath> | |
| 237 | <!-- An alternativ e database repositor y example follows. - -> | |
| 238 | <!-- | |
| 239 | <reposit oryPath> d b://maildb /deadlette r/address- error </re positoryPa th> | |
| 240 | --> | |
| 241 | < /mailet> | |
| 242 | </pr ocessor> | |
| 243 | ||
| 244 | <!-- This proc essor hand les messag es that ar e for fore ign domain s, where r elaying is denied -- > | |
| 245 | <!-- As of Jam es v2.2, t his proces sor can be deprecate d by using the <auth orizedAddr esses> tag | |
| 246 | in the SM TP Server, and rejec ting the m essage in the protoc ol transac tion. --> | |
| 247 | <pro cessor nam e="relay-d enied"> | |
| 248 | < !-- To not ify the se nder the a ddress was invalid, uncomment this match er/mailet configurat ion --> | |
| 249 | < !-- The or iginal mes sage is no t attached to keep t he bounce processor from deliv erying spa m --> | |
| 250 | < !-- | |
| 251 | < mailet mat ch="All" c lass="Boun ce"> | |
| 252 | <attachm ent>none</ attachment > | |
| 253 | < /mailet> | |
| 254 | - -> | |
| 255 | ||
| 256 | < !-- To not ify the po stmaster t hat a rela y request was denied , uncommen t this mat cher/maile t configur ation --> | |
| 257 | < !-- | |
| 258 | < mailet mat ch="All" c lass="Noti fyPostmast er"/> | |
| 259 | - -> | |
| 260 | ||
| 261 | < mailet mat ch="All" c lass="ToRe pository"> | |
| 262 | <reposit oryPath>fi le://var/m ail/relay- denied/</r epositoryP ath> | |
| 263 | <!-- An alternativ e database repositor y example follows. - -> | |
| 264 | <!-- | |
| 265 | <reposit oryPath> d b://maildb /deadlette r/relay-de nied </rep ositoryPat h> | |
| 266 | --> | |
| 267 | < /mailet> | |
| 268 | </pr ocessor> | |
| 269 | ||
| 270 | <! -- Process or for out going Dire ct message s --> | |
| 271 | <p rocessor n ame="Direc tOutgoing" > | |
| 272 | <m ailet matc h="All" cl ass="Remot eDelivery" > | |
| 273 | <gateway> DNS . URL : PORT </gateway> | |
| 274 | </ mailet> | |
| 275 | ||
| 276 | <mai let match= "All" clas s="ToProce ssor"> | |
| 277 | <proce ssor>Finis hed</proce ssor> | |
| 278 | </ma ilet> | |
| 279 | </proc essor> | |
| 280 | ||
| 281 | ||
| 282 | <p rocessor n ame="Direc tIncoming" > | |
| 283 | <mailet ma tch="Sende rHostIsLoc al= DNS . URL " class="T oProcessor "> | |
| 284 | <proce ssor>Sende rIsLocal</ processor> | |
| 285 | </ma ilet> | |
| 286 | <mai let match= "All" clas s="StoreMa il"></mail et> | |
| 287 | <mai let match= "All" clas s="ToProce ssor"> | |
| 288 | <proce ssor>Finis hed</proce ssor> | |
| 289 | </ma ilet> | |
| 290 | < /processor > | |
| 291 | ||
| 292 | <p rocessor n ame="Sende rIsLocal"> | |
| 293 | <mai let match= "RemoteAdd rNotInNetw ork=127.0. 0.1,10.226 .84.180" c lass="ToPr ocessor"> | |
| 294 | <proce ssor>Finis hed</proce ssor> | |
| 295 | </ma ilet> | |
| 296 | <mai let match= "All" clas s="LocalMa ilet"> | |
| 297 | <Config URL>http:/ /localhost :8081/conf ig-service /Configura tionServic e</ConfigU RL> | |
| 298 | </ma ilet> | |
| 299 | <mai let match= "All" clas s="StoreMa il"></mail et> | |
| 300 | <mai let match= "All" clas s="ToProce ssor"> | |
| 301 | <proce ssor>Finis hed</proce ssor> | |
| 302 | </ma ilet> | |
| 303 | </ processor> | |
| 304 | ||
| 305 | ||
| 306 | <p rocessor n ame="Finis hed"> | |
| 307 | </ processor> | |
| 308 | ||
| 309 | <!-- This proc essor hand le the bou nces from RemoteDeli very: As o f James v2 .3, this i s the new --> | |
| 310 | <!-- Default. --> | |
| 311 | <!-- --> | |
| 312 | <!-- DSNBounce properly create a D SN complia nt bounce --> | |
| 313 | <pro cessor nam e="bounces "> | |
| 314 | < mailet mat ch="All" c lass="DSNB ounce"> | |
| 315 | <passThr ough>false </passThro ugh> | |
| 316 | </mailet> | |
| 317 | </pr ocessor> | |
| 318 | </spool manager> | |
| 319 | <dnsser ver> | |
| 320 | <ser vers> | |
| 321 | < !--Enter i p address of your DN S server, one IP add ress per s erver --> | |
| 322 | < !-- elemen t. --> | |
| 323 | <ser ver>127.0. 0.1</serve r> | |
| 324 | </se rvers> | |
| 325 | <!-- Change au todiscover to false if you wou ld like to turn off autodiscov ery --> | |
| 326 | <!-- and set t he DNS ser vers manua lly in the <servers> section - -> | |
| 327 | <aut odiscover> true</auto discover> | |
| 328 | <aut horitative >false</au thoritativ e> | |
| 329 | ||
| 330 | <!-- Maximum n umber of e ntries to maintain i n the DNS cache --> | |
| 331 | <max cachesize> 50000</max cachesize> | |
| 332 | </dnsse rver> | |
| 333 | ||
| 334 | <!-- Th e RemoteMa nager serv er is enab led by def ault --> | |
| 335 | <!-- Di sabling bl ocks will stop them from liste ning, --> | |
| 336 | <!-- bu t does not free as m any resour ces as rem oving them would --> | |
| 337 | <remote manager en abled="fal se"> | |
| 338 | <por t>4555</po rt> | |
| 339 | <!-- Uncommen t this if you want t o bind to a specific inetaddre ss --> | |
| 340 | <bin d>127.0.0. 1</bind> | |
| 341 | <!-- Uncommen t this if you want t o use TLS (SSL) on t his port - -> | |
| 342 | <!-- | |
| 343 | <use TLS>true</ useTLS> | |
| 344 | --> | |
| 345 | <han dler> | |
| 346 | < !-- This i s the name used by t he server to identif y itself i n the Remo teManager --> | |
| 347 | < !-- protoc ol. If au todetect i s TRUE, th e server w ill discov er its --> | |
| 348 | < !-- own ho st name an d use that in the pr otocol. I f discover y fails, - -> | |
| 349 | < !-- the va lue of 'lo calhost' i s used. I f autodete ct is FALS E, James - -> | |
| 350 | < !-- will u se the spe cified val ue. --> | |
| 351 | < helloName autodetect ="true">my MailServer </helloNam e> | |
| 352 | < administra tor_accoun ts> | |
| 353 | <!-- CHECK ME! --> | |
| 354 | <!-- Cha nge the de fault logi n/password . --> | |
| 355 | <account login="ja mes" passw ord="XXXXX XXX"/> | |
| 356 | < /administr ator_accou nts> | |
| 357 | < connection timeout> 6 0000 </con nectiontim eout> | |
| 358 | < !-- The pr ompt direc tive adds a prompt t o every ou tput from RemoteMana ger --> | |
| 359 | < !-- | |
| 360 | < prompt>jam es></pr ompt> | |
| 361 | - -> | |
| 362 | </ha ndler> | |
| 363 | </remot emanager> | |
| 364 | ||
| 365 | <!-- T he POP3 se rver is en abled by d efault --> | |
| 366 | <!-- D isabling b locks will stop them from list ening, --> | |
| 367 | <!-- b ut does no t free as many resou rces as re moving the m would -- > | |
| 368 | <pop3se rver enabl ed="false" > | |
| 369 | <!-- port 995 is the wel l-known/IA NA registe red port f or POP3S ie over SS L/TLS --> | |
| 370 | <!-- port 110 is the wel l-known/IA NA registe red port f or Standar d POP3 --> | |
| 371 | <por t>110</por t> | |
| 372 | ||
| 373 | <!-- Uncomment this if y ou want to bind to a specific inetaddres s --> | |
| 374 | <!-- | |
| 375 | <bin d> </bind> | |
| 376 | --> | |
| 377 | <!-- Uncommen t this if you want t o use TLS (SSL) on t his port - -> | |
| 378 | <!-- | |
| 379 | <use TLS>true</ useTLS> | |
| 380 | --> | |
| 381 | ||
| 382 | <han dler> | |
| 383 | < !-- This i s the name used by t he server to identif y itself i n the POP3 --> | |
| 384 | < !-- protoc ol. If au todetect i s TRUE, th e server w ill discov er its --> | |
| 385 | < !-- own ho st name an d use that in the pr otocol. I f discover y fails, - -> | |
| 386 | < !-- the va lue of 'lo calhost' i s used. I f autodete ct is FALS E, James - -> | |
| 387 | < !-- will u se the spe cified val ue. --> | |
| 388 | < helloName autodetect ="true">my MailServer </helloNam e> | |
| 389 | < connection timeout>12 0000</conn ectiontime out> | |
| 390 | </ha ndler> | |
| 391 | </pop3s erver> | |
| 392 | ||
| 393 | <!-- T he SMTP se rver is en abled by d efault --> | |
| 394 | <!-- D isabling b locks will stop them from list ening, --> | |
| 395 | <!-- b ut does no t free as many resou rces as re moving the m would -- > | |
| 396 | <smtpse rver enabl ed="true"> | |
| 397 | <!-- port 25 i s the well -known/IAN A register ed port fo r SMTP --> | |
| 398 | <por t>25</port > | |
| 399 | ||
| 400 | <!-- Uncomment this if y ou want to bind to a specific inetaddres s --> | |
| 401 | <!-- Please NO TE: you sh ould add t his IP als o to your RemoteAddr NotInNetwo rk --> | |
| 402 | <!-- in order to avoid r elay check for local lly genera ted bounce s --> | |
| 403 | <!-- | |
| 404 | <bin d> </bind> | |
| 405 | --> | |
| 406 | <!-- Uncomment this if y ou want to use TLS ( SSL) on th is port -- > | |
| 407 | <!-- | |
| 408 | <u seTLS>true </useTLS> | |
| 409 | --> | |
| 410 | <handler> | |
| 411 | < !-- This i s the name used by t he server to identif y itself i n the SMTP --> | |
| 412 | < !-- protoc ol. If au todetect i s TRUE, th e server w ill discov er its --> | |
| 413 | < !-- own ho st name an d use that in the pr otocol. I f discover y fails, - -> | |
| 414 | < !-- the va lue of 'lo calhost' i s used. I f autodete ct is FALS E, James - -> | |
| 415 | < !-- will u se the spe cified val ue. --> | |
| 416 | < helloName autodetect ="true">my MailServer </helloNam e> | |
| 417 | < connection timeout>36 0000</conn ectiontime out> | |
| 418 | ||
| 419 | < !-- Uncom ment this if you wan t to requi re SMTP au thenticati on. | |
| 420 | ||
| 421 | suppo rted value s: | |
| 422 | true: required but announ ced only t o not auth orizedAddr esses | |
| 423 | false : don't us e AUTH | |
| 424 | annou nce: like true, but always ann ounce AUTH capabilit y to clien ts | |
| 425 | ||
| 426 | The c orrect beh aviour per RFC value would be false or a nnounce | |
| 427 | but w e still su pport true for backw ard compat ibility an d because | |
| 428 | some webmail cl ient fails when AUTH is announ ced but no authentic ation | |
| 429 | infor mation has been prov ided | |
| 430 | --> | |
| 431 | < authRequir ed>false</ authRequir ed> | |
| 432 | ||
| 433 | <!-- CHECK ME! --> | |
| 434 | < !-- Uncom ment this if you wan t to autho rize speci fic addres ses/networ ks. | |
| 435 | If yo u use SMTP AUTH, add resses tha t match th ose specif ied here w ill | |
| 436 | be pe rmitted to relay wit hout SMTP AUTH. If you do not use SMTP | |
| 437 | AUTH, and you s pecify add reses here , then onl y addresse s that mat ch | |
| 438 | those specified will be p ermitted t o relay. | |
| 439 | ||
| 440 | Addre sses may b e specifie d as a an IP address or domain name, wit h an | |
| 441 | optio nal netmas k, e.g., | |
| 442 | ||
| 443 | 127.* , 127.0.0. 0/8, 127.0 .0.0/255.0 .0.0, and localhost/ 8 are all the same | |
| 444 | ||
| 445 | See a lso the Re moteAddrNo tInNetwork matcher i n the tran sport proc essor. | |
| 446 | You w ould gener ally use o ne OR the other appr oach. | |
| 447 | - -> | |
| 448 | < !-- | |
| 449 | < authorized Addresses> 127.0.0.0/ 8</authori zedAddress es> | |
| 450 | - -> | |
| 451 | ||
| 452 | < !-- Uncom ment this if you wan t to verif y sender a ddresses, ensuring t hat --> | |
| 453 | < !-- the s ender addr ess matche s the user who has a uthenticat ed. --> | |
| 454 | < !-- This prevents a user of y our mail s erver from acting as someone e lse --> | |
| 455 | < !-- | |
| 456 | < verifyIden tity>true< /verifyIde ntity> | |
| 457 | - -> | |
| 458 | ||
| 459 | < !-- This sets the m aximum all owed messa ge size (i n kilobyte s) for thi s --> | |
| 460 | < !-- SMTP service. I f unspecif ied, the v alue defau lts to 0, which mean s no limit . --> | |
| 461 | < maxmessage size>0</ma xmessagesi ze> | |
| 462 | ||
| 463 | < !-- This sets wethe r to enfor ce the use of HELO/E HLO saluta tion befor e a --> | |
| 464 | < !-- MAIL command is accepted. If unspec ified, the value def aults to t rue --> | |
| 465 | < !-- | |
| 466 | < heloEhloEn forcement> true</helo EhloEnforc ement> | |
| 467 | - -> | |
| 468 | ||
| 469 | < !-- SMTP H andler Cha in customi zation --> | |
| 470 | < !-- Uncomm ent this a nd edit ja mes-smtpha ndlerchain .xml confi guration f ile to --> | |
| 471 | < !-- enable the exper imental fa stfail fea tures. Loo k at the j ames-smtph andlerchai n.xml --> | |
| 472 | < !-- for fu rther info rmations - -> | |
| 473 | < !-- | |
| 474 | & smtphandle rchainConf ig; | |
| 475 | - -> | |
| 476 | ||
| 477 | </ha ndler> | |
| 478 | </smtps erver> | |
| 479 | ||
| 480 | <!-- T he NNTP se rver is en abled by d efault --> | |
| 481 | <!-- D isabling b locks will stop them from list ening, --> | |
| 482 | <!-- b ut does no t free as many resou rces as re moving the m would -- > | |
| 483 | <!-- N NTP-specif ic: if you disable t he NNTP Se rver, you should als o set the nntp-repos itory's | |
| 484 | t hreadCount to 0, oth erwise the re will be threads a ctive and polling - -> | |
| 485 | <nntpse rver enabl ed="false" > | |
| 486 | <!-- TH E NNTP PRO TOCOL IS E XPERIMENTA L AND NOT AS WELL TE STED AS SM TP AND POP 3 IN THIS RELEASE. | |
| 487 | Th e James pr oject reco mmends tha t you chec k the Jame s web site for updat es to the NNTP | |
| 488 | se rvice. -- > | |
| 489 | <!-- port 563 is the wel l-known/IA NA registe red port f or NNTP ov er SSL/TLS --> | |
| 490 | <!-- port 119 is the wel l-known/IA NA registe red port f or Standar d NNTP --> | |
| 491 | <por t>119</por t> | |
| 492 | ||
| 493 | <!-- Uncomment this if y ou want to bind to a specific inetaddres s --> | |
| 494 | <!-- | |
| 495 | <bin d> </bind> | |
| 496 | --> | |
| 497 | <!-- Uncomment this if y ou want to use TLS ( SSL) on t his port - -> | |
| 498 | <!-- | |
| 499 | <use TLS>true</ useTLS> | |
| 500 | --> | |
| 501 | ||
| 502 | <han dler> | |
| 503 | < !-- This i s the name used by t he server to identif y itself i n the NNTP --> | |
| 504 | < !-- protoc ol. If au todetect i s TRUE, th e server w ill discov er its --> | |
| 505 | < !-- own ho st name an d use that in the pr otocol. I f discover y fails, - -> | |
| 506 | < !-- the va lue of 'lo calhost' i s used. I f autodete ct is FALS E, James - -> | |
| 507 | < !-- will u se the spe cified val ue. --> | |
| 508 | < helloName autodetect ="true">my MailServer </helloNam e> | |
| 509 | < connection timeout>12 0000</conn ectiontime out> | |
| 510 | <!-- Set t he authReq uired valu e to true to enable authentica ted NNTP - -> | |
| 511 | < authRequir ed>false</ authRequir ed> | |
| 512 | </ha ndler> | |
| 513 | </nntps erver> | |
| 514 | ||
| 515 | <nntp-r epository> | |
| 516 | <!-- If this i s set to t rue, posti ng will be disallowe d. --> | |
| 517 | <rea dOnly>fals e</readOnl y> | |
| 518 | ||
| 519 | <roo tPath>file ://var/nnt p/groups</ rootPath> | |
| 520 | <tem pPath>file ://var/nnt p/temp</te mpPath> | |
| 521 | <art icleIDPath >file://va r/nntp/art icleid</ar ticleIDPat h> | |
| 522 | <art icleIDDoma inSuffix>n ews.james. apache.org </articleI DDomainSuf fix> | |
| 523 | ||
| 524 | <!-- The news groups hos ted in thi s NNTP rep ository. - -> | |
| 525 | <!-- Groups he re will be added to those foun d in the f ile system , | |
| 526 | but remov ing groups from here will NOT remove the m from the | |
| 527 | server. Change <ne wsgroups> to <newsgr oups only= "true"> to | |
| 528 | restrict newsgroups to ONLY t hose found in this l ist. --> | |
| 529 | <new sgroups> | |
| 530 | < newsgroup> org.apache .james.dev </newsgrou p> | |
| 531 | < newsgroup> org.apache .james.use r</newsgro up> | |
| 532 | < newsgroup> org.apache .avalon.de v</newsgro up> | |
| 533 | < newsgroup> org.apache .avalon.us er</newsgr oup> | |
| 534 | </ne wsgroups> | |
| 535 | ||
| 536 | <spo ol> | |
| 537 | < configurat ion> | |
| 538 | <spoolPa th>file:// var/nntp/s pool</spoo lPath> | |
| 539 | <!-- The number of threads t hat proces s spooler related ta sks. --> | |
| 540 | <threadC ount>1</th readCount> | |
| 541 | <!-- The spool thr ead(s) sho uld idle f or some ti me, if it has nothin g to do - -> | |
| 542 | <threadI dleTime>60 000</threa dIdleTime> | |
| 543 | < /configura tion> | |
| 544 | </sp ool> | |
| 545 | </nntp- repository > | |
| 546 | ||
| 547 | <!-- Sp ool reposi tory confi guration - -> | |
| 548 | <!-- Th e spool re pository i s the loca tion where incoming mails are temporaril y stored - -> | |
| 549 | <!-- be fore being processed . --> | |
| 550 | <spoolr epository destinatio nURL="file ://var/mai l/spool/" type="SPOO L"/> | |
| 551 | ||
| 552 | <!-- Al ternative spool repo sitory def inition fo r JDBC use --> | |
| 553 | <!-- | |
| 554 | <spoolr epository destinatio nURL="db:/ /maildb/sp ool/spool" type="SPO OL"/> | |
| 555 | --> | |
| 556 | ||
| 557 | <!-- Al ternative spool repo sitory def inition fo r JDBC use --> | |
| 558 | <!-- St ores messa ge body in file syst em, rest i n database --> | |
| 559 | <!-- | |
| 560 | <spoolr epository destinatio nURL="dbfi le://maild b/spool/sp ool" type= "SPOOL"/> | |
| 561 | --> | |
| 562 | ||
| 563 | <!-- Th e Mailstor e block -- > | |
| 564 | <mailst ore> | |
| 565 | <rep ositories> | |
| 566 | ||
| 567 | < !-- File b ased repos itories. These repo sitories s tore all m essage dat a --> | |
| 568 | < !-- in the file syst em. --> | |
| 569 | < repository class="or g.apache.j ames.mailr epository. AvalonMail Repository "> | |
| 570 | <protoco ls> | |
| 571 | <prot ocol>file< /protocol> | |
| 572 | </protoc ols> | |
| 573 | <types> | |
| 574 | <type >MAIL</typ e> | |
| 575 | </types> | |
| 576 | < /repositor y> | |
| 577 | < repository class="or g.apache.j ames.mailr epository. AvalonSpoo lRepositor y"> | |
| 578 | <protoco ls> | |
| 579 | <prot ocol>file< /protocol> | |
| 580 | </protoc ols> | |
| 581 | <types> | |
| 582 | <type >SPOOL</ty pe> | |
| 583 | </types> | |
| 584 | < /repositor y> | |
| 585 | ||
| 586 | < !-- JDBC b ased repos itories. These repo sitories s tore all m essage dat a --> | |
| 587 | < !-- in the database. --> | |
| 588 | < repository class="or g.apache.j ames.mailr epository. JDBCMailRe pository"> | |
| 589 | <protoco ls> | |
| 590 | <prot ocol>db</p rotocol> | |
| 591 | </protoc ols> | |
| 592 | <types> | |
| 593 | <type >MAIL</typ e> | |
| 594 | </types> | |
| 595 | <config> | |
| 596 | <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e> | |
| 597 | <!-- Set the si ze thresho ld for in memory han dling of s toring ope rations -- > | |
| 598 | <!-- Default is currently 409600000 due to a bug with m ysql and b inary stre am --> | |
| 599 | <!-- currently under inve stigation. Please ch ange this only if yo u know wha t --> | |
| 600 | <!-- you do, th is is EXPE RIMENTAL - -> | |
| 601 | <!-- | |
| 602 | <inMe morySizeLi mit>4096</ inMemorySi zeLimit> | |
| 603 | --> | |
| 604 | </config > | |
| 605 | < /repositor y> | |
| 606 | ||
| 607 | < repository class="or g.apache.j ames.mailr epository. JDBCSpoolR epository" > | |
| 608 | <protoco ls> | |
| 609 | <prot ocol>db</p rotocol> | |
| 610 | </protoc ols> | |
| 611 | <types> | |
| 612 | <type >SPOOL</ty pe> | |
| 613 | </types> | |
| 614 | <config> | |
| 615 | <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e> | |
| 616 | <maxc ache>1000< /maxcache> | |
| 617 | <!-- Set the si ze thresho ld for in memory han dling of s toring ope rations -- > | |
| 618 | <!-- Default is currently 409600000 due to a bug with m ysql and b inary stre am --> | |
| 619 | <!-- currently under inve stigation. Please ch ange this only if yo u know wha t --> | |
| 620 | <!-- you do, th is is EXPE RIMENTAL - -> | |
| 621 | <!-- | |
| 622 | <inMe morySizeLi mit>4096</ inMemorySi zeLimit> | |
| 623 | --> | |
| 624 | </config > | |
| 625 | < /repositor y> | |
| 626 | ||
| 627 | < !-- These repositori es store m essage del ivery and headers in the DB, a nd the bod y to the f ilesystem --> | |
| 628 | < repository class="or g.apache.j ames.mailr epository. JDBCMailRe pository"> | |
| 629 | <protoco ls> | |
| 630 | <prot ocol>dbfil e</protoco l> | |
| 631 | </protoc ols> | |
| 632 | <types> | |
| 633 | <type >MAIL</typ e> | |
| 634 | </types> | |
| 635 | <config> | |
| 636 | <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e> | |
| 637 | <file store>file ://var/dbm ail</files tore> | |
| 638 | </config > | |
| 639 | < /repositor y> | |
| 640 | ||
| 641 | < repository class="or g.apache.j ames.mailr epository. JDBCSpoolR epository" > | |
| 642 | <protoco ls> | |
| 643 | <prot ocol>dbfil e</protoco l> | |
| 644 | </protoc ols> | |
| 645 | <types> | |
| 646 | <type >SPOOL</ty pe> | |
| 647 | </types> | |
| 648 | <config> | |
| 649 | <sqlF ile>file:/ /conf/sqlR esources.x ml</sqlFil e> | |
| 650 | <file store>file ://var/dbm ail</files tore> | |
| 651 | <maxc ache>1000< /maxcache> | |
| 652 | </config > | |
| 653 | < /repositor y> | |
| 654 | ||
| 655 | < !-- The mb ox reposit ory is des igned for MAIL only; SPOOL per formance w ould be le ss than id eal--> | |
| 656 | < repository class="or g.apache.j ames.mailr epository. MBoxMailRe pository"> | |
| 657 | <protoco ls> | |
| 658 | <prot ocol>mbox< /protocol> | |
| 659 | </protoc ols> | |
| 660 | <types> | |
| 661 | <type >MAIL</typ e> | |
| 662 | </types> | |
| 663 | < /repositor y> | |
| 664 | ||
| 665 | < repository class="or g.apache.j ames.mailr epository. filepair.F ile_Persis tent_Objec t_Reposito ry"> | |
| 666 | <protoco ls> | |
| 667 | <prot ocol>file< /protocol> | |
| 668 | </protoc ols> | |
| 669 | <types> | |
| 670 | <type >OBJECT</t ype> | |
| 671 | </types> | |
| 672 | <models> | |
| 673 | <mode l>SYNCHRON OUS</model > | |
| 674 | <mode l>ASYNCHRO NOUS</mode l> | |
| 675 | <mode l>CACHE</m odel> | |
| 676 | </models > | |
| 677 | < /repositor y> | |
| 678 | ||
| 679 | < repository class="or g.apache.j ames.mailr epository. filepair.F ile_Persis tent_Strea m_Reposito ry"> | |
| 680 | <protoco ls> | |
| 681 | <prot ocol>file< /protocol> | |
| 682 | </protoc ols> | |
| 683 | <types> | |
| 684 | <type >STREAM</t ype> | |
| 685 | </types> | |
| 686 | <models> | |
| 687 | <mode l>SYNCHRON OUS</model > | |
| 688 | <mode l>ASYNCHRO NOUS</mode l> | |
| 689 | <mode l>CACHE</m odel> | |
| 690 | </models > | |
| 691 | < /repositor y> | |
| 692 | </re positories > | |
| 693 | ||
| 694 | </mails tore> | |
| 695 | ||
| 696 | ||
| 697 | <!-- Th e User Sto rage block --> | |
| 698 | <users- store> | |
| 699 | <!-- Configure User Repo sitories h ere. --> | |
| 700 | <!-- --> | |
| 701 | <!-- User repo sitories a re require d for the following purposes: --> | |
| 702 | <!-- - stor ing James user infor mation, in cluding fo rwards, al iases, --> | |
| 703 | <!-- and authentica tion data. --> | |
| 704 | <!-- - hold ing lists of users f or the lis tserv mail et --> | |
| 705 | <!-- Currently , two diff erent stor age option s are avai lable: --> | |
| 706 | <!-- - file -based sto rage using Java seri alization --> | |
| 707 | <!-- - data base-backe d storage --> | |
| 708 | <!-- (Use of d atabase or file-syst em is defi ned on a " per-reposi tory" basi s) --> | |
| 709 | <!-- --> | |
| 710 | <!-- Note: One user repo sitory is required f or James: --> | |
| 711 | <!-- LocalUs ers - the users for whom you a re providi ng POP3, N NTP, or SM TP service --> | |
| 712 | <!-- --> | |
| 713 | <!-- Other rep ositories may be use d by match ers or mai lets. --> | |
| 714 | ||
| 715 | <!-- Default: File-based user repo sitories Use these configurat ions to st ore user i nfo in the filesyste m --> | |
| 716 | <!-- The Local Users repo sitory, fo r storing James' Use r info. -- > | |
| 717 | <rep ository na me="LocalU sers" clas s="org.apa che.james. userreposi tory.Users FileReposi tory"> | |
| 718 | < destinatio n URL="fil e://var/us ers/"/> | |
| 719 | </re pository> | |
| 720 | ||
| 721 | ||
| 722 | <!-- Database backed use r reposito ries --> | |
| 723 | <!-- --> | |
| 724 | <!-- Use these configura tions to s tore user info in a database. --> | |
| 725 | <!-- Note: The <data-sou rce> eleme nt must re fer to a c onnection configured --> | |
| 726 | <!-- in the <datab ase-connec tions> con figuration section. --> | |
| 727 | ||
| 728 | <!-- The Local Users repo sitory, fo r storing James' Use r info. -- > | |
| 729 | <!-- | |
| 730 | <rep ository na me="LocalU sers" clas s="org.apa che.james. userreposi tory.James UsersJdbcR epository" destinati onURL="db: //maildb/u sers"> | |
| 731 | < sqlFile>fi le://conf/ sqlResourc es.xml</sq lFile> | |
| 732 | </re pository> | |
| 733 | --> | |
| 734 | ||
| 735 | <!-- This is a n example configurat ion includ ing config uration fo r a list s erver. --> | |
| 736 | <!-- CHECKME: before unc ommenting this, edit the confi guration f ile's cont ents --> | |
| 737 | <!-- | |
| 738 | &l istserverS tores; | |
| 739 | --> | |
| 740 | ||
| 741 | </users -store> | |
| 742 | ||
| 743 | <!-- Th e database -connectio ns block - -> | |
| 744 | <databa se-connect ions> | |
| 745 | <!-- These con nections a re referre d to by na me elsewhe re in the config fil e --> | |
| 746 | <!-- CHECK ME! --> | |
| 747 | <!-- To allow James to u se a datab ase you mu st configu re the dat abase conn ection her e. --> | |
| 748 | <!-- If you ar e not usin g a databa se, you ca n leave th is section unchanged . --> | |
| 749 | <!-- These con nections a re referre d to by na me in URLs elsewhere in the co nfig file. --> | |
| 750 | <!-- | |
| 751 | James has previousl y used an in-house c onnection pool, Mord red. | |
| 752 | Mordred i s being de precated i n favor of Jakarta C ommons DBC P. | |
| 753 | To use DB CP: org .apache.ja mes.util.d bcp.JdbcDa taSource | |
| 754 | To use Mo rdred: org .apache.ja mes.util.m ordred.Jdb cDataSourc e | |
| 755 | ||
| 756 | Change it back, of course, to use Mordr ed. | |
| 757 | ||
| 758 | NOTE: DBC P is confi gured to r ecover fro m a databa se server outage. | |
| 759 | Thi s, alone, may be rea son for yo u to give it a try. | |
| 760 | --> | |
| 761 | ||
| 762 | <!-- Default J ames distr ibution in cludes Apa che Derby database, --> | |
| 763 | <!-- which is easy to em bed - but we support all the m ajor SQL --> | |
| 764 | <!-- databases - just re configure your JDBC configurat ion --> | |
| 765 | <!-- | |
| 766 | <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e"> | |
| 767 | < driver>org .apache.de rby.jdbc.E mbeddedDri ver</drive r> | |
| 768 | < dburl>jdbc :derby:../ apps/james /var/derby db;create= true</dbur l> | |
| 769 | < user></use r> | |
| 770 | < password>< /password> | |
| 771 | < poolPrepar edStatemen ts>true</p oolPrepare dStatement s> | |
| 772 | < max>20</ma x> | |
| 773 | </da ta-source> | |
| 774 | --> | |
| 775 | ||
| 776 | <!-- JDBC driv er .jar li braries fo r other RD BMS can be placed in ~james/li b/ --> | |
| 777 | ||
| 778 | <!-- You can d ownload la test Conne ctor/J fro m --> | |
| 779 | <!-- http://de v.mysql.co m/download s/connecto r/j/3.1.ht ml --> | |
| 780 | <!-- --> | |
| 781 | <!-- Example, connecting to a MySQ L database called "m ail" on lo calhost--> | |
| 782 | <!-- --> | |
| 783 | <!-- The max v alue is th e maximum number of concurrent connectio ns James w ill --> | |
| 784 | <!-- open to t his databa se--> | |
| 785 | <!-- If you se e "SQLExce ption: Giv ing up... no connect ions avail able." in your --> | |
| 786 | <!-- log files or bounce d mail you should in crease thi s value -- > | |
| 787 | <!-- | |
| 788 | <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e"> | |
| 789 | < driver>com .mysql.jdb c.Driver</ driver> | |
| 790 | < dburl>jdbc :mysql://1 27.0.0.1/m ail?autoRe connect=tr ue</dburl> | |
| 791 | < user>usern ame</user> | |
| 792 | < password>X XXXXXXX</p assword> | |
| 793 | < max>20</ma x> | |
| 794 | </da ta-source> | |
| 795 | --> | |
| 796 | ||
| 797 | <!-- Example, connecting to a Micr osoft MSSQ L database called "m ail" on lo calhost--> | |
| 798 | <!-- --> | |
| 799 | <!-- The max v alue is th e maximum number of concurrent connectio ns James w ill --> | |
| 800 | <!-- open to t his databa se--> | |
| 801 | <!-- If you se e "SQLExce ption: Giv ing up... no connect ions avail able." in your --> | |
| 802 | <!-- log files or bounce d mail you should in crease thi s value -- > | |
| 803 | <!-- | |
| 804 | <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e"> | |
| 805 | < driver>com .inet.tds. TdsDriver< /driver> | |
| 806 | < dburl>jdbc :inetdae7: 127.0.0.1? database=J ames</dbur l> | |
| 807 | < user>sa_ja mes</user> | |
| 808 | < password>X XXXXXXX</p assword> | |
| 809 | < max>20</ma x> | |
| 810 | </da ta-source> | |
| 811 | --> | |
| 812 | ||
| 813 | <!-- Here is a configura tion for h sqldb (for merly Hype rsonicSQL) --> | |
| 814 | <!-- You can d ownload th e db from http://www .hsqldb.or g/ . Just put the -- > | |
| 815 | <!-- hsqldb.ja r in the l ib directo ry and unc omment the following block --> | |
| 816 | <!-- | |
| 817 | <dat a-source n ame="maild b" class=" org.apache .james.uti l.dbcp.Jdb cDataSourc e"> | |
| 818 | < driver>org .hsqldb.jd bcDriver</ driver> | |
| 819 | < dburl>jdbc :hsqldb:ta rget/data/ hsqldb</db url> | |
| 820 | < user>sa</u ser> | |
| 821 | < password>< /password> | |
| 822 | < max>20</ma x> | |
| 823 | </da ta-source> | |
| 824 | --> | |
| 825 | ||
| 826 | </datab ase-connec tions> | |
| 827 | ||
| 828 | <!-- Co nfiguratio n for Corn erstone Se rvices --> | |
| 829 | <!-- -- > | |
| 830 | <!-- Fo r a simple configura tion, noth ing beneat h this lin e should r equire --> | |
| 831 | <!-- al teration. --> | |
| 832 | <!-- -- > | |
| 833 | <!-- Yo u will nee d to adjus t the Sock et Manager service c onfigurati on if you want --> | |
| 834 | <!-- to enable se cure socke ts (TLS) f or any Jam es service . --> | |
| 835 | <!-- -- > | |
| 836 | <!-- Co mplex or h igh volume configura tions may require ch anges to t he paramet ers --> | |
| 837 | <!-- in this sect ion. Plea se read th e James an d Avalon d ocumentati on before --> | |
| 838 | <!-- at tempting t o adjust t his sectio n. --> | |
| 839 | <!-- -- > | |
| 840 | ||
| 841 | <!-- Th e Connecti on Manager block --> | |
| 842 | <!-- -- > | |
| 843 | <!-- Th e idle-tim eout is th e number o f millisec onds that it will ta ke for idl e --> | |
| 844 | <!-- cl ient conne ctions man aged by th is connect ion manage r to be ma rked at ti med out. - -> | |
| 845 | <!-- If no value is specifi ed, the va lue defaul ts to 5 mi nutes, 300 000 millis econds --> | |
| 846 | <!-- A value of 0 means tha t client s ockets wil l not time out. --> | |
| 847 | <!-- -- > | |
| 848 | <!-- Th e max-conn ections pa rameter sp ecifies th e default maximum nu mber of cl ient --> | |
| 849 | <!-- co nnections that this connection manager w ill allow per manage d server s ocket. --> | |
| 850 | <!-- Th is value c an be over ridden by each indiv idual serv ice. --> | |
| 851 | <!-- If no value is specifi ed, the va lue defaul ts to 30. --> | |
| 852 | <!-- A value of 0 creates a maximum o f 1 connec tion due t o the use of the Har dResourceL imiting -- > | |
| 853 | <!-- th read pool by the Ser verConnect ion class. --> | |
| 854 | <!-- Re source lim itations i mposed by other comp onents (i. e. max # o f threads) may --> | |
| 855 | <!-- se rve to lim it the num ber of ope n connecti ons. --> | |
| 856 | <!-- -- > | |
| 857 | <connec tions> | |
| 858 | <idl e-timeout> 300000</id le-timeout > | |
| 859 | <max -connectio ns>30</max -connectio ns> | |
| 860 | </conne ctions> | |
| 861 | ||
| 862 | <!-- Th e Socket M anager blo ck --> | |
| 863 | <!-- -- > | |
| 864 | <!-- Th e server-s ockets ele ment has a number of factory s ub-element s. --> | |
| 865 | <!-- Ea ch of the factory el ements has a name an d class at tribute -- > | |
| 866 | <!-- Th e name att ribute for each fact ory elemen t must be unique. - -> | |
| 867 | <!-- Th e class at tribute is the name of a class that impl ements the --> | |
| 868 | <!-- in terface or g.apache.a valon.corn erstone.se rvices.Ser verSocketF actory --> | |
| 869 | <!-- Sp ecific fac tory eleme nts may re quire some sub-eleme nts. This is --> | |
| 870 | <!-- fa ctory clas s dependen t. --> | |
| 871 | <!-- -- > | |
| 872 | <!-- Th e client-s ockets ele ment has a number of factory s ub-element s. --> | |
| 873 | <!-- Ea ch of the factory el ements has a name an d class at tribute -- > | |
| 874 | <!-- Th e name att ribute for each fact ory elemen t must be unique. - -> | |
| 875 | <!-- Th e class at tribute is the name of a class that impl ements the --> | |
| 876 | <!-- in terface or g.apache.a valon.corn erstone.se rvices.Soc ketFactory --> | |
| 877 | <!-- Sp ecific fac tory eleme nts may re quire some sub-eleme nts. This is --> | |
| 878 | <!-- fa ctory clas s dependen t. --> | |
| 879 | <!-- -- > | |
| 880 | <!-- In order to use the ss l factory under Java 1.5 and s upport all Clients - -> | |
| 881 | <!-- (p articularl y Mozilla Thunderbir d) you nee d to insta ll the Sun JCE --> | |
| 882 | <!-- pr ovider in your envir onment (ja mes/lib) - -> | |
| 883 | <!-- e. g: jre/lib /ext/sunjc e_provider .jar --> | |
| 884 | <!-- - -> | |
| 885 | <socket s> | |
| 886 | <ser ver-socket s> | |
| 887 | < factory na me="plain" class="or g.apache.a valon.corn erstone.bl ocks.socke ts.Default ServerSock etFactory" /> | |
| 888 | < !-- | |
| 889 | < factory na me="ssl" c lass="org. apache.ava lon.corner stone.bloc ks.sockets .TLSServer SocketFact ory"> | |
| 890 | <ssl-fac tory> | |
| 891 | <keys tore> | |
| 892 | <f ile>conf/k eystore</f ile> | |
| 893 | <p assword>XX XXXXXX</pa ssword> | |
| 894 | <k ey-passwor d>XXXXXXXX </key-pass word> | |
| 895 | <t ype>JKS</t ype> | |
| 896 | <p rotocol>TL S</protoco l> | |
| 897 | <a lgorithm>S unX509</al gorithm> | |
| 898 | <a uthenticat e-client>f alse</auth enticate-c lient> | |
| 899 | </key store> | |
| 900 | </ssl-fa ctory> | |
| 901 | < /factory> | |
| 902 | - -> | |
| 903 | </se rver-socke ts> | |
| 904 | <cli ent-socket s> | |
| 905 | < factory na me="plain" class="or g.apache.a valon.corn erstone.bl ocks.socke ts.Default SocketFact ory"/> | |
| 906 | </cl ient-socke ts> | |
| 907 | </socke ts> | |
| 908 | ||
| 909 | <!-- Th e Thread M anager blo ck --> | |
| 910 | <!-- -- > | |
| 911 | <!-- Th e thread m anager pro vides thre ad pools f or use thr oughout th e server. --> | |
| 912 | <!-- -- > | |
| 913 | <!-- A thread poo l with the name "def ault" must be define d in this thread man ager --> | |
| 914 | <!-- co nfiguratio n. --> | |
| 915 | <!-- -- > | |
| 916 | <!-- Ea ch thread pool is de fined with a "thread -group" el ement. --> | |
| 917 | <!-- Ea ch of thes e elements has the f ollowing r equired su b-elements : --> | |
| 918 | <!-- name - the name of t he thread pool, used by other components to --> | |
| 919 | <!-- loo kup the th read pool --> | |
| 920 | <!-- priority - the threa d priority for threa ds in the pool. Thi s is --> | |
| 921 | <!-- a value b etween 0 a nd 10, wit h 5 being the normal --> | |
| 922 | <!-- priority and 10 bei ng the max imum. --> | |
| 923 | <!-- is-daemon - whether the thread s in the p ool are da emon threa ds. --> | |
| 924 | <!-- max-thread s - the ma ximum numb er of thre ads allowe d in the p ool. --> | |
| 925 | <!-- min-thread s - the mi nimum numb er of thre ads allowe d in the p ool. (not implemente d) --> | |
| 926 | <!-- min-spare- threads - (not imple mented) -- > | |
| 927 | <thread -manager> | |
| 928 | <thr ead-group> | |
| 929 | < name>defau lt</name> | |
| 930 | < priority>5 </priority > | |
| 931 | < is-daemon> false</is- daemon> | |
| 932 | < max-thread s>100</max -threads> | |
| 933 | < min-thread s>20</min- threads> | |
| 934 | < min-spare- threads>20 </min-spar e-threads> | |
| 935 | </th read-group > | |
| 936 | </threa d-manager> | |
| 937 | </config> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.