Results 1 to 10 of 10

Thread: [SOLVED] centos+zimbra: either i can receive mail or send mail?

  1. #1
    vinaysatwe is offline Junior Member
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    6

    Exclamation [SOLVED] centos+zimbra: either i can receive mail or send mail?

    we have setup a small mail server on centos with zimbra. everything went on smoothly. With dns lookups Enabled i am able to send mails and cant receive mails in inbox ( they are differed and but i can see the incoming mails in mail queues) .

    if dns lookups is disabled i can receive mails but not able to send the emails.

    i am behind a adsl router with broadband connection and port forwarding (NAT) has been done. i have a static ip & all the MX records have been updated . so can one pls help me out . the log shows mail transfer agent unavailable mail gets deffered and i see the origin ip as 127.0.0.1 and origin host as localhost.localdomain.
    is it that the mails are not being forwarded from localhost to respective mailboxes.
    thanks in advance....

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

    Default

    Did you set-up a Split DNS? If you're behind a NAT router you'll need that, when you've done that search the forums for details of what you need to do to check your DNS A & MX records and /etc/hosts file are all OK.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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

    Default

    Welcome to the forums

    Please post the following information
    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig yourdomain mx
    dig yourdomain any
    host `hostname` <- note backticks and not single quotes
    If you are behind a firewall on a private IP you will need to setup a Wiki :: Split DNS architecture.

  4. #4
    vinaysatwe is offline Junior Member
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    6

    Post Reply: My Config

    here are the answers for the commands:
    [root@mail ~]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    192.168.1.5 mail.mydomain.com mail


    [root@mail ~]# cat /etc/resolv.conf
    search mydomain.com
    nameserver localhost
    nameserver 202.54.10.2
    nameserver 202.54.29.5


    [root@mail ~]# dig mydomain.com mx

    ; <<>> DiG 9.3.4-P1 <<>> mydomain.com mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11650
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;mydomain.com. IN MX

    ;; ANSWER SECTION:
    mydomain.com. 8628 IN MX 10 61.xx.76.xx.

    ;; Query time: 24 msec
    ;; SERVER: 202.54.10.2#53(202.54.10.2)
    ;; WHEN: Thu Jul 2 15:52:10 2009
    ;; MSG SIZE rcvd: 64


    [root@mail ~]# dig mydomain.com any

    ; <<>> DiG 9.3.4-P1 <<>> mydomain.com any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46209
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;mydomain.com. IN ANY

    ;; ANSWER SECTION:
    mydomain.com. 3665 IN NS ns1.net4india.com.
    mydomain.com. 3665 IN NS ns2.net4india.com.
    mydomain.com. 8318 IN MX 10 61.xx.76.xx.
    mydomain.com. 3665 IN A 202.xx.129.xx

    ;; Query time: 31 msec
    ;; SERVER: 202.54.10.2#53(202.54.10.2)
    ;; WHEN: Thu Jul 2 15:57:20 2009
    ;; MSG SIZE rcvd: 126

    [root@mail ~]# host mail.mydomain.com
    mail.mydomain.com has address 61.xx.76.xx

    thanks friends

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

    Default

    If you have installed BIND on your ZCS server then the only entries you should have in your /etc/resolv.conf are
    Code:
    search mydomain.com
    nameserver 127.0.0.1
    Once this change has been made please run the same commands again and post them please.

  6. #6
    vinaysatwe is offline Junior Member
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    6

    Post Re 2:Commands

    after the changes sugeested the output is as follows;

    cat /etc/hosts

    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    192.168.1.5 mail.mydomain.com mail



    cat /etc/resolv.conf
    search mydomain.com
    nameserver 127.0.0.1



    dig mydomain.com mx

    ; <<>> DiG 9.3.4-P1 <<>> mydomain.com mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29016
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;mydomain.com. IN MX

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Thu Jul 2 16:39:18 2009
    ;; MSG SIZE rcvd: 36




    dig mydomain.com any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 41092
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;mydomain.com. IN ANY

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Thu Jul 2 16:39:49 2009
    ;; MSG SIZE rcvd: 36


    host mail.mydomain.com
    Host mail.mydomain.com not found: 2(SERVFAIL)

  7. #7
    vinaysatwe is offline Junior Member
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    6

    Post Re:splitdns

    i am not clear about the split-dns concept but i have just created the dns on the same server which shows me a mydomain.com zone.

    thanks

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

    Default

    Well you need to define a MX and A record in your DNS for your ZCS server.

  9. #9
    vinaysatwe is offline Junior Member
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    6

    Post Re 3:DNS

    Hello,
    we have already made the changes at the domain level so are you asking us to make the neccessary changes on the local machine using bind?
    thanks gr8 help from you,

  10. #10
    vinaysatwe is offline Junior Member
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    6

    Thumbs up Hello! cracked

    by setting the forwarders in named.conf i am able to now send and receive the mails seamlessly.
    many thanks to all.

    happy mailing

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Moving Zimbra to a new server
    By krolen in forum Administrators
    Replies: 109
    Last Post: 02-05-2009, 11:38 AM
  2. /tmp filling
    By Nutz in forum Administrators
    Replies: 8
    Last Post: 02-22-2008, 02:00 AM
  3. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 09:56 PM
  4. Replies: 22
    Last Post: 12-02-2007, 05:05 PM
  5. Mail logs
    By Rick Baker in forum Installation
    Replies: 8
    Last Post: 01-17-2006, 04:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •