qmail-newaliases command not found

In this troubleshooting guide we learn how to fix qmail-newaliases command not found error message

Introduction

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

qmail-newaliases: command not found

or when using sudo you get the following error message

sudo: qmail-newaliases: command not found

Solutions to qmail-newaliases: command not found

How To Fix qmail-newaliases: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu qmail-newaliases is provided by fastforward package.

fastforward is:

It can create forwarding databases from a sendmail-style /etc/aliases or from user-oriented virtual-domain tables.

fastforward supports external mailing lists, stored in a binary format for fast access. It has a tool to convert sendmail-style include files into binary lists.

fastforward is more reliable than sendmail. sendmail can’t deal with long aliases, or deeply nested aliases, or deeply nested include files; fastforward has no limits other than memory. sendmail can produce corrupted alias files if the system crashes; fastforward is crashproof.

fastforward’s database-building tools are much faster than sendmail’s newaliases. Even better, fastforward deliveries don’t pause while the database is being rebuilt.

fastforward does not support insecure sendmail-style program deliveries from include files; you can use qmail’s secure built-in mechanisms instead. fastforward does support program deliveries from /etc/aliases.

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

sudo apt-get -y install fastforward

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

You can also use apt command to install fastforward.

sudo apt -y install fastforward

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

sudo aptitude install fastforward

Summary

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