Alias File:
Assuming that we are setting up sales@company.com and support@company.com we will create the corresponding entries in the file as follows:
sales@company.com: “|/full/path/to/cli/index.php”
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.
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:
/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
The Command Syntax is:
– Change Alias File: Once the symlink has been created, you should change the alias file contents
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.