Advertisement
tieungao88

DBmail

Sep 24th, 2016
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.29 KB | None | 0 0
  1.  
  2. # (c) 2000-2006 IC&S, The Netherlands
  3. #
  4. # Configuration file for DBMAIL
  5.  
  6. [DBMAIL]
  7. #
  8. # Database settings
  9. #
  10. # database connection URI
  11.  
  12. # dburi = mysql
  13.  
  14. #
  15. # Supported drivers are sql, ldap.
  16. #
  17. authdriver = sql
  18.  
  19. #
  20. #
  21. # following fields are now DEPRECATED!
  22. driver = mysql
  23. host = 172.16.31.72
  24. sqlport = 3306
  25. sqlsocket = /var/lib/mysql/mysql.sock
  26. user = dbmail
  27. pass = ******
  28. db = dbmail
  29.  
  30. #
  31. # Number of database connections per threaded daemon
  32. # This also determines the size of the worker threadpool
  33. #
  34. # Do NOT increase this without proper consideration. A
  35. # very large database/worker pool will not only increase
  36. # the connection pressure on the database, but will more
  37. # significantly cause unnecessary context-switching in
  38. # your CPUs.
  39. #
  40. #max_db_connections = 10
  41.  
  42. #
  43. # Table prefix. Defaults to "dbmail_" if not specified.
  44. #
  45. table_prefix = dbmail_
  46.  
  47. #
  48. # encoding must match the database/table encoding.
  49. # i.e. latin1, utf8
  50. encoding = utf8
  51.  
  52. #
  53. # messages with unknown encoding will be assumed to have
  54. # default_msg_encoding
  55. # i.e. iso8859-1, utf8
  56. default_msg_encoding = utf8
  57.  
  58. #
  59. # Postmaster's email address for use in bounce messages.
  60. #
  61. #postmaster = DBMAIL-MAILER
  62.  
  63. #
  64. # Sendmail executable for forwards, replies, notifies, vacations.
  65. # You may use pipes (|) in this command, for example:
  66. # dos2unix|/usr/sbin/sendmail works well with Qmail.
  67. # You may use quotes (") for executables with unusual names.
  68. #
  69. sendmail = /usr/sbin/sendmail
  70.  
  71. #
  72. #
  73. # The following items can be overridden in the service-specific sections.
  74. #
  75. #
  76.  
  77. #
  78. # Logging via stderr/log file and syslog
  79. #
  80. # Logging is broken up into 8 logging levels and each level can be indivually turned on or off.
  81. # The Stderr/log file logs all entries to stderr or the log file.
  82. # Syslog logging uses the facility mail and the logging level of the event for logging.
  83. # Syslog can then be configured to log data according to the levels.
  84. #
  85. # Set the log level to the sum of the values next to the levels you want to record.
  86. # 1 = Emergency
  87. # 2 = Alert
  88. # 4 = Critical
  89. # 8 = Error
  90. # 16 = Warning
  91. # 32 = Notice
  92. # 64 = Info
  93. # 128 = Debug
  94. # 256 = Database -> Logs at debug level
  95. #
  96. # Examples: 0 = Nothing
  97. # 31 = Emergency + Alert + Critical + Error + Warning
  98. # 511 = Everything
  99. #
  100. file_logging_levels = 7
  101. #
  102. syslog_logging_levels = 31
  103.  
  104. #
  105. # Generate a log entry for database queries for the log level at number of seconds of query execution time.
  106. #
  107. query_time_info = 10
  108. query_time_notice = 20
  109. query_time_warning = 30
  110.  
  111. #
  112. # Throw an exception is the query takes longer than query_timeout seconds
  113. query_timeout = 300
  114.  
  115. #
  116. # Root privs are used to open a port, then privs
  117. # are dropped down to the user/group specified here.
  118. #
  119. effective_user = nobody
  120. effective_group = nogroup
  121.  
  122. #
  123. # The IPv4 and/or IPv6 addresses the services will bind to.
  124. # Use * for all local interfaces.
  125. # Use 127.0.0.1 for localhost only.
  126. # Separate multiple entries with spaces ( ) or commas (,).
  127. #
  128. bindip = 0.0.0.0 # IPv4 only - all IP's
  129. #bindip = :: # IPv4 and IPv6 - all IP's (linux)
  130. #bindip = :: # IPv6 only - all IP's (BSD)
  131. #bindip = 0.0.0.0,:: # IPv4 and IPv6 - all IP's (BSD)
  132.  
  133.  
  134. #
  135. # The maximum length of the queue of pending connections. See
  136. # listen(2) for more information
  137. #
  138. # backlog = 128
  139.  
  140. #
  141. # Idle time allowed before a connection is shut off.
  142. #
  143. timeout = 300
  144.  
  145. #
  146. # Idle time allowed before a connection is shut off if you have not logged in yet.
  147. #
  148. login_timeout = 60
  149.  
  150. #
  151. # If yes, resolves IP addresses to DNS names when logging.
  152. #
  153. resolve_ip = no
  154.  
  155. #
  156. # If yes, keep statistics in the authlog table for connecting users
  157. #
  158. authlog = no
  159.  
  160. #
  161. # logfile for stdout messages
  162. #
  163. logfile = /var/log/dbmail.log
  164.  
  165. #
  166. # logfile for stderr messages
  167. #
  168. errorlog = /var/log/dbmail.err
  169.  
  170. #
  171. # directory for storing PID files
  172. #
  173. pid_directory = /var/run
  174.  
  175. #
  176. # directory for locating libraries (normally has a sane default compiled-in)
  177. #
  178. #library_directory = /usr/lib/dbmail
  179.  
  180. #
  181. # SSL/TLS certificates
  182. #
  183. # A file containing a list of CAs in PEM format
  184. tls_cafile =
  185.  
  186. # A file containing a PEM format certificate
  187. tls_cert =
  188.  
  189. # A file containing a PEM format RSA or DSA key
  190. tls_key =
  191.  
  192. # A cipher list string in the format given in ciphers(1)
  193. tls_ciphers =
  194.  
  195.  
  196. # hashing algorithm. You can select your favorite hash type
  197. # for generating unique ids for message parts.
  198. #
  199. # for valid values check mhash(3) but minus the MHASH_ prefix.
  200. #
  201. # if you ever change this value run 'dbmail-util --rehash' to
  202. # update the hash for all mimeparts.
  203. #
  204. # examples: MD5, SHA1, SHA256, SHA512, TIGER, WHIRLPOOL
  205. #
  206. # hash_algorithm = SHA1
  207.  
  208.  
  209. # header_cache tuning
  210. #
  211. # set header_cache_readonly to 'yes' to prevent new
  212. # unknown header-names from being cached.
  213. #
  214. # header_cache_readonly = yes
  215.  
  216.  
  217.  
  218. [LMTP]
  219. port = 24
  220. #tls_port =
  221.  
  222.  
  223. [POP]
  224. port = 110
  225. #tls_port = 995
  226.  
  227. # You can set an alternate banner to display when connecting to the service
  228. # banner = DBMAIL pop3 server ready to rock
  229.  
  230. # If TLS is enabled, login before starttls is normally
  231. # allowed. Use login_disabled=yes to change this
  232. #
  233. # login_disabled = no
  234.  
  235. #
  236. # If yes, allows SMTP access from the host IP connecting by POP3.
  237. # This requires addition configuration of your MTA
  238. #
  239. pop_before_smtp = no
  240.  
  241. [HTTP]
  242. port = 41380
  243. #
  244. # the httpd daemon provides full access to all users, mailboxes
  245. # and messages. Be very careful with this one!
  246. bindip = 127.0.0.1
  247. admin = admin:secret
  248.  
  249. [IMAP]
  250. # You can set an alternate banner to display when connecting to the service
  251. # banner = imap 4r1 server (dbmail 2.3.x)
  252.  
  253. #
  254. # Port to bind to.
  255. #
  256. port = 143
  257. #tls_port = 993
  258.  
  259. #
  260. # IMAP prefers a longer timeout than other services.
  261. #
  262. timeout = 4000
  263.  
  264. #
  265. # If yes, allows SMTP access from the host IP connecting by IMAP.
  266. # This requires addition configuration of your MTA
  267. #
  268. imap_before_smtp = no
  269.  
  270. #
  271. # during IDLE, how many seconds between checking the mailbox
  272. # status (default: 30)
  273. #
  274. # idle_timeout = 30
  275.  
  276. # during IDLE, how often should the server send an '* OK' still
  277. # here message (default: 10)
  278. #
  279. # the time between such a message is idle_timeout * idle_interval
  280. # seconds
  281. #
  282. # idle_interval = 10
  283.  
  284. #
  285. # If TLS is enabled, login before starttls is normally
  286. # not allowed. Use login_disabled=no to change this
  287. #
  288. # login_disabled = yes
  289.  
  290. #
  291. # Provide a CAPABILITY to override the default
  292. #
  293. # capability = IMAP4 IMAP4rev1 AUTH=LOGIN ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE
  294.  
  295. # max message size. You can specify the maximum message size
  296. # accepted by the IMAP daemon during APPEND commands.
  297. #
  298. # Supported formats:
  299. # decimal: 1000000
  300. # octal: 03777777
  301. # hex: 0xfffff
  302. #
  303. # max_message_size =
  304.  
  305.  
  306. [SIEVE]
  307. #
  308. # Port to bind to.
  309. #
  310. port = 2000
  311. tls_port =
  312.  
  313.  
  314. [LDAP]
  315. port = 389
  316. version = 3
  317. hostname = ldap
  318. base_dn = ou=People,dc=mydomain,dc=com
  319.  
  320. #
  321. # If your LDAP library supports ldap_initialize(), then you can use the
  322. # alternative LDAP server DSN like following.
  323. #
  324. # URI = ldap://127.0.0.1:389
  325. # URI = ldapi://%2fvar%2frun%2fopenldap%2fldapi/
  326.  
  327. #
  328. # Leave blank for anonymous bind.
  329. # example: cn=admin,dc=mydomain,dc=com
  330. #
  331. bind_dn =
  332.  
  333. #
  334. # Leave blank for anonymous bind.
  335. #
  336. bind_pw =
  337. scope = SubTree
  338.  
  339. # AD users may want to set this to 'no' to disable
  340. # ldap referrals if you are seeing 'Operations errors'
  341. # in your logs
  342. #
  343. referrals = yes
  344.  
  345. user_objectclass = top,account,dbmailUser
  346. forw_objectclass = top,account,dbmailForwardingAddress
  347. cn_string = uid
  348. field_passwd = userPassword
  349. field_uid = uid
  350. field_nid = uidNumber
  351. min_nid = 10000
  352. max_nid = 15000
  353. field_cid = gidNumber
  354. min_cid = 10000
  355. max_cid = 15000
  356.  
  357. # a comma-separated list of attributes to match when searching
  358. # for users or forwards that match a delivery address. A match
  359. # on any of them is a hit.
  360. field_mail = mail
  361.  
  362. # field that holds the mail-quota size for a user.
  363. field_quota = mailQuota
  364.  
  365. # field that holds the forwarding address.
  366. field_fwdtarget = mailForwardingAddress
  367.  
  368. # override the query string used to search for users
  369. # or forwards with a delivery address.
  370. # query_string = (mail=%s)
  371.  
  372. [DELIVERY]
  373. #
  374. # Run Sieve scripts as messages are delivered.
  375. #
  376. SIEVE = yes
  377.  
  378. #
  379. # Use 'user+mailbox@domain' format to deliver to a mailbox.
  380. #
  381. SUBADDRESS = yes
  382.  
  383. #
  384. # Turn on/off the Sieve Vacation extension.
  385. #
  386. SIEVE_VACATION = yes
  387.  
  388. #
  389. # Turn on/off the Sieve Notify extension
  390. #
  391. SIEVE_NOTIFY = yes
  392.  
  393. #
  394. # Turn on/off additional Sieve debugging.
  395. #
  396. SIEVE_DEBUG = no
  397.  
  398.  
  399. # Use the auto_notify table to send email notifications.
  400. #
  401. AUTO_NOTIFY = no
  402.  
  403. #
  404. # Use the auto_reply table to send away messages.
  405. #
  406. AUTO_REPLY = no
  407.  
  408. #
  409. # Defaults to "NEW MAIL NOTIFICATION"
  410. #
  411. #AUTO_NOTIFY_SUBJECT =
  412.  
  413. #
  414. # Defaults to POSTMASTER from the DBMAIL section.
  415. #
  416. #AUTO_NOTIFY_SENDER =
  417.  
  418.  
  419. # If you set this to 'yes' dbmail will check for duplicate
  420. # messages in the relevant mailbox during delivery using
  421. # the Message-ID header
  422. #
  423. suppress_duplicates = no
  424.  
  425. #
  426. # Soft or hard bounce on over-quota delivery
  427. #
  428. quota_failure = hard
  429.  
  430.  
  431. # end of configuration file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement