summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoey Hewitt <joey@joeyhewitt.com>2019-06-29 17:56:22 -0600
committerJoey Hewitt <joey@joeyhewitt.com>2019-07-09 21:59:28 -0600
commitf789f7a80cce450c48e13fbe6fa4897354737d81 (patch)
treebd7511de088a0b6fdf398c92a58f18482d4a1db1 /tests
parent7e718e0e33cc3a9ae38f88a66d51c36ef44e51cb (diff)
add dkimKeyBits configuration
Diffstat (limited to 'tests')
-rw-r--r--tests/extern.nix5
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