vrfy command not found

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

Introduction

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

vrfy: command not found

or when using sudo you get the following error message

sudo: vrfy: command not found

Solutions to vrfy: command not found

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

In Ubuntu vrfy is provided by vrfy package.

vrfy is:

‘vrfy’ is a tool to verify e-mail addresses and mailing lists. In its simplest form it takes an address “user@domain”, figures out the MX hosts for “domain”, and issues the SMTP command VRFY at the primary MX host (optionally all), or at “domain” itself if no MX hosts exist. Without “domain” it goes to “localhost”.

More complex capabilities are:

  • recursively expanding forward files or mailing lists,
  • detecting mail forwarding loops,
  • understanding full-blown RFC822 address specifications,
  • syntax checking that can be carried out either locally or remotely,
  • various options provided to exploit alternative protocol suites if necessary, and to print many forms of verbose output.

Obvious limitations exist (mostly due to a lousy VRFY command implementation on some hosts), but otherwise, it works pretty well.

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

sudo apt-get -y install vrfy

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

You can also use apt command to install vrfy.

sudo apt -y install vrfy

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

sudo aptitude install vrfy

Summary

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