tests: Add basic tests for sending/receiving mails and verification of headers
This commit is contained in:
parent
b630755ea8
commit
fb834ec7ee
3 changed files with 101 additions and 1 deletions
17
tests/common/client.nix
Normal file
17
tests/common/client.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{pkgs, ...}: {
|
||||
config = {
|
||||
# added to the environment for manual verification via interactiveDriver if necessary
|
||||
environment.systemPackages = with pkgs; [fetchmail msmtp procmail openssl];
|
||||
systemd.tmpfiles.settings."10-mailtest" = let
|
||||
dirPerms = {
|
||||
user = "root";
|
||||
mode = "0700";
|
||||
};
|
||||
in {
|
||||
"/root/mail".d = dirPerms;
|
||||
"/root/.procmailrc"."L+".argument = "${pkgs.writeText ".procmailrc" ''
|
||||
DEFAULT=$HOME/mail
|
||||
''}";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue