mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-27 23:46:43 +01:00
add test for issue #43
This commit is contained in:
parent
160f3cbc9b
commit
bdf93b0ee6
1 changed files with 5 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue