|
1 | 1 | <?php |
| 2 | + |
2 | 3 | /* |
| 4 | +
|
3 | 5 | * ============================================================================================================== |
4 | 6 | * |
5 | 7 | * |
|
10 | 12 | * ** NOTE: To use options from config_extended.php, you need to copy them to this file ** |
11 | 13 | * |
12 | 14 | ============================================================================================================== |
| 15 | +
|
13 | 16 | */ |
| 17 | + |
14 | 18 | // what is your Mysql database server hostname |
15 | | -$database_host = 'dbhost'; |
| 19 | +$database_host = 'localhost'; |
| 20 | + |
16 | 21 | // what is the name of the database we are using |
17 | 22 | $database_name = 'phplistdb'; |
| 23 | + |
18 | 24 | // what user has access to this database |
19 | 25 | $database_user = 'phplist'; |
| 26 | + |
20 | 27 | // and what is the password to login to control the database |
21 | 28 | $database_password = 'phplist'; |
| 29 | + |
22 | 30 | // if you have an SMTP server, set it here. Otherwise it will use the normal php mail() function |
23 | 31 | //# if your SMTP server is called "smtp.mydomain.com" you enter this below like this: |
24 | 32 | //# |
25 | 33 | //# define("PHPMAILERHOST",'smtp.mydomain.com'); |
26 | | -define('PHPMAILERHOST', ''); |
| 34 | + |
| 35 | +define('PHPMAILERHOST', 'localhost'); |
| 36 | +define('PHPMAILERPORT',2500); |
| 37 | +define('PHPMAILER_SECURE',false); |
| 38 | + |
| 39 | + |
27 | 40 | // if TEST is set to 1 (not 0) it will not actually send ANY messages, but display what it would have sent |
28 | 41 | // this is here, to make sure you edited the config file and mails are not sent "accidentally" |
29 | 42 | // on unmanaged systems |
30 | | -define('TEST', 1); |
| 43 | + |
| 44 | +define('TEST', 0); |
31 | 45 | /* |
| 46 | +
|
32 | 47 | ============================================================================================================== |
33 | 48 | * |
34 | 49 | * Settings for handling bounces |
|
38 | 53 | * unnecessary messages, which overloads your own server, the receiving servers and internet traffic as a whole |
39 | 54 | * |
40 | 55 | ============================================================================================================== |
| 56 | +
|
41 | 57 | */ |
| 58 | + |
42 | 59 | // Message envelope. |
| 60 | + |
43 | 61 | // This is the address that most bounces will be delivered to |
44 | 62 | // Your should make this an address that no PERSON reads |
45 | 63 | // but a mailbox that phpList can empty every so often, to process the bounces |
| 64 | + |
46 | 65 | // $message_envelope = 'listbounces@yourdomain'; |
| 66 | + |
47 | 67 | // Handling bounces. Check README.bounces for more info |
48 | 68 | // This can be 'pop' or 'mbox' |
49 | 69 | $bounce_protocol = 'pop'; |
| 70 | + |
50 | 71 | // set this to 0, if you set up a cron to download bounces regularly by using the |
51 | 72 | // commandline option. If this is 0, users cannot run the page from the web |
52 | 73 | // frontend. Read README.commandline to find out how to set it up on the |
53 | 74 | // commandline |
54 | 75 | define('MANUALLY_PROCESS_BOUNCES', 1); |
| 76 | + |
55 | 77 | // when the protocol is pop, specify these three |
56 | 78 | $bounce_mailbox_host = 'localhost'; |
57 | 79 | $bounce_mailbox_user = 'popuser'; |
58 | 80 | $bounce_mailbox_password = 'password'; |
| 81 | + |
59 | 82 | // the "port" is the remote port of the connection to retrieve the emails |
60 | 83 | // the default should be fine but if it doesn't work, you can try the second |
61 | 84 | // one. To do that, add a # before the first line and take off the one before the |
62 | 85 | // second line |
63 | 86 | $bounce_mailbox_port = '110/pop3/notls'; |
64 | 87 | //$bounce_mailbox_port = "110/pop3"; |
| 88 | + |
65 | 89 | // it's getting more common to have secure connections, in which case you probably want to use |
66 | 90 | //$bounce_mailbox_port = "995/pop3/ssl/novalidate-cert"; |
| 91 | + |
67 | 92 | // when the protocol is mbox specify this one |
68 | 93 | // it needs to be a local file in mbox format, accessible to your webserver user |
69 | 94 | $bounce_mailbox = '/var/mail/listbounces'; |
| 95 | + |
70 | 96 | // set this to 0 if you want to keep your messages in the mailbox. this is potentially |
71 | 97 | // a problem, because bounces will be counted multiple times, so only do this if you are |
72 | 98 | // testing things. |
73 | 99 | $bounce_mailbox_purge = 1; |
| 100 | + |
74 | 101 | // set this to 0 if you want to keep unprocessed messages in the mailbox. Unprocessed |
75 | 102 | // messages are messages that could not be matched with a user in the system |
76 | 103 | // messages are still downloaded into phpList, so it is safe to delete them from |
77 | 104 | // the mailbox and view them in phpList |
78 | 105 | $bounce_mailbox_purge_unprocessed = 1; |
| 106 | + |
79 | 107 | // how many bounces in a row need to have occurred for a user to be marked unconfirmed |
80 | 108 | $bounce_unsubscribe_threshold = 5; |
| 109 | + |
81 | 110 | // choose the hash method for password |
82 | 111 | // check the extended config for more info |
83 | 112 | // in most cases, it is fine to leave this as it is |
|
0 commit comments