Results 1 to 6 of 6

Thread: I Canīt send mails but i can receive them

  1. #1
    machado is offline Starter Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    5

    Red face I Canīt send mails but i can receive them

    Good morning everybody, Iīm trying to install a test server with ubuntu 8.04 + zimbra 6.0, before i try to replace the mail provider we are using.
    After killing a lot of brain cells, I managed to install the mail server and made it work, I can ping the server from other computers, I can send & receive mails within the domain and I can receive mails from other domains, but I canīt send to them. Can some kindly soul check what is missing in my configuration files ?.
    The domain names is JHERVAS.COM, the IP address es 200.51.44.146, the DNS es 200.0.243.10, the gateway is 200.51.44.145 and the name of the server is very original, MAIL.

    This are my files

    INTERFACES
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet static
    address 200.51.44.146
    netmask 255.255.255.248
    network 200.51.44.144
    broadcast 200.51.44.151
    gateway 200.51.44.145
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers 200.0.243.10
    dns-search jhervas.com.ar
    -----------------------------------------------------------------
    HOSTS
    127.0.0.1 localhost
    200.51.44.146 mail.jhervas.com.ar 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
    ----------------------------------------------------------------
    NAMED.CONF.LOCAL

    //
    // Do any local configuration here
    //

    // Consider adding the 1918 zones here, if they are not used in your
    // organization
    //include "/etc/bind/zones.rfc1918";
    zone "jhervas.com.ar" {
    type master ;
    file "/etc/bind/zones/jhervas.db";
    };

    zone "200.in-addr.arpa" {
    type master;
    file "/etc/bind/zones/200.in-addr.arpa.db";
    };
    -------------------------------------------------------------------
    JHERVAS.DB
    ;
    ; BIND data file for local loopback interface
    ;
    $TTL 604800
    @ IN SOA mail.jhervas.com.ar. root.jhervas.com.ar. (
    2 ; Serial
    604800 ; Refresh
    86400 ; Retry
    2419200 ; Expire
    604800 ) ; Negative Cache TTL
    ;
    jhervas.com.ar. IN NS mail.jhervas.com.ar.
    mail IN A 200.51.44.146
    mail.jhervas.com.ar IN MX 0 mail.jhervas.com.ar.
    @ IN AAAA ::1

    -----------------------------------------------------------------
    200.IN-ADDR.ARPA.DB
    ;
    ; BIND reverse data file for local loopback interface
    ;
    $TTL 604800
    @ IN SOA mail.jhervas.com.ar. root.jhervas.com.ar. (
    1 ; Serial
    604800 ; Refresh
    86400 ; Retry
    2419200 ; Expire
    604800 ) ; Negative Cache TTL
    ;
    @ IN NS localhost.
    146.44.51 IN PTR jhervas.com.ar.
    ---------------------------------------------------------
    NAMED.CONF.OPTIONS
    options {
    directory "/var/cache/bind";

    // If there is a firewall between you and nameservers you want
    // to talk to, you might need to uncomment the query-source
    // directive below. Previous versions of BIND always asked
    // questions using port 53, but BIND 8.1 and later use an unprivileged
    // port by default.

    // query-source address * port 53;

    // If your ISP provided one or more IP addresses for stable
    // nameservers, you probably want to use them as forwarders.
    // Uncomment the following block, and insert the addresses replacing
    // the all-0's placeholder.

    forwarders {
    200.51.44.145;
    };

    auth-nxdomain no; # conform to RFC1035
    listen-on-v6 { any; };
    };

    -------------------------------------------
    RESOLV.CONF

    search jhervas.com.ar
    nameserver 200.51.44.146

    I have read all the DNS tutorial but the answer is still beyond me, please help me. Please excuse my english.

    Mario
    Argentina

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

    Default

    Your hosts file is incorrect, check the Quick Start Installation Guide (or search the forums) for the correct format. What does the following show (when run on your Zimbra server):
    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig domain.com mx
    dig domain.com any
    host `hostname` <-- use that exact command with bactticks not single quotes
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    machado is offline Starter Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    5

    Default the first try

    *What does the following show (when run on your Zimbra server):
    *
    Code:
    cat /etc/hosts
    *cat /etc/resolv.conf
    *dig domain.com mx
    *dig domain.com any
    *host `hostname` <-- use that exact command with bactticks not single *quotes
    [/QUOTE]

    Billl, thank you for your quick answer, I have read the installation guides and the post in this forums, that`s how I managed to receive mails, but i fear that Iīm missing something in the bind files.

    This are the results of the command you asked

    root@mail:/home/empresur# cat /etc/hosts

    127.0.0.1 localhost
    200.51.44.146 mail.jhervas.com.ar 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
    root@mail:/home/empresur#

    -----------------------------------------------------------------

    root@mail:/home/empresur# cat /etc/resolv.conf
    search jhervas.com.ar
    nameserver 200.51.44.146
    root@mail:/home/empresur#

    ----------------------------------------------------------------
    dig domain.com mx

    ; <<>> DiG 9.4.2-P2 <<>> domain.com mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44964
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0

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

    ;; ANSWER SECTION:
    domain.com. 3589 IN MX 10 sentry.domainbank.com.

    ;; AUTHORITY SECTION:
    domain.com. 49 IN NS ns1.dotsterhost.com.
    domain.com. 49 IN NS ns2.dotsterhost.com.
    domain.com. 49 IN NS ns3.dotsterhost.com.

    ;; Query time: 0 msec
    ;; SERVER: 200.51.44.146#53(200.51.44.146)
    ;; WHEN: Sun Nov 8 07:21:51 2009
    ;; MSG SIZE rcvd: 128

    root@mail:/home/empresur#

    -----------------------------------------------------------------------
    dig domain.com any

    root@mail:/home/empresur# dig domain.com any

    ; <<>> DiG 9.4.2-P2 <<>> domain.com any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 448
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0

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

    ;; ANSWER SECTION:
    domain.com. 3354 IN MX 10 sentry.domainbank.com.

    ;; AUTHORITY SECTION:
    com. 92871 IN NS D.GTLD-SERVERS.NET.
    com. 92871 IN NS H.GTLD-SERVERS.NET.
    com. 92871 IN NS L.GTLD-SERVERS.NET.
    com. 92871 IN NS C.GTLD-SERVERS.NET.
    com. 92871 IN NS M.GTLD-SERVERS.NET.
    com. 92871 IN NS J.GTLD-SERVERS.NET.
    com. 92871 IN NS A.GTLD-SERVERS.NET.
    com. 92871 IN NS I.GTLD-SERVERS.NET.
    com. 92871 IN NS E.GTLD-SERVERS.NET.
    com. 92871 IN NS G.GTLD-SERVERS.NET.
    com. 92871 IN NS F.GTLD-SERVERS.NET.
    com. 92871 IN NS K.GTLD-SERVERS.NET.
    com. 92871 IN NS B.GTLD-SERVERS.NET.

    ;; Query time: 0 msec
    ;; SERVER: 200.51.44.146#53(200.51.44.146)
    ;; WHEN: Sun Nov 8 07:25:46 2009
    ;; MSG SIZE rcvd: 286

    root@mail:/home/empresur#

    ----------------------------------------------------------------------
    host `hostname`


    ; <<>> DiG 9.4.2-P2 <<>> mail.jhervas.com.ar
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5562
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;mail.jhervas.com.ar. IN A

    ;; ANSWER SECTION:
    mail.jhervas.com.ar. 604800 IN A 200.51.44.146

    ;; AUTHORITY SECTION:
    jhervas.com.ar. 604800 IN NS mail.jhervas.com.ar.

    ;; Query time: 0 msec
    ;; SERVER: 200.51.44.146#53(200.51.44.146)
    ;; WHEN: Sun Nov 8 07:28:50 2009
    ;; MSG SIZE rcvd: 67

    root@mail:/home/empresur#

  4. #4
    p_nyet is offline Loyal Member
    Join Date
    May 2009
    Location
    Jakarta
    Posts
    86
    Rep Power
    6

    Default

    You have checked queue message on zimbra admin interface's? if any messages couldn't sent you will get the deffered messages and reason.

    Or you an try to sent email to some accounts in external domain and see /var/log/zimbra.log, you will get any error messages and post here...

  5. #5
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,566
    Rep Power
    57

    Default

    Well, as I mentioned earlier you hosts file is incorrect. Assuming you used the correct domain name (is this it: jhervas.com.ar) in those dig commands then you would appear to have no A ecord for your server and the MX server point to something other than the IP address you're using in your hosts file. If you have used the wrong domain name in the dig command then you appear to have an error with your DNS MX record pointing to a CNAME rather than an A record - you need to fix that and your hosts file.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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

    Default

    Quote Originally Posted by p_nyet View Post
    You have checked queue message on zimbra admin interface's? if any messages couldn't sent you will get the deffered messages and reason.

    Or you an try to sent email to some accounts in external domain and see /var/log/zimbra.log, you will get any error messages and post here...
    The problem is a DNS configuration error.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 9
    Last Post: 07-03-2009, 02:06 AM
  2. Replies: 5
    Last Post: 06-18-2008, 01:50 AM
  3. Problem on receive mail and send mail
    By isacap18 in forum Administrators
    Replies: 1
    Last Post: 01-25-2008, 01:26 PM
  4. Can't send or receive mails from Zimbra
    By ppurama in forum Administrators
    Replies: 4
    Last Post: 11-14-2005, 10:17 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
  •