Environment Variable for PARSER_IMAP_IGNORE_ERROR (#14)

* Update dmarcts-report-parser.conf

Was getting the example error so added env variable so we can use docker-compose.yml to ignore errors.  This was experienced with Exchange Online in Microsoft 365.  This appears to have resolved the issue and dmarc reports were successfully retrieved and moved into the processed folder.

* Update README.md

* Update README.md

Fixed tab character
This commit is contained in:
saltzimania 2021-11-21 05:23:06 -07:00 committed by GitHub
parent 526e230616
commit 71d487cb9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -76,4 +76,7 @@ Use SSL instead of default TLS. Set both to 0 to turn off encryption. (not recom
- "PARSER_IMAP_SSL=1" - "PARSER_IMAP_SSL=1"
- "PARSER_IMAP_TLS=0" - "PARSER_IMAP_TLS=0"
``` ```
Ignore ERROR: message_string() issue experienced with Exchange Online.
```yaml
- "PARSER_IMAP_IGNORE_ERROR=1"
```

View File

@ -28,7 +28,7 @@ $imappass = $ENV{'PARSER_IMAP_PASS'};
$imapssl = $ENV{'PARSER_IMAP_SSL'} // '0'; # If set to 1, remember to change server port to 993 and disable imaptls. $imapssl = $ENV{'PARSER_IMAP_SSL'} // '0'; # If set to 1, remember to change server port to 993 and disable imaptls.
$imaptls = $ENV{'PARSER_IMAP_TLS'} // '1'; # Enabled as the default and best-practice. $imaptls = $ENV{'PARSER_IMAP_TLS'} // '1'; # Enabled as the default and best-practice.
$tlsverify = $ENV{'PARSER_IMAP_VERIFY'} // '0'; # Enable verify server cert as the default and best-practice. $tlsverify = $ENV{'PARSER_IMAP_VERIFY'} // '0'; # Enable verify server cert as the default and best-practice.
$imapignoreerror = 0; # set it to 1 if you see an "ERROR: message_string() $imapignoreerror = $ENV{'PARSER_IMAP_IGNORE_ERROR'} // '0';# set it to 1 if you see an "ERROR: message_string()
# expected 119613 bytes but received 81873 you may # expected 119613 bytes but received 81873 you may
# need the IgnoreSizeErrors option" because of malfunction # need the IgnoreSizeErrors option" because of malfunction
# imap server as MS Exchange 2007, ... # imap server as MS Exchange 2007, ...