Generate the key-pair: salt-call state.apply postfix.opendkim_genkey Get the public key and set it on your DNS server: salt-call file.read /etc/opendkim/keys/felixhummel.de/mail.txt ... to be continued