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
    [email protected]:/# hostname -f

    This is what is coming through in the email headers:
    Received: from localhost (localhost.localdomain []) by (Postfix) with ESMTP id 15FB63BC4F3 for
    <[email protected]>; Mon, 18 Jun 2018 13:40:53 +1000 (AEST)
    X-Virus-Scanned: Debian amavisd-new at
    Authentication-Results: (amavisd-new);
    dkim=pass (2048-bit key)
    Received: from ([]) by localhost
    ( []) (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?

  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

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

    FFH Member

    myhostname =

Share This Page