Change IP in mailserver in headers of an email

Discussion in 'Technical' started by Bossman, Jun 28, 2016.

  1. Bossman

    Bossman New Member

    Does anyone know how to change to proper IP in headers of gotten email ?

    I got, Postfix/Amavisd/Spamassassin/Clamv
    Code:
    Received: from server.xxxx.com (server.xxxx.com [127.0.0.1]) by server.xxxx.com (Postfix) with ESMTP id 2FBVB6C4V217 for <[email protected]>; Tue, 28 Jun 2016 21:22:47 +0200 (CEST)
    Received: from server.xxxx.com ([127.0.0.1]) by server.xxxx.com (server.xxxx.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KffagJPUGu29 for <[email protected]>; Tue, 28 Jun 2016 21:22:35 +0200 (CEST)
    
     
    Last edited: Jun 28, 2016
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check your /etc/hosts file, maybe you assigedn the hostname to 127.0.0.1 there instead of the real IP.
     
  3. Bossman

    Bossman New Member

    I did that but olso did it on my external ip, look

    127.0.0.1 server.my.com server localhost localhost.localdomain
    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
    127.0.0.1 localhost.localdomain localhost
    xx.xx.xxx.xxx server.my.com server isp.name.com

    if i change first line to this: 127.0.0.1 localhost localhost.localdomain
    i got in mail header: localhost [127.0.0.1]
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The server name may not be defined under 127.0.0.1, remove it there. 127.0.0.1 is just localhost localhost.localdomain.
     
  5. Bossman

    Bossman New Member

    Now i am getting as follows:
    Code:
    Received: from server.xxx.com (localhost [127.0.0.1]) by server.xxx.com (Postfix) with ESMTP id 56E696C4229D for <[email protected]>; Wed, 29 Jun 2016 12:26:02 +0200 (CEST)
    
    Received: from server.xxx.com ([127.0.0.1]) by server.xxx.com (server.xxx.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ug9Pbn0Y63Tv for <[email protected]>; Wed, 29 Jun 2016 12:26:02 +0200 (CEST)
    
    Received: from mac-pro-kamil.lan (xx-xx-xx-xxdynamic.chello.com [xx.xx.xx.xx]) (Authenticated sender: [email protected]) by server.xxx.com (Postfix) with ESMTPSA id 17C126C4229C for <[email protected]>; Wed, 29 Jun 2016 12:26:01 +0200
    
    and my hosts looks like this:
    Code:
    127.0.0.1       localhost localhost.localdomain
    127.0.0.1       localhost localhost.localdomain localhost4 localhost4.localdomain4
    127.0.0.1       localhost.localdomain localhost
    xx.xx.xx.xxx   server.xxx.com server isp.servername.com
    
    Why all those server.xxx.com got [127.0.0.1] in braclets, it supposed to have my exterrnal ip.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    No, there should not be your external IP. These lines are from mail filter process which is a local process and therefore ist has to show localhost UP 127.0.0.1 there.
     
  7. Bossman

    Bossman New Member

    Okay thanks for information.
     

Share This Page