From bdf93b0ee6b4f5ef0f22e245cf30a3188d3cfd7f Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Sun, 26 Nov 2017 11:57:39 +0100 Subject: [PATCH] add test for issue #43 --- tests/extern.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/extern.nix b/tests/extern.nix index 63711aa..523f6ae 100644 --- a/tests/extern.nix +++ b/tests/extern.nix @@ -152,10 +152,14 @@ import { 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");