SMTP codebase import
This commit is contained in:
29
tests/resources/smtp/certs/tls_cert.pem
Normal file
29
tests/resources/smtp/certs/tls_cert.pem
Normal file
@@ -0,0 +1,29 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIFCTCCAvGgAwIBAgIUCgHGQYUqtelbHGVSzCVwBL3fyEUwDQYJKoZIhvcNAQEL
|
||||
BQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MB4XDTIyMDUxNjExNDAzNFoXDTIzMDUx
|
||||
NjExNDAzNFowFDESMBAGA1UEAwwJbG9jYWxob3N0MIICIjANBgkqhkiG9w0BAQEF
|
||||
AAOCAg8AMIICCgKCAgEAtwS0Fzl3SjaCuKEXgZ/fdWbDoj/qDphyNCAKNevQ0+D0
|
||||
STNkWCO04aFSH0zcL8zoD9gokNos0i7OU9//ZhZQmex4V6EFdZn8bFwUWN/scUvW
|
||||
HEFXVjtHldO2isZgIxH9LuwRv7KAgkISuWahqerOVDhe7SeQUV0AJGNEh3cT9PZr
|
||||
gSY931BxB7n+5k8eoSk8Z1gtBzQzL62kVGpHDKfw8yX8m65owF9eLUBrNzgxmXfC
|
||||
xpuHwj7hmVhS09PPKeN/RsFS8PsYO7bo0u8jEKalteumjRT7RyUEbioqfo6ZFOGj
|
||||
FHPIq/uKXS9zN1fpoyNh3ur5hMznQhrqlwBM9KlM7GdBJ0pZ3ad0YjT8IL/GnGKR
|
||||
85J2WZdLqaQdUZo7nV67FhqdDlNE4MdwiykTMjfmLRXGAVhAzJHKyRKNwmkI2aqe
|
||||
S7aqeNgvuDBwY80Q9a2rb5py1Aw+L8yCkUBuHboToDpxSVRDNN8DrWNmmsXnxsOG
|
||||
wRDODy4GICKyxlP+RFSM8xWSQ6y9ktS2OfDBm+Eqcw+3pZKhdz2wgxLkUBJ8X1eh
|
||||
kJrCA/6LTuhy6m6mMjAfoSOFU7fu88jxaWPgvP7GKyH+LM/t9eucobz2ks5rtSjz
|
||||
V4Dc5DCS94/OpVRHwHdaFSPbJKBN9Ev8gnNrAyx/aBPGoHBPG/QUiU7dcUNIPt0C
|
||||
AwEAAaNTMFEwHQYDVR0OBBYEFI167IxBmErB11EqiPPqFLa31ZaMMB8GA1UdIwQY
|
||||
MBaAFI167IxBmErB11EqiPPqFLa31ZaMMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZI
|
||||
hvcNAQELBQADggIBALU00IOiH5ubEauVCmakms5ermNTZfculnhnDfWTLMeh2+a7
|
||||
G4cqADErfMhm/mmLbrw33t9s6tCAhQltvewKR40ST9uMPSyiQbYaCXd5DXnuI6Ox
|
||||
JtNW+UOWIaMf8abnkdLvREOvb8dVQS1i3xq14tAjY5XgpGwCPP8m54b7N3Q7soLn
|
||||
e5PDhPNTnhRIn2RLuYoZmQmMA5fcqEUDYff4epUww7PhrM1QckZligI3566NlGOf
|
||||
j1G9JrivBtY0eaJtamIFnGMBT0ThDudxVja2Nv0C2Elry0p4T/o4nc4M67BJ/y1R
|
||||
vjNLAgFhbxssemU3lZqSd+pykpJBwDBjFSPrZZmQcbk7H6Uz8V1xr/xuzfw6fA13
|
||||
NWZ5vLgP/DQ13sM+XFlxThKfbPMPVe/UCTvfGtNW+3XyBgPntEkR+fNEawQmzbYl
|
||||
R+X1ymT9MZnEZqRMf7/UD/SYek1aUJefoew3upjMgxYVvh4F8dqJ+39F+xoFzIA2
|
||||
1dDAEMzXtjA3zKhZ2cycZbEzpJvYA3eGLuR16Suqfi4kPvfwK0mOhCxQmpayt7/X
|
||||
vuEzW6dPCH8Hgbb0WvsSppGOvhdbDaZFNfFc5eNSxhyKzu3H3ACNImZRtZE+yixx
|
||||
0fR8+xz9kDLf8xupV+X9heyFGHSyYU2Lveaevtr2Ij3weLRgJ6LbNALoeKXk
|
||||
-----END CERTIFICATE-----
|
||||
52
tests/resources/smtp/certs/tls_privatekey.pem
Normal file
52
tests/resources/smtp/certs/tls_privatekey.pem
Normal file
@@ -0,0 +1,52 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
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
|
||||
XzVV5pwOxkIDBWDIqMUfwJDChBKfpw==
|
||||
-----END PRIVATE KEY-----
|
||||
40
tests/resources/smtp/config/if-blocks.toml
Normal file
40
tests/resources/smtp/config/if-blocks.toml
Normal file
@@ -0,0 +1,40 @@
|
||||
durations = [
|
||||
{if = "sender", eq = "jdoe", then = "5d"},
|
||||
{any-of = [{if = "priority", eq = -1}, {if = "rcpt", starts-with = "jane"}], then = "1h"},
|
||||
{else = false}
|
||||
]
|
||||
|
||||
string-list = [
|
||||
{if = "sender", eq = "jdoe", then = ["From", "To", "Date"]},
|
||||
{any-of = [{if = "priority", eq = -1}, {if = "rcpt", starts-with = "jane"}], then = "Other-ID"},
|
||||
{else = []}
|
||||
]
|
||||
|
||||
string-list-bis = [
|
||||
{if = "sender", eq = "jdoe", then = ["From", "To", "Date"]},
|
||||
{any-of = [{if = "priority", eq = -1}, {if = "rcpt", starts-with = "jane"}], then = []},
|
||||
{else = ["ID-Bis"]}
|
||||
]
|
||||
|
||||
single-value = "hello world"
|
||||
|
||||
bad-multi-value = [
|
||||
{if = "sender", eq = "jdoe", then = 100},
|
||||
{any-of = [{if = "priority", eq = -1}, {if = "rcpt", starts-with = "jane"}], then = [1, 2, 3]},
|
||||
{else = 2}
|
||||
]
|
||||
|
||||
bad-if-without-then = [
|
||||
{if = "sender", eq = "jdoe"},
|
||||
{else = 1}
|
||||
]
|
||||
|
||||
bad-if-without-else = [
|
||||
{if = "sender", eq = "jdoe", then = 1}
|
||||
]
|
||||
|
||||
bad-multiple-else = [
|
||||
{if = "sender", eq = "jdoe", then = 1},
|
||||
{else = 1},
|
||||
{else = 2}
|
||||
]
|
||||
23
tests/resources/smtp/config/lists.toml
Normal file
23
tests/resources/smtp/config/lists.toml
Normal file
@@ -0,0 +1,23 @@
|
||||
[list]
|
||||
local-domains = ["example.org", "example.net"]
|
||||
spammer-domains = "thatdomain.net"
|
||||
local-users = "file://{LIST1}"
|
||||
power-users = ["file://{LIST1}", "file://{LIST2}"]
|
||||
|
||||
[remote."lmtp"]
|
||||
address = 192.168.0.1
|
||||
port = 25
|
||||
protocol = "lmtp"
|
||||
lookup = true
|
||||
|
||||
[remote."lmtp".auth]
|
||||
username = "hello"
|
||||
secret = "world"
|
||||
|
||||
[remote."lmtp".cache]
|
||||
entries = 1000
|
||||
ttl = {positive = 10, negative = 5}
|
||||
|
||||
[remote."lmtp".tls]
|
||||
implicit = true
|
||||
allow-invalid-certs = true
|
||||
168
tests/resources/smtp/config/rules-eval.toml
Normal file
168
tests/resources/smtp/config/rules-eval.toml
Normal file
@@ -0,0 +1,168 @@
|
||||
[envelope]
|
||||
rcpt-domain = "example.org"
|
||||
rcpt = "user@example.org"
|
||||
sender-domain = "foo.net"
|
||||
sender = "bill@foo.net"
|
||||
local-ip = "192.168.9.3"
|
||||
remote-ip = "A:B:C::D:E"
|
||||
mx = "mx.somedomain.com"
|
||||
authenticated-as = "john@foobar.org"
|
||||
priority = -4
|
||||
listener = 123
|
||||
helo-domain = "hi-domain.net"
|
||||
|
||||
[rule]
|
||||
"eq-true" = {if = "rcpt-domain", eq = "example.org"}
|
||||
"eq-false" = {if = "rcpt-domain", eq = "example.com"}
|
||||
"listener-eq-true" = {if = "listener", eq = "smtp"}
|
||||
"listener-eq-false" = {if = "listener", eq = "smtps"}
|
||||
"ip-eq-true" = {if = "local-ip", eq = "192.168.9.0/24"}
|
||||
"ip-eq-false" = {if = "remote-ip", eq = "A:B:C::D:F/128"}
|
||||
"ne-true" = {if = "authenticated-as", ne = ""}
|
||||
"ne-false" = {if = "authenticated-as", ne = "john@foobar.org"}
|
||||
"starts-with-true" = {if = "mx", starts-with = "mx.some"}
|
||||
"starts-with-false" = {if = "mx", starts-with = "enchilada"}
|
||||
"ends-with-true" = {if = "sender", ends-with = "@foo.net"}
|
||||
"ends-with-false" = {if = "sender", ends-with = "chimichanga"}
|
||||
"in-list-true" = {if = "sender-domain", in-list = "list/domains"}
|
||||
"in-list-false" = {if = "rcpt-domain", in-list = "list/domains"}
|
||||
"not-in-list-true" = {if = "rcpt-domain", not-in-list = "list/domains"}
|
||||
"not-in-list-false" = {if = "sender-domain", not-in-list = "list/domains"}
|
||||
"regex-true" = {if = "sender", matches = "^(.+)@(.+)$"}
|
||||
"regex-false" = {if = "mx", matches = "/^\\S+@\\S+\\.\\S+$/"}
|
||||
|
||||
"any-of-true" = { any-of = [
|
||||
{if = "authenticated-as", ne = "john@foobar.org"},
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "mx", starts-with = "mx.some"},
|
||||
]}
|
||||
"any-of-false" = { any-of = [
|
||||
{if = "authenticated-as", eq = "something else"},
|
||||
{if = "rcpt-domain", eq = "something else"},
|
||||
{if = "mx", starts-with = "something else"},
|
||||
]}
|
||||
"all-of-true" = { all-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "mx.some"}
|
||||
]}
|
||||
"all-of-false" = { all-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "something else"}
|
||||
]}
|
||||
"none-of-true" = { none-of = [
|
||||
{if = "authenticated-as", eq = "something else"},
|
||||
{if = "rcpt-domain", eq = "something else"},
|
||||
{if = "mx", starts-with = "something else"},
|
||||
]}
|
||||
"none-of-false" = { none-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "mx.some"}
|
||||
]}
|
||||
nested-any-of-true = { any-of = [
|
||||
{ all-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "something else"}
|
||||
]},
|
||||
{ none-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "mx.some"}
|
||||
]},
|
||||
{ any-of = [
|
||||
{if = "authenticated-as", ne = "john@foobar.org"},
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "mx", starts-with = "mx.some"},
|
||||
]}
|
||||
]}
|
||||
nested-any-of-false = { any-of = [
|
||||
{ none-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "mx.some"}
|
||||
]},
|
||||
{ all-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "something else"}
|
||||
]},
|
||||
{ any-of = [
|
||||
{if = "authenticated-as", eq = "something else"},
|
||||
{if = "rcpt-domain", eq = "something else"},
|
||||
{if = "mx", starts-with = "something else"},
|
||||
]}
|
||||
]}
|
||||
nested-all-of-true = { all-of = [
|
||||
{ any-of = [
|
||||
{if = "authenticated-as", ne = "john@foobar.org"},
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "mx", starts-with = "mx.some"},
|
||||
]},
|
||||
{ all-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "mx.some"}
|
||||
]},
|
||||
{ none-of = [
|
||||
{if = "authenticated-as", eq = "something else"},
|
||||
{if = "rcpt-domain", eq = "something else"},
|
||||
{if = "mx", starts-with = "something else"},
|
||||
]}
|
||||
]}
|
||||
nested-all-of-false = { all-of = [
|
||||
{ any-of = [
|
||||
{if = "authenticated-as", ne = "john@foobar.org"},
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "mx", starts-with = "mx.some"},
|
||||
]},
|
||||
{ all-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "mx.some"}
|
||||
]},
|
||||
{ none-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "mx.some"}
|
||||
]}
|
||||
]}
|
||||
nested-none-of-true = { none-of = [
|
||||
{ none-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "mx.some"}
|
||||
]},
|
||||
{ all-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "something else"}
|
||||
]},
|
||||
{ any-of = [
|
||||
{if = "authenticated-as", eq = "something else"},
|
||||
{if = "rcpt-domain", eq = "something else"},
|
||||
{if = "mx", starts-with = "something else"},
|
||||
]}
|
||||
]}
|
||||
nested-none-of-false = { none-of = [
|
||||
{ any-of = [
|
||||
{if = "authenticated-as", ne = "john@foobar.org"},
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "mx", starts-with = "mx.some"},
|
||||
]},
|
||||
{ all-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "listener", eq = "smtp"},
|
||||
{if = "mx", starts-with = "mx.some"}
|
||||
]},
|
||||
{ none-of = [
|
||||
{if = "authenticated-as", eq = "something else"},
|
||||
{if = "rcpt-domain", eq = "something else"},
|
||||
{if = "mx", starts-with = "something else"},
|
||||
]}
|
||||
]}
|
||||
|
||||
[list]
|
||||
domains = ["mydomain1.org", "foo.net", "otherdomain.net"]
|
||||
29
tests/resources/smtp/config/rules.toml
Normal file
29
tests/resources/smtp/config/rules.toml
Normal file
@@ -0,0 +1,29 @@
|
||||
[rule]
|
||||
"my-nested-rule" = { any-of = [
|
||||
{if = "rcpt-domain", eq = "example.org"},
|
||||
{if = "remote-ip", eq = "192.168.0.0/24"},
|
||||
{all-of = [
|
||||
{if = "rcpt", starts-with = "no-reply@"},
|
||||
{if = "sender", ends-with = "@domain.org"},
|
||||
{none-of = [
|
||||
{if = "priority", eq = 1},
|
||||
{if = "priority", ne = -2},
|
||||
]}
|
||||
]}
|
||||
]}
|
||||
|
||||
[rule."simple"]
|
||||
if = "listener"
|
||||
eq = "smtp"
|
||||
|
||||
[rule."is-authenticated"]
|
||||
if = "authenticated-as"
|
||||
ne = ""
|
||||
|
||||
[[rule."expanded".all-of]]
|
||||
if = "sender-domain"
|
||||
starts-with = "example"
|
||||
|
||||
[[rule."expanded".all-of]]
|
||||
if = "sender"
|
||||
in-list = "test-list"
|
||||
51
tests/resources/smtp/config/servers.toml
Normal file
51
tests/resources/smtp/config/servers.toml
Normal file
@@ -0,0 +1,51 @@
|
||||
[server]
|
||||
hostname = "mx.example.org"
|
||||
greeting = "Stalwart SMTP - hi there!"
|
||||
protocol = "smtp"
|
||||
|
||||
[server.listener."smtp"]
|
||||
bind = ["127.0.0.1:9925"]
|
||||
tls.implicit = false
|
||||
|
||||
[server.listener."smtps"]
|
||||
bind = ["127.0.0.1:9465", "127.0.0.1:9466"]
|
||||
max-connections = 1024
|
||||
tls.implicit = true
|
||||
tls.ciphers = ["TLS13_CHACHA20_POLY1305_SHA256", "TLS13_AES_256_GCM_SHA384"]
|
||||
socket.ttl = 4096
|
||||
|
||||
[server.listener."submission"]
|
||||
greeting = "Stalwart SMTP submission at your service"
|
||||
hostname = "submit.example.org"
|
||||
bind = "127.0.0.1:9991"
|
||||
#tls.sni = [{subject = "submit.example.org", certificate = "other"},
|
||||
# {subject = "submission.example.org", certificate = "other"}]
|
||||
socket.backlog = 2048
|
||||
|
||||
[server.tls]
|
||||
enable = true
|
||||
implicit = true
|
||||
timeout = 300
|
||||
certificate = "default"
|
||||
#sni = [{subject = "other.domain.org", certificate = "default"}]
|
||||
protocols = ["TLSv1.2", "TLSv1.3"]
|
||||
ciphers = []
|
||||
ignore_client_order = true
|
||||
|
||||
[server.socket]
|
||||
reuse-addr = true
|
||||
reuse-port = true
|
||||
backlog = 1024
|
||||
ttl = 3600
|
||||
send-buffer-size = 65535
|
||||
recv-buffer-size = 65535
|
||||
linger = 1
|
||||
tos = 1
|
||||
|
||||
[certificate."default"]
|
||||
cert = "file://{CERT}"
|
||||
private-key = "file://{PK}"
|
||||
|
||||
[certificate."other"]
|
||||
cert = "file://{CERT}"
|
||||
private-key = "file://{PK}"
|
||||
10
tests/resources/smtp/config/throttle.toml
Normal file
10
tests/resources/smtp/config/throttle.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
[[throttle]]
|
||||
match = {if = "remote-ip", eq = "127.0.0.1"}
|
||||
key = ["remote-ip", "authenticated-as"]
|
||||
concurrency = 100
|
||||
rate = "50/30s"
|
||||
|
||||
[[throttle]]
|
||||
key = "sender-domain"
|
||||
concurrency = 10000
|
||||
|
||||
61
tests/resources/smtp/config/toml-parser.toml
Normal file
61
tests/resources/smtp/config/toml-parser.toml
Normal file
@@ -0,0 +1,61 @@
|
||||
[database]
|
||||
enabled = true # ignore
|
||||
ports = [ 8000, 8001, 8002 ] # ignore
|
||||
data = [ ["delta", "phi"], [3.14] ]
|
||||
temp_targets = { cpu = 79.5, case = 72.0 }
|
||||
|
||||
[servers]
|
||||
"127.0.0.1" = "value" # ignore
|
||||
"character encoding" = "value"
|
||||
|
||||
[servers.alpha]
|
||||
ip = "10.0.0.1"
|
||||
role = "frontend"
|
||||
|
||||
[servers.beta]
|
||||
ip = "10.0.0.2"
|
||||
role = "backend"
|
||||
|
||||
[[products]]
|
||||
name = "Hammer"
|
||||
sku = 738594937
|
||||
|
||||
[[products]] # empty table within the array
|
||||
|
||||
[[products]] # ignore
|
||||
name = "Nail"
|
||||
sku = 284758393 # ignore
|
||||
color = "gray"
|
||||
|
||||
[strings."my \"string\" test"]
|
||||
str1 = "I'm a string."
|
||||
str2 = "You can \"quote\" me."
|
||||
str3 = "Name\tTabs\nNew Line."
|
||||
lines = '''
|
||||
The first newline is
|
||||
trimmed in raw strings.
|
||||
All other whitespace
|
||||
is preserved.
|
||||
'''
|
||||
|
||||
[arrays]
|
||||
integers = [ 1, 2, 3 ]
|
||||
colors = [ "red", "yellow", "green" ]
|
||||
nested_arrays_of_ints = [ [ 1, 2 ], [3, 4, 5] ]
|
||||
nested_mixed_array = [ [ 1, 2 ], ["a", "b", "c"] ]
|
||||
string_array = [ "all", 'strings', """are the same""", '''type''' ]
|
||||
|
||||
# Mixed-type arrays are allowed
|
||||
numbers = [ 0.1, 0.2, 0.5, 1, 2, 5 ]
|
||||
integers2 = [
|
||||
1, 2, 3 # this is ok
|
||||
]
|
||||
integers3 = [
|
||||
4,
|
||||
# comment in the middle
|
||||
5, # this is ok
|
||||
]
|
||||
contributors = [
|
||||
"Foo Bar <foo@example.com>" ,
|
||||
{ name = "Baz Qux", email = "bazqux@example.com", url = "https://example.com/bazqux" }
|
||||
]
|
||||
3
tests/resources/smtp/dane/dns.txt
Normal file
3
tests/resources/smtp/dane/dns.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
_25._tcp.internet.nl 2 1 1 E1AE9C3DE848ECE1BA72E0D991AE4D0D9EC547C6BAD1DDDAB9D6BEB0A7E0E0D8
|
||||
_25._tcp.internet.nl 3 1 1 D6FEA64D4E68CAEAB7CBB2E0F905D7F3CA3308B12FD88C5B469F08AD7E05C7C7
|
||||
_25._tcp.mail.ietf.org 3 1 1 0C72AC70B745AC19998811B131D662C9AC69DBDBE7CB23E5B514B56664C5D3D6
|
||||
BIN
tests/resources/smtp/dane/internet.nl.0.cert
Normal file
BIN
tests/resources/smtp/dane/internet.nl.0.cert
Normal file
Binary file not shown.
BIN
tests/resources/smtp/dane/internet.nl.1.cert
Normal file
BIN
tests/resources/smtp/dane/internet.nl.1.cert
Normal file
Binary file not shown.
BIN
tests/resources/smtp/dane/mail.ietf.org.0.cert
Normal file
BIN
tests/resources/smtp/dane/mail.ietf.org.0.cert
Normal file
Binary file not shown.
BIN
tests/resources/smtp/dane/mail.ietf.org.1.cert
Normal file
BIN
tests/resources/smtp/dane/mail.ietf.org.1.cert
Normal file
Binary file not shown.
BIN
tests/resources/smtp/dane/mail.ietf.org.2.cert
Normal file
BIN
tests/resources/smtp/dane/mail.ietf.org.2.cert
Normal file
Binary file not shown.
BIN
tests/resources/smtp/dane/mail.ietf.org.3.cert
Normal file
BIN
tests/resources/smtp/dane/mail.ietf.org.3.cert
Normal file
Binary file not shown.
47
tests/resources/smtp/dsn/delay.eml
Normal file
47
tests/resources/smtp/dsn/delay.eml
Normal file
@@ -0,0 +1,47 @@
|
||||
From: "Mail Delivery Subsystem" <MAILER-DAEMON@example.org>
|
||||
To: sender@foobar.org
|
||||
Auto-Submitted: auto-generated
|
||||
Subject: Warning: Delay in message delivery
|
||||
Content-Type: multipart/report; report-type="delivery-status";
|
||||
boundary="mime_boundary"
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: text/plain
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
There was a temporary problem delivering your message to the following recipients:
|
||||
|
||||
<john.doe@example.org> (connection to 'mx.domain.org' failed: Connection timeout)
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: message/delivery-status
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Reporting-MTA: dns;mx.example.org
|
||||
Arrival-Date: <date goes here>
|
||||
|
||||
Original-Recipient: rfc822;jdoe@example.org
|
||||
Final-Recipient: rfc822;john.doe@example.org
|
||||
Action: delayed
|
||||
Status: 4.0.0
|
||||
Remote-MTA: dns;mx.domain.org
|
||||
Will-Retry-Until: <date goes here>
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: message/rfc822
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Disclose-recipients: prohibited
|
||||
From: Message Router Submission Agent <AMMGR@corp.timeplex.com>
|
||||
Subject: Status of: Re: Battery current sense
|
||||
To: owner-ups-mib@CS.UTK.EDU
|
||||
Message-id: <01HEGJ0WNBY28Y95LN@mr.timeplex.com>
|
||||
MIME-version: 1.0
|
||||
Content-Type: text/plain
|
||||
|
||||
|
||||
--mime_boundary--
|
||||
|
||||
46
tests/resources/smtp/dsn/failure.eml
Normal file
46
tests/resources/smtp/dsn/failure.eml
Normal file
@@ -0,0 +1,46 @@
|
||||
From: "Mail Delivery Subsystem" <MAILER-DAEMON@example.org>
|
||||
To: sender@foobar.org
|
||||
Auto-Submitted: auto-generated
|
||||
Subject: Failed to deliver message
|
||||
Content-Type: multipart/report; report-type="delivery-status";
|
||||
boundary="mime_boundary"
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: text/plain
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Your message could not be delivered to the following recipients:
|
||||
|
||||
<foobar@example.org> (host 'mx.example.org' rejected command 'RCPT TO:<foobar@example.org>' with code 550 (5.1.2) 'User does not exist')
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: message/delivery-status
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Reporting-MTA: dns;mx.example.org
|
||||
Arrival-Date: <date goes here>
|
||||
|
||||
Final-Recipient: rfc822;foobar@example.org
|
||||
Action: failed
|
||||
Status: 5.1.2
|
||||
Diagnostic-Code: smtp;550 User does not exist
|
||||
Remote-MTA: dns;mx.example.org
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: message/rfc822
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Disclose-recipients: prohibited
|
||||
From: Message Router Submission Agent <AMMGR@corp.timeplex.com>
|
||||
Subject: Status of: Re: Battery current sense
|
||||
To: owner-ups-mib@CS.UTK.EDU
|
||||
Message-id: <01HEGJ0WNBY28Y95LN@mr.timeplex.com>
|
||||
MIME-version: 1.0
|
||||
Content-Type: text/plain
|
||||
|
||||
|
||||
--mime_boundary--
|
||||
|
||||
65
tests/resources/smtp/dsn/mixed.eml
Normal file
65
tests/resources/smtp/dsn/mixed.eml
Normal file
@@ -0,0 +1,65 @@
|
||||
From: "Mail Delivery Subsystem" <MAILER-DAEMON@example.org>
|
||||
To: sender@foobar.org
|
||||
Auto-Submitted: auto-generated
|
||||
Subject: Partially delivered message
|
||||
Content-Type: multipart/report; report-type="delivery-status";
|
||||
boundary="mime_boundary"
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: text/plain
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Your message has been partially delivered:
|
||||
|
||||
----- Delivery to the following addresses was succesful -----
|
||||
<jane@example.org> (delivered to 'mx2.example.org' with code 250 (2.1.5) 'Message accepted for delivery')
|
||||
|
||||
----- There was a temporary problem delivering to these addresses -----
|
||||
<john.doe@example.org> (connection to 'mx.domain.org' failed: Connection timeout)
|
||||
|
||||
----- Delivery to the following addresses failed -----
|
||||
<foobar@example.org> (host 'mx.example.org' rejected command 'RCPT TO:<foobar@example.org>' with code 550 (5.1.2) 'User does not exist')
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: message/delivery-status
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Reporting-MTA: dns;mx.example.org
|
||||
Arrival-Date: <date goes here>
|
||||
|
||||
Final-Recipient: rfc822;foobar@example.org
|
||||
Action: failed
|
||||
Status: 5.1.2
|
||||
Diagnostic-Code: smtp;550 User does not exist
|
||||
Remote-MTA: dns;mx.example.org
|
||||
|
||||
Final-Recipient: rfc822;jane@example.org
|
||||
Action: delivered
|
||||
Status: 2.1.5
|
||||
Remote-MTA: dns;mx2.example.org
|
||||
|
||||
Original-Recipient: rfc822;jdoe@example.org
|
||||
Final-Recipient: rfc822;john.doe@example.org
|
||||
Action: delayed
|
||||
Status: 4.0.0
|
||||
Remote-MTA: dns;mx.domain.org
|
||||
Will-Retry-Until: <date goes here>
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: message/rfc822
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Disclose-recipients: prohibited
|
||||
From: Message Router Submission Agent <AMMGR@corp.timeplex.com>
|
||||
Subject: Status of: Re: Battery current sense
|
||||
To: owner-ups-mib@CS.UTK.EDU
|
||||
Message-id: <01HEGJ0WNBY28Y95LN@mr.timeplex.com>
|
||||
MIME-version: 1.0
|
||||
Content-Type: text/plain
|
||||
|
||||
|
||||
--mime_boundary--
|
||||
|
||||
10
tests/resources/smtp/dsn/original.txt
Normal file
10
tests/resources/smtp/dsn/original.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
Disclose-recipients: prohibited
|
||||
Date: Fri, 08 Jul 1994 09:21:25 -0400 (EDT)
|
||||
From: Message Router Submission Agent <AMMGR@corp.timeplex.com>
|
||||
Subject: Status of: Re: Battery current sense
|
||||
To: owner-ups-mib@CS.UTK.EDU
|
||||
Message-id: <01HEGJ0WNBY28Y95LN@mr.timeplex.com>
|
||||
MIME-version: 1.0
|
||||
Content-Type: text/plain
|
||||
|
||||
|
||||
45
tests/resources/smtp/dsn/success.eml
Normal file
45
tests/resources/smtp/dsn/success.eml
Normal file
@@ -0,0 +1,45 @@
|
||||
From: "Mail Delivery Subsystem" <MAILER-DAEMON@example.org>
|
||||
To: sender@foobar.org
|
||||
Auto-Submitted: auto-generated
|
||||
Subject: Successfully delivered message
|
||||
Content-Type: multipart/report; report-type="delivery-status";
|
||||
boundary="mime_boundary"
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: text/plain
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Your message has been successfully delivered to the following recipients:
|
||||
|
||||
<jane@example.org> (delivered to 'mx2.example.org' with code 250 (2.1.5) 'Message accepted for delivery')
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: message/delivery-status
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Reporting-MTA: dns;mx.example.org
|
||||
Arrival-Date: <date goes here>
|
||||
|
||||
Final-Recipient: rfc822;jane@example.org
|
||||
Action: delivered
|
||||
Status: 2.1.5
|
||||
Remote-MTA: dns;mx2.example.org
|
||||
|
||||
|
||||
--mime_boundary
|
||||
Content-Type: message/rfc822
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Disclose-recipients: prohibited
|
||||
From: Message Router Submission Agent <AMMGR@corp.timeplex.com>
|
||||
Subject: Status of: Re: Battery current sense
|
||||
To: owner-ups-mib@CS.UTK.EDU
|
||||
Message-id: <01HEGJ0WNBY28Y95LN@mr.timeplex.com>
|
||||
MIME-version: 1.0
|
||||
Content-Type: text/plain
|
||||
|
||||
|
||||
--mime_boundary--
|
||||
|
||||
2
tests/resources/smtp/lists/test-list1.txt
Normal file
2
tests/resources/smtp/lists/test-list1.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
user1@domain.org
|
||||
user2@domain.org
|
||||
3
tests/resources/smtp/lists/test-list2.txt
Normal file
3
tests/resources/smtp/lists/test-list2.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
user3@example.net
|
||||
user4@example.net
|
||||
user5@example.net
|
||||
34
tests/resources/smtp/messages/arc.eml
Normal file
34
tests/resources/smtp/messages/arc.eml
Normal file
@@ -0,0 +1,34 @@
|
||||
ARC-Seal: i=2; a=rsa-sha256; s=rsa; d=manchego.org; cv=pass;
|
||||
b=wpAAy6QusmF4O8SeziNaKxXL6EleeBYxQ0HrXl2cDgzHLOvYG0N1Wpz0bpVbA8VgteD2X8XCW
|
||||
yrdlZ5dIPTcCvgfLGLXLRTIcYUdKyfFh5IVEciaUOUsxlSRPpekENZKzdHFkL4j1mAAvpDNJ7Ft
|
||||
OFIp0ku5dACn80g7D4cSEU0=;
|
||||
ARC-Message-Signature: i=2; a=rsa-sha256; s=rsa; d=manchego.org; c=relaxed/relaxed;
|
||||
h=Subject:To:From:DKIM-Signature; t=1674137914; bh=4ET7siw2kYV7jcN+fzsuYng/
|
||||
sr/BmIzzEjh43dVAv40=; b=V3tMBI1RsyJJY7HUABcebHf0mDJ9odbPm++ZMY5AsCaUYNoSsAm
|
||||
wCf5wYlJQ26KmsluOYXoPwML0a/xvnMXPv6Rs4Z9k4IwzpzhGLsijDXymGPsW3hgq/6ivVTPkwU
|
||||
+pGSCC70rHNrAFFk5P67Ly0tbGYjJ0wZVHBzqL8IJBXK4=;
|
||||
ARC-Authentication-Results: i=2; manchego.org;
|
||||
dkim=pass header.d=manchego.org header.s=rsa header.b=IN4oMvqq
|
||||
Authentication-Results: manchego.org;
|
||||
dkim=pass header.d=manchego.org header.s=rsa header.b=IN4oMvqq
|
||||
ARC-Seal: i=1; a=ed25519-sha256; s=ed; d=scamorza.org; cv=none;
|
||||
b=k/MAHECtaer9v4oczoe00a6XMjrxU4QUVVPlZI8XYegbiOgDSaeR6IrwBSKVcN0ELYU+HXlNW
|
||||
RuUGkRuZXQODA==;
|
||||
ARC-Message-Signature: i=1; a=ed25519-sha256; s=ed; d=scamorza.org; c=relaxed/relaxed;
|
||||
h=Subject:To:From:DKIM-Signature; t=1674137914; bh=4ET7siw2kYV7jcN+fzsuYng/
|
||||
sr/BmIzzEjh43dVAv40=; b=ZVPqB/5+mbOEKIgBsq+S71Sfj2JZUlGmYEA0Ygbj0S1VmTAnsVu
|
||||
FQSInMY4/qcIeqU23BtzMgCFVZfAg5i3zDw==;
|
||||
ARC-Authentication-Results: i=1; scamorza.org;
|
||||
dkim=pass header.d=manchego.org header.s=rsa header.b=IN4oMvqq
|
||||
Authentication-Results: scamorza.org;
|
||||
dkim=pass header.d=manchego.org header.s=rsa header.b=IN4oMvqq
|
||||
DKIM-Signature: v=1; a=rsa-sha256; s=rsa; d=manchego.org; c=relaxed/relaxed;
|
||||
h=Subject:To:From; t=1674137914; bh=4ET7siw2kYV7jcN+fzsuYng/sr/BmIzzEjh43dV
|
||||
Av40=; b=IN4oMvqqxWCEyC38F7fZecYJcnq+7zP3G/xjcI64M3/Dzys2lmQeLYAXipwwYvEa5a
|
||||
VwCcJ7XUX0kSxtr6igC8FIJEDI6UmdvJgMEj/hnEjXR8m4GPrphigjJy7hagaQymBT9WhlzsDPI
|
||||
QRlUVoW0y5v1aDp3KF9bLVCKTELJPM=;
|
||||
From: queso@manchego.org
|
||||
To: affumicata@scamorza.org
|
||||
Subject: Say cheese
|
||||
|
||||
We need to settle which one of us is tastier.
|
||||
14
tests/resources/smtp/messages/dkim.eml
Normal file
14
tests/resources/smtp/messages/dkim.eml
Normal file
@@ -0,0 +1,14 @@
|
||||
DKIM-Signature: v=1; a=rsa-sha256; s=default; d=example.com; c=relaxed/relaxed; r=y;
|
||||
h=Subject:To:From; t=1674122129; bh=Xcxymouf0VhlJ7c/vHLAM3LPTUR4LKFKX7PRNni
|
||||
WCEs=; b=m5lYqx81xqAIo4ZBC9FDiFIBrRnnep+taSsutc5MkbBQvf9/Lb54AXHhruEdO2EGkG
|
||||
xUxL1c8QDH3eLz84fPTUgZue84tAsAa0q4gJFIYM5q2/GJvJ6cBvsXKZj82FjRTIz4wlLjzkW7p
|
||||
NdR9C5CID2PO4sW+GymS45F8hwqSj4=;
|
||||
DKIM-Signature: v=1; a=ed25519-sha256; s=ed; d=example.com; c=relaxed/relaxed;
|
||||
h=Subject:To:From; t=1674122129; bh=Xcxymouf0VhlJ7c/vHLAM3LPTUR4LKFKX7PRNni
|
||||
WCEs=; b=t8z1AsaxeWek+gMSVojbs2QJu+orzeR4CiHVquJYvXzv+Eb52Wq0fEmaOxoyY1teVL
|
||||
Odp57Vq/zTLjMMZ2hbBQ==;
|
||||
From: bill@example.com
|
||||
To: jdoe@example.com
|
||||
Subject: TPS Report
|
||||
|
||||
I'm going to need those TPS reports ASAP. So, if you could do that, that'd be great.
|
||||
25
tests/resources/smtp/messages/invalid_arc.eml
Normal file
25
tests/resources/smtp/messages/invalid_arc.eml
Normal file
@@ -0,0 +1,25 @@
|
||||
ARC-Seal: i=1; a=rsa-sha256; s=rsa; d=manchego.org; cv=fail;
|
||||
b=wpAAy6QusmF4O8SeziNaKxXL6EleeBYxQ0HrXl2cDgzHLOvYG0N1Wpz0bpVbA8VgteD2X8XCW
|
||||
yrdlZ5dIPTcCvgfLGLXLRTIcYUdKyfFh5IVEciaUOUsxlSRPpekENZKzdHFkL4j1mAAvpDNJ7Ft
|
||||
OFIp0ku5dACn80g7D4cSEU0=;
|
||||
ARC-Message-Signature: i=1; a=rsa-sha256; s=rsa; d=manchego.org; c=relaxed/relaxed;
|
||||
h=Subject:To:From:DKIM-Signature; t=1674137914; bh=4ET7siw2kYV7jcN+fzsuYng/
|
||||
sr/BmIzzEjh43dVAv40=; b=V3tMBI1RsyJJY7HUABcebHf0mDJ9odbPm++ZMY5AsCaUYNoSsAm
|
||||
wCf5wYlJQ26KmsluOYXoPwML0a/xvnMXPv6Rs4Z9k4IwzpzhGLsijDXymGPsW3hgq/6ivVTPkwU
|
||||
+pGSCC70rHNrAFFk5P67Ly0tbGYjJ0wZVHBzqL8IJBXK4=;
|
||||
ARC-Authentication-Results: i=1; manchego.org;
|
||||
dkim=pass header.d=manchego.org header.s=rsa header.b=IN4oMvqq
|
||||
DKIM-Signature: v=1; a=rsa-sha256; s=default; d=example.com; c=relaxed/relaxed; r=y;
|
||||
h=Subject:To:From; t=1674122129; bh=Xcxymouf0VhlJ7c/vHLAM3LPTUR4LKFKX7PRNni
|
||||
WCEs=; b=m5lYqx81xqAIo4ZBC9FDiFIBrRnnep+taSsutc5MkbBQvf9/Lb54AXHhruEdO2EGkG
|
||||
xUxL1c8QDH3eLz84fPTUgZue84tAsAa0q4gJFIYM5q2/GJvJ6cBvsXKZj82FjRTIz4wlLjzkW7p
|
||||
NdR9C5CID2PO4sW+GymS45F8hwqSj4=;
|
||||
DKIM-Signature: v=1; a=ed25519-sha256; s=ed; d=example.com; c=relaxed/relaxed;
|
||||
h=Subject:To:From; t=1674122129; bh=Xcxymouf0VhlJ7c/vHLAM3LPTUR4LKFKX7PRNni
|
||||
WCEs=; b=t8z1AsaxeWek+gMSVojbs2QJu+orzeR4CiHVquJYvXzv+Eb52Wq0fEmaOxoyY1teVL
|
||||
Odp57Vq/zTLjMMZ2hbBQ==;
|
||||
From: bill@example.com
|
||||
To: jdoe@example.com
|
||||
Subject: TPS Report
|
||||
|
||||
I'm going to need those TPS reports ASAP. So, if you could do that, that'd be great.
|
||||
14
tests/resources/smtp/messages/invalid_dkim.eml
Normal file
14
tests/resources/smtp/messages/invalid_dkim.eml
Normal file
@@ -0,0 +1,14 @@
|
||||
DKIM-Signature: v=1; a=rsa-sha256; s=default; d=example.com; c=relaxed/relaxed; r=y;
|
||||
h=Subject:To:From; t=1674122129; bh=Xcxymouf0VhlJ7c/vHLAM3LPTUR4LKFKX7PRNni
|
||||
WCEs=; b=m5lYqx81xqAIo4ZBC9FDiFIBrRnnep+taSsutc5MkbBQvf9/Lb54AXHhruEdO2EGkG
|
||||
xUxL1c8QDH3eLz84fPTUgZue84tAsAa0q4gJFIYM5q2/GJvJ6cBvsXKZj82FjRTIz4wlLjzkW7p
|
||||
NdR9C5CID2PO4sW+GymS45F8hwqSj4=;
|
||||
DKIM-Signature: v=1; a=ed25519-sha256; s=ed; d=example.com; c=relaxed/relaxed;
|
||||
h=Subject:To:From; t=1674122129; bh=Xcxymouf0VhlJ7c/vHLAM3LPTUR4LKFKX7PRNni
|
||||
WCEs=; b=t8z1AsaxeWek+gMSVojbs2QJu+orzeR4CiHVquJYvXzv+Eb52Wq0fEmaOxoyY1teVL
|
||||
Odp57Vq/zTLjMMZ2hbBQ==;
|
||||
From: bill@example.com
|
||||
To: jdoe@example.com
|
||||
Subject: TPS Report
|
||||
|
||||
Body hash will not match.
|
||||
23
tests/resources/smtp/messages/loop.eml
Normal file
23
tests/resources/smtp/messages/loop.eml
Normal file
@@ -0,0 +1,23 @@
|
||||
Received: from client1.football.example.com [192.0.2.1]
|
||||
by submitserver.example.com with SUBMISSION;
|
||||
Fri, 11 Jul 2003 21:01:54 -0700 (PDT)
|
||||
Received: from client1.football.example.com [192.0.2.1]
|
||||
by submitserver.example.com with SUBMISSION;
|
||||
Fri, 11 Jul 2003 21:01:54 -0700 (PDT)
|
||||
Received: from client1.football.example.com [192.0.2.1]
|
||||
by submitserver.example.com with SUBMISSION;
|
||||
Fri, 11 Jul 2003 21:01:54 -0700 (PDT)
|
||||
Received: from client1.football.example.com [192.0.2.1]
|
||||
by submitserver.example.com with SUBMISSION;
|
||||
Fri, 11 Jul 2003 21:01:54 -0700 (PDT)
|
||||
From: Joe SixPack <joe@football.example.com>
|
||||
To: Suzie Q <suzie@shopping.example.net>
|
||||
Subject: Is dinner ready?
|
||||
Date: Fri, 11 Jul 2003 21:00:37 -0700 (PDT)
|
||||
Message-ID: <20030712040037.46341.5F8J@football.example.com>
|
||||
|
||||
Hi.
|
||||
|
||||
We lost the game. Are you hungry yet?
|
||||
|
||||
Joe.
|
||||
34
tests/resources/smtp/messages/multipart.eml
Normal file
34
tests/resources/smtp/messages/multipart.eml
Normal file
@@ -0,0 +1,34 @@
|
||||
From: Hendrik <hendrik@example.com>
|
||||
To: Harrie <harrie@example.com>
|
||||
Date: Sat, 11 Oct 2010 00:31:44 +0200
|
||||
Subject: One Two Three Four
|
||||
Content-Type: multipart/mixed; boundary=AA
|
||||
|
||||
This is a multi-part message in MIME format.
|
||||
--AA
|
||||
Content-Type: multipart/mixed; boundary=BB
|
||||
|
||||
This is a multi-part message in MIME format.
|
||||
--BB
|
||||
Content-Type: text/plain; charset="us-ascii"
|
||||
|
||||
This is the first message part containing
|
||||
plain text.
|
||||
|
||||
--BB
|
||||
Content-Type: text/plain; charset="us-ascii"
|
||||
|
||||
This is another plain text message part.
|
||||
|
||||
--BB--
|
||||
This is the end of MIME multipart.
|
||||
|
||||
--AA
|
||||
Content-Type: text/html; charset="us-ascii"
|
||||
|
||||
<html>
|
||||
<body>This is a piece of HTML text.</body>
|
||||
</html>
|
||||
|
||||
--AA--
|
||||
This is the end of MIME multipart.
|
||||
14
tests/resources/smtp/messages/no_dkim.eml
Normal file
14
tests/resources/smtp/messages/no_dkim.eml
Normal file
@@ -0,0 +1,14 @@
|
||||
Received: from client1.football.example.com [192.0.2.1]
|
||||
by submitserver.example.com with SUBMISSION;
|
||||
Fri, 11 Jul 2003 21:01:54 -0700 (PDT)
|
||||
From: Joe SixPack <joe@football.example.com>
|
||||
To: Suzie Q <suzie@shopping.example.net>
|
||||
Subject: Is dinner ready?
|
||||
Date: Fri, 11 Jul 2003 21:00:37 -0700 (PDT)
|
||||
Message-ID: <20030712040037.46341.5F8J@football.example.com>
|
||||
|
||||
Hi.
|
||||
|
||||
We lost the game. Are you hungry yet?
|
||||
|
||||
Joe.
|
||||
9
tests/resources/smtp/messages/no_msgid.eml
Normal file
9
tests/resources/smtp/messages/no_msgid.eml
Normal file
@@ -0,0 +1,9 @@
|
||||
From: Joe SixPack <joe@football.example.com>
|
||||
To: Suzie Q <suzie@shopping.example.net>
|
||||
Subject: Is dinner ready?
|
||||
|
||||
Hi.
|
||||
|
||||
We lost the game. Are you hungry yet?
|
||||
|
||||
Joe.
|
||||
14
tests/resources/smtp/pipe/pipe_me.sh
Normal file
14
tests/resources/smtp/pipe/pipe_me.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $1 == "hello" ]] && [[ $2 == "world" ]]; then
|
||||
echo "X-My-Header: true"
|
||||
while read line
|
||||
do
|
||||
echo "$line"
|
||||
done < /dev/stdin
|
||||
exit 0;
|
||||
else
|
||||
echo "Invalid parameters!"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
44
tests/resources/smtp/reports/arf1.eml
Normal file
44
tests/resources/smtp/reports/arf1.eml
Normal file
@@ -0,0 +1,44 @@
|
||||
From: <abusedesk@example.com>
|
||||
Date: Thu, 8 Mar 2005 17:40:36 EDT
|
||||
Subject: FW: Earn money
|
||||
To: <abuse@example.net>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/report; report-type=feedback-report;
|
||||
boundary="part1_13d.2e68ed54_boundary"
|
||||
|
||||
--part1_13d.2e68ed54_boundary
|
||||
Content-Type: text/plain; charset="US-ASCII"
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
This is an email abuse report for an email message received from IP
|
||||
192.0.2.1 on Thu, 8 Mar 2005 14:00:00 EDT. For more information
|
||||
about this format please see http://www.mipassoc.org/arf/.
|
||||
|
||||
--part1_13d.2e68ed54_boundary
|
||||
Content-Type: message/feedback-report
|
||||
|
||||
Feedback-Type: abuse
|
||||
User-Agent: SomeGenerator/1.0
|
||||
Version: 1
|
||||
|
||||
--part1_13d.2e68ed54_boundary
|
||||
Content-Type: message/rfc822
|
||||
Content-Disposition: inline
|
||||
|
||||
Received: from mailserver.example.net
|
||||
(mailserver.example.net [192.0.2.1])
|
||||
by example.com with ESMTP id M63d4137594e46;
|
||||
Thu, 08 Mar 2005 14:00:00 -0400
|
||||
From: <somespammer@example.net>
|
||||
To: <Undisclosed Recipients>
|
||||
Subject: Earn money
|
||||
MIME-Version: 1.0
|
||||
Content-type: text/plain
|
||||
Message-ID: 8787KJKJ3K4J3K4J3K4J3.mail@example.net
|
||||
Date: Thu, 02 Sep 2004 12:31:03 -0500
|
||||
|
||||
Spam Spam Spam
|
||||
Spam Spam Spam
|
||||
Spam Spam Spam
|
||||
Spam Spam Spam
|
||||
--part1_13d.2e68ed54_boundary--
|
||||
55
tests/resources/smtp/reports/arf2.eml
Normal file
55
tests/resources/smtp/reports/arf2.eml
Normal file
@@ -0,0 +1,55 @@
|
||||
From: <abusedesk@example.com>
|
||||
Date: Thu, 8 Mar 2005 17:40:36 EDT
|
||||
Subject: FW: Earn money
|
||||
To: <abuse@example.net>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/report; report-type=feedback-report;
|
||||
boundary="part1_13d.2e68ed54_boundary"
|
||||
|
||||
--part1_13d.2e68ed54_boundary
|
||||
Content-Type: text/plain; charset="US-ASCII"
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
This is an email abuse report for an email message received from IP
|
||||
192.0.2.1 on Thu, 8 Mar 2005 14:00:00 EDT. For more information
|
||||
about this format please see http://www.mipassoc.org/arf/.
|
||||
|
||||
--part1_13d.2e68ed54_boundary
|
||||
Content-Type: message/feedback-report
|
||||
|
||||
Feedback-Type: abuse
|
||||
User-Agent: SomeGenerator/1.0
|
||||
Version: 1
|
||||
Original-Mail-From: <somespammer@example.net>
|
||||
Original-Rcpt-To: <user@example.com>
|
||||
Arrival-Date: Thu, 8 Mar 2005 14:00:00 EDT
|
||||
Reporting-MTA: dns; mail.example.com
|
||||
Source-IP: 192.0.2.1
|
||||
Authentication-Results: mail.example.com;
|
||||
spf=fail smtp.mail=somespammer@example.com
|
||||
Reported-Domain: example.net
|
||||
Reported-Uri: http://example.net/earn_money.html
|
||||
Reported-Uri: mailto:user@example.com
|
||||
Removal-Recipient: user@example.com
|
||||
|
||||
--part1_13d.2e68ed54_boundary
|
||||
Content-Type: message/rfc822
|
||||
Content-Disposition: inline
|
||||
|
||||
From: <somespammer@example.net>
|
||||
Received: from mailserver.example.net (mailserver.example.net
|
||||
[192.0.2.1]) by example.com with ESMTP id M63d4137594e46;
|
||||
Thu, 08 Mar 2005 14:00:00 -0400
|
||||
|
||||
To: <Undisclosed Recipients>
|
||||
Subject: Earn money
|
||||
MIME-Version: 1.0
|
||||
Content-type: text/plain
|
||||
Message-ID: 8787KJKJ3K4J3K4J3K4J3.mail@example.net
|
||||
Date: Thu, 02 Sep 2004 12:31:03 -0500
|
||||
|
||||
Spam Spam Spam
|
||||
Spam Spam Spam
|
||||
Spam Spam Spam
|
||||
Spam Spam Spam
|
||||
--part1_13d.2e68ed54_boundary--
|
||||
58
tests/resources/smtp/reports/arf3.eml
Normal file
58
tests/resources/smtp/reports/arf3.eml
Normal file
@@ -0,0 +1,58 @@
|
||||
From: arf-daemon@example.com
|
||||
To: recipient@example.net
|
||||
Subject: This is a test
|
||||
Date: Wed, 14 Apr 2010 12:17:45 -0700 (PDT)
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/report; report-type=feedback-report;
|
||||
boundary="part1_13d.2e68ed54_boundary"
|
||||
|
||||
--part1_13d.2e68ed54_boundary
|
||||
Content-Type: text/plain; charset="US-ASCII"
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
This is an email abuse report for an email message received
|
||||
from IP 192.0.2.1 on Wed, 14 Apr 2010 12:15:31 PDT. For more
|
||||
information about this format please see
|
||||
http://www.mipassoc.org/arf/.
|
||||
|
||||
--part1_13d.2e68ed54_boundary
|
||||
Content-Type: message/feedback-report
|
||||
|
||||
Feedback-Type: auth-failure
|
||||
User-Agent: SomeDKIMFilter/1.0
|
||||
Version: 1
|
||||
Original-Mail-From: <randomuser@example.net>
|
||||
Original-Rcpt-To: <user@example.com>
|
||||
Received-Date: Wed, 14 Apr 2010 12:15:31 -0700 (PDT)
|
||||
Source-IP: 192.0.2.1
|
||||
Authentication-Results: mail.example.com; dkim=fail
|
||||
header.d=example.net
|
||||
Reported-Domain: example.net
|
||||
DKIM-Domain: example.net
|
||||
Auth-Failure: bodyhash
|
||||
|
||||
--part1_13d.2e68ed54_boundary
|
||||
Content-Type: message/rfc822
|
||||
|
||||
DKIM-Signature: v=1; c=relaxed/simple; a=rsa-sha256;
|
||||
s=testkey; d=example.net; h=From:To:Subject:Date;
|
||||
bh=2jUSOH9NhtVGCQWNr9BrIAPreKQjO6Sn7XIkfJVOzv8=;
|
||||
b=AuUoFEfDxTDkHlLXSZEpZj79LICEps6eda7W3deTVFOk4yAUoqOB
|
||||
4nujc7YopdG5dWLSdNg6xNAZpOPr+kHxt1IrE+NahM6L/LbvaHut
|
||||
KVdkLLkpVaVVQPzeRDI009SO2Il5Lu7rDNH6mZckBdrIx0orEtZV
|
||||
4bmp/YzhwvcubU4=
|
||||
Received: from smtp-out.example.net by mail.example.com
|
||||
with SMTP id o3F52gxO029144;
|
||||
Wed, 14 Apr 2010 12:15:31 -0700 (PDT)
|
||||
Received: from internal-client-001.example.com
|
||||
by mail.example.com
|
||||
with SMTP id o3F3BwdY028431;
|
||||
Wed, 14 Apr 2010 12:12:09 -0700 (PDT)
|
||||
From: randomuser@example.net
|
||||
To: user@example.com
|
||||
Date: Wed, 14 Apr 2010 12:12:09 -0700 (PDT)
|
||||
Subject: This is a test
|
||||
|
||||
Hi, just making sure DKIM is working!
|
||||
|
||||
--part1_13d.2e68ed54_boundary--
|
||||
73
tests/resources/smtp/reports/arf4.eml
Normal file
73
tests/resources/smtp/reports/arf4.eml
Normal file
@@ -0,0 +1,73 @@
|
||||
Return-Path: <opendmarc@box.mydomain.name>
|
||||
Received: by box.mydomain.name (Postfix, from userid 116)
|
||||
id CF8FA658E0; Tue, 5 Oct 2021 17:37:02 +1300 (NZDT)
|
||||
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=box.mydomain.name;
|
||||
s=mail; t=1633408622;
|
||||
bh=yDlkGfe4dFwlsFeoKaIHG6xiRgQs2/PqPnLtiPm5ewk=;
|
||||
h=From:To:Date:Subject:From;
|
||||
b=TwXvJJFoFwJDcb6IKMKsxp2BiRDsrjLOESyQPh/Cc4tRZltVAud/k6f0XP4l5a/T8
|
||||
kh0iDOGImc0O1WZNFt0MUcwLsfW4qbYjCBtthQDnbPApvv6MJDASwau+wipu5Nrkjc
|
||||
flg+nMaD97pVgR0LevMoVIWoiy1f5PNC/z0xkY2wnvyoGn91WuDsdocOqyoPo4RmIT
|
||||
A/f3M4CjOv/QmMEAWBIsa7kAZwf+rNmzDahFOtp2vFLqHt0iZi5vs40fa6O/I0snTM
|
||||
fRkv2GMZAug7NMU8MN/MhuO87FV6ATZXvB0Kxvsy9z0zZYK7tM1OYHjiCYot45erG3
|
||||
dlKrYiXsfd3BQ==
|
||||
From: OpenDMARC Filter <opendmarc@box.mydomain.name>
|
||||
To: postmaster@vericty.interpublication.org
|
||||
Date: Tue, 5 Oct 2021 17:37:02 +1300 (NZDT)
|
||||
Subject: FW: Wir kaufen dein Auto!
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/report;
|
||||
report-type=feedback-report;
|
||||
boundary="box.mydomain.name:8BE2660E72"
|
||||
Message-Id: <20211005043702.CF8FA658E0@box.mydomain.name>
|
||||
|
||||
--box.mydomain.name:8BE2660E72
|
||||
Content-Type: text/plain
|
||||
|
||||
This is an authentication failure report for an email message received from IP
|
||||
148.163.85.135 on Tue, 5 Oct 2021 17:37:02 +1300 (NZDT).
|
||||
|
||||
--box.mydomain.name:8BE2660E72
|
||||
Content-Type: message/feedback-report
|
||||
|
||||
Feedback-Type: auth-failure
|
||||
Version: 1
|
||||
User-Agent: OpenDMARC-Filter/1.3.2
|
||||
Auth-Failure: dmarc
|
||||
Authentication-Results: box.mydomain.name; dmarc=fail header.from=interpublication.org
|
||||
Original-Envelope-Id: 8BE2660E72
|
||||
Original-Mail-From: info@interpublication.org
|
||||
Source-IP: 148.163.85.135 (sainay.interpublication.org)
|
||||
Reported-Domain: interpublication.org
|
||||
|
||||
--box.mydomain.name:8BE2660E72
|
||||
Content-Type: text/rfc822-headers
|
||||
|
||||
Authentication-Results: box.mydomain.name;
|
||||
dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=interpublication.org header.i=@interpublication.org header.b="PrsTNnuH";
|
||||
dkim-atps=neutral
|
||||
Received: from dslb-002-202-150-127.002.202.pools.vodafone-ip.de (dslb-188-099-080-029.188.099.pools.vodafone-ip.de [188.99.80.29])
|
||||
by sainay.interpublication.org (Postfix) with ESMTPA id 6BB23A2D3
|
||||
for <address@myotherdomain.name>; Tue, 5 Oct 2021 00:36:52 -0400 (EDT)
|
||||
DKIM-Filter: OpenDKIM Filter v2.11.0 sainay.interpublication.org 6BB23A2D3
|
||||
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
|
||||
d=interpublication.org; s=default; t=1633408612;
|
||||
bh=q1/OPSn+VXteY2+DHXqOIgs5LsNCJisEcQIKVW9it6I=;
|
||||
h=From:Subject:To:Reply-To:Date:From;
|
||||
b=PrsTNnuH8D0Ch3gcWqGmXiYc2Kvu1CHGJBsqS521uYazd3G/urp7MHQvmNwK0r1gS
|
||||
DR3A3KwGejI5uuqzxDCqz28Mq6AkdTkOjFyXw65MLlsKTQddWTgciVnoqJempa6yzw
|
||||
PSM5550XqVFqqkNxEcYBUBYEwUdy1tY8rc4zhq8cIrsonQVxJJSbc3cdonICM1kLBV
|
||||
WASv16p3376ZBcKqFLc8UQ58YQKaFm51VZGEjtabfmWbgOQ7VikFFECDG3aRt8fZa6
|
||||
D03MrzUSngwPUdcRQZuqS/sApW/a9N2YwdbR51OFzPBr4ypUEIw/qprgBG4BfQQKeS
|
||||
1PhinNvVtgQpQ==
|
||||
From: "Rolf Bader" <info@interpublication.org>
|
||||
Subject: Wir kaufen dein Auto!
|
||||
To: "address" <address@myotherdomain.name>
|
||||
Content-Type: multipart/alternative; boundary="TD6gM3Blv=_XBZYNFT7dCsH1DHHOKUuSyA"
|
||||
MIME-Version: 1.0
|
||||
Reply-To: "Rolf Bader" <auto24-export@gmx.de>
|
||||
Organization: AutoTEAM24
|
||||
Date: Tue, 5 Oct 2021 06:36:51 +0200
|
||||
|
||||
--box.mydomain.name:8BE2660E72--
|
||||
|
||||
87
tests/resources/smtp/reports/arf5.eml
Normal file
87
tests/resources/smtp/reports/arf5.eml
Normal file
@@ -0,0 +1,87 @@
|
||||
Message-ID: <433689.81121.example@mta.mail.receiver.example>
|
||||
From: "SomeISP Antispam Feedback" <feedback@mail.receiver.example>
|
||||
To: arf-failure@sender.example
|
||||
Subject: FW: You have a new bill from your bank
|
||||
Date: Sat, 8 Oct 2011 15:15:59 -0500 (CDT)
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/report;
|
||||
boundary="------------Boundary-00=_3BCR4Y7kX93yP9uUPRhg";
|
||||
report-type=feedback-report
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
--------------Boundary-00=_3BCR4Y7kX93yP9uUPRhg
|
||||
Content-Type: text/plain; charset="us-ascii"
|
||||
Content-Disposition: inline
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
This is an authentication failure report for an email message
|
||||
received from a.sender.example on 8 Oct 2011 20:15:58 +0000 (GMT).
|
||||
For more information about this format, please see [RFC6591].
|
||||
|
||||
--------------Boundary-00=_3BCR4Y7kX93yP9uUPRhg
|
||||
Content-Type: message/feedback-report
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Feedback-Type: auth-failure
|
||||
User-Agent: Someisp!Mail-Feedback/1.0
|
||||
Version: 1
|
||||
Original-Mail-From: anexample.reply@a.sender.example
|
||||
Original-Envelope-Id: o3F52gxO029144
|
||||
Authentication-Results: mta1011.mail.tp2.receiver.example;
|
||||
dkim=fail (bodyhash) header.d=sender.example
|
||||
Auth-Failure: bodyhash
|
||||
DKIM-Canonicalized-Body: VGhpcyBpcyBhIG1lc3NhZ2UgYm9keSB0
|
||||
aGF0IGdvdCBtb2RpZmllZCBpbiB0cmFuc2l0LgoKQXQgdGhlIHNhbWU
|
||||
gdGltZSB0aGF0IHRoZSBib2R5aGFzaCBmYWlscyB0byB2ZXJpZnksIH
|
||||
RoZQptZXNzYWdlIGNvbnRlbnQgaXMgY2xlYXJseSBhYnVzaXZlIG9yI
|
||||
HBoaXNoeSwgYXMgdGhlClN1YmplY3QgYWxyZWFkeSBoaW50cy4gIElu
|
||||
ZGVlZCwgdGhpcyBib2R5IGFsc28gY29udGFpbnMKdGhlIGZvbGxvd2l
|
||||
uZyB0ZXh0OgoKICAgUGxlYXNlIGVudGVyIHlvdXIgZnVsbCBiYW5rIG
|
||||
NyZWRlbnRpYWxzIGF0CiAgIGh0dHA6Ly93d3cuc2VuZGVyLmV4YW1wb
|
||||
GUvCgpXZSBhcmUgaW1wbHlpbmcgdGhhdCwgYWx0aG91Z2ggbXVsdGlw
|
||||
bGUgZmFpbHVyZXMKcmVxdWlyZSBtdWx0aXBsZSByZXBvcnRzLCBhIHN
|
||||
pbmdsZSBmYWlsdXJlIGNhbiBiZQpyZXBvcnRlZCBhbG9uZyB3aXRoIH
|
||||
BoaXNoaW5nIGluIGEgc2luZ2xlIHJlcG9ydC4K
|
||||
DKIM-Domain: sender.example
|
||||
DKIM-Identity: @sender.example
|
||||
DKIM-Selector: testkey
|
||||
Arrival-Date: 8 Oct 2011 20:15:58 +0000 (GMT)
|
||||
Source-IP: 192.0.2.1
|
||||
Reported-Domain: a.sender.example
|
||||
Reported-URI: http://www.sender.example/
|
||||
|
||||
--------------Boundary-00=_3BCR4Y7kX93yP9uUPRhg
|
||||
Content-Type: text/rfc822-headers
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Authentication-Results: mta1011.mail.tp2.receiver.example;
|
||||
dkim=fail (bodyhash) header.d=sender.example;
|
||||
spf=pass smtp.mailfrom=anexample.reply@a.sender.example
|
||||
Received: from smtp-out.sender.example
|
||||
by mta1011.mail.tp2.receiver.example
|
||||
with SMTP id oB85W8xV000169;
|
||||
Sat, 08 Oct 2011 13:15:58 -0700 (PDT)
|
||||
DKIM-Signature: v=1; c=relaxed/simple; a=rsa-sha256;
|
||||
s=testkey; d=sender.example; h=From:To:Subject:Date;
|
||||
bh=2jUSOH9NhtVGCQWNr9BrIAPreKQjO6Sn7XIkfJVOzv8=;
|
||||
b=AuUoFEfDxTDkHlLXSZEpZj79LICEps6eda7W3deTVFOk4yAUoqOB
|
||||
4nujc7YopdG5dWLSdNg6xNAZpOPr+kHxt1IrE+NahM6L/LbvaHut
|
||||
KVdkLLkpVaVVQPzeRDI009SO2Il5Lu7rDNH6mZckBdrIx0orEtZV
|
||||
4bmp/YzhwvcubU4=
|
||||
Received: from mail.sender.example
|
||||
by smtp-out.sender.example
|
||||
with SMTP id o3F52gxO029144;
|
||||
Sat, 08 Oct 2011 13:15:31 -0700 (PDT)
|
||||
Received: from internal-client-001.sender.example
|
||||
by mail.sender.example
|
||||
with SMTP id o3F3BwdY028431;
|
||||
Sat, 08 Oct 2011 13:15:24 -0700 (PDT)
|
||||
Date: Sat, 8 Oct 2011 16:15:24 -0400 (EDT)
|
||||
Reply-To: anexample.reply@a.sender.example
|
||||
From: anexample@a.sender.example
|
||||
To: someuser@receiver.example
|
||||
Subject: You have a new bill from your bank
|
||||
Message-ID: <87913910.1318094604546@out.sender.example>
|
||||
|
||||
--------------Boundary-00=_3BCR4Y7kX93yP9uUPRhg--
|
||||
|
||||
66
tests/resources/smtp/reports/dmarc1.eml
Normal file
66
tests/resources/smtp/reports/dmarc1.eml
Normal file
@@ -0,0 +1,66 @@
|
||||
Received: from mail.stalw.art ([mail.stalw.art])
|
||||
by 127.0.0.1 (Stalwart JMAP) with LMTP;
|
||||
Mon, 28 Nov 2022 10:51:56 +0000
|
||||
Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a])
|
||||
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
|
||||
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
|
||||
(No client certificate requested)
|
||||
by mail.stalw.art (Postfix) with ESMTPS id 1145E7CC0B
|
||||
for <domains@stalw.art>; Mon, 28 Nov 2022 10:51:53 +0000 (UTC)
|
||||
Received: by mail-qv1-xf4a.google.com with SMTP id 71-20020a0c804d000000b004b2fb260447so12985969qva.10
|
||||
for <domains@stalw.art>; Mon, 28 Nov 2022 02:51:52 -0800 (PST)
|
||||
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
|
||||
d=google.com; s=20210112;
|
||||
h=content-transfer-encoding:content-disposition:to:from:subject
|
||||
:message-id:date:mime-version:from:to:cc:subject:date:message-id
|
||||
:reply-to;
|
||||
bh=sMF/38UFRhmUYFRJST4vLBu/U1BXgsdCUE02HF8nXx8=;
|
||||
b=I7WONP7tMsULp4eKjJeeKtM+nDYqMSIYMxqNHqCP1bTsnUiW2xM278I2+F8EjtFNYf
|
||||
XOgusNn8kqbSnA4w1+q4G87zTF4K3tGnxNpuUMQ7GzcofBKtr7VPv9XFqvTPJ+N8YSwe
|
||||
926ec7xi71BpSHAgqp5Wqocj8ruIVjcCZ37hYrG0C4s+FVBtbaU3EeyPpkESaaY2vE5y
|
||||
Qa2KsrMsyJXlbyW/sFJ7AGDDuXwyGkTa+btP/xIiQM2HlBKy7vNOFZKkxInOuQsXJgZy
|
||||
3H7ivlpD3hMrszwU77o5jBArVwN0RIkUSosAPQf+pzgvRlkseRlDrmzKQutvYWIaTP3/
|
||||
FHPA==
|
||||
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
|
||||
d=1e100.net; s=20210112;
|
||||
h=content-transfer-encoding:content-disposition:to:from:subject
|
||||
:message-id:date:mime-version:x-gm-message-state:from:to:cc:subject
|
||||
:date:message-id:reply-to;
|
||||
bh=sMF/38UFRhmUYFRJST4vLBu/U1BXgsdCUE02HF8nXx8=;
|
||||
b=D3oClvT5AKcTpEjjffHQqPPQ9j5mmtExiviSq7iBYkoq+322LtR2hGqGxtvlAwRDsQ
|
||||
VIfuKVExygw3c9bckjzKtJYX128HGK35gHnmsrzqvCC93JlRaC/55kcM9Bhks0xJnl7i
|
||||
yNFHPZ0DY/jasdUdQ1QqnI+8qiPy+/12JvD+/TGlaDuS+RWYFU4/ky46S3vMXwXmRt6D
|
||||
IGggXoW7snSaM4s88DzMUl0U7DH823UPQrUxnA5Oxscwn9M1ENJUWD/3EJo5ZEUMw0ll
|
||||
Y8AlyhjWFgVqs1Y4V/LVWeXdF10fpm78+jm8QyIZYZJjh4I33AekdsWVM71ZNNYGL0+8
|
||||
+GDg==
|
||||
X-Gm-Message-State: ANoB5pn0zRZSWXdFXd9G0tawbSeUYuhxToVkIYoLf8OJzoBLcIc0wKcB
|
||||
AfU9Coz5vAuiM1mASWJhbg==
|
||||
X-Google-Smtp-Source: AA0mqf6WWsnqMD4cHE40jB89/zblmT7yNKeHKlsvvCmlYANKmpKLTQTaCm5qCA0mVmxR/PTQogsNndWH/qe0ug==
|
||||
MIME-Version: 1.0
|
||||
X-Received: by 2002:ac8:5182:0:b0:39c:cb6a:300b with SMTP id
|
||||
c2-20020ac85182000000b0039ccb6a300bmr48409299qtn.181.1669632711968; Mon, 28
|
||||
Nov 2022 02:51:51 -0800 (PST)
|
||||
Date: Sun, 27 Nov 2022 15:59:59 -0800
|
||||
Message-ID: <5264580628977113351@google.com>
|
||||
Subject: Report domain: stalw.art Submitter: google.com Report-ID: 5264580628977113351
|
||||
From: noreply-dmarc-support@google.com
|
||||
To: domains@stalw.art
|
||||
Content-Type: application/zip;
|
||||
name="google.com!stalw.art!1669507200!1669593599.zip"
|
||||
Content-Disposition: attachment;
|
||||
filename="google.com!stalw.art!1669507200!1669593599.zip"
|
||||
Content-Transfer-Encoding: base64
|
||||
|
||||
UEsDBAoAAAAIAHFUfFWAeOSU8QEAAKkEAAAuAAAAZ29vZ2xlLmNvbSFzdGFsdy5hcnQhMTY2OTUw
|
||||
NzIwMCExNjY5NTkzNTk5LnhtbKVUwZKjIBC9z1ekck9Qk5hoMcye9gt2zxbB1lBBoACTmb9fHNCw
|
||||
ma257El83f2632sUv70PYnUDY7mSr+t8m61XIJlquexf179//dyc1qs38oI7gPZM2ZW8rFbYgFbG
|
||||
NQM42lJHJ8yjyvSNpAOQXqlewJapAaMFDDkwUC6IVJ5BfGzagRq2saOe6H6kZSEv1rw7QxumpKPM
|
||||
NVx2ilyc07ZGKJZuH6WIIirtHQwq9mV5OGWe62t9II4yeEsORbn3uWVxqo7HPN/tDjlGj3BI91Kh
|
||||
MVT2UYyHztBzSfKyrA7Zsch8s4DMcZBtiFa7Q1X5UeRMhv5mW7qlnmKtBGcfjR7PgtsLLIMo744k
|
||||
1lFx31LjPFlAQpi2Vz4Qg1E4RNDq7hObngHSfg8SMNLx3c6AnRHNHMknVdPhc8p/TeR9ZMrMwxl1
|
||||
X+RbNRoGDdekoFle77uqZlme1+f9jtW1t/iRMJcwNUrfFKNwmOHYF25UjN64dg5MbnCrleXOX+A4
|
||||
f4okeZMZmlrrExZfovAuBhZzEq1PPf2mZoWYtyAd77j/fJayC9AWTNMZNaQbSuHI86Ua09FdGgN2
|
||||
FO5B+DTs98uP93piiJLiS6IWBDCnDLmB4FdujaayKLz2GV8MSDvjxJr/niIx2t/IJ9FTcrhPGD3+
|
||||
On8AUEsBAgoACgAAAAgAcVR8VYB45JTxAQAAqQQAAC4AAAAAAAAAAAAAAAAAAAAAAGdvb2dsZS5j
|
||||
b20hc3RhbHcuYXJ0ITE2Njk1MDcyMDAhMTY2OTU5MzU5OS54bWxQSwUGAAAAAAEAAQBcAAAAPQIA
|
||||
AAAA
|
||||
68
tests/resources/smtp/reports/dmarc2.eml
Normal file
68
tests/resources/smtp/reports/dmarc2.eml
Normal file
@@ -0,0 +1,68 @@
|
||||
Received: from mail.stalw.art ([mail.stalw.art])
|
||||
by 127.0.0.1 (Stalwart JMAP) with LMTP;
|
||||
Thu, 10 Nov 2022 03:27:19 +0000
|
||||
Received: from mx0.backschues.net (lnxs001.backschues.net [85.183.142.13])
|
||||
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
|
||||
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
|
||||
(No client certificate requested)
|
||||
by mail.stalw.art (Postfix) with ESMTPS id 6DD117CC0B
|
||||
for <domains@stalw.art>; Thu, 10 Nov 2022 03:27:16 +0000 (UTC)
|
||||
Received: from mx0.backschues.net (localhost [127.0.0.1])
|
||||
by mx0.backschues.net with SMTP id 4N76hg4lNgz9ryP
|
||||
for <domains@stalw.art>; Thu, 10 Nov 2022 04:27:15 +0100 (CET)
|
||||
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=backschues.net;
|
||||
s=mail-2014-01; t=1668050835;
|
||||
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
|
||||
to:to:cc:mime-version:mime-version:content-type:content-type;
|
||||
bh=LTj1tdFz9JQFL/mVJASN0b9hGcolcCtY5v0bhnChJYY=;
|
||||
b=AtRegYc51PTYqDOy/6fB4xETTWAbVc2ivf8AfF4ygu3+6+oqBPyloTuOnEt7xYmjLFnll/
|
||||
SMZFFpRETsMlkiVg/1O0VpPRpIpiTbh4dwtUrRyo1Uw/cDJv5auz4rBMxcRNnDKypHwUKs
|
||||
BUahHWsVKH/TL5SzV79kqyjlYAs1HdJvS+wRINYBaptkeT6UeHGZakL21NnQUdOGt0fj4y
|
||||
eJvWVtCYHZ5DUJ8K8h2W1NlTAWP8nTBoQVVDQrI5Zi1AEvnUWw+H7E8d/q2cF756/IBYso
|
||||
rT56D3PYo2iuSt3aIBth1wL7/GJwc6N4JHcNpJ9XPV6xQbt+lm2b3+W59osL0Q==
|
||||
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=backschues.net;
|
||||
s=ed25519-mail-2018-10; t=1668050835;
|
||||
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
|
||||
to:to:cc:mime-version:mime-version:content-type:content-type;
|
||||
bh=LTj1tdFz9JQFL/mVJASN0b9hGcolcCtY5v0bhnChJYY=;
|
||||
b=y7d79OWWCrDX40k91FoBdGnUcrjN7xvWYyqskPfQmMoaSqFNSlTHH8gMXC/vXwiYIP3Oxp
|
||||
d/hVvEuIIQBlwMDQ==
|
||||
From: "DMARC Aggregate Report" <noreply-dmarc-support@backschues.net>
|
||||
To: domains@stalw.art
|
||||
Subject: Report Domain: stalw.art
|
||||
Submitter: backschues.net
|
||||
Report-ID: stalw.art.1667948400.1668034800
|
||||
Date: Thu, 10 Nov 2022 03:27:02 GMT
|
||||
MIME-Version: 1.0
|
||||
Message-ID: <afe541eab3ec091f@backschues.net>
|
||||
Content-Type: multipart/mixed;
|
||||
boundary="----=_NextPart_84e1fdd0-b285-4922-9fc7-88b070204303"
|
||||
|
||||
This is a multipart message in MIME format.
|
||||
|
||||
------=_NextPart_84e1fdd0-b285-4922-9fc7-88b070204303
|
||||
Content-Type: text/plain; charset="us-ascii"
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
This is an aggregate report from backschues.net.
|
||||
|
||||
Report domain: stalw.art
|
||||
Submitter: backschues.net
|
||||
Report ID: stalw.art.1667948400.1668034800
|
||||
|
||||
------=_NextPart_84e1fdd0-b285-4922-9fc7-88b070204303
|
||||
Content-Type: application/gzip
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Disposition: attachment;
|
||||
filename="backschues.net!stalw.art!1667948400!1668034800.xml.gz"
|
||||
|
||||
H4sIAAAAAAAAA5VUsXLbMAzd/RU6D9ksSo6b2heG6dKOndJZR5OQzYtEsiSVNH9fUqQoqXWHT
|
||||
gIfgAfgASf8/KvvijcwVij5tK3LaluAZIoLeXna/nj5tjtui2eywS0AP1P2SjZFgQ1oZVzTg6
|
||||
OcOhowjypzaSTtgdz9HJR7DNGWXQew5fevLxhld4yGnoqOSOW5uo8d76lhOzvoQPxlkSrBYRR
|
||||
jY16qLTixjnbvJTWurB8ePp8Ox0NVBfNY3R+OVYXRHBpTfa/QGCovqQcPneEiJJnzMYrI5AfJ
|
||||
yZIyvCMZWrPlaktRsFadYB+NHs6dsFfIjSg/kJwH8GQRiW7KX0VPDEbRSKDV7YiFb4S0l08CR
|
||||
jq97QTYCdHMkTr0HYyxy7878ooyZXhcrHqfuNRgGDRCk09Vud/fl/X+VNangyfPnhjJ1CB9FY
|
||||
yikQrHMvBGu8HrxLOgXFitrHD+3FKzSyRHhblbv3TvzhKME7YJnlVAt2r5dcRRsOAgnWiFP/G
|
||||
UcAXKwTStUf1yBUt4ZPgjE9PBXRsDdujcRLVqLu1QgGtLf+zrpY6XG1KJptaGaxkf0y0Fnpts
|
||||
/7iRmS7KcYNukxX7zwbjWtaMicaf30qEEBaPB6P8h/gNNHLX4VQEAAA=
|
||||
------=_NextPart_84e1fdd0-b285-4922-9fc7-88b070204303--
|
||||
52
tests/resources/smtp/reports/dmarc3.eml
Normal file
52
tests/resources/smtp/reports/dmarc3.eml
Normal file
@@ -0,0 +1,52 @@
|
||||
Received: from mail.stalw.art ([mail.stalw.art])
|
||||
by 127.0.0.1 (Stalwart JMAP) with LMTP;
|
||||
Tue, 08 Nov 2022 23:26:41 +0000
|
||||
Received: from relay7.m.smailru.net (relay7.m.smailru.net [94.100.178.51])
|
||||
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
|
||||
(No client certificate requested)
|
||||
by mail.stalw.art (Postfix) with ESMTPS id DD4337CC09
|
||||
for <domains@stalw.art>; Tue, 8 Nov 2022 23:26:38 +0000 (UTC)
|
||||
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=corp.mail.ru; s=mail4;
|
||||
h=Date:Message-ID:To:From:Subject:MIME-Version:Content-Type:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=fooa0+RBCZvyV2mP8Nx/UsLQ5RhazFg+SPGNtxZrCX0=;
|
||||
t=1667950001;x=1668040001;
|
||||
b=J9aMEkY9eVdOxjkNxaPFJ2Yk+/NCux9uOZl3iJXI0hEFaeYj9g7l+WtmXczk+YvgH3yhVhtvONUEYFsValRWWCAfmePm429N3mSuclVktk7t6RPJ4O5EcMjwrD9882vmX1xpI7ecPOzd5AD67HPt5SIA1RIa5injaOI5CWUXBBa5c0zDfmciyANAiDw0gm1axEMK4AUc61txPsX7H1qRq/FxGNITnnpYdqkkT2lR8sTl5HPwTjEsw4sYGKr5SiMpROhhbLZTM8RpojkP73bmw3UBZ9FI8iKApJUFB8i9tu0hjzHkev4uoDXgOXFYs/RAI1JkCWEp2Rjb3LpTSHT6cA==;
|
||||
Received: from [10.161.4.115] (port=60844 helo=60)
|
||||
by relay7.m.smailru.net with esmtp (envelope-from <dmarc_support@corp.mail.ru>)
|
||||
id 1osXzK-0007VC-BD
|
||||
for domains@stalw.art; Wed, 09 Nov 2022 02:26:38 +0300
|
||||
Content-Type: multipart/mixed; boundary="===============5640625649776607409=="
|
||||
MIME-Version: 1.0
|
||||
Subject: Report Domain: stalw.art; Submitter: Mail.Ru;
|
||||
Report-ID: 28551467700969547611667865600
|
||||
From: dmarc_support@corp.mail.ru
|
||||
To: domains@stalw.art
|
||||
Message-ID: <dmarc-1667949998@corp.mail.ru>
|
||||
Date: Wed, 09 Nov 2022 02:26:38 +0300
|
||||
Auto-Submitted: auto-generated
|
||||
Authentication-Results: relay7.m.smailru.net; auth=pass smtp.auth=dmarc_support@corp.mail.ru smtp.mailfrom=dmarc_support@corp.mail.ru; iprev=pass policy.iprev=10.161.4.115
|
||||
|
||||
--===============5640625649776607409==
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
Content-Transfer-Encoding: base64
|
||||
|
||||
VGhpcyBpcyBhbiBhZ2dyZWdhdGUgcmVwb3J0IGZyb20gTWFpbC5SdS4=
|
||||
|
||||
--===============5640625649776607409==
|
||||
Content-Type: application/gzip
|
||||
MIME-Version: 1.0
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Disposition: attachment;
|
||||
filename="mail.ru!stalw.art!1667865600!1667952000.xml.gz"
|
||||
|
||||
H4sICK7lamMC/21haWwucnUhc3RhbHcuYXJ0ITE2Njc4NjU2MDAhMTY2Nzk1MjAwMC54bWwAdVNB
|
||||
cqMwELzvK3LzKQhYg01qouwHctkPULIYjMogqSThJL/fEQSC18kFzbRmWt0jAS/vQ/9wReeV0c+7
|
||||
LEl3D6ilaZQ+P+/G0D4edy/8F7SIzUnICweH1rhQDxhEI4LgYNy51mJA/ipUn/wdga0I4EAYbwbh
|
||||
ZO1HGzv/SONsEvHEUe1cAfgenKil0UHIUCvdGt6FYJ8Y67Bfy1lcHyNCjfcdizbV8PxYFNm+PBzS
|
||||
tCqrYn8os6wsD8eyKNMU2FchkAmsndBnknvCs9J8WzgjgLqZ4KrI0wjHHNi2ld3NxZpeyY/ajqde
|
||||
+Q7jUYb0a+6D6N8S4QIxzAiI5qIG7oDNAQhv2ymNK1iujUZgloNfYgrAysCzKCcG9L070CENO67m
|
||||
jVrN6CTWyvIiTfL8d5LlVZJVe+Jad0CaURMpsDlYTOBV9CO5jSaUt8arQO/lU8oWgUl/S9dE+GQl
|
||||
OpjzyQu7Z2STPNWgDqpV9BQ5dCgadHXrzLAd1xYGdtMhxtDVDv3YB/+pYpm3wtAm9Ca/xu2xRxmM
|
||||
m7bI7JrDzMCt8D5e6ZQsTm5Iv7nEleWKvboo76zQef4N+zyO/9in6fysWBqLfIjOiXBKftA6T/l2
|
||||
HGx5CGz9j/8BQWPZIPkDAAA=
|
||||
--===============5640625649776607409==--
|
||||
126
tests/resources/smtp/reports/dmarc4.eml
Normal file
126
tests/resources/smtp/reports/dmarc4.eml
Normal file
@@ -0,0 +1,126 @@
|
||||
Received: from mail.stalw.art ([mail.stalw.art]) by 127.0.0.1 (Stalwart JMAP) with LMTP; Tue, 25 Oct 2022 04:08:22 +0000
|
||||
Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2073.outbound.protection.outlook.com [40.107.244.73])
|
||||
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
|
||||
(No client certificate requested)
|
||||
by mail.stalw.art (Postfix) with ESMTPS id A24107CC0A
|
||||
for <domains@stalw.art>; Tue, 25 Oct 2022 04:08:22 +0000 (UTC)
|
||||
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
|
||||
b=SvolQ1oIEgdfCI6dbwmJ1jS0ovWmprW6kT3q9NgrbX+CMhIsdrqyS3Q1sO16KT2wCQAyNofiEZ5tKY0e1PzzMqeR29jUWvEye9T43fCfUeLFx9b45YrfkGYwqLeDIq0Ywl+ggVmsm7X83XqI6+9EC6qMukCb0cbLazu3rW/Rbyc6d5+fq6QTFZovATGRvHz71H9t7e//hYI23XjU5Q3Enw0Qq3xPSyusWDi3t7CfGXn9i2120XlNLnPxef5PCmwy4E+OTJ5qC5WtMthOskKKuFvx8onOYmc/JjJ3VrtZwALx9C+ulzix5US6H7pFvZ2jtDbMnW4U7ir/hp5xn5adFw==
|
||||
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
|
||||
s=arcselector9901;
|
||||
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
|
||||
bh=65M39Uvc5w8zbmK6TxEdoblSMXlIyqTXJHNalJ80wk4=;
|
||||
b=PN7QPeXJLr6tmH2CxydbDQjHqBtFKNN9HjGimeUHaIeSr82WHf4R295QbVX7gxw6sFE7Z9lZMTrMSqbRVI7rhbx+SEkxCfAothf9207FDX6t37Zt0wd/5EwR6dzfbcNJBL+U0/iG4J03L5b1geWY+e68mHKYH4/ybGcr+SBKuv/LgfZNtOfbQ3ioiKvFcpSDqd/qGUs4U9l2tVlXgbcKkct04sCuPciqgLEuIGirPLLbDUaBRJc51ZZB6CeporySRdHp6uFXyy3VBvvLVuwDNnnPrW4BUL05AuutzK7rc8ZQEpWf7r0gUEg2ArSrvs6Znnfe97oRa01L2SeFwuZsMA==
|
||||
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none
|
||||
action=none header.from=microsoft.com; dkim=none (message not signed);
|
||||
arc=none
|
||||
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
|
||||
d=notification.microsoft.com; s=selector1;
|
||||
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
|
||||
bh=65M39Uvc5w8zbmK6TxEdoblSMXlIyqTXJHNalJ80wk4=;
|
||||
b=NjqsA7D6sEq1WgCZ/E1f5/B+XUXe5F4uv6CF2KQYVuyRnxItdox09LCWqZQ+fNQ6BbJ4Ne05Cb1BPbPP9yvb8Y6B1s2QvuxkUb69UFbAhoFgsRT6A4K76ykKQQyiPoYpxlO6FEyy+gel4y7c9XRLiWW6OxMIBcjBGB5ziP7mGFaJx4qXJ2mROfO7uZfrCu5pzOimkjPw6extWv4i0Kl3XKvBtXZnsr9eoC10mJvEAp7E2cpnaZnP46RQc9cmXzlmvhKPvCQCUWipJN9f1BTTvFjJ9ff6ehmN9RSzCckj3SZGw9XAnd0WYqh4evt6Y1RxQ4iQDSaZHNRpyMOtmkWc/w==
|
||||
Authentication-Results: dkim=none (message not signed)
|
||||
header.d=none;dmarc=none action=none header.from=microsoft.com;
|
||||
Received: from BN9PR03CA0046.namprd03.prod.outlook.com (2603:10b6:408:fb::21)
|
||||
by SJ0PR18MB3916.namprd18.prod.outlook.com (2603:10b6:a03:2c9::21) with
|
||||
Microsoft SMTP Server (version=TLS1_2,
|
||||
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Tue, 25 Oct
|
||||
2022 04:08:19 +0000
|
||||
Received: from BN7NAM10FT048.eop-nam10.prod.protection.outlook.com
|
||||
(2603:10b6:408:fb:cafe::d7) by BN9PR03CA0046.outlook.office365.com
|
||||
(2603:10b6:408:fb::21) with Microsoft SMTP Server (version=TLS1_2,
|
||||
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.27 via Frontend
|
||||
Transport; Tue, 25 Oct 2022 04:08:19 +0000
|
||||
Received: from nam10.map.protection.outlook.com (2a01:111:f400:fe53::30) by
|
||||
BN7NAM10FT048.mail.protection.outlook.com (2a01:111:e400:7e8f::199) with
|
||||
Microsoft SMTP Server (version=TLS1_2,
|
||||
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.16 via Frontend
|
||||
Transport; Tue, 25 Oct 2022 04:08:19 +0000
|
||||
Message-ID: <725cbfbe133940149987cfc528387235@microsoft.com>
|
||||
X-Sender: <dmarcreport@microsoft.com> XATTRDIRECT=Originating XATTRORGID=xorgid:96f9e21d-a1c4-44a3-99e4-37191ac61848
|
||||
MIME-Version: 1.0
|
||||
From: "DMARC Aggregate Report" <dmarcreport@microsoft.com>
|
||||
To: <domains@stalw.art>
|
||||
Subject: =?utf-8?B?UmVwb3J0IERvbWFpbjogc3RhbHcuYXJ0IFN1Ym1pdHRlcjogcHJvdGVjdGlvbi5vdXRsb29rLmNvbSBSZXBvcnQtSUQ6IDcyNWNiZmJlMTMzOTQwMTQ5OTg3Y2ZjNTI4Mzg3MjM1?=
|
||||
Content-Type: multipart/mixed;
|
||||
boundary="_mpm_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_"
|
||||
Date: Tue, 25 Oct 2022 04:08:19 +0000
|
||||
X-EOPAttributedMessage: 0
|
||||
X-MS-PublicTrafficType: Email
|
||||
X-MS-TrafficTypeDiagnostic: BN7NAM10FT048:EE_|SJ0PR18MB3916:EE_
|
||||
X-MS-Office365-Filtering-Correlation-Id: 7f843e40-ccc6-4c17-1ce7-08dab63e8cd1
|
||||
X-MS-Exchange-SenderADCheck: 2
|
||||
X-MS-Exchange-AntiSpam-Relay: 0
|
||||
X-Microsoft-Antispam: BCL:0;
|
||||
X-Microsoft-Antispam-Message-Info:
|
||||
PSiI3L4DKj/cyRBl8/bmbyQMrr1DvsYEB1+aTn/3Y39oHnyJ5HXcxu6jNUl32WcPW6Gfqmhc6P1RFE5L/9ev0cWnqh4GgIs2qmHicLexPmMjP8viPdjb1N7TSSOv1hhXMT+gVLx889X5sltd4qpfIAWhoxNonjQpVIgt4VOVnbCWTu1hyOjOVplq0rKqIF04BQGHZnBRfkcD1No+mZrvx8RLWIwInU3fpPeGz77Wn3TIvHtzypR/d22WpZ8eHk3aIxxdjwp5WLg4unpiJaieyQN7BRhD/v6b3pLFVJP8Ii2+FGjTsKASczEL4dHnIoIrHYE0wwaFFPcSNzovLhzYguDV42EGS8Fm7soiew4ch+hICM0LPNTGTZIDe7wm2eSwhN2tkJK4QCfh1DON39jXninVr88ZlzMcDXnXpgvWHHiur8az7Gvs9zHH/1tFMsPVSh7BS+8fHEcBYpdtihrP22GcjbOd98IiTAs/dVzSy0TUg6WEgJO6oUklGjqVbi99CrNZI1BtLP4vH4aSlz9JYg4et6SxiJlKyoSzqUr2NN9/pyFdQ//5d/EEjKJz8CAcQmCjjPEObGFttT3maY2+zsa2THodZgpfMyDbA3WUKxE=
|
||||
X-Forefront-Antispam-Report:
|
||||
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nam10.map.protection.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(39860400002)(346002)(34036004)(366004)(376002)(136003)(47540400005)(451199015)(2616005)(52230400001)(121820200001)(83380400001)(166002)(86362001)(41300700001)(2906002)(4001150100001)(8936002)(316002)(5660300002)(235185007)(41320700001)(508600001)(6486002)(6512007)(6506007)(24736004)(108616005)(68406010)(85236043)(8676002)(10290500003)(6916009)(36736006)(36756003)(66899015);DIR:OUT;SFP:1101;
|
||||
X-OriginatorOrg: dmarcrep.onmicrosoft.com
|
||||
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2022 04:08:19.1682
|
||||
(UTC)
|
||||
X-MS-Exchange-CrossTenant-Network-Message-Id: 7f843e40-ccc6-4c17-1ce7-08dab63e8cd1
|
||||
X-MS-Exchange-CrossTenant-AuthSource: BN7NAM10FT048.eop-nam10.prod.protection.outlook.com
|
||||
X-MS-Exchange-CrossTenant-AuthAs: Internal
|
||||
X-MS-Exchange-CrossTenant-Id: 96f9e21d-a1c4-44a3-99e4-37191ac61848
|
||||
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
|
||||
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR18MB3916
|
||||
|
||||
This is a multi-part message in MIME format.
|
||||
|
||||
--_mpm_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_
|
||||
Content-Type: multipart/related;
|
||||
boundary="_rv_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_"
|
||||
|
||||
--_rv_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_
|
||||
Content-Type: multipart/alternative;
|
||||
boundary="_av_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_"
|
||||
|
||||
--_av_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_
|
||||
|
||||
|
||||
--_av_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_
|
||||
Content-Type: text/html; charset=us-ascii
|
||||
Content-Transfer-Encoding: base64
|
||||
|
||||
PGRpdiBzdHlsZSA9ImZvbnQtZmFtaWx5OlNlZ29lIFVJOyBmb250LXNpemU6MTRweDsiPlRoaXMgaX
|
||||
MgYSBETUFSQyBhZ2dyZWdhdGUgcmVwb3J0IGZyb20gTWljcm9zb2Z0IENvcnBvcmF0aW9uLiBGb3Ig
|
||||
RW1haWxzIHJlY2VpdmVkIGJldHdlZW4gMjAyMi0xMC0yMyAwMDowMDowMCBVVEMgdG8gMjAyMi0xMC
|
||||
0yNCAwMDowMDowMCBVVEMuPC8gZGl2PjxiciAvPjxiciAvPllvdSdyZSByZWNlaXZpbmcgdGhpcyBl
|
||||
bWFpbCBiZWNhdXNlIHlvdSBoYXZlIGluY2x1ZGVkIHlvdXIgZW1haWwgYWRkcmVzcyBpbiB0aGUgJ3
|
||||
J1YScgdGFnIG9mIHlvdXIgRE1BUkMgcmVjb3JkIGluIEROUyBmb3Igc3RhbHcuYXJ0LiBQbGVhc2Ug
|
||||
cmVtb3ZlIHlvdXIgZW1haWwgYWRkcmVzcyBmcm9tIHRoZSAncnVhJyB0YWcgaWYgeW91IGRvbid0IH
|
||||
dhbnQgdG8gcmVjZWl2ZSB0aGlzIGVtYWlsLjxiciAvPjxiciAvPjxkaXYgc3R5bGUgPSJmb250LWZh
|
||||
bWlseTpTZWdvZSBVSTsgZm9udC1zaXplOjEycHg7IGNvbG9yOiM2NjY2NjY7Ij5QbGVhc2UgZG8gbm
|
||||
90IHJlc3BvbmQgdG8gdGhpcyBlLW1haWwuIFRoaXMgbWFpbGJveCBpcyBub3QgbW9uaXRvcmVkIGFu
|
||||
ZCB5b3Ugd2lsbCBub3QgcmVjZWl2ZSBhIHJlc3BvbnNlLiBGb3IgYW55IGZlZWRiYWNrL3N1Z2dlc3
|
||||
Rpb25zLCBraW5kbHkgbWFpbCB0byBkbWFyY3JlcG9ydGZlZWRiYWNrQG1pY3Jvc29mdC5jb20uPGJy
|
||||
IC8+PGJyIC8+TWljcm9zb2Z0IHJlc3BlY3RzIHlvdXIgcHJpdmFjeS4gUmV2aWV3IG91ciBPbmxpbm
|
||||
UgU2VydmljZXMgPGEgaHJlZiA9Imh0dHBzOi8vcHJpdmFjeS5taWNyb3NvZnQuY29tL2VuLXVzL3By
|
||||
aXZhY3lzdGF0ZW1lbnQiPlByaXZhY3kgU3RhdGVtZW50PC9hPi48YnIgLz5PbmUgTWljcm9zb2Z0IF
|
||||
dheSwgUmVkbW9uZCwgV0EsIFVTQSA5ODA1Mi48LyBkaXYgPg==
|
||||
|
||||
--_av_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_--
|
||||
|
||||
--_rv_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_--
|
||||
|
||||
--_mpm_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_
|
||||
Content-Type: application/gzip
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-ID: <3ff45643-7977-4f3c-a97d-14b9e7faa5e7>
|
||||
Content-Description: protection.outlook.com!stalw.art!1666483200!1666569600.xml.gz
|
||||
Content-Disposition: attachment; filename="protection.outlook.com!stalw.art!1666483200!1666569600.xml.gz";
|
||||
|
||||
H4sIAAAAAAAEAM1VzY7bIBi8V+o7RLnXxHZ+VyzbB2jVQy+9WQTjBMUGBDjZvn0/G4JJsu3usZcE5h
|
||||
vzDcNg45fXrp2dubFCyed5ni3mL+TzJ9xwXu8pO82gLO3Tq62f50fn9BNCl8slu5SZMgdULBY5+vX9
|
||||
20925B2dR7J4n/xFSOuoZHwO7WYzHCQQUIDRdTJWDNfKuKrjjtbU0REEGJasJO04+dG7VqlTxlSHUU
|
||||
QDCzqJltQdNcyv87UTzCirGucf8ITADq1ETTbFiu2bPc/Lcrdc5MvdbrthDVsV23K7KcoVRhM3PAzi
|
||||
eGWoPFybA7bnBwF7Wq/Xy20JBmDkkUjgsh7Lq/VuPZSHeVgP3S0YW944gbVqBftd6X7fCnvkkxwFO5
|
||||
METG4vGTUO1vNIqNP6JDpiMPKDK2p1M4LDf8A0kUpyjPQVsFfERkgzR/JhA8MgYI0iAMCvV/+mULCc
|
||||
KRNFG3WZvLGqN4xXQpPVIiuKMsuLXZbvltA3ViKZqV6CBIz8IOKhKz/Ttgc/61gZLBJWKyvcEDW/oR
|
||||
RJiYNDDQQFGJNZwYsmVCbHkt3e94VDjFvEoubSiUZA2tNEnHmrNK+cIiqNdlp4ZDdGdURw1wx3LSGP
|
||||
eKQfOa258WCSjBS+6nwUh2nvjpXhtm9dIvjekRCzSctN7rxpvOXMKTOS4MziPOH4PkRTa4fkj5PJ3p
|
||||
um/7GEv12/Ww1wVuIkrNFUFsU/tfiovaMlTeIH3WCQFdINAYD24+TDPiRvCvSQkIEfLji8CsJHhfwB
|
||||
wJC79XYGAAA=
|
||||
|
||||
--_mpm_a4bcd9a515b44b9d8eceb05d7333675fpiotk5m200exchangecorpm_--
|
||||
54
tests/resources/smtp/reports/dmarc5.eml
Normal file
54
tests/resources/smtp/reports/dmarc5.eml
Normal file
@@ -0,0 +1,54 @@
|
||||
Received: from mail.stalw.art ([mail.stalw.art]) by 127.0.0.1 (Stalwart JMAP) with LMTP; Tue, 20 Sep 2022 10:28:19 +0000
|
||||
Received: from a14-92.smtp-out.amazonses.com (a14-92.smtp-out.amazonses.com [54.240.14.92])
|
||||
(using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits))
|
||||
(No client certificate requested)
|
||||
by mail.stalw.art (Postfix) with ESMTPS id 1337D7E19D
|
||||
for <domains@stalw.art>; Tue, 20 Sep 2022 10:28:18 +0000 (UTC)
|
||||
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
|
||||
s=a66wkfbz3zwxdt2n5p6d7lj2ja7sdwuc; d=amazonses.com; t=1663669697;
|
||||
h=From:To:Message-ID:Subject:MIME-Version:Content-Type:Date;
|
||||
bh=h9v7dueDYfUxVokuKSLTqLuOwisdgdDRQ6TLwJOzXes=;
|
||||
b=dHR5EJhoY9s8g2/Y4K4rHdz44k67r7fyC4wr2AWZmemrVBoxYHJPwa295S2VJQtY
|
||||
kxTxppN2GEcNxhUMw8TXBrRwNKdoOLU38ZtrAN1a4hWVxmlwky1dtjXETQ/qJ257Nzg
|
||||
bsXkAo4S1RABFmkQQJ0zSPZGkMW+lpZTBCDzlOHU=
|
||||
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
|
||||
s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1663669697;
|
||||
h=From:To:Message-ID:Subject:MIME-Version:Content-Type:Date:Feedback-ID;
|
||||
bh=h9v7dueDYfUxVokuKSLTqLuOwisdgdDRQ6TLwJOzXes=;
|
||||
b=UDIvc6rvbihyGbzGRsmSSSzVNFgpfb3V3j0UivcNjlX2y63vjLinol463Z/+3Xh3
|
||||
BmxAOiLHF/DbVnqqNg5ygdxsa7MBHXEJ5we3W8vQr37xNk5DqhV7HPBSFttWP5sy0dg
|
||||
rdjyfMIjqJ1J/2+aM4opFA/6EWif7TGmjo7N1KKM=
|
||||
From: postmaster@amazonses.com
|
||||
To: domains@stalw.art
|
||||
Message-ID: <010001835a70fc8d-a3d7eff5-7adb-41cc-87bd-a646d9776a69-000000@email.amazonses.com>
|
||||
Subject: Dmarc Aggregate Report Domain: {stalw.art} Submitter: {Amazon SES}
|
||||
Date: {2022-09-19} Report-ID: {6b06c366-0631-4ca0-8337-f5aecf137918}
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/mixed;
|
||||
boundary="----=_Part_42492_694130218.1663669697673"
|
||||
Date: Tue, 20 Sep 2022 10:28:17 +0000
|
||||
Feedback-ID: 1.us-east-1.CTa/CO4t1eWkL0VlHBu5/eINCZhxZraAIsQC/FZHIgk=:AmazonSES
|
||||
X-SES-Outgoing: 2022.09.20-54.240.14.92
|
||||
|
||||
------=_Part_42492_694130218.1663669697673
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
This MIME email was sent through Amazon SES.
|
||||
------=_Part_42492_694130218.1663669697673
|
||||
Content-Type: application/octet-stream;
|
||||
name=amazonses.com!stalw.art!1663545600!1663632000.xml.gz
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Disposition: attachment;
|
||||
filename=amazonses.com!stalw.art!1663545600!1663632000.xml.gz
|
||||
|
||||
H4sIAAAAAAAAAG1TwXLbIBA9O1/RyV1CWLHszlDSHHJMe8itFw1GK5uJBAwgp+3XlwXJVjK9SOzb
|
||||
1b59vBV7/D0OXy7gvDL62z0tq/tHfsd6gO4o5Bu/27A5yauSMrIEEXdgjQvtCEF0IogIbZhxp1aL
|
||||
EfjTy9Ovnz+K1+dXRq4gVsAo1MCt8WEUPoD7Lkbx12gPvpRmZCTnsXLurzreHKtG1k1TVE1Niwcp
|
||||
quJQ1/ui3wmQPa33X+mBkVs9fh1HgtYJfUq0G3aEk9KcNk29e9g1VcVIRlISdJdSTb2tMIUxNiEf
|
||||
ulwpVpKZNYOSf1o7HQflzzCTm6hCcx/E8F4KF2KjjGBSdG9q5I6RfEiQt31C8I2A5dpoYMSmyC+h
|
||||
z7GVgVOcEw8I9IbHKD5xyP9MFO9SGpdnc+Y9i/ZmchJaZfm22pd0T0t6OJRb7HtLpUppJh0ZGcmH
|
||||
hM0scBHDFC8p9UblykdvVcAdyTOvkbkGZffR5picbyCJ7GdwvoSblA8k0YWsgKkOdFC9iiu52HiB
|
||||
wVhoe2dGnher1AP6uU6k2jOIDlwGVj6t4UT2iYSJKZxbB34awsy6jHu1fUV8sz0tNH7FrfAeVykF
|
||||
WediO/nUHcuycdHd5Zf8BxMenbqzAwAA
|
||||
------=_Part_42492_694130218.1663669697673--
|
||||
41
tests/resources/smtp/reports/tls1.eml
Normal file
41
tests/resources/smtp/reports/tls1.eml
Normal file
@@ -0,0 +1,41 @@
|
||||
From: tlsrpt@mail.sender.example.com
|
||||
Date: Fri, May 09 2017 16:54:30 -0800
|
||||
To: mts-sts-tlsrpt@example.net
|
||||
Subject: Report Domain: example.net
|
||||
Submitter: mail.sender.example.com
|
||||
Report-ID: <735ff.e317+bf22029@example.net>
|
||||
TLS-Report-Domain: example.net
|
||||
TLS-Report-Submitter: mail.sender.example.com
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/report; report-type="tlsrpt";
|
||||
boundary="----=_NextPart_000_024E_01CC9B0A.AFE54C00"
|
||||
Content-Language: en-us
|
||||
|
||||
This is a multipart message in MIME format.
|
||||
|
||||
------=_NextPart_000_024E_01CC9B0A.AFE54C00
|
||||
Content-Type: text/plain; charset="us-ascii"
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
This is an aggregate TLS report from mail.sender.example.com
|
||||
|
||||
------=_NextPart_000_024E_01CC9B0A.AFE54C00
|
||||
Content-Type: application/tlsrpt+gzip
|
||||
Content-Transfer-Encoding: base64
|
||||
Content-Disposition: attachment;
|
||||
filename="mail.sender.example!example.com!1013662812!1013749130.json.gz"
|
||||
|
||||
H4sICCpFtWMAA3JwdDAxLmpzb24uMQCtVVtr2zAYfe+vEN7bmFzZjt3EMLbRhu1hdCUJI+soRpGU
|
||||
VMy2jCSHZCX/fZIvzVLHpc0WDDHSOfqOznfxwxkwP0fIFc75b6y5yGGOM+bEwLkUWYHzLZw772oU
|
||||
xZpBifOV3X6o1qp1pbHU0O5qXlN95EUQDSDyZgjF1XPbnFIxWE778H4QhyPz3DoVfNfEJiLXmGjI
|
||||
86WwDKUVlKwQUvN89ZE0Ujcu2+CsSFkruYZATi0nRFE48C8I9AMawMEFwXARMQRHg4hhxIZksHgk
|
||||
FiLlhDNleD8fde/vvMdsD7x4sgf1tmCN3L/u/xSltDS3OAh1AFszqUxmYjCdTdfekYMqVCYoi4Fm
|
||||
ylrSC9rE4K2bYZ66rWnbJ6Z1OXiT4JU5exgNEHI6oLv+m1FhQuXWgZdEM+rgvVC634le6V1RByu7
|
||||
w2COKrMMy57caaFxClVJCFNqWZpX8287g4gyt+LCwI+OqK95SyOwlKxDClDwrKSWR5k2b+qoB12x
|
||||
FVUyVab6sdgIM12x5MS2K9sUXDLal1plOtFUC8w0hryoWxF5MV0MY7wg1PSt58dxb8lJRhhfVwfU
|
||||
mWtnR7bxXllk9vqMdlzzEOrgd90jXmZMNah0qmAutMlvYWfDP3kTnOaN/0pv9ke1OgIXuZ4XuGH0
|
||||
Sj/NFXoImFJu578pYTtkZVZ9DWy4e60LFZ+f18NUuZ1p2+wklgc+AE7Be9AMW0AABH4AaPAGTBv7
|
||||
r4WetuaDbueenN41Tjmtv2FNM708td5o6Iaea8rNjfwT8jA8oQzgApNfZfF/GiV4Bm7HimRYVXBa
|
||||
RZ+HaJR8T8aTSXIz+Tb/kdx8mn1Jvo6vP5u/8fxyPL4aXx3JzcHKfsbW63dnuz+8byfQUQgAAA==
|
||||
|
||||
------=_NextPart_000_024E_01CC9B0A.AFE54C00--
|
||||
64
tests/resources/smtp/reports/tls2.eml
Normal file
64
tests/resources/smtp/reports/tls2.eml
Normal file
@@ -0,0 +1,64 @@
|
||||
From: tlsrpt@mail.sender.example.com
|
||||
Date: Fri, May 09 2017 16:54:30 -0800
|
||||
To: mts-sts-tlsrpt@example.net
|
||||
Subject: Report Domain: example.net
|
||||
Submitter: mail.sender.example.com
|
||||
Report-ID: <735ff.e317+bf22029@example.net>
|
||||
TLS-Report-Domain: example.net
|
||||
TLS-Report-Submitter: mail.sender.example.com
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/report; report-type="tlsrpt";
|
||||
boundary="----=_NextPart_000_024E_01CC9B0A.AFE54C00"
|
||||
Content-Language: en-us
|
||||
|
||||
This is a multipart message in MIME format.
|
||||
|
||||
------=_NextPart_000_024E_01CC9B0A.AFE54C00
|
||||
Content-Type: text/plain; charset="us-ascii"
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
This is an aggregate TLS report from mail.sender.example.com
|
||||
|
||||
------=_NextPart_000_024E_01CC9B0A.AFE54C00
|
||||
Content-Type: application/tlsrpt
|
||||
Content-Disposition: attachment;
|
||||
filename="mail.sender.example!example.com!1013662812!1013749130.json"
|
||||
|
||||
{
|
||||
"report-id": "2020-01-01T00:00:00Z_example.com",
|
||||
"date-range": {
|
||||
"start-datetime": "2020-01-01T00:00:00Z",
|
||||
"end-datetime": "2020-01-07T23:59:59Z"
|
||||
},
|
||||
"organization-name": "Google Inc.",
|
||||
"contact-info": "smtp-tls-reporting@google.com",
|
||||
"policies": [
|
||||
{
|
||||
"policy": {
|
||||
"policy-type": "sts",
|
||||
"policy-string": [
|
||||
"version: STSv1",
|
||||
"mode: enforce",
|
||||
"mx: demo.example.com",
|
||||
"max_age: 604800"
|
||||
],
|
||||
"policy-domain": "example.com"
|
||||
},
|
||||
"summary": {
|
||||
"total-successful-session-count": 23,
|
||||
"total-failure-session-count": 1
|
||||
},
|
||||
"failure-details": [
|
||||
{
|
||||
"result-type": "certificate-host-mismatch",
|
||||
"sending-mta-ip": "123.123.123.123",
|
||||
"receiving-ip": "234.234.234.234",
|
||||
"receiving-mx-hostname": "demo.example.com",
|
||||
"failed-session-count": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
------=_NextPart_000_024E_01CC9B0A.AFE54C00--
|
||||
Reference in New Issue
Block a user