How to stop X- headers being added to email

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,814
541
263
Houston
cPanel Access Level
DataCenter Provider
Just out of curiosity why specifically do you want to remove these?

You can edit the X-Headers at WHM>>Service Configuration>>Exim Configuration Manager -> Advanced Editor.
 

nivekau

Well-Known Member
Jul 22, 2011
49
3
58
Australia
cPanel Access Level
Root Administrator
Just out of curiosity why specifically do you want to remove these?

You can edit the X-Headers at WHM>>Service Configuration>>Exim Configuration Manager -> Advanced Editor.
Thank you. We send email through some external Mailman mail lists and some of this mail (from the mail list) is being rejected by outlook.com and mimecast servers because of a suspected mail loop. Mimecast says this is because there are too many receive headers. We have checked this and while the mailman server does add it's own headers to outgoing messages, there are only 5 receive headers in total, but there are about 40 headers overall, so we think Mimecast (and possibly outlook.com) are counting all headers rather than just receive headers. Many of the X- headers added by my server are not needed so we would like to remove these and see if that resolves the situation with outlook.com and mimecast.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,814
541
263
Houston
cPanel Access Level
DataCenter Provider
Hello @nivekau

quite interesting, if you find that modifying the headers does not help or if you need any further assistance feel free to let us know.


Thanks!