feat: update nixpkgs and the mailserver
This commit is contained in:
parent
6bd5061c04
commit
5744a0575f
2 changed files with 75 additions and 23 deletions
|
@ -470,6 +470,8 @@ in {
|
|||
|
||||
mailserver = {
|
||||
enable = true;
|
||||
stateVersion = 1;
|
||||
|
||||
fqdn = "${cfg.sub}.${cfg.domain}";
|
||||
domains = [
|
||||
cfg.domain
|
||||
|
@ -488,9 +490,9 @@ in {
|
|||
# 20MB max size
|
||||
messageSizeLimit = 20000000;
|
||||
|
||||
policydSPFExtraConfig = ''
|
||||
skip_addresses = 193.1.99.86/32
|
||||
'';
|
||||
# policydSPFExtraConfig = ''
|
||||
# skip_addresses = 193.1.99.86/32
|
||||
# '';
|
||||
|
||||
ldap = {
|
||||
enable = true;
|
||||
|
@ -504,13 +506,13 @@ in {
|
|||
searchScope = "sub";
|
||||
|
||||
dovecot = {
|
||||
userFilter = "(skMail=%u)";
|
||||
userFilter = "(skMail=%{user})";
|
||||
|
||||
# can lock down how much space each user has access to from ldap
|
||||
userAttrs = "quotaEmail=quota_rule=*:bytes=%$,=quota_rule2=Trash:storage=+100M";
|
||||
|
||||
# accept emails in, but only allow access to paid up members
|
||||
passFilter = "(&(|${create_filter cfg.groups})(skMail=%u))";
|
||||
passFilter = "(&(|${create_filter cfg.groups})(skMail=%{user}))";
|
||||
};
|
||||
|
||||
postfix = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue