ygkanani

PHPList Configuration

Jul 12th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.55 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  
  5. * ==============================================================================================================
  6. *
  7. *
  8. * The minimum requirements to get phpList working are in this file.
  9. * If you are interested in tweaking more options, check out the config_extended.php file
  10. * or visit http://resources.phplist.com/system/config
  11. *
  12. * ** NOTE: To use options from config_extended.php, you need to copy them to this file **
  13. *
  14. ==============================================================================================================
  15.  
  16. */
  17.  
  18. # what is your Mysql database server hostname
  19. $database_host = 'localhost';
  20.  
  21. # what is the name of the database we are using
  22. $database_name = 'phplistdb';
  23.  
  24. # what user has access to this database
  25. $database_user = 'root';
  26.  
  27. # and what is the password to login to control the database
  28. $database_password = 'password';
  29.  
  30. # if you have an SMTP server, set it here. Otherwise it will use the normal php mail() function
  31. ## if your SMTP server is called "smtp.mydomain.com" you enter this below like this:
  32. ##
  33. ##     define("PHPMAILERHOST",'smtp.mydomain.com');
  34.  
  35. define("PHPMAILER",0);
  36. define("PHPMAILERHOST",'');
  37. define('USE_AMAZONSES',1);
  38. define('AWS_ACCESSKEYID','AWS_ACCESS_KEY');
  39. define('AWS_SECRETKEY','AWS_SECRET_KEY');
  40. define('AWS_POSTURL','AWS_SERVER_ADDRESS');
  41.  
  42. # if TEST is set to 1 (not 0) it will not actually send ANY messages, but display what it would have sent
  43. # this is here, to make sure you edited the config file and mails are not sent "accidentally"
  44. # on unmanaged systems
  45.  
  46. define('TEST', 0);
  47.  
  48. /*
  49.  
  50. ==============================================================================================================
  51. *
  52. * Settings for handling bounces
  53. *
  54. * This section is OPTIONAL, and not necessary to send out mailings, but it is highly recommended to correctly
  55. * set up bounce processing. Without processing of bounces your system will end up sending large amounts of
  56. * unnecessary messages, which overloads your own server, the receiving servers and internet traffic as a whole
  57. *
  58. ==============================================================================================================
  59.  
  60. */
  61.  
  62. # Message envelope.
  63. #
  64. # This is the address that most bounces will be delivered to
  65. # Your should make this an address that no PERSON reads
  66. # but a mailbox that phpList can empty every so often, to process the bounces
  67.  
  68. # $message_envelope = 'listbounces@yourdomain';
  69.  
  70. # Handling bounces. Check README.bounces for more info
  71. # This can be 'pop' or 'mbox'
  72. $bounce_protocol = 'pop';
  73.  
  74. # set this to 0, if you set up a cron to download bounces regularly by using the
  75. # commandline option. If this is 0, users cannot run the page from the web
  76. # frontend. Read README.commandline to find out how to set it up on the
  77. # commandline
  78. define('MANUALLY_PROCESS_BOUNCES', 1);
  79.  
  80. # when the protocol is pop, specify these three
  81. $bounce_mailbox_host = 'localhost';
  82. $bounce_mailbox_user = 'popuser';
  83. $bounce_mailbox_password = 'password';
  84.  
  85. # the "port" is the remote port of the connection to retrieve the emails
  86. # the default should be fine but if it doesn't work, you can try the second
  87. # one. To do that, add a # before the first line and take off the one before the
  88. # second line
  89. $bounce_mailbox_port = '110/pop3/notls';
  90. #$bounce_mailbox_port = "110/pop3";
  91.  
  92. # it's getting more common to have secure connections, in which case you probably want to use
  93. #$bounce_mailbox_port = "995/pop3/ssl/novalidate-cert";
  94.  
  95. # when the protocol is mbox specify this one
  96. # it needs to be a local file in mbox format, accessible to your webserver user
  97. $bounce_mailbox = '/var/mail/listbounces';
  98.  
  99. # set this to 0 if you want to keep your messages in the mailbox. this is potentially
  100. # a problem, because bounces will be counted multiple times, so only do this if you are
  101. # testing things.
  102. $bounce_mailbox_purge = 1;
  103.  
  104. # set this to 0 if you want to keep unprocessed messages in the mailbox. Unprocessed
  105. # messages are messages that could not be matched with a user in the system
  106. # messages are still downloaded into phpList, so it is safe to delete them from
  107. # the mailbox and view them in phpList
  108. $bounce_mailbox_purge_unprocessed = 1;
  109.  
  110. # how many bounces in a row need to have occurred for a user to be marked unconfirmed
  111. $bounce_unsubscribe_threshold = 5;
  112.  
  113. # choose the encryption method for password
  114. # check the extended config for more info
  115. # in most cases, it is fine to leave this as it is
  116. define('ENCRYPTION_ALGO', 'sha256');
  117.  
  118. # Click tracking
  119. # If you set this to 1, all links in your emails will be converted to links that
  120. # go via phplist. This will make sure that clicks are tracked. This is experimental and
  121. # all your findings when using this feature should be reported to mantis
  122. # for now it's off by default until we think it works correctly
  123. define('CLICKTRACK',0);
  124.  
  125. # Click track, list detail
  126. # if you enable this, you will get some extra statistics about unique users who have clicked the
  127. # links in your messages, and the breakdown between clicks from text or html messages.
  128. # However, this will slow down the process to view the statistics, so it is
  129. # recommended to leave it off, but if you're very curious, you can enable it
  130. define('CLICKTRACK_SHOWDETAIL',0);
  131.  
  132. # If you want to remove the image from the HTML emails, set this constant
  133. # to be 1, the HTML emails will then only add a line of text as signature
  134. define("EMAILTEXTCREDITS",1);
  135. define('ALWAYS_ADD_USERTRACK',0);
  136.  
  137. define("PAGETEXTCREDITS",1);
  138.  
  139. define("MAILQUEUE_BATCH_SIZE",14);
  140. define("MAILQUEUE_BATCH_PERIOD",1);
  141. define('MAILQUEUE_THROTTLE',0);
Add Comment
Please, Sign In to add comment