The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change IP address instead of Hostname in Email Header (exim)

Discussion in 'E-mail Discussions' started by Tony_NT, Jan 15, 2016.

  1. Tony_NT

    Tony_NT Registered

    Joined:
    Jan 15, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Singapore
    cPanel Access Level:
    Root Administrator
    Is there anyway to change Ip Address Instead of Hostname in Email Header.

    Eg.
    Code:
    Server Host Name = cp.domain1.com
    Server Static Ip = 1.1.1.1
    
    Received: from [::1] (port=33247 helo=doamin1.com)
    by cp.doamin1.com with esmtpa (Exim 4.86)
    xxxxxxxx
    X-AntiAbuse: Primary Hostname - cp.doamin1.com
    X-AntiAbuse: Original Domain - gmail.com
    X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
    X-AntiAbuse: Sender Address Domain - doamin2.com
    X-Get-Message-Sender-Via: cp.doamin1.com: authenticated_id: tony@doamin2.com
    X-Authenticated-Sender: cp.doamin1.com: tony@doamin2.com
    
    Change To

    Code:
    Received: from [::1] (port=33247 helo=doamin1.com)
    by 1.1.1.1 with esmtpa (Exim 4.86)
    xxxxxxxx
    X-AntiAbuse: Primary Hostname - 1.1.1.1
    X-AntiAbuse: Original Domain - gmail.com
    X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
    X-AntiAbuse: Sender Address Domain - doamin2.com
    X-Get-Message-Sender-Via: 1.1.1.1: authenticated_id: tony@doamin2.com
    X-Authenticated-Sender: 1.1.1.1: tony@doamin2.com
    
    Anyone out there know how to change.

    Thanks
     
    #1 Tony_NT, Jan 15, 2016
    Last edited by a moderator: Jan 15, 2016
  2. Tony_NT

    Tony_NT Registered

    Joined:
    Jan 15, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Singapore
    cPanel Access Level:
    Root Administrator
    Thanks for your answer.

    I want to change IP address instead of Hostname in Email Header.

    by cp.doamin1.com with esmtpa (Exim 4.86)

    To

    by 1.1.1.1 with esmtpa (Exim 4.86)

    and

    X-AntiAbuse: Primary Hostname - cp.doamin1.com

    To

    X-AntiAbuse: Primary Hostname - 1.1.1.1

    Thanks,
     
  3. Tony_NT

    Tony_NT Registered

    Joined:
    Jan 15, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Singapore
    cPanel Access Level:
    Root Administrator
    If its not able to change, is it possible to remove below in email header

    Code:
    Received: from [::1] (port=50537 helo=x.x.x.x)
        by cp.domain1.com with esmtpa (Exim 4.86)
        (envelope-from <tony@domain2.com>)
        id xxxx-xxxxxx-xx
        for [EMAIL]tony@domain2.com[/EMAIL]; Mon, 18 Jan 2016 18:54:56 +0800
    
    
    someone anyone please respond. I do appreciate it

    Thanks,
    Tony
     
    #4 Tony_NT, Jan 19, 2016
    Last edited by a moderator: Jan 19, 2016
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    198
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What is it you need to do here, exactly? I've read the posts, I'm curious why you need to do this?
     
  5. Tony_NT

    Tony_NT Registered

    Joined:
    Jan 15, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Singapore
    cPanel Access Level:
    Root Administrator
    Thanks for your reply,

    There are many sites in a server but the server name should not be shown in the email header according to the business requirement.

    now I'm able to remove X-AntiAbuse: [hostname] which are included in the mail header.

    So, there is only hostname left to remove / change to IP in the email header.

    Received: from [::1] (port=50537 helo=x.x.x.x)
    by cp.domain1.com with esmtpa (Exim 4.86)
    (envelope-from <tony@domain2.com>)
    id xxxx-xxxxxx-xx
    for tony@domain2.com; Mon, 18 Jan 2016 18:54:56 +0800


    Kindly suggest as urgent.

    Thanks
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    198
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm still confused. What is the meaning of that business requirement?
    If you receive an email from gmail for example, it shows this:

    Code:
    Received: from mail-ig0-x248.google.com (mail-ig0-x248.google.com. [2607:f8b0:4001:c05::248])
            by mx.google.com with ESMTPS id 23si2794116oc.165.2016.01.18.0.31.25
     
Loading...

Share This Page