parsedmarc icon indicating copy to clipboard operation
parsedmarc copied to clipboard

Processed emails are left unread

Open MD7070B opened this issue 1 month ago • 2 comments

I have parsedmarc setup to read DMARC reports from a mailbox hosted on Exchange Online, accessed via MS Graph. This is my parsedmarc.ini file, with various sensitive items redacted:

[general]
save_aggregate = True
save_forensic = True
log_file = /var/log/parsedmarc.log

[opensearch]
hosts = https://admin:[email protected]:9200
ssl = True
cert_path = /opt/parsedmarc/opensearch-root-ca.pem

[mailbox]
reports_folder = Inbox
archive_folder = DMARC-Archives
watch = True

[msgraph]
auth_method = ClientSecret
client_id = REDACTED
client_secret = REDACTED
tenant_id = REDACTED
mailbox = REDACTED

Currently, what this does, is read any DMARC reports from the Inbox folder in that mailbox, and then move them to the folder DMARC-Archives\Aggregate. However, it does not read the mail items when it does this, so the DMARC-Archives\Aggregate fills up with unread messages. Is it possible to set parsedmarc to set the messages as Read when it moves them?

I was actually expecting parsedmarc to put the messages directly into DMARC-Archives, rather than in a subfolder of that. But this isn't explicitly a problem.

Also, any other mail which comes into the Inbox, (Not a dmarc report), seems to get consumed by parsedmarc, which plonks it in the DMARC-Archives\Invalid folder. This is a bit annoying, I would rather anything that is not a dmarc report is left in the Inbox.

Are there any configuration options I can use to achieve my goal? I did read some of the docs but could not see anything which would do this.

MD7070B avatar Nov 28 '25 15:11 MD7070B