DKIM signs outgoing mail so that other servers can confirm it really came from your domain. /go/installdkim sets up the server side of DKIM with OpenDKIM. It can: It does not publish DNS records. Use dkim for that, and checkdkim to confirm the result. New accounts get their key automatically when they are created with create. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# 1. Install and configure OpenDKIM (once per server)
/go/installdkim
# 2. Create the key of a domain
/go/installdkim example.com
# 3. Print the TXT value to publish in DNS
/go/installdkim example.com dns
Options
| Form | What it does |
|---|---|
/go/installdkim |
Installs OpenDKIM and its tools, and writes the configuration. |
/go/installdkim <domain> |
Creates the DKIM key for the domain and adds it to the OpenDKIM tables. |
/go/installdkim <domain> dns |
Prints the TXT value for the domain’s DNS record. It reads an existing key. |
/go/installdkim all |
Runs dkim for every hosted domain that does not have a key yet. |
The DKIM selector is always dkim, so the DNS record name is dkim._domainkey.<domain>.
Examples
# Install OpenDKIM
/go/installdkim
# Create a key for a domain
/go/installdkim example.com
# Print the TXT value for the domain's DNS
/go/installdkim example.com dns
v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A...
# Create keys for every domain that has none
/go/installdkim all
# Restart OpenDKIM so it reads the new tables
systemctl restart opendkim
Output
| Form | Output |
|---|---|
| Install | Installing DKIM... followed by the output of the package manager. |
| Create a key | Usually nothing. Blank lines can appear when the domain is already in a table. |
dns |
One line, the TXT value: v=DKIM1; k=rsa; p=<public key> |
all |
The output of dkim for each domain. |
Each run also adds a line to /var/log/go/installdkim.log. The all form always ends with status 1.
See the full reference at /go/installdkim and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
