add test for issue #43

This commit is contained in:
Robin Raymond 2017-11-26 11:57:39 +01:00
parent 160f3cbc9b
commit bdf93b0ee6
1 changed files with 5 additions and 1 deletions

View File

@ -152,10 +152,14 @@ import <nixpkgs/nixos/tests/make-test.nix> {
subtest "remove sensitive information on submission port", sub {
$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/*");
};
subtest "have correct fqdn as sender", sub {
$client->succeed("grep 'Received: from mail.example.com' ~/mail/*");
};
subtest "dkim singing, multiple domains", sub {
$client->succeed("rm ~/mail/*");
$client->succeed("rm mail.txt");