Skip to main content

How to edit exim configuration so it do not reveal "Received: from" in headers?

Comments

4 comments

  • cPanelMichael
    Hello, Here's a thread from the Exim User's mailing list that you may find helpful: Mailing List Archive: replace Received: from Thank you.
    0
  • postcd
    Thx, the person in that topic added following into his exim configuration: remote_smtp: driver = smtp headers_remove = Received
    He mentions transport section of the exim conf. I tried to add it into the transportstart and transportmiddle in Exim configuration editor / Advanced but both failed at dry run with error: Exim configuration error: there are two transports called "remote_smtp" and indeed, "remote_smtp" is visible in transport section, but i see no way to edit it in WHM / Exim configuration manager / Advanced. Also i searched for "received_header_text" in Exim. conf. manager, but can not find it.
    0
  • cPanelMichael
    Hello, This is unsupported, but here's an older thread on this topic you may find helpful: /scripts/posteximup help Thank you.
    0
  • pincom_stu
    Hi all, I read through some of these older threads related to this issue, and just wanted to provide some more details on what I think is the best solution. See here: How to Customize the Exim System Filter File | cPanel & WHM Documentation I just verified it works and will not be overwritten by cPanel. It's a supported mechanism. Here's the example file file I have located under the directory /usr/local/cpanel/etc/exim/sysfilter/options: # CUSTOM FILTER if "${if def:header_X-PHP-Script: {there}}" is there then headers remove X-PHP-Script endif if "${if def:header_X-PHP-Originating-Script: {there}}" is there then headers remove X-PHP-Originating-Script endif
    0

Please sign in to leave a comment.