mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-29 12:30:34 +05:00
15 lines
426 B
Bash
15 lines
426 B
Bash
# 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
|