techsneeze / dmarcts-report-parser

A Perl based tool to parse DMARC reports from an IMAP mailbox or from the filesystem, and insert the information into a database. ( Formerly known as imap-dmarcts )
http://www.techsneeze.com/how-parse-dmarc-reports-imap/
GNU General Public License v3.0
225 stars 66 forks source link

Failed to ungzip ZIP file #121

Open Hativ opened 1 year ago

Hativ commented 1 year ago

We're having problems with the reports from mimecast.org. We get the following error with each of these:

dmarcts-report-parser.pl: Subject: Report domain: example.com Submitter: mimecast.org Report-ID: 28213b0e4d44a24cf85205f04060ccfd85c27705dc2a84320a869e6fa5abc123 : at dmarcreport.example.com/dmarcts-report-parser.pl line 676. 
dmarcts-report-parser.pl: Failed to ungzip ZIP file (temp. location: </tmp/msg-3613033-1.dat>)!
dmarcts-report-parser.pl: The IMAP message with UID #49611 does not seem to contain a valid DMARC report. Skipped.

Other reports with zip file work.

I can unpack the zip file from mimecast.org without any problems. It contains an XML file, which can successfully be parsed by https://us.dmarcian.com/xml-to-human-converter/.

If desired, I can forward a real uncensored sample email as attachment.

SpareSimian commented 1 year ago

Duplicate of #117