fix typo in opendkim key generation
This commit is contained in:
parent
f01e0bdbb3
commit
bb4717bf0b
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ let
|
||||||
''
|
''
|
||||||
# Create dkim dir
|
# Create dkim dir
|
||||||
mkdir -p "${dkim_dir}"
|
mkdir -p "${dkim_dir}"
|
||||||
chown opendkim:rmilter "${dkim_dir}"
|
chown rmilter:rmilter "${dkim_dir}"
|
||||||
|
|
||||||
if [ ! -f "${dkim_key}" ] || [ ! -f "${dkim_txt}" ]
|
if [ ! -f "${dkim_key}" ] || [ ! -f "${dkim_txt}" ]
|
||||||
then
|
then
|
||||||
|
@ -51,7 +51,7 @@ let
|
||||||
${pkgs.opendkim}/bin/opendkim-genkey -s "${dkim_selector}" \
|
${pkgs.opendkim}/bin/opendkim-genkey -s "${dkim_selector}" \
|
||||||
-d ${domain} \
|
-d ${domain} \
|
||||||
--directory="${dkim_dir}"
|
--directory="${dkim_dir}"
|
||||||
chown opendkim:rmilter "${dkim_key}"
|
chown rmilter:rmilter "${dkim_key}"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
@ -76,7 +76,7 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.opendkim = {
|
services.rmilter = {
|
||||||
after = ["dovecot2.service"];
|
after = ["dovecot2.service"];
|
||||||
preStart =
|
preStart =
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue