properly set up opendkim
[ansible.git] / roles / postfix / templates / opendkim.conf
diff --git a/roles/postfix/templates/opendkim.conf b/roles/postfix/templates/opendkim.conf
new file mode 100644 (file)
index 0000000..06203ea
--- /dev/null
@@ -0,0 +1,30 @@
+# This is a basic configuration that can easily be adapted to suit a standard
+# installation. For more advanced options, see opendkim.conf(5) and/or
+# /usr/share/doc/opendkim/examples/opendkim.conf.sample.
+
+# Log to syslog
+Syslog                 yes
+
+# Access control
+UMask                  007
+UserID                 opendkim
+
+# domains and keys are in table files
+KeyTable               /etc/opendkim/KeyTable
+SigningTable           /etc/opendkim/SigningTable
+
+# Commonly-used options; the commented-out versions show the defaults.
+#Canonicalization      simple
+#Mode                  sv
+#SubDomains            no
+#ADSPAction            continue
+
+# use both Sender and From to check for which domain to sign
+SenderHeaders          Sender,From
+
+# Always oversign From (sign using actual From and a null From) to prevent
+# malicious signatures header fields (From and/or others) between the signer
+# and the verifier.  From is oversigned by default in the Debian pacakge
+# because it is often the identity key used by reputation systems and thus
+# somewhat security sensitive.
+OversignHeaders                From