Custom Rules for Email forwarder

Mohammad Baddar

Registered
Mar 2, 2018
1
0
1
Oman
cPanel Access Level
Website Owner
Hi all

we have special emails that we want to do the following :
emails received from specific domain and based on the subject will do the :
1- Change the subject completely and use an new subject to "Example".
2- Remove specific lines in email body completely.
3- Send it to new email address with the modified body.

is this possible ? maybe using custom script for example ?

Regards
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
1- Change the subject completely and use an new subject to "Example".
2- Remove specific lines in email body completely.
3- Send it to new email address with the modified body.
Hello,

You'd like need to setup a filter that detects the criteria and then set the action to "Pipe to a Program". You'd then have to setup a custom script to process the message and modify it to your preferences.

While that level of customization is outside our scope of support, you can find a list of companies offering system admin services on the following URL if this is something you require assistance developing:

System Administration Services | cPanel Forums

Thank you.