add test for issue #43
This commit is contained in:
parent
160f3cbc9b
commit
bdf93b0ee6
|
@ -152,10 +152,14 @@ import <nixpkgs/nixos/tests/make-test.nix> {
|
||||||
|
|
||||||
subtest "remove sensitive information on submission port", sub {
|
subtest "remove sensitive information on submission port", sub {
|
||||||
$client->succeed("cat ~/mail/* >&2");
|
$client->succeed("cat ~/mail/* >&2");
|
||||||
# make sure our IP is _not_ in the email header
|
## make sure our IP is _not_ in the email header
|
||||||
$client->fail("grep `ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print \$2}' | cut -f1 -d'/'` ~/mail/*");
|
$client->fail("grep `ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print \$2}' | cut -f1 -d'/'` ~/mail/*");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
subtest "have correct fqdn as sender", sub {
|
||||||
|
$client->succeed("grep 'Received: from mail.example.com' ~/mail/*");
|
||||||
|
};
|
||||||
|
|
||||||
subtest "dkim singing, multiple domains", sub {
|
subtest "dkim singing, multiple domains", sub {
|
||||||
$client->succeed("rm ~/mail/*");
|
$client->succeed("rm ~/mail/*");
|
||||||
$client->succeed("rm mail.txt");
|
$client->succeed("rm mail.txt");
|
||||||
|
|
Loading…
Reference in New Issue