home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / admin / conf.inc < prev    next >
Encoding:
Text File  |  2003-12-30  |  10.3 KB  |  396 lines

  1. <?php
  2. /********************************************************
  3.     conf/conf.inc
  4.     
  5.     PURPOSE:
  6.         General settings and configuration.
  7.  
  8. ********************************************************/
  9.  
  10.  
  11. /*******  FOR OPTIMAL PERFORMANCE *******
  12.     As you can see this file contains a lot of comments.
  13.     For optimal performance, remove all comments and only
  14.     leave directives you need and use.
  15. */
  16.  
  17.  
  18. /***************** BACKEND ****************
  19.     IlohaMail supports multiple backends, namely, file
  20.     and/or database based.  If a database backend is used,
  21.     a file-based backend can still be used to certain
  22.     features.
  23.     
  24.     Deprecated.  Use conf/db_conf.php
  25. */
  26. $backend = "FS";
  27.  
  28. //    $UPLOAD_DIR path to uploads dir
  29. //    MUST HAVE TRAILING '/'
  30. //    REQUIRED:  Always
  31. $UPLOAD_DIR = "../data/uploads/";
  32.  
  33. //    $CACHE_DIR path to cache dir
  34. //    MUST HAVE TRAILING '/'
  35. //  REQUIRED:  Always (folder it self does not need to exist)
  36. $CACHE_DIR = "../data/cache/";
  37.  
  38. //    $USER_DIR path to users dir
  39. //    MUST HAVE TRAILING'/'
  40. //    REQUIRED:  For FS-backend
  41. $USER_DIR = "../data/users/";
  42.  
  43. //    $SESSION_DIR path to sessions dir
  44. //    MUST HAVE TRAILING '/'
  45. //    REQUIRED:  For FS-backend
  46. $SESSION_DIR = "../data/sessions/";
  47.  
  48.  
  49. /********************* LOG *****************
  50.     The log feature in IlohaMail logs all log in/out
  51.     attempts, and works with both file-base and DB-based
  52.     backends.  The log feature is deactivated by default.
  53. */
  54.  
  55. //    Set the following value to true to active logging
  56. $log_active = false;
  57.  
  58. //    Log backend
  59. //    The log backend defaults to $backend, but falls
  60. //    back to "FS" if $log_file (below) is set.
  61. //    In other words, the options are:
  62. //        "": default
  63. //        "syslog" : log to syslog
  64. $log_backend = "";
  65.  
  66. //    Log file path (file-based backend only)
  67. //    Use relative path to source file, or absolute path
  68. //    PHP must have write privileges to the file and/or
  69. //     parent directory.
  70. $log_file = "";
  71.  
  72. //    Template entry (file-based backend only)
  73. //    The log feature will take this line, and replace the
  74. //    keywords with appropriate information to enter in the
  75. //    log.  Use any combination of the following keywords:
  76. //        "date" : date and time
  77. //        "ip" : client IP address
  78. //        "acct" : if available, email account and server
  79. //        "comment" : Error messages or comments
  80. $log_template = "[date] ip:acct - action (comment)";
  81.  
  82.  
  83. /**************** Spam Prevention ************
  84.     This feature is not for blocking incoming spam, but 
  85.     for preventing possible use of IlohaMail for spamming
  86.     purposes.
  87.     
  88.     This will involve a three-level approach.
  89.     Level 1: Restrict number of recepients per email
  90.     Level 2: Restrict number of recepients per session
  91.     Level 3: Set minimum interval between sending
  92.     
  93.     In a restrictive setting, a spammer may be forced
  94.     to send to 10 people at a time, once every minute
  95.     and log out and log back in after sending 5 messages.  
  96.     This should effectively discourage manual and automated 
  97.     spamming.
  98. */
  99.  
  100. //    Maximum number of recepients per message.
  101. //    Will count To,CC,BCC fields.  More specifically
  102. //    it will count the number of '@' symbols.
  103. $max_rcpt_message = 50;
  104.  
  105. //    Maximum number of recepients per session.
  106. //    Note: This is not the number of messages,
  107. //    but the total number of recepients.
  108. $max_rcpt_session = 100;
  109.  
  110. //    Minimum interval between send operations,
  111. //    in seconds.
  112. $min_send_interval = 15;
  113.  
  114.  
  115. /**************** spam reporting *************
  116.     Specify an email address, if one is available,
  117.     where users can report spam.  This will add a
  118.     link in the read message window allowing users
  119.     to report spam in two simpl clicks.
  120.     
  121.     Leave the string empty to disable this feature.
  122. */
  123.  
  124. $report_spam_to="";
  125.  
  126.  
  127. /***************** Auth Mode ***************
  128.     Specify default IMAP authentication method.
  129.     Choices are:
  130.         "plain" :     Always use plain text
  131.                     Greatest compatibility
  132.                     
  133.         "auth"    :    Try encrypted authenctication
  134.                     (CRAM-MD5), first, then plain
  135.                     
  136.         "check" :    Check the server's capabilities
  137.                     for CRAM-MD5, and use appropriate
  138.                     auth method.
  139.         "apop"    :    For POP3 only
  140.         "none"    :   For SMTP only.  Use if SMTP server
  141.                     does not require authentication.
  142. */
  143.  
  144. $AUTH_MODE["imap"] = "plain";
  145. $AUTH_MODE["pop3"] = "plain";
  146. $AUTH_MODE["smtp"] = "";
  147.  
  148.  
  149. /***************** Time Limit ***************
  150.     Set maximum execution time.  Opening mailboxes
  151.     with even thousands of messages shouldn't have
  152.     problems, but a large POP account may time out.
  153.     
  154.     Set value to 0 for unlimited timeout.
  155. */
  156.  
  157. $MAX_EXEC_TIME = 60;
  158.  
  159.  
  160. /***************** Trust User Address ********
  161.     This directive specifies whether to use the
  162.     user specified email address in the From header.
  163.     
  164.     When on (set to true or 1):
  165.         User specified address is used in From header
  166.         Authenticated email address used for Sender header
  167.     When off (set to false or 0):
  168.         Authenticated email address used for From header
  169.         User specified address used in Reply-To header
  170.         
  171.     Note:
  172.         The 'init_from_address' option needs to be configured
  173.         in conf/defaults.generic.inc (or defaults.host.inc)
  174.         if server host name is not same as email domain name
  175.         e.g. 
  176.             if server is imap.domain.com but email address
  177.             is user@domain.com
  178.          
  179. */
  180.  
  181. $TRUST_USER_ADDRESS = 1;
  182.  
  183.  
  184. /***************** SMTP Server  **************
  185.     SMTP server to use.  Default is "localhost",
  186.     however any SMTP server that'll allow relaying
  187.     from your webmail server can be used.
  188.     Authenticated SMTP is currently not supported.
  189.     
  190.     Leave string empty to use PHP's mail() function.
  191.     (Might work more reliably.)
  192. */
  193.  
  194. $SMTP_SERVER = "";
  195.  
  196.  
  197. /***************** SMTP Type  **************
  198.     The SMTP server type.  This is used to 
  199.     accomodate slight differences between SMTP
  200.     servers.
  201.     
  202.     This directive only takes effect if $SMTP_SERVER
  203.     is specified.
  204.     
  205.     Supported values:  "sendmail", "courier"
  206.     
  207.     NOTE: if you're not sure, just use "sendmail"
  208. */
  209.  
  210. $SMTP_TYPE = "sendmail";
  211.  
  212.  
  213. /***************** SMTP User/Pass  **************
  214.     If you have a password protected SMTP server,
  215.     and would like all webmail users to send even
  216.     if they can't directly authenticate against
  217.     your SMTP server themselves, use the directives
  218.     below to specify which user to authenticate as.
  219.     If empty, users' login and passwords will be used
  220.     instead.
  221.     
  222.     ONLY FOR AUTH SMTP
  223. */
  224. $SMTP_USER = "";
  225. $SMTP_PASSWORD = "";
  226.  
  227.  
  228. /***************** Tag-Lines  *****************
  229.     TAG-LINES are blurbs that can be attached at the
  230.     end of messages sent through IlohaMail.
  231.     If you do not want tag-lines attached, leave the
  232.     string empty.  If you want taglines on some users
  233.     but not on others, set the $TAG_LEVEL to a number
  234.     greater than 0, and change the user's userLevel
  235.     in the backend (only works with database backend).
  236.     
  237.     Example:
  238.     $TAG_LINE = "---------------\n";
  239.     $TAG_LINE .= "This message was sent using IlohaMail";
  240. */
  241.  
  242. $TAG_LINE = "";
  243.  
  244. $TAG_LEVEL = 0;
  245.  
  246.  
  247. /***************** Maximum Session  *****************
  248.     MAX_SESSION_TIME specifies the maximum length of
  249.     time users can be logged in without having to log
  250.     out.  After the MAX_SESSION_TIME is over, users
  251.     will be forced to log out and log back in.
  252.     
  253.     VALUE MUST BE SECONDS.  
  254.     
  255.     e.g. 
  256.     $MAX_SESSION_TIME = (60 * 60 * 24); // 24 hours
  257.     $MAX_SESSION_TIME = 3600; // 1 hour
  258.     
  259. */
  260.  
  261. $MAX_SESSION_TIME = (60 * 60 * 24);
  262.  
  263.  
  264. /***************** Stay Logged In  *****************
  265.     STAY_LOGGED_IN overrides the previous setting 
  266.     and allows users to be logged in indefinitely.
  267.     
  268.     If enabled (set to 1), $MAX_SESSION_TIME becomes
  269.     the length of time a user can be inactive before
  270.     getting logged out.
  271. */
  272.  
  273. $STAY_LOGGED_IN = 1;
  274.  
  275.  
  276. /***************** POP3 QUOTA  *****************
  277.     POP3 disk quotas must be hard codded, since
  278.     POP3 does not provide the means to retreive
  279.     a user's quota.
  280.     
  281.     VALUES ARE IN KILOBYTES
  282.     
  283.     Quotas are set for each host, even if there's 
  284.     only one.
  285.     
  286.     e.g.
  287.     
  288.     $POP_QUOTA["losers.domain.com"] = 5000;
  289.     $POP_QUOTA["winners.domain.com"] = 20000;
  290. */
  291.  
  292. //$POP_QUOTA["host"] = 0;
  293.  
  294.  
  295. /***************** REFRESH INTERVALS  ***********
  296.     Users can configure the radar (indicator in top 
  297.     left frame) and folder list to reload periodically.
  298.     
  299.     Since a large installation with dozens or hundreds
  300.     of users whose refresh is set to mere seconds 
  301.     could cause excessive traffic, you can set the
  302.     minimum intervals here.
  303.     
  304.     As reference, if there are 100 users logged in
  305.     and they all have both refresh values set to 5
  306.     seconds, they will generate 24 requests per minute
  307.     each.  Collectively, they will generate 2400 page
  308.     views per minute, on top of the usual more resource
  309.     intensive calls.  Do the math and set the values
  310.     as appropriate for your environment.
  311. */
  312.  
  313. $MIN_FOLDERLIST_REFRESH = 10;
  314. $MIN_RADAR_REFRESH = 10;
  315.  
  316.  
  317. /*****************  DISABLE ******************
  318.     The following directives can be used to disable
  319.     some of the "extra" features.  
  320. */
  321.  
  322. $DISABLE_CALENDAR = 0;
  323. $DISABLE_BOOKMARKS = 0;
  324.  
  325.  
  326. /***************** MAX_UPLOAD_SIZE ***********
  327.     Maximum attachment upload size.  If set to 0, it 
  328.     matches the "upload_max_filesize" directive in php.ini.
  329.     
  330.     Value must be equal to or less than 
  331.     "upload_max_filesize" and "post_max_size" directives 
  332.     set in php.ini.
  333. */
  334. $MAX_UPLOAD_SIZE = 0;
  335.  
  336.  
  337. /*****************  SPELL CHECK **************
  338.     IlohaMail uses aspell (http://aspell.net/) but
  339.     does NOT use PHP's aspell/pspell module.  All you
  340.     need is athe aspell executable, and appropriate
  341.     dictionaries.
  342.     
  343.     ONLY WORKS ON UNIX, DISABLED BY DEFAULT
  344.     UNCOMMENT TO ENABLE:
  345.     
  346.     $ASPELL_PATH : path to aspell binary
  347.     
  348.     specify supported languages with:
  349.     $DICTIONARIES[<lang>] = <name>
  350.     
  351. */
  352.  
  353. //path to aspell binary
  354. //$ASPELL_PATH = "/usr/bin/aspell";
  355.  
  356. //supported languages
  357. //$DICTIONARIES["en"] = "English";
  358.  
  359.  
  360. /*****************  IGNORE FOLDERS **********
  361.     Specify regular expression rules of folders
  362.     to ignore.  For example:
  363.     
  364.     $IGNORE_FOLDERS["mail.domain.com"] = "^Public Folders/";
  365.     
  366.     ignores all folders inside "Public Folders" including the
  367.     folder itself for the host "mail.domain.com".
  368. */
  369. //$IGNORE_FOLDERS[<host>] = <regexp>;
  370.  
  371.  
  372.  
  373. /*****************  GPG *********************
  374.     ---EXPERIMENTAL---
  375.     A complete web interface for GPG.  Supports:
  376.         -Key generation
  377.         -Import public keys
  378.         -Encrypt on send
  379.         -Decrypt on receive
  380.     This feature works regardless of whether the user
  381.     has a shell account on the webmail server or not.
  382.     ---EXPERIMENTAL---
  383. */
  384.  
  385. $GPG_ENABLE=0;
  386. $GPG_PATH = "/usr/bin/gpg";
  387. $GPG_HOME_STR = "../data/gpg/%u.%h";
  388. //$GPG_HOME_STR = "/home/%u";
  389.  
  390.  
  391. /****   WARNING ***
  392.     Make sure there are NO BLANK LINES after
  393.     the '?>' below!!  Blank lines will cause
  394.     all kinds of problems!!
  395. *******************/
  396. ?>