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

Thread: [SOLVED] Fresh Installation cant recieve email

  1. #1
    turbolad is offline Junior Member
    Join Date
    May 2009
    Posts
    8
    Rep Power
    5

    Default [SOLVED] Fresh Installation cant recieve email

    Hi all,

    sorry to ask what is most likely a very common question here.
    I did have a quick search but couldnt find the solution.

    I have just today installed the network trial version of Zimbra on top of Ubuntu 8.04 32bit. I followed this guide and everything went smoothly.
    Ubuntu 8.04 LTS Server (Hardy Heron) Install Guide - Zimbra :: Wiki

    I can send external email and internal email works fine.
    However I am not able to receive email to my zimbra server.
    SMTP Port (25) is forwarded, mx records setup and everything resolves to my WAN IP. When i send an email from hotmail or similar the email goes and I don't receive a bounce back?

    Any ideas what i can do next to diagnose this?

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by turbolad View Post
    SMTP Port (25) is forwarded, mx records setup and everything resolves to my WAN IP.
    If you've read the wiki article then you should see that your IP address on the LANP IP address of your server is what your DNS should resolve to and not to your WAN IP, this has been answered many times in the forums. I am assuming that your server is behind a firewall and/or NAT router, would that be correct?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    turbolad is offline Junior Member
    Join Date
    May 2009
    Posts
    8
    Rep Power
    5

    Default

    Hello phoenix, I had a feeling that you would reply as I have read a few of your posts.

    Sorry I should have stipulated that I was referring to a DNS lookup in the outside world - which resolves to my WAN IP. So my MX records are correctly setup etc.

    Yes an NSlookup within the zimbra host OS does infact resolve to my Internal IP: -192.168.1.112. so I think that my split DNS is working well. Internal email works well enough.

    Is there any information I can gather from my setup that may help people to help me

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by turbolad View Post
    Hello phoenix, I had a feeling that you would reply as I have read a few of your posts.
    Then I guess you'll know what my first questions will be.

    Any firewall likely to be blocking inbound port 25? Is port 25 forwarded through your router to the Zimbra server? Post the output of the following commands (run on the Zimbra server):

    Code:
    cat /etc/resolv.conf
    cat /etc/hosts
    dig yourdomain.com mx
    dig yourdomain.com any
    host `hostname` <-- type that exactly with backticks not single quotes
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    turbolad is offline Junior Member
    Join Date
    May 2009
    Posts
    8
    Rep Power
    5

    Default

    Quote Originally Posted by phoenix View Post
    Then I guess you'll know what my first questions will be.

    Any firewall likely to be blocking inbound port 25? Is port 25 forwarded through your router to the Zimbra server? Post the output of the following commands (run on the Zimbra server):

    Code:
    cat /etc/resolv.conf
    cat /etc/hosts
    dig yourdomain.com mx
    dig yourdomain.com any
    host `hostname` <-- type that exactly with backticks not single quotes
    No Port 25 is open and online tests I have used seem to confirm that.
    OK 2 mins and i will post command results - thanks

    Code:
    adam@mail:~$ cat /etc/resolv.conf
    nameserver 192.168.1.112
    Code:
    adam@mail:~$ cat /etc/hosts
    127.0.0.1       localhost.localdomain           localhost
    192.168.1.112   mail.amendedmydomain.info        mail
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    Code:
    ; <<>> DiG 9.4.2-P2 <<>> amendedmydomain.info mx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31747
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;amendedmydomain.info.           IN      MX
    
    ;; ANSWER SECTION:
    amendedmydomain.info.    604800  IN      MX      10mail.amendedmydomain.info.
    
    ;; AUTHORITY SECTION:
    amendedmydomain.info.    604800  IN      NS      mail.amendedmydomain.info.
    
    ;; ADDITIONAL SECTION:
    mail.amendedmydomain.info. 604800 IN     A       192.168.1.112
    
    ;; Query time: 0 msec
    ;; SERVER: 192.168.1.112#53(192.168.1.112)
    ;; WHEN: Wed May 13 07:59:24 2009
    ;; MSG SIZE  rcvd: 88
    Code:
    ; <<>> DiG 9.4.2-P2 <<>> amendedmydomain.info any
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34836
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;amendedmydomain.info.           IN      ANY
    
    ;; ANSWER SECTION:
    amendedmydomain.info.    604800  IN      SOA     mail.amendedmydomain.info. admin.amendedmydomain.info. 70725 604800 86400 2419200 604800
    amendedmydomain.info.    604800  IN      NS      mail.amendedmydomain.info.
    amendedmydomain.info.    604800  IN      MX      10 mail.amendedmydomain.info.
    amendedmydomain.info.    604800  IN      A       192.168.1.112
    
    ;; ADDITIONAL SECTION:
    mail.amendedmydomain.info. 604800 IN     A       192.168.1.112
    
    ;; Query time: 0 msec
    ;; SERVER: 192.168.1.112#53(192.168.1.112)
    ;; WHEN: Wed May 13 08:01:27 2009
    ;; MSG SIZE  rcvd: 146
    and the final command i couldn't run with the backticks "host `hostname`" but i ran "host mail" which returned what is perhaps my problem?
    Code:
    adam@mail:~$ host mail
    mail has address 67.215.65.132
    Host mail not found: 3(NXDOMAIN)
    Last edited by turbolad; 05-13-2009 at 12:16 AM. Reason: Add code

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by turbolad View Post
    and the final command i couldn't run with the backticks "host `hostname`" but i ran "host mail" which returned what is perhaps my problem?
    Code:
    adam@mail:~$ host mail
    mail has address 67.215.65.132
    Host mail not found: 3(NXDOMAIN)
    Yes, that's the problem. What happened when you tried to run the host command with backticks that I gave you?

    In your output for the dig .. mx you have this:

    Code:
    amendedmydomain.info.    604800  IN      MX      10mail.amendedmydomain.info.
    There's a space missing between the '10' and the word 'mail', is that a typing error or is you MX record actually like that? If it's like the example then fix it and try again.

    BTW, the reason you couldn't post your replies is because you're a new member and there's a moderation system on certain posts it just needs approval by a moderator.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    turbolad is offline Junior Member
    Join Date
    May 2009
    Posts
    8
    Rep Power
    5

    Default

    OK I thought that the hostname needed changing for my actual hostname in the command;
    Code:
    host `hostname`
    which is why the command prob didn't work. I didn't realise it was a cleaver command that figured out the actual hostname.

    If i run
    Code:
    host `hostname`
    or
    Code:
    host mail
    I get the same result:
    Code:
    adam@mail:~$ host mail
    mail has address 67.215.65.132
    Host mail not found: 3(NXDOMAIN)
    adam@mail:~$ host `hostname`
    mail has address 67.215.65.132
    Host mail not found: 3(NXDOMAIN)
    Also you are correct the 10mail was a typo, the space does infact exist within the actual configuration.

    Where do I go from here to correct the above then?
    I was pretty sure I followed that guide to the letter - but then everyone say that don't they!

  8. #8
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    OK, one point I missed earlier. The following line:

    Code:
    amendedmydomain.info.    604800  IN      NS      mail.amendedmydomain.info.
    should have the IP address of the nameserver in it rather than a FQDN. It should read as follows:

    Code:
    amendedmydomain.info.    604800  IN      NS      192.168.1.112
    It doesn't actually relate to your current problem but it's better to use the IP.

    Can you post the output of the following command:

    Code:
    cat /etc/nsswitch.conf
    Can you send me details of your domain name (if you don't want to post it in the forums) so I can check your DNS records from here? Are there any emails in the deferred queue (see the Admin UI)? Is there any messages in the log files to indicate any connection from an external mail server?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    turbolad is offline Junior Member
    Join Date
    May 2009
    Posts
    8
    Rep Power
    5

    Default

    Thanks for getting back to me:
    Code:
    adam@mail:~$ cat /etc/nsswitch.conf
    # /etc/nsswitch.conf
    #
    # Example configuration of GNU Name Service Switch functionality.
    # If you have the `glibc-doc-reference' and `info' packages installed, try:
    # `info libc "Name Service Switch"' for information about this file.
    
    passwd:         compat
    group:          compat
    shadow:         compat
    
    hosts:          files dns
    networks:       files
    
    protocols:      db files
    services:       db files
    ethers:         db files
    rpc:            db files
    
    netgroup:       nis
    I will adjust the FQDN to an IP and PM you details.
    EDIT:
    I think that I may have found my mistake in my DNS registrar? I will post back to confirm.
    Where do I edit that entry for the IP Phoenix? looking back at my guide Ubuntu 8.04 LTS Server (Hardy Heron) Install Guide - Zimbra :: Wiki
    Is it here: /etc/bind/db.amendeddomain.info ?
    Last edited by turbolad; 05-13-2009 at 03:38 AM. Reason: edit

  10. #10
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    The file you want to edit (described in the wiki article) is this one:

    Code:
    /etc/bind/db.mydomain.com
    It's the NS record in there.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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. [SOLVED] mailboxmanager does not start
    By jrefl5 in forum Administrators
    Replies: 18
    Last Post: 01-30-2012, 11:40 PM
  2. [SOLVED] Moving Zimbra to a new server
    By krolen in forum Administrators
    Replies: 109
    Last Post: 02-05-2009, 11:38 AM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  4. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 03:56 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
  •