Page 5 of 5 FirstFirst ... 345
Results 41 to 45 of 45

Thread: Changing localhost (localhost.localdomain [127.0.0.1]) in message headers

  1. #41
    parthee1989 is offline Starter Member
    Join Date
    Dec 2010
    Posts
    1
    Rep Power
    4

    Default

    Thanks a lot to Tikal. It works for me.

  2. #42
    rojoblandino is offline Intermediate Member
    Join Date
    Oct 2010
    Posts
    22
    Rep Power
    4

    Default

    Quote Originally Posted by tikal View Post
    How can I change this section of my outgoing/incoming message headers:

    Code:
    Received: from localhost (localhost.localdomain [127.0.0.1])
    ..to say

    Code:
    Received: from realhostname (realhostname.mydomain.com [Public-IP])
    Also the amavisd section of the headers I want changed from:

    Code:
    Received: from realhostname.mydomain.com ([127.0.0.1])
                  by localhost (realhostname.mydomain.com [127.0.0.1])
    ..to this

    Code:
    Received: from realhostname.mydomain.com ([Public IP])
                  by realhostname (realhostname.mydomain.com [Public IP])
    Basically I don't want the terms localhost, localdomain or 127.0.0.1 in the message headers anywhere.

    This is easy to do with Apache James, I just need to know how to do it with Zimbra/Postfix.

    Thanks for your help
    I solve it in the fallowing way:
    1) I edit my postfix_header_checks.in and add following lines at the end:
    Code:
    /^Received:\ .*/     IGNORE
    /^X-Originating-IP:/   IGNORE
    2) I found something about disabling zimbraMtaBlockedExtensionWarnRecipient variable but i got a problem doing it, the user does not recieve notification when an invalid attached file extension is used so i ended editing following in /opt/zimbra/conf/zmmta.cf
    Before
    Code:
      if VAR zimbraMtaBlockedExtensionWarnRecipient
          POSTCONF header_checks
      fi
    After
    Code:
      if VAR zimbraMtaBlockedExtensionWarnRecipient
          POSTCONF header_checks                                  LOCAL postfix_header_checks
      fi
    3) After that i just run zmmtactl reload and now no matter if the services get restarted.
    Last edited by rojoblandino; 07-31-2011 at 12:34 PM.

  3. #43
    slickdakine is offline Junior Member
    Join Date
    Aug 2013
    Posts
    7
    Rep Power
    2

    Default

    Anyone know how to get this to work on Zimbra 8?

  4. #44
    winston6071 is offline Intermediate Member
    Join Date
    Jun 2012
    Posts
    17
    Rep Power
    3

    Default

    is there a solution out there really working now for hiding for 8.0.6

    Received: from email.mydomain.at (localhost.localdomain [127.0.0.1])

    i tried
    --- with or without this---
    vi main.cf
    header_check = /opt/zimbra/postfix/postfix_header_check
    --- with or without this---

    vi /opt/zimbra/postfix/postfix_header_check.in
    vi /opt/zimbra/postfix/postfix_header_check
    /^Received:\ .*/ IGNORE
    /^X-Originating-IP:/ IGNORE

    zmprov mcf zimbraSmtpSendAddMailer "FALSE";

    X-originating Add --> Admin Gui unter MTA

    NO Running Spam amavis

    thanks

    cheers

  5. #45
    winston6071 is offline Intermediate Member
    Join Date
    Jun 2012
    Posts
    17
    Rep Power
    3

    Default Solved as Workaround

    Quote Originally Posted by winston6071 View Post
    is there a solution out there really working now for hiding for 8.0.6

    Received: from email.mydomain.at (localhost.localdomain [127.0.0.1])

    i tried
    --- with or without this---
    vi main.cf
    header_check = /opt/zimbra/postfix/postfix_header_check
    --- with or without this---

    vi /opt/zimbra/postfix/postfix_header_check.in
    vi /opt/zimbra/postfix/postfix_header_check
    /^Received:\ .*/ IGNORE
    /^X-Originating-IP:/ IGNORE

    zmprov mcf zimbraSmtpSendAddMailer "FALSE";

    X-originating Add --> Admin Gui unter MTA

    NO Running Spam amavis

    thanks

    cheers
    OK This was the Solution
    because zimbra overrites the main.cf added this as workaround found here [SOLVED] zimbra 8 header_checks | HF*P
    vi /opt/zimbra/bin/postfix

    adding this
    postconf -e header_checks=pcre:/opt/zimbra/conf/postfix_header_checks

    above this line
    sudo ${zimbra_home}/postfix/sbin/postfix "$@"

    If there is a better Solution please let me know

    thanks

Page 5 of 5 FirstFirst ... 345

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Why is Tomcat shuting down ever nights?
    By trapanator in forum Administrators
    Replies: 2
    Last Post: 11-30-2006, 11:57 PM
  2. fetchmail: SMTP< 250 Ok: queued as
    By daly1 in forum Installation
    Replies: 4
    Last Post: 08-04-2006, 04:23 AM
  3. Problem sending mails
    By fmodola in forum Administrators
    Replies: 3
    Last Post: 04-12-2006, 08:39 AM
  4. MTA is Dying after yum update
    By tonyawbrey in forum Administrators
    Replies: 27
    Last Post: 04-02-2006, 06:11 PM
  5. emails don't show up in inbox in browser
    By pstelzer in forum Installation
    Replies: 10
    Last Post: 12-13-2005, 10:21 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
  •