receiving emails works now
This commit is contained in:
parent
1f70d58853
commit
ffae1bc8c5
|
@ -6,22 +6,20 @@
|
||||||
postfix = {
|
postfix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostname = "${hostname}";
|
hostname = "${hostname}";
|
||||||
|
domain = "test.stramke.com";
|
||||||
|
relayHost = "";
|
||||||
|
origin = "test.stramke.com";
|
||||||
|
destination = ["mail.test.stramke.com" "test.stramke.com" "localhost"];
|
||||||
config = {
|
config = {
|
||||||
myorigin = "mail.test.stramke.com";
|
mynetworks = "168.119.135.69/32 10.0.0.0/24 0.0.0.0/0 127.0.0.1";
|
||||||
mydestination = "127.0.0.1";
|
|
||||||
smtpd_recipient_restrictions = [
|
smtpd_recipient_restrictions = [
|
||||||
"reject_unauth_destination"
|
"reject_unauth_destination"
|
||||||
"permit_sasl_authenticated"
|
"permit_sasl_authenticated"
|
||||||
|
"permit_mynetworks"
|
||||||
];
|
];
|
||||||
smtpd_sasl_auth_enable = true;
|
smtpd_sasl_auth_enable = true;
|
||||||
smtpd_sasl_path = "/var/lib/postfix/auth";
|
smtpd_sasl_path = "/var/lib/postfix/auth";
|
||||||
smtpd_sasl_type = "dovecot";
|
# smtpd_sasl_type = "dovecot";
|
||||||
smtpd_relay_restrictions = [
|
|
||||||
"reject_unauth_destination"
|
|
||||||
# "relay_domains = "${hostname}"
|
|
||||||
"permit_sasl_authenticated"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
dovecot2 = {
|
dovecot2 = {
|
||||||
|
@ -47,9 +45,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
mail_location = mbox:~/mail:INBOX=/var/mail/%u
|
mail_location = maildir:/var/spool/mail/%u
|
||||||
# auth_mechanisms = plain login
|
auth_mechanisms = plain login
|
||||||
# disable_plaintext_auth = no
|
disable_plaintext_auth = no
|
||||||
userdb {
|
userdb {
|
||||||
driver = passwd
|
driver = passwd
|
||||||
args = blocking=no
|
args = blocking=no
|
||||||
|
@ -60,7 +58,7 @@
|
||||||
mode = 0660
|
mode = 0660
|
||||||
user = postfix
|
user = postfix
|
||||||
}
|
}
|
||||||
user = dovecot2
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue