| 1 | ################################################################################ |
| 2 | ### configuration ############################################################## |
| 3 | ################################################################################ |
| 4 | |
| 5 | # If IMAP access is not used, config options starting with $imap do not need to |
| 6 | # be set and are ignored. |
| 7 | |
| 8 | $debug = 0; |
| 9 | $delete_reports = 0; |
| 10 | |
| 11 | # Please adjust to your needs!!! |
| 12 | $dbname = 'dmarc'; |
| 13 | $dbuser = 'dmarc'; |
| 14 | $dbpass = 'password'; |
| 15 | $dbhost = 'dbhost'; # Set the hostname if we can't connect to the local socket. |
| 16 | $dbport = '3306'; |
| 17 | |
| 18 | # Please adjust to your needs!!! |
| 19 | $imapserver = 'imap.server'; |
| 20 | $imapuser = 'username'; |
| 21 | $imappass = 'password'; |
| 22 | $imapport = '143'; |
| 23 | $imapssl = '0'; # If set to 1, remember to change server port to 993 and disable imaptls. |
| 24 | $imaptls = '1'; # Enabled as the default and best-practice. |
| 25 | $tlsverify = '1'; # Enable verify server cert as the default and best-practice. |
| 26 | $imapignoreerror = '0'; # set it to 1 if you see an "ERROR: message_string() |
| 27 | # expected 119613 bytes but received 81873 you may |
| 28 | # need the IgnoreSizeErrors option" because of malfunction |
| 29 | # imap server as MS Exchange 2007, ... |
| 30 | $imapreadfolder = 'Inbox'; |
| 31 | |
| 32 | # If $imapmovefolder is set, processed IMAP messages will be moved (overruled by |
| 33 | # the --delete option!) |
| 34 | $imapmovefolder = 'Inbox/processed'; |
| 35 | |
| 36 | # If $imapmovefoldererr is set, IMAP messages that fail will be moved. If unset, failed messages |
| 37 | # will move to $imapmovefolder (if it is set). Overruled by the --delete option! |
| 38 | $imapmovefoldererr = 'Inbox/notProcessed'; |
| 39 | |
| 40 | # maximum size of XML files to store in database, long files can cause transaction aborts |
| 41 | $maxsize_xml = 50000; |
| 42 | # store XML as base64 encopded gzip in database (save space, harder usable) |
| 43 | $compress_xml = 0; |
| 44 | |
| 45 | # if there was an error during file processing (message does not contain XML or ZIP parts, |
| 46 | # or a database error) the parser reports an error and does not delete the file, even if |
| 47 | # delete_reports is set (or --delete is given). Deletion can be enforced by delete_failed, |
| 48 | # however not for database errors. |
| 49 | $delete_failed = 0; |