Setting up DKIM - trusted.hosts help needed
This is probably a noob question, but I'm not sure what to change the myhostname record to in the trusted.hosts file. The guide in https://www.linode.com/docs/guides/configure-spf-and-dkim-in-postfix-on-debian-8/#set-up-dns says I need to point to the server name, but I don't know how to format it.
Do I type it as "Linode"? "Linode.com"? Something else? I would appreciate any clarification here.
1 Reply
In this guide, myhostname
is referring to the hostname of your compute instance. You can find this using the following command:
$ sudo hostnamectl status
Static hostname: <myhostname>
Icon name: computer-vm
Chassis: vm
Machine ID: 4ad4541ed1bc423b84997f2c683bf29d
Boot ID: 8697c914c58c48d6a775675326ddd405
Virtualization: kvm
Operating System: Ubuntu 18.04.6 LTS
Kernel: Linux 4.15.0-213-generic
Architecture: x86-64
In your output, <myhostname> will be replaced by your instance's actual hostname. That's what you should put into the trusted.hosts
file. </myhostname>
If you don't have it configured already, this doc that explains how to configure your hostname and edit the /etc/hosts/
file.