Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dmarc_report

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmarc_report

  • 1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

dmarc_report

This is the backend for parsing DMARC reports

Backend and frontend should run on diffrent machines. This avoids to have you IMAP credentials on the public webserver. The cron-job push the results via rsync to the webserver.

Requirements:

  • Install cron
  • Install ruby
  • Install ruby-rubygems
  • Install ripmime
  • Install gzip (gunzip)
  • Install unzip
  • Install rsync
  • IMAP Account where DMARC reports are comming in
  • Configuration in YAML

Installation:

gem install --user-install dmarc_report

for Diagnostics, add the rubygem dir to your search path

FreeBSD:

vim .profile
PATH="$PATH:$HOME/.gem/ruby/3.1/bin"

Debian:

vim .profile
PATH="$PATH:$HOME/.local/share/gem/ruby/3.1.0/bin"

Create the working directory:

cd
mkdir -p dmarc
cd dmarc
install-dmarc_report.rb

Edit your IMAP account data:

vim config/dmarc.yml

Check your rulesets:

vim rules/dmarc.yml

Edit the target directory for your webserver:

vim dmarc_profile.sh

Check the script for your cron:

vim run-dmarc.sh

Check the function

./run-dmarc.sh

Edit your crontab:

crontab -e
# crontab for dmarc_report
#minute hour    mday    month   wday    command
13      8,12,18 *       *       *       /home/user/dmarc/run-dmarc.sh
#

Processing:

sequenceDiagram
IMAP ->> File: dmarc_imap.rb
File ->> Attachment: dmarc_ripmime.rb
Attachment ->> XML: dmarc_ripmime.rb
XML ->> CSV: dmarc_report.rb
CSV ->> HTML: dmarc.rhtml

Frontend:

See: https://github.com/dinoex/dmarc_view

FAQs

Package last updated on 20 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc