Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently relay all my cPanel (exim) outbound emails through my Postfix server. However, postfix seems to remove some important part in the header that exim added before sending to relay. As example, exim add in the headers the path of the PHP script that send the email, or the unix user ID of the sender.

Anyone know how to stop postfix relay from removing those important header part ?

Here is an example of headers part that is removed by the postfix relay :

X-PHP-Script: for
X-AntiAbuse: This header was added to track abuse, please include 
  it with any abuse report
X-AntiAbuse: Primary Hostname -
X-AntiAbuse: Original Domain -
X-AntiAbuse: Originator/Caller UID/GID - [99 32003] / [47 12]
X-AntiAbuse: Sender Address Domain -
X-Source-Args: /usr/local/apache/bin/httpd -k start -DSSL 



share|improve this question
Can you show us an example of what the headers look like before they get to postfix and after postfix has modified them? – larsks Feb 22 '11 at 20:13
@larsks I added them in the original post, thanks. – Karl Feb 22 '11 at 20:35
After doing a tcpdump on the source server, it seems that exim/cpanel doesn't add all those X-AntiAbuse when sending at the relay. So the issue come from exim and not the postfix relay. – Karl Feb 22 '11 at 20:48

I've finaly find the problem. If anyone have the same problem with cPanel, simply add headers_add = "${perl{mailtrapheaders}}" in the routers configuration of exim.conf

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.