DMARC_RECEIVE(1)

πŸ“¦
version 1.20260612 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– NAME πŸ’–

dmarc_receive β€” bestie, this is the little script that receives your aggregate reports for you, pulling them in via IMAP, mbox, or plain old message file(s). πŸ’…


✨ USAGE ✨

dmarc_receive [ --imap | --mbox | --file ]

okay so you literally just pick one of those three modes and go 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

So this script's whole job is processing incoming DMARC reports β€” from IMAP, from files, or from a mbox formatted file. That's the vibe. That's the assignment. πŸ‘‘


🌸 IMAP 🌸

To process reports with IMAP, you must configure the [imap] settings in mail-dmarc.ini. no skipping this step bestie, it's not optional πŸ’€

Once that's set up, this program will:

  • log into the IMAP account πŸ”
  • select the specified folder (INBOX, dmarc, etc) πŸ“‚
  • for every unread (Unseen) message, search for DMARC reports πŸ”

πŸŽ€ IMAP Aggregate report πŸŽ€

IMAP aggregate reports get detected by the presence of zip or gzip attachments. The moment an aggregate report is detected:

  • the attachment is decompressed πŸ—œοΈ
  • the XML is parsed 🧚
  • the report is saved to the report store πŸ’Ύ
  • the message is marked as read/seen πŸ‘€
  • move message to [imap][a_done] folder (if defined) πŸ“¬

πŸ’œ IMAP Forensic report πŸ’œ

IMAP forensic reports are detected by the presence of the content-types message/feedback-report and text/rfc822-headers. When a forensic report is detected, it gets moved to the [imap][f_done] IMAP folder. slay, handled. πŸ’…


πŸ“ File as message πŸ“

Accepts the filename of a file containing a mail message. The message is parsed and stored. simple as that. ✨


🌈 Mbox 🌈

Accepts the filename of an mbox format file containing mail messages. The messages are parsed and stored. 🫢


ngl this page came straight from the User Contributed Perl Documentation corner of the internet, running perl v5.42.2, dated 2026-06-15 β€” iconic behavior, no cap. bye bestie, go receive some reports πŸ’–πŸ¦‹βœ¨
πŸ“¦ where this page comes from