Assuming that we are setting up firstname.lastname@example.org and email@example.com we will create the corresponding entries in the file as follows:
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:
– 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
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.