About a year ago someone helped me to setup a file that would pipe email coming to a specific domain to a PHP script. I am on UNIX (CentOS) and know that the file should be in /etc/aliases
Have no idea what else to look for. I need to modify the file to add similar functionality for another domain.
Any guidance would be highly appreciated.
For postfix:
VERY IMPORTANT: Save existing
/etc/postfix/master.cfand/etc/postfix/transport.Edit
/etc/postfix/master.cfAppend these line
Note: it’s important to have white space before
flagsFor more parameters to
piperead this -> http://www.postfix.org/pipe.8.htmlCreate user
phtranand assign it to be the owner of/path/to/script.php. Make the script executable.Add this line to
/etc/postfix/transportRun
Here is the doc for tarnsport map: http://www.postfix.org/transport.5.html
Restart postfix service.