mail-auth 0.9.0

DKIM, ARC, SPF and DMARC library for Rust
Documentation
{
  "feedback_type": "AuthFailure",
  "arrival_date": 1318104958,
  "authentication_results": [
    "mta1011.mail.tp2.receiver.example;\n    dkim=fail (bodyhash) header.d=sender.example"
  ],
  "incidents": 1,
  "original_envelope_id": "o3F52gxO029144",
  "original_mail_from": "anexample.reply@a.sender.example",
  "original_rcpt_to": null,
  "reported_domain": [
    "a.sender.example"
  ],
  "reported_uri": [
    "http://www.sender.example/"
  ],
  "reporting_mta": null,
  "source_ip": "192.0.2.1",
  "user_agent": "Someisp!Mail-Feedback/1.0",
  "version": 1,
  "source_port": 0,
  "auth_failure": "BodyHash",
  "delivery_result": "Unspecified",
  "dkim_adsp_dns": null,
  "dkim_canonicalized_body": "VGhpcyBpcyBhIG1lc3NhZ2UgYm9keSB0\n    aGF0IGdvdCBtb2RpZmllZCBpbiB0cmFuc2l0LgoKQXQgdGhlIHNhbWU\n    gdGltZSB0aGF0IHRoZSBib2R5aGFzaCBmYWlscyB0byB2ZXJpZnksIH\n    RoZQptZXNzYWdlIGNvbnRlbnQgaXMgY2xlYXJseSBhYnVzaXZlIG9yI\n    HBoaXNoeSwgYXMgdGhlClN1YmplY3QgYWxyZWFkeSBoaW50cy4gIElu\n    ZGVlZCwgdGhpcyBib2R5IGFsc28gY29udGFpbnMKdGhlIGZvbGxvd2l\n    uZyB0ZXh0OgoKICAgUGxlYXNlIGVudGVyIHlvdXIgZnVsbCBiYW5rIG\n    NyZWRlbnRpYWxzIGF0CiAgIGh0dHA6Ly93d3cuc2VuZGVyLmV4YW1wb\n    GUvCgpXZSBhcmUgaW1wbHlpbmcgdGhhdCwgYWx0aG91Z2ggbXVsdGlw\n    bGUgZmFpbHVyZXMKcmVxdWlyZSBtdWx0aXBsZSByZXBvcnRzLCBhIHN\n    pbmdsZSBmYWlsdXJlIGNhbiBiZQpyZXBvcnRlZCBhbG9uZyB3aXRoIH\n    BoaXNoaW5nIGluIGEgc2luZ2xlIHJlcG9ydC4K",
  "dkim_canonicalized_header": null,
  "dkim_domain": "sender.example",
  "dkim_identity": "@sender.example",
  "dkim_selector": "testkey",
  "dkim_selector_dns": null,
  "spf_dns": null,
  "identity_alignment": "Unspecified",
  "message": null,
  "headers": "Authentication-Results: mta1011.mail.tp2.receiver.example;\n dkim=fail (bodyhash) header.d=sender.example;\n spf=pass smtp.mailfrom=anexample.reply@a.sender.example\nReceived: from smtp-out.sender.example\n by mta1011.mail.tp2.receiver.example\n with SMTP id oB85W8xV000169;\n Sat, 08 Oct 2011 13:15:58 -0700 (PDT)\nDKIM-Signature: v=1; c=relaxed/simple; a=rsa-sha256;\n s=testkey; d=sender.example; h=From:To:Subject:Date;\n bh=2jUSOH9NhtVGCQWNr9BrIAPreKQjO6Sn7XIkfJVOzv8=;\n b=AuUoFEfDxTDkHlLXSZEpZj79LICEps6eda7W3deTVFOk4yAUoqOB\n 4nujc7YopdG5dWLSdNg6xNAZpOPr+kHxt1IrE+NahM6L/LbvaHut\n KVdkLLkpVaVVQPzeRDI009SO2Il5Lu7rDNH6mZckBdrIx0orEtZV\n 4bmp/YzhwvcubU4=\nReceived: from mail.sender.example\n by smtp-out.sender.example\n with SMTP id o3F52gxO029144;\n Sat, 08 Oct 2011 13:15:31 -0700 (PDT)\n Received: from internal-client-001.sender.example\n by mail.sender.example\n with SMTP id o3F3BwdY028431;\n Sat, 08 Oct 2011 13:15:24 -0700 (PDT)\nDate: Sat, 8 Oct 2011 16:15:24 -0400 (EDT)\nReply-To: anexample.reply@a.sender.example\nFrom: anexample@a.sender.example\nTo: someuser@receiver.example\nSubject: You have a new bill from your bank\nMessage-ID: <87913910.1318094604546@out.sender.example>\n"
}