Results 1 to 3 of 3

Thread: Different "Received: from" hostname header for different domains

  1. #1
    Join Date
    Jul 2014
    Posts
    2
    Rep Power
    1

    Question Different "Received: from" hostname header for different domains

    G'day,

    Just wondering if it was possible to set a different "Received: From" address per domain, for a single server (via both SMTP and webmail)..

    If we are sending using XXX@domain1.com, it should be Received: From mail.domain1.com"
    If you are sending using XXX@domain2.com, it should be Received: From mail.domain2.com" (so, different hostnames per address)

    The problem is, we have 3 different companies we are trying to keep completely separate (but preferably only use 1 server). People will be able to tell both companies are the some IP, with some difficulty, but the Received header is a dead giveaway. I've managed to get many of the headers changed already.

    On one system we saw, you specify the domain SMTP hostname in the domain config in the admin console (but, I can't see anything here that works).

    Zimbra Version: Release 8.0.7.GA.6021.UBUNTU12.64 UBUNTU12_64 FOSS edition.

    Header (With stuff I need to change still)
    Delivered-To: XXXXX@gmail.com
    Received: by 10.180.183.230 with SMTP id ep6csp213164wic;
    Tue, 22 Jul 2014 05:12:19 -0700 (PDT)
    X-Received: by 10.66.163.65 with SMTP id yg1mr33057769pab.33.1406031138967;
    Tue, 22 Jul 2014 05:12:18 -0700 (PDT)
    Return-Path: <andrew@secondary.com.au>
    Received: from mail.maincompany.com.au (123.123.123.123.sta.ispaddress.net.au. [123.123.123.213])
    by mx.google.com with ESMTP id qfdi2154352pbc.190.2014.01.23.01.12.16
    for <XXXXX@gmail.com>;
    Tue, 22 Jul 2014 05:12:18 -0700 (PDT)
    Received-SPF: none (google.com: andrew@secondary.com.au does not designate permitted sender hosts) client-ip=203.191.164.232;
    Authentication-Results: mx.google.com;
    spf=neutral (google.com: andrew@secondary.com.au does not designate permitted sender hosts) smtp.mail=andrew@secondary.com.au
    Received: from localhost (localhost [127.0.0.1])
    by mail.maincompany.com.au (Postfix) with ESMTP id E3BE34234242
    for <XXXXX@gmail.com>; Tue, 22 Jul 2014 22:12:14 +1000 (EST)
    Received: from mail.maincompany.com.au ([127.0.0.1])
    by localhost (mail.maincompany.com.au [127.0.0.1]) (amavisd-new, port 10032)
    with ESMTP id S4x_a1ZdfsWff for <XXXXX@gmail.com>;
    Tue, 22 Jul 2014 22:12:13 +1000 (EST)
    Received: from localhost (localhost [127.0.0.1])
    by mail.maincompany.com.au (Postfix) with ESMTP id D7A9545E0E73
    for <XXXXX@gmail.com>; Tue, 22 Jul 2014 22:12:13 +1000 (EST)
    X-Virus-Scanned: Checked
    Received: from mail.maincompany.com.au ([127.0.0.1])
    by localhost (mail.maincompany.com.au [127.0.0.1]) (amavisd-new, port 10026)
    with ESMTP id iiSyY-8A_UAo for <XXXXX@gmail.com>;
    Tue, 22 Jul 2014 22:12:13 +1000 (EST)
    Received: from mail.maincompany.com.au (mail.maincompany.com.au [192.168.1.12])
    by mail.maincompany.com.au (Postfix) with ESMTP id AA9B24FE0E10
    for <XXXXX@gmail.com>; Tue, 22 Jul 2014 22:12:13 +1000 (EST)
    Date: Tue, 22 Jul 2014 22:12:13 +1000 (EST)
    From: andrew@secondary.com.au
    To: XXXXX@gmail.com
    Message-ID: <272992568.1.1406031133659.JavaMail.zimbra@maincompany.com.au>
    Subject: test
    MIME-Version: 1.0
    Content-Type: text/plain; charset=utf-8
    Content-Transfer-Encoding: 7bit
    Thread-Topic: test
    Thread-Index: GlgR+9ZUhfdsf4fdAfxdS9cXDAkQXBUw==

    test xxxx

  2. #2
    Join Date
    Apr 2014
    Posts
    10
    Rep Power
    1

    Default

    Hi andrewluecke !

    I honestly don't known if Zimbra has already implemented a easier way to do this but I think it's possible to do it directly in Postfix. As far as I know, the headers which you highlighted use the parameter "myhostname" in Postfix, so I would look for a way to set it per domain.

    My best regards,
    Fabio S. Schmidt

  3. #3
    Join Date
    Jul 2014
    Posts
    2
    Rep Power
    1

    Default

    Quote Originally Posted by fs.schmidt View Post
    Hi andrewluecke !

    I honestly don't known if Zimbra has already implemented a easier way to do this but I think it's possible to do it directly in Postfix. As far as I know, the headers which you highlighted use the parameter "myhostname" in Postfix, so I would look for a way to set it per domain.

    My best regards,
    Fabio S. Schmidt
    G'day,

    Unfortunately, already tried digging around a bit and couldn't find anything (only thing I was thinking is maybe I can use some kind of logic to define myhostname, like "if FROM CONTAINS '@domain2.com', use mymailname = mail.domain2.com, else mymailname = mail.domain1.com ).

    Kolab and other email servers I've tried seem to support this.. I didn't really want to post a bug report/feature request though until I was sure it wasn't doable (as I am new to Zimbra, and I need to prove to my business that Zimbra really makes a difference over our current solution before we can afford to go perpetual Zimbra Pro).

    Andy

Similar Threads

  1. Removing "Received: localhost" header
    By cerri in forum Administrators
    Replies: 10
    Last Post: 08-03-2014, 08:35 PM
  2. customize the format for "Received" and "Sent"
    By tiger2000 in forum Administrators
    Replies: 4
    Last Post: 01-05-2013, 11:38 AM
  3. One "e-mail domain" for some "external LDAP domains"
    By ChaSer in forum Administrators
    Replies: 5
    Last Post: 11-05-2009, 03:45 PM
  4. Replies: 0
    Last Post: 09-24-2009, 05:20 AM
  5. BAD HEADER Duplicate header field: "Message-ID"
    By mezza in forum Administrators
    Replies: 4
    Last Post: 12-06-2007, 07:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •