mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixosTests.opensmtpd: fixup for new dovecot module
This commit is contained in:
@@ -48,7 +48,7 @@ import ./make-test-python.nix {
|
||||
};
|
||||
|
||||
smtp2 =
|
||||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ common/user-account.nix ];
|
||||
networking = {
|
||||
@@ -71,15 +71,21 @@ import ./make-test-python.nix {
|
||||
serverConfiguration = ''
|
||||
listen on 0.0.0.0
|
||||
action dovecot_deliver mda \
|
||||
"${pkgs.dovecot}/libexec/dovecot/deliver -d %{user.username}"
|
||||
"${config.services.dovecot2.package}/libexec/dovecot/deliver -d %{user.username}"
|
||||
match from any for local action dovecot_deliver
|
||||
'';
|
||||
};
|
||||
services.dovecot2 = {
|
||||
enable = true;
|
||||
enableImap = true;
|
||||
mailLocation = "maildir:~/mail";
|
||||
protocols = [ "imap" ];
|
||||
enablePAM = true;
|
||||
settings = {
|
||||
dovecot_config_version = "2.4.3";
|
||||
dovecot_storage_version = config.services.dovecot2.package.version;
|
||||
mail_driver = "maildir";
|
||||
mail_path = "~/mail";
|
||||
protocols.imap = true;
|
||||
auth_allow_cleartext = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user