Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #41 (permalink)  
Old 01-05-2011, 09:49 PM
Starter Member
 
Posts: 1
Default

Thanks a lot to Tikal. It works for me.
Reply With Quote
  #42 (permalink)  
Old 07-31-2011, 12:26 PM
Intermediate Member
 
Posts: 16
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..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.