Postfix not parsing correct hostname or IP

Discussion in 'Installation/Configuration' started by FFH, Jun 18, 2018.

  1. FFH

    FFH Member

    Hi all,
    Since we have put the ISPconfig CP in our production environment we have noticed our internal Sophos spam control software is not working. I have had a Sophos engineer look at this and he has stated that the emails received from our server (where ISPConfig is installed) is not giving the correct domain or IP. Upon further investigation, he is correct.
    This is what has been setup on the server, which I believe is correct:
    [email protected]:/# hostname
    hosting2
    [email protected]:/# hostname -f
    hosting2.texcel.com.au

    This is what is coming through in the email headers:
    Received: from localhost (localhost.localdomain [127.0.0.1]) by
    hosting2.texcel.com.au (Postfix) with ESMTP id 15FB63BC4F3 for
    <[email protected]>; Mon, 18 Jun 2018 13:40:53 +1000 (AEST)
    X-Virus-Scanned: Debian amavisd-new at hosting2.texcel.com.au
    Authentication-Results: hosting2.texcel.com.au (amavisd-new);
    dkim=pass (2048-bit key) header.d=gmail.com
    Received: from hosting2.texcel.com.au ([127.0.0.1]) by localhost
    (hosting2.texcel.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id

    Sophos believes this is why their software is not scanning incoming emails as it sees the emails (all of them) with the localhost as an internal email and not needing to be scanned.

    Our current setup is this:
    ISPConfig Server (The Perfect Server - Debian 8.4 Jessie) --> IMAPIlabs POP Collector --> Exchange Server

    Any thoughts?

    TIA.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What does this show :
    Code:
    # postconf -n | grep -i myhostname
     
  3. FFH

    FFH Member

    myhostname = hosting2.texcel.com.au
     

Share This Page