|
10 | 10 | 'user' => getenv('DB_USER'),
|
11 | 11 | 'password' => getenv('DB_PASSWORD'),
|
12 | 12 | /**
|
13 |
| - * This parameter can be usefull if the database is shared with other applications |
| 13 | + * This parameter can be useful if the database is shared with other applications |
14 | 14 | * to avoid conflicting table names. You do not need to specify this parameter
|
15 | 15 | * if you use a dedicated database.
|
16 | 16 | * Example value: dmarc_
|
|
45 | 45 | 'password' => getenv('IMAP_PASSWORD'),
|
46 | 46 | // Mailbox name
|
47 | 47 | 'mailbox' => getenv('MAILBOX_NAME'),
|
48 |
| - // IMAP authorization methods to be excluded. |
| 48 | + // IMAP authentication methods to be excluded. |
49 | 49 | // For example: 'auth_exclude' => [ 'GSSAPI', 'NTLM' ]
|
50 | 50 | 'auth_exclude' => []
|
51 | 51 | ];
|
52 | 52 |
|
53 | 53 | /**
|
54 |
| - * It is only required if you want to get reports from a server directory. |
55 |
| - * In order to collect report from several directories, you should put each |
| 54 | + * This option is NOT INTENDED for direct access to MAILBOX directories. |
| 55 | + * It is only required if you want to get reports files (xml, zip, gz) from a server directory. |
| 56 | + * In order to collect reports from several directories, you should put each |
56 | 57 | * directory settings in an array. Processing of the directories is not recursive.
|
57 | 58 | * It is recommended to use atomic methods for adding files to these directories.
|
58 | 59 | * Attention! All successfully processed files will be deleted from the directories
|
59 | 60 | * and all others will be moved to subdirectory `failed`, that will be created
|
60 |
| - * automatically if it does not exist. |
| 61 | + * automatically if it does not exist. You can change this behavior under fetcher->directories. |
61 | 62 | */
|
62 | 63 | //$directories = [
|
63 | 64 | // // Just for displaying in the web-admin and utilities. Not necessary.
|
|
66 | 67 | // 'location' => '/var/spool/dmarc-srg/rua'
|
67 | 68 | //];
|
68 | 69 |
|
| 70 | +/** |
| 71 | + * It is only required if you want to get reports from a remote filesystem. |
| 72 | + * In order to collect reports from several filesystems, you should put each |
| 73 | + * filesystem settings in an array. Processing of remote filesystems is not recursive. |
| 74 | + * It uses the flysystem library to access remote file systems. Make sure this library is installed. |
| 75 | + */ |
| 76 | +//$remote_filesystems = [ |
| 77 | +// // Just for displaying in the web-admin and utilities. Not necessary. |
| 78 | +// 'name' => 'AWS-S3', |
| 79 | +// |
| 80 | +// /** |
| 81 | +// * Type of remote filesystem. Required. Only 's3' is supported at this time. |
| 82 | +// * Before using the S3 filesystem, you will need to install the Flysystem S3 package |
| 83 | +// * via the Composer package manager or your OS package manager. |
| 84 | +// * For the Composer package manager run: |
| 85 | +// * composer require league/flysystem-aws-s3-v3 |
| 86 | +// */ |
| 87 | +// 'type' => 's3', |
| 88 | +// |
| 89 | +// // Bucket name. Required. |
| 90 | +// 'bucket' => 'your-bucket-name', |
| 91 | +// |
| 92 | +// // Path where the reports are located. Required. |
| 93 | +// 'path' => '/', |
| 94 | +// |
| 95 | +// /** |
| 96 | +// * They do not recommend to add AWS access keys directly to configuration files. Use credentials provider or |
| 97 | +// * environment variables for that. However, you can list your credentials in the following options instead. |
| 98 | +// */ |
| 99 | +// //'key' => 'YEpoT...', |
| 100 | +// //'secret' => 'uyASUDf...', |
| 101 | +// //'token' => '...', |
| 102 | +// |
| 103 | +// // The full URI of the webservice. This is only required when connecting to a custom endpoint. |
| 104 | +// //'endpoint' => 'http://localhost:9000', |
| 105 | +// |
| 106 | +// // Region to connect to. Required. |
| 107 | +// // See http://docs.aws.amazon.com/general/latest/gr/rande.html for a list of available regions. |
| 108 | +// 'region' => 'us-east-1' |
| 109 | +//]; |
| 110 | + |
69 | 111 | $admin = [
|
70 | 112 | // Set this value to null or remove this parameter to disable authentication
|
71 |
| - // Note: The authentication always fails with an empty string password. Change it if you want to use the web ui. |
| 113 | + // Note: The authentication always fails with an empty string password. Change it if you want to use the web UI. |
72 | 114 | 'password' => getenv('UI_PASSWORD'),
|
73 | 115 | ];
|
74 | 116 |
|
| 117 | +$users = [ |
| 118 | + // Enables the use of multiple users in the web interface. The authentication dialog will ask for a username and |
| 119 | + // password. Use `admin` as the username for the above password. To add new users, use Administration -> Users. |
| 120 | + // The default value is false. |
| 121 | + 'user_management' => false, |
| 122 | + |
| 123 | + /** |
| 124 | + * Domain ownership verification method for users who are authorized to add domains. |
| 125 | + * This option has no effect on the admin. The valid values are: |
| 126 | + * 'none' - There is no verification. |
| 127 | + * 'dns' - Verification by adding DNS TXT record like dmarcsrg-verification=... |
| 128 | + * The default value is 'none'. |
| 129 | + */ |
| 130 | + 'domain_verification' => 'none' |
| 131 | +]; |
| 132 | + |
75 | 133 | //
|
76 | 134 | $fetcher = [
|
77 | 135 | 'mailboxes' => [
|
|
104 | 162 |
|
105 | 163 | /**
|
106 | 164 | * What to do with the report file when it has been successfully processed.
|
107 |
| - * The folowing actions are available: 'delete', 'move_to'. See the when_done for mailboxes |
| 165 | + * The following actions are available: 'delete', 'move_to'. See the when_done for mailboxes |
108 | 166 | * for detailed description.
|
109 | 167 | * The default value is 'delete'.
|
110 | 168 | */
|
|
118 | 176 | */
|
119 | 177 | 'when_failed' => 'move_to:' . getenv('DIRECTORIES_WHEN_FAILED_MOVE_TO'),
|
120 | 178 | ],
|
| 179 | + 'remote_filesystems' => [ |
| 180 | + // See directories/files_maximum |
| 181 | + 'files_maximum' => 50, |
| 182 | + |
| 183 | + // See directories/when_done |
| 184 | + 'when_done' => 'delete', |
| 185 | + |
| 186 | + // See directories/when_failed |
| 187 | + 'when_failed' => 'move_to:failed' |
| 188 | + ], |
121 | 189 | /**
|
122 | 190 | * Domains matching this regular expression will be automatically added to the database from processed
|
123 | 191 | * reports. This option does not affect domains that have already been added to the database.
|
|
134 | 202 | // Settings for sending summary reports if it is necessary.
|
135 | 203 | // It uses in utils/summary_report.php
|
136 | 204 | $mailer = [
|
| 205 | + /** |
| 206 | + * The library used to send e-mails. The following values are currently supported: |
| 207 | + * 'internal' - use the PHP internal functions. Default value. |
| 208 | + * 'phpmailer' - use the PHPMailer library. You can install it with composer. |
| 209 | + */ |
| 210 | + 'library' => 'internal', |
| 211 | + |
| 212 | + /** |
| 213 | + * The method used to send email. Note: The 'smtp' method requires the PHPMailer library. Make sure it is installed. |
| 214 | + * 'mail' - use the standard PHP mail() function. Default value. |
| 215 | + * 'smtp' - sent via SMTP. This method required the PHPMailer library. See below for required parameters. |
| 216 | + */ |
| 217 | + 'method' => 'mail', |
| 218 | + |
| 219 | + /** |
| 220 | + * Sender's e-mail address |
| 221 | + */ |
137 | 222 | 'from' => getenv('MAILER_FROM'),
|
| 223 | + |
| 224 | + /** |
| 225 | + * Recepient's default e-mail address |
| 226 | + */ |
138 | 227 | 'default' => getenv('MAILER_DEFAULT'),
|
| 228 | + |
| 229 | + /* |
| 230 | + * For method 'smtp' the following parameters must be specified: |
| 231 | + */ |
| 232 | + |
| 233 | + /** |
| 234 | + * SMTP host to connect to. |
| 235 | + */ |
| 236 | + 'host' => getenv('IMAP_HOST'), |
| 237 | + |
| 238 | + /** |
| 239 | + * TCP port to connect to. |
| 240 | + * Typically it is 465 for SSL/TLS, 587 for STARTTLS, or 25. |
| 241 | + */ |
| 242 | + 'port' => 465, |
| 243 | + |
| 244 | + /** |
| 245 | + * Connection encryption method. The valid values are: |
| 246 | + * 'none' - without encryption (strongly not recommend). |
| 247 | + * 'ssl' - SSL/TLS on a separate port, for SMTP it is usually port 465. Default value. |
| 248 | + * 'starttls' - STARTTLS method, usually on the standard SMTP port 587. |
| 249 | + */ |
| 250 | + 'encryption' => 'ssl', |
| 251 | + |
| 252 | + /** |
| 253 | + * Set true if you want to connect to the SMTP server without certificate validation |
| 254 | + */ |
| 255 | + 'novalidate-cert' => false, |
| 256 | + |
| 257 | + /** |
| 258 | + * User name. Specify an empty string if authentication is not required. |
| 259 | + */ |
| 260 | + 'username' => getenv('IMAP_USER'), |
| 261 | + |
| 262 | + /** |
| 263 | + * User password. Specify an empty string if authentication is not required. |
| 264 | + */ |
| 265 | + 'password' => getenv('IMAP_PASSWORD'), |
139 | 266 | ];
|
140 | 267 |
|
141 | 268 | //
|
|
179 | 306 | 'leave_minimum' => 100
|
180 | 307 | ]
|
181 | 308 | ];
|
| 309 | + |
| 310 | +/** |
| 311 | + * Path to a custom CSS file to add it to the HTML header in order to use custom styles. |
| 312 | + * The file must be a regular CSS file and end with ".css". |
| 313 | + */ |
| 314 | +//$custom_css = 'css/custom.css'; |
0 commit comments