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

email-report-checker

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-report-checker

RFC 7489 & 8460 SMTP Report Monitoring Utilities.

  • 0.0.1
  • Source
  • PyPI
  • Socket score

Maintainers
1

.. Autogenerated by https://github.com/BarnabyShearer/meta

==================== email-report-checker

.. image:: https://readthedocs.org/projects/email-report-checker/badge/?version=latest :target: https://email-report-checker.readthedocs.io/en/latest/ .. image:: https://img.shields.io/pypi/v/email-report-checker?color=success :target: https://pypi.org/project/email-report-checker

RFC 7489 & 8460 SMTP Report Monitoring Utilities.

Install

.. code-block:: bash

python3 -m pip install email-report-checker

Note these are for my hobby domain, do not try running them on even moderate traffic MTAs

RFC 7489 Domain-based Message Authentication, Reporting, and Conformance (DMARC)

First ensure your DMARC DNS TXT record contains rua and ruf to request reports:

_dmarc.zi.is.		3600	IN	TXT	"v=DMARC1; p=reject; pct=100; ruf=mailto:b+dmarc@zi.is; rua=mailto:b+dmarc@zi.is; adkim=s; aspf=s"

Then load the reports via IMAP:

.. code-block:: bash

dmarc-report-checker m.zi.is b@zi.is Archive > dmarc.json

And report your statistics

.. code-block:: bash

jq '[ .[].record.row | select(.source_ip == "68.183.35.248") | select(.policy_evaluated.dkim == "pass") | .count | tonumber] | add' dmarc.json
jq '[ .[].record.row | select(.source_ip == "68.183.35.248") | select(.policy_evaluated.dkim == "fail") | .count | tonumber] | add' dmarc.json

RFC 8460 SMTP TLS Reporting

First create a DNS TXT record to request reports:

::

_smtp._tls.zi.is.	3600	IN	TXT	"v=TLSRPTv1;rua=mailto:b+tls@zi.is"

Then load the reports via IMAP:

.. code-block:: bash

tls-report-cheker m.zi.is b@zi.is Archive > tls.json

And report your statistics

.. code-block:: bash

jq '[.[] | [.policies[].summary["total-successful-session-count"]] | add] | add' tls.json
jq '[.[] | [.policies[].summary["total-failure-session-count"]] | add] | add' tls.json

Keywords

FAQs


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