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 default server name in email headers

Discussion in 'E-mail Discussions' started by irdeveloper, Mar 13, 2013.

  1. irdeveloper

    irdeveloper Member

    Joined:
    Mar 12, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi guys

    I like to know that is it possible to change the default server name ?
    Or just changing it in email headers ?

    When i'm sending some emails from my server ,
    In the email headers , The server name will be appear like this :
    static.238.89.63.178.clients.your-server.de

    Example :
    Received: from static.238.89.63.178.clients.your-server.de (static.238.89.63.178.clients.your-server.de. [178.63.89.238])
    by mx.google.com with ESMTPS id ew4si8124349lbb.35.2013.03.12.09.56.58
    (version=TLSv1 cipher=RC4-SHA bits=128/128);
    Tue, 12 Mar 2013 09:57:01 -0700 (PDT)

    How can i change it ? I sent this sample email from a hosted domain in CPanel
    (me@domain.com)

    Full email headers :
    Code:
    Delivered-To: him@hisdomain.com
    Received: by 10.68.132.66 with SMTP id os2csp127601pbb;
    Tue, 12 Mar 2013 09:57:02 -0700 (PDT)
    X-Received: by 10.152.147.130 with SMTP id tk2mr14681521lab.24.1363107421468;
    Tue, 12 Mar 2013 09:57:01 -0700 (PDT)
    Return-Path: <me@domain.com>
    Received: from static.238.89.63.178.clients.your-server.de (static.238.89.63.178.clients.your-server.de. [178.63.89.238])
    by mx.google.com with ESMTPS id ew4si8124349lbb.35.2013.03.12.09.56.58
    (version=TLSv1 cipher=RC4-SHA bits=128/128);
    Tue, 12 Mar 2013 09:57:01 -0700 (PDT)
    Received-SPF: pass (google.com: domain of me@domain.com designates 178.63.89.238 as permitted sender) client-ip=178.63.89.238;
    Authentication-Results: mx.google.com;
    spf=pass (google.com: domain of me@domain.com designates 178.63.89.238 as permitted sender) smtp.mail=me@domain.com;
    dkim=pass header.i=@domain.com
    Date: Tue, 12 Mar 2013 09:57:01 -0700 (PDT)
    Message-Id: <513f5e5d.4464700a.6ba4.542dSMTPIN_ADDED_MISSING@mx.google.com>
    DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pfarsi.com; s=default;
    h=Subject:To:From:MIME-Version; bh=3ZTQDSPFs5Dbfhy/jEU12DyuzBKIXa5tk4aavDNvJqU=;
    b=Y/i15LEn1DQ4RirF6Jd542g1Zp+0GGH83kRcuml02ILCYkMem6Se/h9oGR/lZ+wDtzFxYydutmaGUh/f7P3CmFy5eLxOj9E0eIau6t3OmED7rnLkcu5wdMXF+hAoeKLzRQVeZKJLEurHkdMmfYzN1DlQxIiAeU/w6Thjb3XcYic=;
    Received: from static.238.89.63.178.clients.your-server.de ([178.63.89.238]:56489 helo=email.domain.com)
    by static.238.89.63.178.clients.your-server.de with esmtpa (Exim 4.80)
    (envelope-from <me@domain.com>)
    id 1UFSnK-00021Y-A3
    for him@hisdomain.com; Tue, 12 Mar 2013 20:15:22 +0300
    MIME-Version: 1.0
    From: me@domain.com
    To: him@hisdomain.com
    Subject: Test message from Roundcube
    X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
    X-AntiAbuse: Primary Hostname - static.238.89.63.178.clients.your-server.de
    X-AntiAbuse: Original Domain - gmail.com
    X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
    X-AntiAbuse: Sender Address Domain - domain.com
    X-Get-Message-Sender-Via: static.238.89.63.178.clients.your-server.de: authenticated_id: me@domain.com
    This is a test to confirm that Roundcube can send email.

    Thank you :)
     
    #1 irdeveloper, Mar 13, 2013
    Last edited by a moderator: Mar 13, 2013
  2. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    I can see that there is no rDNS is setup for your IP.

    =======
    ;; QUESTION SECTION:
    ;238.89.63.178.in-addr.arpa. IN PTR

    ;; ANSWER SECTION:
    238.89.63.178.in-addr.arpa. 86400 IN PTR static.238.89.63.178.clients.your-server.de.
    =========

    Also the HOSTNAME set isn't correct, unless you expected to set itlike that explicitly ( I know some providers set the hostbame to the reverse entry of the main IP by default ).

    =======
    $ telnet 178.63.89.238 25
    Trying 178.63.89.238...
    Connected to 178.63.89.238.
    Escape character is '^]'.
    220-static.238.89.63.178.clients.your-server.de ESMTP Exim 4.80 #2 Thu, 14 Mar 2013 08:19:29 +0330
    220-We do not authorize the use of this system to transport unsolicited,
    220 and/or bulk e-mail.
    ======

    So I suggest you to contact your server provider and,

    1. Set a valid HOSTNAME to the servr ( like server1.yourdomain.com ).

    2. Set rDNS of your IP to the server HOSTNAME ( your server support can easily get what these all mean, if they are good enough :) )
     
Loading...

Share This Page