mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-01-01 05:50:34 +05:00
15 lines
426 B
Plaintext
15 lines
426 B
Plaintext
|
# Create dkim dir
|
||
|
mkdir -p "${cfg.dkimKeyDirectory}"
|
||
|
chown rmilter:rmilter "${cfg.dkimKeyDirectory}"
|
||
|
|
||
|
if [ ! -f "${dkim_key}" ] || [ ! -f "${dkim_txt}" ]
|
||
|
then
|
||
|
|
||
|
${pkgs.opendkim}/bin/opendkim-genkey -s "${cfg.dkimSelector}" \
|
||
|
-d ${cfg.domain} \
|
||
|
--directory="${cfg.dkimKeyDirectory}"
|
||
|
chown rmilter:rmilter "${dkim_key}"
|
||
|
fi
|
||
|
|
||
|
# vim: set filetype=sh
|