Results 1 to 10 of 11

Thread: Removing "Received: localhost" header

Hybrid View

  1. #1
    Join Date
    Jan 2013
    Posts
    14
    Rep Power
    2

    Unhappy Removing "Received: localhost" header

    Hi to all,

    I've spent about 3 hours to try to remove the "Received: localhost" header from zimbra mails.
    I've modified the amavis.conf.in adding two lines:

    $insert_received_line = 0;
    $allowed_added_header_fields{lc('Received')} = 0;

    I've modified the postftix_header_checks.in with

    /^Received: from localhost/ IGNORE
    /^Received: from localhost.* by FQ\.D\.N/ IGNORE

    But I cannot succeded.
    The mod in amavis.conf did a part of the trick, because it removed the amavisd part, but I'm stuck with the other part.
    This is an example of a mail:

    Code:
    Delivered-To: MYMAIL
    Received: by 10.68.125.34 with SMTP id mn2csp186802pbb;
            Tue, 15 Jan 2013 15:06:41 -0800 (PST)
    X-Received: by 10.50.91.168 with SMTP id cf8mr3309322igb.20.1358291201293;
            Tue, 15 Jan 2013 15:06:41 -0800 (PST)
    Return-Path: <ORIGINATINGMAIL>
    Received: from FQDN (FQDN. [IP])
            by mx.google.com with ESMTP id wx9si5687547igb.20.2013.01.15.15.06.38;
            Tue, 15 Jan 2013 15:06:39 -0800 (PST)
    Received-SPF: pass (google.com: domain of ORIGINATINGMAIL designates IP as permitted sender) client-ip=IP;
    Authentication-Results: mx.google.com;
           spf=pass (google.com: domain of ORIGINATINGMAIL designates IP as permitted sender) smtp.mail=ORIGINATINGMAIL;
           dkim=pass header.i=@ORIGINATINGDOMAIN
    Received: from localhost (localhost [127.0.0.1])
    	by FQDNit (Postfix) with ESMTP id 51AB6321927
    	for <MYMAIL>; Wed, 16 Jan 2013 00:07:24 +0100 (CET)
    X-Virus-Scanned: amavisd-new at DOMAIN
    Received: from localhost (localhost [127.0.0.1])
    	by FQDN (Postfix) with ESMTP id B2134321926
    	for <MYMAIL>; Wed, 16 Jan 2013 00:07:23 +0100 (CET)
    DKIM-Filter: OpenDKIM Filter v2.7.1 FQDN B2134321926
    DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=DOMAIN;
    	s=1F3A6370-42ED-11E2-ABFE-A5E20191D087; t=1358291243;
    	bh=PS8W1bl9ClumuLdvbhvxwc+izFwmhzDXK0/6xzb2OtA=;
    	h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type:
    	 Content-Transfer-Encoding;
    	b=d1qmKbI2McHuwrIee1qihb7qYvXv2ByQUxNd0wj95R2+fu3u9MXC0+2bQEwRzBw4t
    	 kwdXTrWuMVmtqMRK/V/lQZ4VpADjbF6NtsM0lpPZpa/pNnOrRSIj4t2mry10swGL9T
    	 9kMCIQoprL6V6hgnXxTBHlFZaY6tGyrWqPA3tkb0=
    X-Virus-Scanned: amavisd-new at DOMAIN
    Received: from FQDN (FQDN [IP])
    	by FQDN (Postfix) with ESMTP id 2A61732190B
    	for <MYMAIL>; Wed, 16 Jan 2013 00:07:23 +0100 (CET)
    Date: Wed, 16 Jan 2013 00:07:21 +0100 (CET)
    I've stripped many informations but I think that the code is clear.
    Anyone can help me?

    Thanks

  2. #2
    Join Date
    Jan 2013
    Posts
    14
    Rep Power
    2

    Default

    Can someone help me?
    Thanks

  3. #3
    Join Date
    Jan 2013
    Posts
    14
    Rep Power
    2

    Default

    This problem is very important because all emails through Zimbra trigger Spamassassin RCVD_ILLEGAL_IP check.
    No-one can help me with?

  4. #4
    Join Date
    Mar 2009
    Location
    Riga, Latvia
    Posts
    23
    Rep Power
    6

    Default

    Quote Originally Posted by cerri View Post
    This problem is very important because all emails through Zimbra trigger Spamassassin RCVD_ILLEGAL_IP check.
    No-one can help me with?
    I'm having the same problem, but no solution at all or reaction from

  5. #5
    Join Date
    Jan 2013
    Posts
    14
    Rep Power
    2

    Default

    I'll be very happy if someone could help!

  6. #6
    Join Date
    Aug 2013
    Posts
    7
    Rep Power
    2

    Default

    I too am having this problem. I think those who aren't having this problem have established mail servers, with good reputation related to their public IPs, so Gmail and Hotmail let their messages through even though it has the localhost and 127.0.0.1 in the headers.

    We recently setup a new server with a new IP and domain. The IP is clean and passes all the spam database checks, however it doesn't have rep.
    I've ran all the mail tests I could find on several sites, including mxtoolbox, and the server passes with 0 problems.
    On Email Security Grader - Test your mail server it scored:

    Overall Configuration Score: 97%
    Rank: 171th place out of 37420 domains tested
    Percentile: 99th
    Status: VERY STRONG SECURITY
    PASSED ALL OF THE FOLLOWING TESTS:
    MX Connection Test
    Reverse DNS Test
    DNSBL Verification Test
    SPF Server Test
    SPF Client Test
    Open Relay and Email Format Test
    SMTP Plain Text Authentication Test
    POP3 Connection Test
    IMAP Connection and Authentication Test

    All email, even standard plain text emails being sent from the new server are being sent to the spam folders at Gmail and Hotmail.
    Gmail's reason is: "Why is this message in Spam? It's similar to messages that were detected by our spam filters."
    Further reading here for that specific reason:
    https://support.google.com/mail/answ...=mail&expand=5
    "Messages sent from accounts or IP addresses that have sent other spam messages"

    How much spam has been sent with the IP 127.0.0.1 in the headers? I imagine a lot.
    Having localhost and 127.0.0.1 in the headers is the only suspicious thing I can find. I found another thread where instructions were given on how to remove them on previous versions of Zimbra, however I was not able to get it to work on Zimbra 8:
    http://www.zimbra.com/forums/adminis...headers-5.html

    Much thanks to anyone who knows how to do this on Zimbra 8!!

Similar Threads

  1. customize the format for "Received" and "Sent"
    By tiger2000 in forum Administrators
    Replies: 4
    Last Post: 01-05-2013, 12:38 PM
  2. Replies: 0
    Last Post: 09-24-2009, 06:20 AM
  3. Replies: 1
    Last Post: 06-24-2008, 05:42 AM
  4. BAD HEADER Duplicate header field: "Message-ID"
    By mezza in forum Administrators
    Replies: 4
    Last Post: 12-06-2007, 08: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
  •