How to remove X-PHP-Originating-Script

X-PHP-Originating-Script Will show the line and script of the file witch sent the email within php.  You may want to disable this for security reasons.

To do so… Just edit /etc/php5/cgi/php.ini and change the following to:

mail.add_x_header = Off

 

While your in there change:

expose_php = Off