分析dmarc聚合报表的工具

dmarc-import的Python项目详细描述


DMARC导入:邮政喇叭::邮箱:

Build StatusCoverage Status

dmarc-import是一个分析dmarc聚合报告的工具。这个 这些聚合报告的预期格式在 RFC 7489

python包的安装

来自Pypi

pip install dmarc-import

从您的本地结账

使用git克隆存储库后,可以安装 dmarc-import使用pip

pip install /path/to/dmarc-import

来自github

或者,如果您愿意,可以直接从 the GitHub repository

pip install git+https://github.com/cisagov/dmarc-import.git

构建Docker图像

作为安装python包的替代方法,您可以 选择生成Docker图像:

docker-compose build

用法

Usage:
  dmarc-import --schema=SCHEMA --s3-bucket=BUCKET [--s3-keys=KEYS][--domains=FILE][--reports=DIRECTORY][--elasticsearch=URL][--es-region=REGION][--log-level=LEVEL][--dmarcian-token=FILE][--delete]
  dmarc-import (-h | --help)

Options:
  -h --help               Show this message.
  --log-level=LEVEL       If specified, then the log level will be set to the
                          specified value.  Valid values are "debug", "info",
                          "warn", and "error".
  --schema=SCHEMA         The XSD file against which the DMARC aggregate
                          reports are to be be verified.
  --s3-bucket=BUCKET      The AWS S3 bucket containing the DMARC aggregate
                          reports.
  --s3-keys=KEYS          A comma-separated list of DMARC aggregate report
                          keys.  If specified, only the specified DMARC
                          aggregate reports will be processed.  Otherwise all
                          reports in the AWS S3 bucket will be processed.
  --domains=FILE          A file to which to save a list of all domains for
                          which DMARC aggregate reports were received.  If not
                          specified then no such file will be created.
  --reports=DIRECTORY     A directory to which to write files containing DMARC
                          aggregate report contents.  If not specified then no
                          such files will be created.
  --elasticsearch=URL     A URL corresponding to an AWS Elasticsearch
                          instance, including the index where the DMARC
                          aggregate reports should be written.
  --es-region=REGION      The AWS region where the Elasticsearch instance
                          is located.
  --dmarcian-token=FILE   A simple text file whose only contents are the
                          Dmarcian API token.  If specified then the
                          Dmarcian API will be queried to determine what
                          commercial mail-sending organization (if any) is
                          associated with the IP in the aggregate report.
  --delete                If present then the reports will be deleted after
                          processing.

设置Docker机密

在尝试通过docker-compose运行此项目之前,必须 创建一个secrets目录和其中包含 Docker容器要使用的凭据。这些文件是:

许可证

这个项目在世界范围内。

该项目在美国属于公共领域,并且 通过以下方式放弃世界范围内作品的版权和相关权利: 这是CC0 1.0 Universal public domain dedication

所有对该项目的贡献将在CC0下发布 奉献精神。提交请求即表示您同意遵守 放弃版权权益。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
从数组返回类类型的java   关于Executor服务的java澄清   java在Eclipse中找不到快捷菜单   如何在java中只打印时间?   创建不可由GC收集的java类   java有向边图的逆   java Dijital海洋空间列表对象不工作   java Play 1.2.4 findByID不适用于复合Id   如何在Java中使用switch语句添加两个整数   我的log4jjava问题。lang.ClassNotFoundException:=org。阿帕奇。log4j。滚动文件   Springboot 2.4.0RC1和SpringCloud配置(Illford)java。lang.VerifyError:无法从最终类继承   java如何使方法线程安全   使用自定义SSL配置的java启动WebLogic服务器   java缺少右括号   如何在Java中使用Rally Rest API获取测试集ID?