Sendmail – Piping on UNIX – Email Parser Installation
Sendmail

Alias File:

/etc/aliases

Assuming that we are setting up sales@company.com and support@company.com we will create the corresponding entries in the file as follows:

support@company.com: “|/full/path/to/cli/index.php”
sales@company.com: “|/full/path/to/cli/index.php”

Kayako capture0008 Sendmail

Note: This file might contain other entries for describing routing of mails in your system. You should not edit any of those lines.

Sendmail: SMRSH Instructions

Certain Sendmail systems are configured with Sendmail Restricted Shell to prevent execution of any third party malicious programs or scripts. If you receive a bounce message with SMRSH failure then you will need to configure the mail parser with SMRSH in the following manner.

- Find SMRSH Path: The first step is to find the SMRSH path, run the command “man smrsh” as described below.

Kayako capture0009 Sendmail

The path to SMRSH is listed in the second paragraph. By executing the command we now know that SMRSH files should go under “/etc/smrsh”.

Other Possible Locations of SMRSH:

/etc/smrsh
/usr/bin/smrsh
/usr/sbin/smrsh

Create Symlink: We will now need to create a symlink to our cli/index.php under the directory /etc/smrsh

Kayako capture0010 Sendmail

The Command Syntax is:

ln –s /full/path/to/cli/index.php /etc/smrsh/index.php

Change Alias File: Once the symlink has been created, you should change the alias file contents

FROM:
support@domain.com: “|/full/path/to/cli/index.php”
TO:
support@domain.com: “|/etc/smrsh/index.php”

That’s it, You have now configured the mail parser with SMRSH.

Once the alias file has been edited, you will need to run the “newaliases” command.

Kayako capture0007 Sendmail

Sendmail