Getting rid of X-headers in PHP's mail() function?
Posted: Tue Jun 07, 2011 4:37 am
On one of my webservers, every email I send using PHP's mail() function contains some additional headers, such as X-AntiAbuse and X-PHP-Script, like this:
I'd like to get rid of those. Have been in touch with the hosting provider to disable these headers, but they don't know (it's a semi self-managed dedicated server). I also looked through all /etc/exim.* config files but couldn't find anything there either.
I assume this must be some PHP setting or sendmail configuration or whatever, but I have no clue how/what/where... Anyone?
FYI: this particular server is running CentOS 5.5, linux kernel 2.6.18, PHP 5.2.17.
Code: Select all
X-PHP-Script: www.example.com/cms/admin/contact.php for 69.195.136.109
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Originator/Caller UID/GID - [420 33605] / [26 6]
X-AntiAbuse: (...more stuff...)
X-Source-Args: /usr/bin/php /home/apollo/public_html/cms/admin/contact.php
etc...
I assume this must be some PHP setting or sendmail configuration or whatever, but I have no clue how/what/where... Anyone?
FYI: this particular server is running CentOS 5.5, linux kernel 2.6.18, PHP 5.2.17.