-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SMTP TLS] some minor bug fixes (#477)
* fix minor bugs during smtp-tls parsing, add docker-compose for local elasticsearch, add smtp-tls tests * fix wrong log message parameter * fix wrong log message * add contact-info to smtp tls report, fix wrong fieldnames * fix wrong fieldnames * fix wrong index name for search * at least for some reporting organizations the field sending-mta-ip is optional... * add missing fields to elasticsearch for smtp tls * failure_details is a list, add more test cases * fix wrong name in ci.ini
- Loading branch information
Showing
7 changed files
with
177 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[general] | ||
save_aggregate = True | ||
save_forensic = True | ||
save_smtp_tls = True | ||
debug = True | ||
|
||
[elasticsearch] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: '3.7' | ||
|
||
services: | ||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:8.3.1 | ||
environment: | ||
- network.host=127.0.0.1 | ||
- http.host=0.0.0.0 | ||
- node.name=elasticsearch | ||
- discovery.type=single-node | ||
- cluster.name=parsedmarc-cluster | ||
- discovery.seed_hosts=elasticsearch | ||
- bootstrap.memory_lock=true | ||
- xpack.security.enabled=false | ||
- xpack.license.self_generated.type=basic | ||
ports: | ||
- 127.0.0.1:9200:9200 | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
healthcheck: | ||
test: | ||
[ | ||
"CMD-SHELL", | ||
"curl -s -XGET http://localhost:9200/_cluster/health?pretty | grep status | grep -q '\\(green\\|yellow\\)'" | ||
] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"contact-info": "[email protected]", | ||
"date-range": { | ||
"end-datetime": "2024-02-23T00:00:00Z", | ||
"start-datetime": "2024-02-22T00:00:00Z" | ||
}, | ||
"organization-name": "Mail.ru", | ||
"policies": [ | ||
{ | ||
"failure-details": [ | ||
{ | ||
"failed-session-count": 1, | ||
"failure-reason-code": "bad https response code: 404", | ||
"result-type": "sts-policy-fetch-error" | ||
}, | ||
{ | ||
"failed-session-count": 1, | ||
"failure-reason-code": "bad https response code: 500", | ||
"result-type": "sts-policy-fetch-error" | ||
} | ||
], | ||
"policy": { | ||
"policy-domain": "example.com", | ||
"policy-type": "sts" | ||
}, | ||
"summary": { | ||
"total-failure-session-count": 1, | ||
"total-successful-session-count": 0 | ||
} | ||
} | ||
], | ||
"report-id": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"organization-name": "Company-X", | ||
"date-range": { | ||
"start-datetime": "2016-04-01T00:00:00Z", | ||
"end-datetime": "2016-04-01T23:59:59Z" | ||
}, | ||
"contact-info": "[email protected]", | ||
"report-id": "5065427c-23d3-47ca-b6e0-946ea0e8c4be", | ||
"policies": [{ | ||
"policy": { | ||
"policy-type": "sts", | ||
"policy-string": ["version: STSv1","mode: testing", | ||
"mx: *.mail.company-y.example","max_age: 86400"], | ||
"policy-domain": "company-y.example", | ||
"mx-host": "*.mail.company-y.example" | ||
}, | ||
"summary": { | ||
"total-successful-session-count": 5326, | ||
"total-failure-session-count": 303 | ||
}, | ||
"failure-details": [{ | ||
"result-type": "certificate-expired", | ||
"sending-mta-ip": "2001:db8:abcd:0012::1", | ||
"receiving-mx-hostname": "mx1.mail.company-y.example", | ||
"failed-session-count": 100 | ||
}, { | ||
"result-type": "starttls-not-supported", | ||
"sending-mta-ip": "2001:db8:abcd:0013::1", | ||
"receiving-mx-hostname": "mx2.mail.company-y.example", | ||
"receiving-ip": "203.0.113.56", | ||
"failed-session-count": 200, | ||
"additional-information": "https://reports.company-x.example/report_info?id=5065427c-23d3#StarttlsNotSupported" | ||
}, { | ||
"result-type": "validation-failure", | ||
"sending-mta-ip": "198.51.100.62", | ||
"receiving-ip": "203.0.113.58", | ||
"receiving-mx-hostname": "mx-backup.mail.company-y.example", | ||
"failed-session-count": 3, | ||
"failure-reason-code": "X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED" | ||
}] | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters