diff options
author | Joey Hewitt <joey@joeyhewitt.com> | 2019-06-29 17:56:22 -0600 |
---|---|---|
committer | Joey Hewitt <joey@joeyhewitt.com> | 2019-07-09 21:59:28 -0600 |
commit | f789f7a80cce450c48e13fbe6fa4897354737d81 (patch) | |
tree | bd7511de088a0b6fdf398c92a58f18482d4a1db1 /tests | |
parent | 7e718e0e33cc3a9ae38f88a66d51c36ef44e51cb (diff) |
add dkimKeyBits configuration
Diffstat (limited to 'tests')
-rw-r--r-- | tests/extern.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/extern.nix b/tests/extern.nix index 78a5266..301b0ff 100644 --- a/tests/extern.nix +++ b/tests/extern.nix @@ -38,6 +38,7 @@ import <nixpkgs/nixos/tests/make-test.nix> { fqdn = "mail.example.com"; domains = [ "example.com" "example2.com" ]; rewriteMessageId = true; + dkimKeyBits = 1535; loginAccounts = { "user1@example.com" = { @@ -321,6 +322,10 @@ import <nixpkgs/nixos/tests/make-test.nix> { $client->succeed("grep 'Received: from mail.example.com' ~/mail/*"); }; + subtest "dkim has user-specified size", sub { + $server->succeed("openssl rsa -in /var/dkim/example.com.mail.key -text -noout | grep 'Private-Key: (1535 bit)'"); + }; + subtest "dkim singing, multiple domains", sub { $client->execute("rm ~/mail/*"); # send email from user2 to user1 |