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 Display Modes
  #1 (permalink)  
Old 07-10-2009, 02:40 AM
Loyal Member
 
Posts: 75
Lightbulb [SOLVED] Internal Ip address Showing in Mail headers

I want to customize ZCS to display the external IP instead of the Internal IP 192.168.5.19. ZCS sit behind a firewall and the internal IP is NATTED to an external one. I have tried the Solution in the POST: Outgoing header address Masquerading, but it didn't work.

I am using ZCS 5.0.7 is there any other way to do this using zmlocalconfig.
Some mailservers are rejecting our going mails?

Here is a sample of the header:


Recieved: from xbox.mydomain.com ([192.168.5.19]) by mydomain.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 10 Jul 2009 08:55:19 +0100
Received: from localhost (localhost [127.0.0.1]) by xbox.mydomain.com (Postfix) with ESMTP id A310D12B4002 for <someone@yahoo.co.uk>; Fri, 10 Jul 2009 09:05:45 +0100 (WAT) tests=[ALL_TRUSTED=-1.8, AWL=0.303, BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from xbox.mydomain.com ([127.0.0.1]) by localhost (xbox.mydomain.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jJFwirYb-11j for <someone@yahoo.co.uk>; Fri, 10 Jul 2009 09:05:16 +0100 (WAT)
Received: from xbox.mydomian.com (xbox.mydomain.com [127.0.1.1]) by xbox.mydomian.com (Postfix) with ESMTP id 6895F12B4001 for <someone@yahoo.co.uk>; Fri, 10 Jul 2009 09:05:16 +0100 (WAT)
Reply With Quote
  #2 (permalink)  
Old 07-10-2009, 03:19 AM
Moderator
 
Posts: 5,806
Default

Did you try [SOLVED] Outgoing Header Address Masquerading and if so why did it not work ? Can you post what you used in the regex.
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #3 (permalink)  
Old 07-10-2009, 03:45 AM
Loyal Member
 
Posts: 75
Default

Quote:
Originally Posted by uxbod View Post
Did you try [SOLVED] Outgoing Header Address Masquerading and if so why did it not work ? Can you post what you used in the regex.
Yes I did, I actually got this from the link.

/^Received: from .+\..+\.domain\.com .+(by zimbra\.domain\.com .+) / REPLACE Received: $1
Reply With Quote
  #4 (permalink)  
Old 07-10-2009, 03:48 AM
Moderator
 
Posts: 5,806
Default

So you made the change to /opt/zimbra/conf/postfix_header_checks.in and restarted ZCS ? Does the line appear in postfix_header_checks now ? Can you post the full line please ? Have you checked /var/log/zimbra.log to see what is happening when a email is processed ?
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #5 (permalink)  
Old 07-10-2009, 04:38 AM
Loyal Member
 
Posts: 75
Thumbs up Here is the full content of the postfix_header_check.in

zimbra@xbox:~/conf$ cat postfix_header_checks.in
%%uncomment VAR:zimbraMtaBlockedExtension%%/filename=\"?(.*)\.(%%list VAR:zimbraMtaBlockedExtension |%%)\"?$/
%%uncomment VAR:zimbraMtaBlockedExtension%% REJECT For security reasons we reject attachments of this type
%%uncomment VAR:zimbraMtaBlockedExtension%%/^\s*Content-(Disposition|Type).*name\s*=\s*"?(.+\.(%%list VAR:zimbraMt
aBlockedExtension |%%))"?\s*$/
%%uncomment VAR:zimbraMtaBlockedExtension%% REJECT Attachment type not allowed. File "$2" has the unacceptable
extension "$3"
/^Received: from .+\..+\.domain\.com .+(by zimbra\.domain\.com .+) / REPLACE Received: $1
zimbra@xbox:~/conf$
Reply With Quote
  #6 (permalink)  
Old 07-10-2009, 05:05 AM
Moderator
 
Posts: 5,806
Default

Have you updated the regex to use your specific details ? I believe the original OP obfuscated their own domain name.
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #7 (permalink)  
Old 07-10-2009, 05:25 AM
Loyal Member
 
Posts: 75
Default

Quote:
Originally Posted by uxbod View Post
Have you updated the regex to use your specific details ? I believe the original OP obfuscated their own domain name.
Can you please make it a bit simple? Do you mean I should replace all instances of " domain" by my real domain name? Please expansiate?
Reply With Quote
  #8 (permalink)  
Old 07-10-2009, 05:29 AM
Moderator
 
Posts: 5,806
Default

Yes, it would be something like
Code:
/^Received: from .+\..+\.mydomain\.com .+(by xbox\.mydomain\.com .+) / REPLACE Received: $1
Why do you really need to go to this trouble anyway ?
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #9 (permalink)  
Old 07-10-2009, 06:03 AM
Loyal Member
 
Posts: 75
Default

Quote:
Originally Posted by uxbod View Post
Yes, it would be something like
Code:
/^Received: from .+\..+\.mydomain\.com .+(by xbox\.mydomain\.com .+) / REPLACE Received: $1
Why do you really need to go to this trouble anyway ?
I am currently using an exchange server as the outgoing smtp relay, i want a scenario where i can use ZCS without an additional smtp relay or server.
Reply With Quote
  #10 (permalink)  
Old 07-10-2009, 06:06 AM
Moderator
 
Posts: 5,806
Default

Well if you want to do that then just ensure you have a valid reverse DNS entry for your ZCS server. As long as the FQDN of your server is resolvable externally, with a valid rDNS entry, and the MX record for your domain points correctly to your server then you should have no issues. Are you on a static IP aswell ?
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0