get postfix working

I still have to decide what to do with the certificate file
This commit is contained in:
Robin Raymond 2017-08-12 16:14:16 +02:00
parent 1d53a88a21
commit f8b5e03b78
2 changed files with 66 additions and 10 deletions

View file

@ -17,13 +17,6 @@
{ mail_dir, vmail_user_name, vmail_group_name, valiases, domain, enable_imap,
enable_pop3 }:
let
# valiasToString :: { from = "..."; to = "..." } -> String
valiasToString = x: x.from + "@" + domain + " " + x.to "@" + domain + "\n";
# valias_file :: [ String ]
valiases_file = map valiasToString valiases;
in
{
# rspamd
rspamd = {
@ -31,7 +24,7 @@ in
};
postfix = import ./postfix.nix {
valiases_file = ""; vaccounts_file = ""; #< TODO: FIX
inherit mail_dir domain valiases;
};
dovecot2 = import ./dovecot.nix {