Merge pull request #30 from eqyiel/dovecot-indentation

mail-server/dovecot.nix: fix indentation
This commit is contained in:
Robin Raymond 2017-11-13 15:07:08 +01:00 committed by GitHub
commit b7c8c4ec3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,15 +41,14 @@ in
protocols = [ "sieve" ]; protocols = [ "sieve" ];
sieveScripts = { sieveScripts = {
before = builtins.toFile "spam.sieve" before = builtins.toFile "spam.sieve" ''
'' require "fileinto";
require "fileinto";
if header :is "X-Spam" "Yes" { if header :is "X-Spam" "Yes" {
fileinto "Junk"; fileinto "Junk";
stop; stop;
} }
''; '';
}; };
extraConfig = '' extraConfig = ''
@ -59,49 +58,49 @@ in
ssl = required ssl = required
service lmtp { service lmtp {
unix_listener /var/lib/postfix/queue/private/dovecot-lmtp { unix_listener /var/lib/postfix/queue/private/dovecot-lmtp {
group = postfix group = postfix
mode = 0600 mode = 0600
user = postfix # TODO: < make variable user = postfix # TODO: < make variable
} }
} }
protocol lmtp { protocol lmtp {
mail_plugins = $mail_plugins sieve mail_plugins = $mail_plugins sieve
} }
service auth { service auth {
unix_listener /var/lib/postfix/queue/private/auth { unix_listener /var/lib/postfix/queue/private/auth {
mode = 0660 mode = 0660
user = postfix # TODO: < make variable user = postfix # TODO: < make variable
group = postfix # TODO: < make variable group = postfix # TODO: < make variable
} }
} }
auth_mechanisms = plain login auth_mechanisms = plain login
namespace inbox { namespace inbox {
inbox = yes inbox = yes
mailbox "Trash" { mailbox "Trash" {
auto = no auto = no
special_use = \Trash special_use = \Trash
} }
mailbox "Junk" { mailbox "Junk" {
auto = subscribe auto = subscribe
special_use = \Junk special_use = \Junk
} }
mailbox "Drafts" { mailbox "Drafts" {
auto = subscribe auto = subscribe
special_use = \Drafts special_use = \Drafts
} }
mailbox "Sent" { mailbox "Sent" {
auto = subscribe auto = subscribe
special_use = \Sent special_use = \Sent
} }
} }
''; '';
}; };