Comments on: A Step-by-Step Guide to Installing OpenDKIM with Postfix on Ubuntu – Unleash the Power of DKIM! https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/ How to guide for System Administrator's and Developers Mon, 19 Dec 2022 10:28:59 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Terry Makichut https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/#comment-63380 Mon, 20 Sep 2021 11:06:43 +0000 https://tecadmin.net/?p=5434#comment-63380 Terrible. Wherever they have copied this from, it’s grossly inaccurate. No consideration for permissions on the .key file, nor the .private file.

]]>
By: Mike https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/#comment-56199 Fri, 27 Nov 2020 00:35:49 +0000 https://tecadmin.net/?p=5434#comment-56199 For anyone else struggling to get this working, the dkim.key file format is only valid for opendkim v1, and has changed for opendkim v2
The v1 param is KeyList (or KeyFile – it’s unclear from even the opendkim-README) and has this format – note the addition of the “mail” selector as the 3rd value in the colon-separated values:
*@example.com:example.com:mail:/etc/mail/dkim-keys/example.com/mail.private

While the steps in this doc are a good starting point, the new two-part system (KeyTable and SigningTable) is documented here: http://opendkim.org/opendkim-README along with other info that will help

]]>
By: Mike https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/#comment-56190 Thu, 26 Nov 2020 21:04:45 +0000 https://tecadmin.net/?p=5434#comment-56190 For anyone else struggling to get this working, the dkim.key file format might have changed, and needs to include the selector..
*@example.com:example.com:mail:/etc/mail/dkim-keys/example.com/mail.private

Note the inclusion of the selector “mail” inbetween the domain and the path.

]]>
By: Anthony https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/#comment-55086 Thu, 08 Oct 2020 17:12:12 +0000 https://tecadmin.net/?p=5434#comment-55086 There are a few errors:
1.
The line in /etc/opendkim.conf
> KeyFile /etc/mail/dkim.key
is wrong. It should be:
KeyFile /etc/mail/dkim-keys/example.com/mail.private

2. Overall the article mentions “default.txt” while it’s actually “mail.txt” because we used “-s mail” as selector.

]]>
By: Celyle https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/#comment-43551 Tue, 05 Nov 2019 03:21:40 +0000 https://tecadmin.net/?p=5434#comment-43551 Thanks Rahul, this article was a great start. But it’s not consistent with the setup shown at https://wiki.debian.org/opendkim . They’ve changed the connector between Postfix and Opendkim, from a TCP port to a unix domain socket. The locations also change, because in Debian 10 Buster, by default, almost all the postfix daemons are in a chroot jail at /var/spool/postfix. The unix socket is more secure than a TCP port exposed to the Internet. So a person who already installed Postfix on Debian10 will be very confused here.

]]>
By: vishal kumar https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/#comment-42412 Wed, 04 Sep 2019 17:56:04 +0000 https://tecadmin.net/?p=5434#comment-42412 Hi, I am getting an error while restarting opendkim it says Starting OpenDKIM: install: invalid user ‘opendkim’
opendkim…..could you please help…thanks

]]>
By: Dennis Gray https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/#comment-40396 Mon, 08 Apr 2019 09:44:32 +0000 https://tecadmin.net/?p=5434#comment-40396 I tried to enter the TXT record using the content of mail.txt but got an error saying it was too long so I chopped off the comment at end of the string and deleted some of the blanks, which fixed the problem

]]>
By: Dennis Gray https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/#comment-40395 Mon, 08 Apr 2019 09:42:07 +0000 https://tecadmin.net/?p=5434#comment-40395 According to these instructions, it should be mail.private.

]]>
By: Himanshu https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/#comment-17643 Mon, 30 Jul 2018 10:03:59 +0000 https://tecadmin.net/?p=5434#comment-17643 key is not secure while compiling the DKIM , please suggest.

]]>
By: Neil https://tecadmin.net/setup-dkim-with-postfix-on-ubuntu-debian/#comment-13367 Thu, 21 Jun 2018 12:42:50 +0000 https://tecadmin.net/?p=5434#comment-13367 which version of Ubuntu

]]>