Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: [SOLVED] Internal Ip address Showing in Mail headers

  1. #1
    emmaylots is offline Loyal Member
    Join Date
    May 2008
    Location
    Nigeria
    Posts
    92
    Rep Power
    6

    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)

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    Did you try http://www.zimbra.com/forums/install...querading.html and if so why did it not work ? Can you post what you used in the regex.

  3. #3
    emmaylots is offline Loyal Member
    Join Date
    May 2008
    Location
    Nigeria
    Posts
    92
    Rep Power
    6

    Default

    Quote Originally Posted by uxbod View Post
    Did you try http://www.zimbra.com/forums/install...querading.html 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

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    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 ?

  5. #5
    emmaylots is offline Loyal Member
    Join Date
    May 2008
    Location
    Nigeria
    Posts
    92
    Rep Power
    6

    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$

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    Have you updated the regex to use your specific details ? I believe the original OP obfuscated their own domain name.

  7. #7
    emmaylots is offline Loyal Member
    Join Date
    May 2008
    Location
    Nigeria
    Posts
    92
    Rep Power
    6

    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?

  8. #8
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    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 ?

  9. #9
    emmaylots is offline Loyal Member
    Join Date
    May 2008
    Location
    Nigeria
    Posts
    92
    Rep Power
    6

    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.

  10. #10
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    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 ?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  2. [SOLVED] mailbox and apache not running
    By rtwick in forum Administrators
    Replies: 4
    Last Post: 11-15-2008, 08:21 AM
  3. Issues...
    By timothyalangorman in forum Administrators
    Replies: 3
    Last Post: 11-19-2007, 10:43 AM
  4. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04:55 PM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 09:24 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
  •