Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.19 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Config>
  3. <!--
  4. Global
  5.  
  6. Global settings for all daemons.
  7.  
  8. Settings here will be set for all daemons, and for Core.
  9. They can be overloaded after this
  10. -->
  11. <Global>
  12. <!--
  13. Name
  14.  
  15. Define this node's name
  16.  
  17. Can be used in any context
  18.  
  19. Example:
  20.  
  21. <Name>mail.example.com</Name>
  22. -->
  23. <Name>localtest</Name>
  24. <!--
  25. PidFile
  26.  
  27. Name of the file where the core daemon's pid is written
  28.  
  29. Not implemented
  30.  
  31. Example:
  32.  
  33. <PidFile>system.pid</PidFile>
  34. -->
  35. <PidFile>system.pid</PidFile>
  36. <Security Strict="0">
  37. <Fork/>
  38. <Chroot/>
  39. <SUID User="nobody" Group="nogroup"/>
  40. </Security>
  41. <Network>
  42. <Bind>
  43. <!--
  44. Ip
  45.  
  46. Defines which IP we should listen to.
  47.  
  48. Attributes:
  49. * External: external IP when in NAT/DMZ configuration (optionnal)
  50. -->
  51. <Ip External="127.0.0.1">127.0.0.1</Ip>
  52. </Bind>
  53. </Network>
  54. <!--
  55. Storage
  56.  
  57. Where to store data.
  58.  
  59. Available drivers: MySQL, SQLite3
  60.  
  61. Examples:
  62.  
  63. <MySQL Login="root" Password="" Host="localhost" Database="test"/>
  64. <SQLite3 File="/tmp/database.sqlite3"/>
  65. -->
  66. <Storage>
  67. <MySQL Login="root" Password="merde" Host="localhost" Database="pinetd2"/>
  68. </Storage>
  69. </Global>
  70. <!--
  71. Daemons
  72.  
  73. Here are the per-daemon configuration options.
  74.  
  75. Settings in this scope will only apply to one kind of daemon.
  76. -->
  77. <Daemons>
  78. <FTPd>
  79. <AnonymousRoot>/var/ftp</AnonymousRoot>
  80. <MaxUsers Anonymous="90%">120</MaxUsers>
  81. <Network MaxUsersPerIp="4"/>
  82. <Identification Login="test" Password="test"/>
  83. </FTPd>
  84. <FTPd_SQL>
  85. <AnonymousRoot>/var/ftp</AnonymousRoot>
  86. <MaxUsers Anonymous="50%">120</MaxUsers>
  87. <Network MaxUsersPerIp="4"/>
  88. <SQL>
  89. <LoginQuery><![CDATA[SELECT password, root FROM users WHERE login = %s]]></LoginQuery>
  90. </SQL>
  91. </FTPd_SQL>
  92. <PMaild>
  93. <Mails Path="spool/phpmaild"/>
  94. <DefaultDomain>example.com</DefaultDomain>
  95. <MTA MaxProcesses="5" StartThreshold="5" MaxAttempt="10" MailMaxLifetime="48"/>
  96. <!-- max mail size in MB, can be decimal with a dot decimal point (ie 0.5) -->
  97. <SMTP MaxMailSize="100"/>
  98. </PMaild>
  99. <!--
  100. DNSd
  101.  
  102. You can configure the DNS daemon as a slave:
  103.  
  104. <DNSd>
  105. <Master Name="GiveMeAName" Host="ns1.example.com" Signature="qwerty" Port="53"/>
  106. </DNSd>
  107.  
  108. OR as master, with a control source:
  109.  
  110. <DNSd>
  111. <PeersArray>
  112. <Peer Name="MyPeer" Signature="qwerty" Type="control"/>
  113. <Peer Name="MySlave" Signature="qwerty" Type="slave"/>
  114. </PeersArray>
  115. </DNSd>
  116. -->
  117. <DNSd>
  118. </DNSd>
  119. <!--
  120. SocketPolicyd
  121.  
  122. This daemon serves socket policies for flash clients. This policy will allow access from example.com to port 1234
  123.  
  124. Port allows definition of ranges & lists, for example 1234,2000-2009. More than one policy can be put
  125.  
  126. <SocketPolicyd>
  127. <PolicyArray>
  128. <Policy Domain="example.com" Ports="1234"/>
  129. </PolicyArray>
  130. </SocketPolicyd>
  131. -->
  132. </Daemons>
  133. <!--
  134. SSL
  135.  
  136. SSL settings (certificates), see examples.
  137. -->
  138. <SSL>
  139. <Certificate name="main">
  140. <Option name="verify_peer" Value="false"/>
  141. <Option name="allow_self_signed" Value="true"/>
  142. <Option name="local_cert" Value="newkey.pem"/>
  143. <Option name="passphrase" Value="" Disabled="1"/>
  144. </Certificate>
  145. <Certificate name="smtp">
  146. <Option name="verify_peer" Value="false"/>
  147. <Option name="allow_self_signed" Value="true"/>
  148. <Option name="cafile" Value="newkey.pem" Disabled="1"/>
  149. <Option name="capath" Value="" Disabled="1"/>
  150. <Option name="local_cert" Value="newkey.pem"/>
  151. <Option name="passphrase" Value="" Disabled="1"/>
  152. <Option name="CN_match" Value="" Disabled="1"/>
  153. </Certificate>
  154. </SSL>
  155. <!--
  156. Processes
  157.  
  158. List of running processes. PortOffset can be used to apply a global
  159. offset to all running daemons.
  160.  
  161. Existing kinds of daemons:
  162. * TCP: standard TCP daemon
  163. * UDP: standard UDP daemon
  164. * Process: A background processor, not opening any fixed network port
  165.  
  166. It is possible to add configuration options inside a daemon (finest scope)
  167. -->
  168. <Processes PortOffset="0">
  169. <!-- FTPd -->
  170. <TCP Port="21" Daemon="FTPd"/>
  171. <TCP Port="990" Daemon="FTPd" SSL="main"/>
  172. <!-- DNSd -->
  173. <UDP Port="53" Daemon="DNSd" Service="UDP"/>
  174. <TCP Port="53" Daemon="DNSd" Service="TCP"/>
  175. <Process Daemon="DNSd" Service="Process"/>
  176. <!-- HTTPd -->
  177. <TCP Port="80" Daemon="HTTPd"/>
  178. <!-- PMaild -->
  179. <TCP Port="25" Daemon="PMaild" Service="SMTP"/>
  180. <TCP Port="587" Daemon="PMaild" Service="SMTP" SSL="~main"/>
  181. <TCP Port="110" Daemon="PMaild" Service="POP3"/>
  182. <TCP Port="995" Daemon="PMaild" Service="POP3" SSL="main"/>
  183. <TCP Port="143" Daemon="PMaild" Service="IMAP4" SSL="~main"/>
  184. <TCP Port="993" Daemon="PMaild" Service="IMAP4" SSL="main"/>
  185. <Process Daemon="PMaild" Service="MTA"/>
  186. <!-- SocketPolicyd -->
  187. <TCP Port="843" Daemon="SocketPolicyd"/>
  188. <TCP>
  189. <Debug Target="/tmp/file_prefix"/>
  190. </TCP>
  191. </Processes>
  192. </Config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement