Source for file config_example.php

Documentation is available at config_example.php

  1. <?php
  2.  
  3. /**
  4.  * mail_fetch/config_example.php
  5.  *
  6.  * Configuration file for the mailfetch plugin.
  7.  *
  8.  * @copyright 1999-2020 The SquirrelMail Project Team
  9.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  10.  * @version $Id: config_example.php 14840 2020-01-07 07:42:38Z pdontthink $
  11.  * @package plugins
  12.  * @subpackage mail_fetch
  13.  */
  14.  
  15. global $mail_fetch_allowable_ports$mail_fetch_block_server_pattern;
  16.  
  17.  
  18. // This is the list of POP3 ports the user may specify.
  19. //
  20. // Usually, this does not need to be used at all, and
  21. // ports 110 and 995 will be the only available ports.
  22. //
  23. // If users are allowed to access POP3 that is served
  24. // on a non-standard port, you'll need to add that port
  25. // to this list and make sure this file is saved as
  26. // "config.php" in the mail_fetch plugin directory
  27. //
  28. // If you do not wish to restrict the allowable port
  29. // numbers at all, include "ALL" in this list.
  30. //
  31. $mail_fetch_allowable_ports array(110995);
  32.  
  33.  
  34.  
  35. // This is a pattern match that allows you to block
  36. // access to certain server addresses.  This prevents
  37. // a user from attempting to try to specify certain
  38. // servers when adding a POP3 address.
  39. //
  40. // By default, this plugin will block POP3 server
  41. // addresses starting with "10.", "192.", "127." and
  42. // "localhost" (the pattern shown below).
  43. // 
  44. // If you want to block other addresses, you'll need
  45. // to add them to this pattern and make sure that this
  46. // file is saved as "config.php" in the mail_fetch
  47. // plugin diretory
  48. //
  49. // If you do not wish to restrict the allowable server
  50. // addresses at all, set this value to be "UNRESTRICTED"
  51. //
  52. // This is a full regular expression pattern
  53. //
  54. // Allow anything:
  55. //
  56. // $mail_fetch_block_server_pattern = 'UNRESTRICTED';
  57. //
  58. // Default pattern:
  59. //
  60. $mail_fetch_block_server_pattern '/(^10\.)|(^192\.)|(^127\.)|(^localhost)/';

Documentation generated on Mon, 13 Jan 2020 04:24:23 +0100 by phpDocumentor 1.4.3