Skip to main content

Remove Received Header using exim acl - hide local ip during smtp

Comments

5 comments

  • cPRex Jurassic Moderator
    Thanks for sharing this!
    0
  • SimpleTechGuy
    **UPDATE** Apparently the wording has changed recently in exim configuration manager. In my original post I included:
    In WHM / Service Configuration / Exim Configuration Manager / Advanced Editor: Scroll down to acl_smtp_data: custom_begin_exiscanall add the following:

    Seems the "custom_begin_exiscanall" was changed. The new wording is "custom_begin_outgoing_smtp_checkall" You can get there like this: In WHM / Service Configuration / Exim Configuration Manager / Advanced Editor: Scroll down to acl_smtp_data:custom_begin_outgoing_smtp_checkall Everything else is the same.
    0
  • dcusimano
    I used the above setting to solve the issue of Gmail reporting SPF failure. Gmail checks the IP address in the earliest Received header (which contains my home office IP) rather than the Received header just above it (which contains my SMTP server's IP). For debugging purposes, I wanted to keep the value of the Received header in a new X-Received header. So I added an add_header modifier before the remove_header modifier: warn message = Remove internal headers add_header = X-Received: $header_Received remove_header = Received
    Thanks.
    0
  • Addam12
    Totally understand keeping your WAN address private. I always use a vpn with their email or maintenance of their account.
    0
  • dcusimano
    Followup regarding setting acl_smtp_data:custom_begin_outgoing_smtp_checkall to solve the Gmail SPF check issue. Gmail appears to have fixed their SPF check so it looks at the appropriate Received header for the appropriate IP, thus the setting is no longer required for that issue. Note that the setting was causing an issue in Mail Delivery Reports' open message function. The function was saying that the selected message could not be found. The function looks in Received headers for the selected message ID, and since the Received headers were renamed to X-Received, the message could not be found. Details:
    0

Please sign in to leave a comment.