config_default.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * mail_fetch plugin - Sample configuration file
  4. *
  5. * @copyright 2005-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 mail_fetch
  10. */
  11. /**
  12. * Controls use of unsubscribed folders in plugin. Change this to true
  13. * and save this file as "config.php" if it is allowed to store
  14. * fetched messages in unsubscribed folders.
  15. */
  16. $mail_fetch_allow_unsubscribed = false;
  17. // This is the list of POP3 ports the user may specify.
  18. //
  19. // Usually, this does not need to be used at all, and
  20. // ports 110 and 995 will be the only available ports.
  21. //
  22. // If users are allowed to access POP3 that is served
  23. // on a non-standard port, you'll need to add that port
  24. // to this list and make sure this file is saved as
  25. // "config.php" in the mail_fetch plugin directory
  26. //
  27. // If you do not wish to restrict the allowable port
  28. // numbers at all, include "ALL" in this list.
  29. //
  30. $mail_fetch_allowable_ports = array(110, 995);
  31. // This is a pattern match that allows you to block
  32. // access to certain server addresses. This prevents
  33. // a user from attempting to try to specify certain
  34. // servers when adding a POP3 address.
  35. //
  36. // By default, this plugin will block POP3 server
  37. // addresses starting with "10.", "192.", "127." and
  38. // "localhost" (the pattern shown below).
  39. //
  40. // If you want to block other addresses, you'll need
  41. // to add them to this pattern and make sure that this
  42. // file is saved as "config.php" in the mail_fetch
  43. // plugin diretory
  44. //
  45. // If you do not wish to restrict the allowable server
  46. // addresses at all, set this value to be "UNRESTRICTED"
  47. //
  48. // This is a full regular expression pattern
  49. //
  50. // Allow anything:
  51. //
  52. // $mail_fetch_block_server_pattern = 'UNRESTRICTED';
  53. //
  54. // Default pattern:
  55. //
  56. $mail_fetch_block_server_pattern = '/(^10\.)|(^192\.)|(^127\.)|(^localhost)/';