opendkim command not found

In this troubleshooting guide we learn how to fix opendkim command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

opendkim: command not found

or when using sudo you get the following error message

sudo: opendkim: command not found

Solutions to opendkim: command not found

How To Fix opendkim: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu opendkim is provided by opendkim package.

opendkim is:

The OpenDKIM Project is a community effort to develop and maintain a C library for producing DKIM-aware applications and an open source milter for providing DomainKeys Identified Mail (DKIM) service.

DKIM provides a way for senders to confirm their identity when sending email by adding a cryptographic signature to the headers of the message.

This package contains the OpenDKIM mail filter (Milter) for plugging into Milter-aware MTAs. It implements both signing and verification.

To fix this problem, we can install more using the command below.

sudo apt-get -y install opendkim

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install opendkim.

sudo apt -y install opendkim

Or if you have aptitude installed you can use the following command.

sudo aptitude install opendkim

Summary

In this tutorial we learn how to fix opendkim command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.