srs command not found

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

Introduction

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

srs: command not found

or when using sudo you get the following error message

sudo: srs: command not found

Solutions to srs: command not found

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

In Ubuntu srs is provided by srs package.

srs is:

The Sender Rewriting Scheme preserves .forward functionality in an SPF-compliant world.

SPF requires the SMTP client IP to match the envelope sender (return-path). When a message is forwarded through an intermediate server, that intermediate server may need to rewrite the return-path to remain SPF compliant. If the message bounces, that intermediate server needs to validate the bounce and forward the bounce to the original sender.

This package contains the srs client that can be used in your .forward files.

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

sudo apt-get -y install srs

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

You can also use apt command to install srs.

sudo apt -y install srs

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

sudo aptitude install srs

Summary

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