Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11725196
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/mailserver/dkim/config.sls b/roles/mailserver/dkim/config.sls
index 1943f91..801a04e 100644
--- a/roles/mailserver/dkim/config.sls
+++ b/roles/mailserver/dkim/config.sls
@@ -1,29 +1,57 @@
# -------------------------------------------------------------
# Salt — OpenDKIM configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-01-14
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import dirs with context %}
# -------------------------------------------------------------
-# OpenDKIM configuration files
+# OpenDKIM main configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{{ dirs.etc }}/opendkim/opendkim.conf:
+ file.managed:
+ - source: salt://roles/mailserver/dkim/files/opendkim.conf
+ - template: jinja
+ - context:
+ dirs: {{ dirs }}
+ socket: /var/run/milteropendkim/opendkim.sock
+
+# -------------------------------------------------------------
+# OpenDKIM configuration tables
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
opendkim_config_files:
file.recurse:
- name: {{ dirs.etc }}/opendkim
- source: salt://roles/mailserver/dkim/files/etc
- include_empty: True
- clean: False
- dir_mode: 711
- file_mode: 644
opendkim_keys_directory:
file.directory:
- name: {{ dirs.etc }}/opendkim/keys
- dir_mode: 711
- user: opendkim
- group: opendkim
+
+# -------------------------------------------------------------
+# Clean up
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% set opendkim_package_leftovers = [
+ "/usr/local/etc/mail/opendkim.conf",
+ "/usr/local/etc/mail/opendkim.conf.sample",
+ "/usr/local/etc/mail",
+]
+%}
+
+{% for path in opendkim_package_leftovers %}
+{{ path }}:
+ file.absent
+{% endfor %}
diff --git a/roles/mailserver/dkim/files/opendkim.conf b/roles/mailserver/dkim/files/opendkim.conf
new file mode 100644
index 0000000..c5b8d43
--- /dev/null
+++ b/roles/mailserver/dkim/files/opendkim.conf
@@ -0,0 +1,45 @@
+# -------------------------------------------------------------
+# OpenDKIM
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/mailserver/dkim/files/opendkim.conf
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+# -------------------------------------------------------------
+# Socket
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+Socket local:{{ socket }}
+
+# -------------------------------------------------------------
+# Tables
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+SigningTable file:{{ dirs.etc }}/opendkim/SigningTable
+KeyTable file:{{ dirs.etc }}/opendkim/KeyTable
+
+# -------------------------------------------------------------
+# Signing
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+Mode sv
+SignatureAlgorithm rsa-sha256
+
+ExternalIgnoreList refile:{{ dirs.etc }}/opendkim/TrustedHosts
+InternalHosts refile:{{ dirs.etc }}/opendkim/TrustedHosts
+
+# -------------------------------------------------------------
+# Log
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+SysLog Yes
+SyslogFacility mail
+SyslogSuccess false
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Sep 18, 19:19 (6 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2991208
Default Alt Text
(3 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment