forked from wurzel/fruitbasket
beautified the file and added opendkim
This commit is contained in:
parent
ffae1bc8c5
commit
14ad30e65d
1 changed files with 14 additions and 4 deletions
|
@ -1,15 +1,17 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let hostname = "mail.test.stramke.com";
|
let
|
||||||
|
hostname = "mail.test.stramke.com";
|
||||||
|
domain = "test.stramke.com";
|
||||||
in {
|
in {
|
||||||
networking.firewall.allowedTCPPorts = [ 25 587 143 ];
|
networking.firewall.allowedTCPPorts = [ 25 587 143 ];
|
||||||
services = {
|
services = {
|
||||||
postfix = {
|
postfix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostname = "${hostname}";
|
hostname = "${hostname}";
|
||||||
domain = "test.stramke.com";
|
domain = "${domain}";
|
||||||
relayHost = "";
|
relayHost = "";
|
||||||
origin = "test.stramke.com";
|
origin = "${domain}";
|
||||||
destination = ["mail.test.stramke.com" "test.stramke.com" "localhost"];
|
destination = ["${hostname}" "${domain}" "localhost"];
|
||||||
config = {
|
config = {
|
||||||
mynetworks = "168.119.135.69/32 10.0.0.0/24 0.0.0.0/0 127.0.0.1";
|
mynetworks = "168.119.135.69/32 10.0.0.0/24 0.0.0.0/0 127.0.0.1";
|
||||||
smtpd_recipient_restrictions = [
|
smtpd_recipient_restrictions = [
|
||||||
|
@ -62,6 +64,14 @@
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
rspamd = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
opendkim = {
|
||||||
|
enable = true;
|
||||||
|
selector = "mail";
|
||||||
|
domains = "csl:${domain}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue