config_default.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?php
  2. /**
  3. * Message and Spam Filter Plugin - Setup script
  4. *
  5. * @copyright 1999-2025 The SquirrelMail Project Team
  6. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  7. * @version $Id$
  8. * @package plugins
  9. * @subpackage filters
  10. */
  11. /**
  12. * Imap connection control
  13. *
  14. * Set this to true if you have problems -- check the README file
  15. * Note: This doesn't work all of the time (No idea why)
  16. * Seems to be related to UW
  17. * @global bool $UseSeparateImapConnection
  18. */
  19. $UseSeparateImapConnection = false;
  20. /**
  21. * User level spam filters control
  22. *
  23. * Set this to false if you do not want the user to be able to enable
  24. * spam filters
  25. * @global bool $AllowSpamFilters
  26. */
  27. $AllowSpamFilters = true;
  28. /**
  29. * SpamFilters YourHop Setting
  30. *
  31. * Set this to a string containing something unique to the line in the
  32. * header you want me to find IPs to scan the databases with. For example,
  33. * All the email coming IN from the internet to my site has a line in
  34. * the header that looks like (all on one line):
  35. * Received: [from usw-sf-list1.sourceforge.net (usw-sf-fw2.sourceforge.net
  36. * [216.136.171.252]) by firewall.persistence.com (SYSADMIN-antispam
  37. * 0.2) with
  38. * Since this line indicates the FIRST hop the email takes into my network,
  39. * I set my SpamFilters_YourHop to 'by firewall.persistence.com' but any
  40. * case-sensitive string will do. You can set it to something found on
  41. * every line in the header (like ' ') if you want to scan all IPs in
  42. * the header (lots of false alarms here tho).
  43. * @global string $SpamFilters_YourHop
  44. */
  45. $SpamFilters_YourHop = ' ';
  46. /**
  47. * Commercial Spam Filters Control
  48. *
  49. * Some of the SPAM filters are COMMERCIAL and require a fee. If your users
  50. * select them and you're not allowed to use them, it will make SPAM filtering
  51. * very slow. If you don't want them to even be offered to the users, you
  52. * should set SpamFilters_ShowCommercial to false.
  53. * @global bool $SpamFilters_ShowCommercial
  54. */
  55. $SpamFilters_ShowCommercial = false;
  56. /**
  57. * SpamFiltering Cache
  58. *
  59. * A cache of IPs we've already checked or are known bad boys or good boys
  60. * ie. $SpamFilters_DNScache["210.54.220.18"] = true;
  61. * would tell filters to not even bother doing the DNS queries for that
  62. * IP and any email coming from it are SPAM - false would mean that any
  63. * email coming from it would NOT be SPAM
  64. * @global array $SpamFilters_DNScache
  65. */
  66. $SpamFilters_DNScache=array();
  67. /**
  68. * Path to bulkquery program
  69. *
  70. * Absolute path to the bulkquery program. Leave blank if you don't have
  71. * bulkquery compiled, installed, and lwresd running. See the README file
  72. * in the bulkquery directory for more information on using bulkquery.
  73. * @global string $SpamFilters_BulkQuery
  74. */
  75. $SpamFilters_BulkQuery = '';
  76. /**
  77. * Shared filtering cache control
  78. *
  79. * Do you want to use a shared file for the DNS cache or a session variable?
  80. * Using a shared file means that every user can benefit from any queries
  81. * made by other users. The shared file is named "dnscache" and is in the
  82. * data directory.
  83. * @global bool $SpamFilters_SharedCache
  84. */
  85. $SpamFilters_SharedCache = true;
  86. /**
  87. * DNS query TTL
  88. *
  89. * How long should DNS query results be cached for by default (in seconds)?
  90. * @global integer $SpamFilters_CacheTTL
  91. */
  92. $SpamFilters_CacheTTL = 7200;