update comments
This commit is contained in:
parent
623ab6291c
commit
256d2c75a6
1 changed files with 5 additions and 7 deletions
|
@ -56,18 +56,15 @@ let
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Set the correct permissions for dovecot vmail folder. See
|
# Make sure postfix gets started first, so that the certificates are in place
|
||||||
# <http://wiki2.dovecot.org/SharedMailboxes/Permissions>. We choose
|
|
||||||
# to use the systemd service to set the folder permissions whenever
|
|
||||||
# dovecot gets started.
|
|
||||||
services.dovecot2.after = [ "postfix.service" ];
|
services.dovecot2.after = [ "postfix.service" ];
|
||||||
|
|
||||||
# Check for certificate before both postfix and dovecot to make sure it
|
# Create certificates and maildir folder
|
||||||
# exists.
|
|
||||||
services.postfix = {
|
services.postfix = {
|
||||||
preStart =
|
preStart =
|
||||||
''
|
''
|
||||||
# Create mail directory and set permissions
|
# Create mail directory and set permissions. See
|
||||||
|
# <http://wiki2.dovecot.org/SharedMailboxes/Permissions>.
|
||||||
mkdir -p "${mail_dir}"
|
mkdir -p "${mail_dir}"
|
||||||
chgrp "${vmail_group_name}" "${mail_dir}"
|
chgrp "${vmail_group_name}" "${mail_dir}"
|
||||||
chmod 02770 "${mail_dir}"
|
chmod 02770 "${mail_dir}"
|
||||||
|
@ -76,6 +73,7 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Create dkim certificates
|
||||||
services.rmilter = {
|
services.rmilter = {
|
||||||
preStart =
|
preStart =
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue