0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Merge pull request #311766 from pacien/stalwart-0-6-0-module-fixes

nixos/stalwart-mail: module and test fixes for v0.6.0
This commit is contained in:
Jonas Heinrich 2024-05-15 14:04:30 +02:00 committed by GitHub
commit b3fcfcfabd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 6 deletions

View file

@ -38,6 +38,7 @@ in {
store.blob.path = mkDefault "${dataDir}/data/blobs"; store.blob.path = mkDefault "${dataDir}/data/blobs";
storage.data = mkDefault "db"; storage.data = mkDefault "db";
storage.fts = mkDefault "db"; storage.fts = mkDefault "db";
storage.lookup = mkDefault "db";
storage.blob = mkDefault "blob"; storage.blob = mkDefault "blob";
resolver.type = mkDefault "system"; resolver.type = mkDefault "system";
resolver.public-suffix = mkDefault ["https://publicsuffix.org/list/public_suffix_list.dat"]; resolver.public-suffix = mkDefault ["https://publicsuffix.org/list/public_suffix_list.dat"];

View file

@ -40,12 +40,14 @@ in import ./make-test-python.nix ({ lib, ... }: {
}; };
}; };
session.auth.mechanisms = [ "PLAIN" ]; resolver.public-suffix = [ ]; # do not fetch from web in sandbox
session.auth.directory = "in-memory";
storage.directory = "in-memory"; # shared with imap
session.rcpt.directory = "in-memory"; session.auth.mechanisms = "[plain]";
queue.outbound.next-hop = [ "local" ]; session.auth.directory = "'in-memory'";
storage.directory = "in-memory";
session.rcpt.directory = "'in-memory'";
queue.outbound.next-hop = "'local'";
directory."in-memory" = { directory."in-memory" = {
type = "memory"; type = "memory";

View file

@ -10,6 +10,7 @@
, stdenv , stdenv
, darwin , darwin
, nix-update-script , nix-update-script
, nixosTests
, rocksdb_8_3 , rocksdb_8_3
}: }:
@ -60,7 +61,10 @@ rustPlatform.buildRustPackage {
# Tests require reading to /etc/resolv.conf # Tests require reading to /etc/resolv.conf
doCheck = false; doCheck = false;
passthru.update-script = nix-update-script { }; passthru = {
update-script = nix-update-script { };
stalwart-mail = nixosTests.stalwart-mail;
};
meta = with lib; { meta = with lib; {
description = "Secure & Modern All-in-One Mail Server (IMAP, JMAP, SMTP)"; description = "Secure & Modern All-in-One Mail Server (IMAP, JMAP, SMTP)";