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

Thread: zimbra not routing to gmail

  1. #1
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    6

    Default zimbra not routing to gmail

    hello
    i have installed zimbra and it is working fine in the local lan. i am using proxy for Internet. zimbra system is also connected with the lan. its not routing a mail to gmail. can anyone help to solve my problem. thanks in advance.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    You most likely need to set-up a Split Domain, review the wiki article.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Aug 2009
    Location
    Minnesota
    Posts
    16
    Rep Power
    6

    Default

    Are you able to send mail to any other domain? like yahoo or msn?

  4. #4
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    6

    Default

    Quote Originally Posted by phoenix View Post
    You most likely need to set-up a Split Domain, review the wiki article.
    Actually i have installed zcs6.0 in a stand alone machine with fc11. this machine is connected with internet behind a squid proxy.
    Now with the help of you people, we have configured Zimbra server in that machine and able to send mail locally that is inside our organisation (LAN). Now we are trying to send the mail to other domains (gmail, Yahoo etc) and get mails from them. We have planned to create more than 1000 user in this zimbra server. so to effectively use this server we going to buy a public ip for this mail server.

    problem we are facing right now

    cannot send mail to yahoo, gmail etc. how to proceed further???

    Since i am new to this, can you please guide me through this process.
    Last edited by blrk_macet; 10-14-2009 at 11:39 PM. Reason: s

  5. #5
    Join Date
    May 2008
    Location
    Nigeria
    Posts
    92
    Rep Power
    7

    Exclamation Sample Checklist

    Quote Originally Posted by blrk_macet View Post
    Actually i have installed zcs6.0 in a stand alone machine with fc11. this machine is connected with internet behind a squid proxy.
    Now with the help of you people, we have configured Zimbra server in that machine and able to send mail locally that is inside our organisation (LAN). Now we are trying to send the mail to other domains (gmail, Yahoo etc) and get mails from them. We have planned to create more than 1000 user in this zimbra server. so to effectively use this server we going to buy a public ip for this mail server.

    problem we are facing right now

    cannot send mail to yahoo, gmail etc. how to proceed further???

    Since i am new to this, can you please guide me through this process.
    Hi hi,

    Let me run you through some basic requirements for sending external email, so you can check if you've met them.

    1) Your server needs access to your ISP or your internal DNS configured as a forwarder. To send emails, your server needs to be able to query the recipient domains MX records. So you can test this entering these commnads in this sequence:
    a) nslookup
    b) set type=mx
    c) yahoo.com

    If everything is okay you get:
    Default Server: yourinternaldns.yourdomain.com
    Address: yourdnserverip

    > set type=mx
    > yahoo.com
    Server: yourinternaldns.yourdomain.com
    Address: yourdnserverip

    Non-authoritative answer:
    yahoo.com MX preference = 1, mail exchanger = a.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = b.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = c.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = d.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = e.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = f.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = g.mx.mail.yahoo.c

    yahoo.com nameserver = ns2.yahoo.com
    yahoo.com nameserver = ns3.yahoo.com
    yahoo.com nameserver = ns4.yahoo.com
    yahoo.com nameserver = ns5.yahoo.com
    yahoo.com nameserver = ns6.yahoo.com
    yahoo.com nameserver = ns8.yahoo.com
    yahoo.com nameserver = ns1.yahoo.com
    b.mx.mail.yahoo.com internet address = 66.196.82.7
    b.mx.mail.yahoo.com internet address = 66.196.97.250
    c.mx.mail.yahoo.com internet address = 216.39.53.2
    c.mx.mail.yahoo.com internet address = 216.39.53.3
    d.mx.mail.yahoo.com internet address = 209.191.88.247
    d.mx.mail.yahoo.com internet address = 68.142.202.247
    e.mx.mail.yahoo.com internet address = 206.190.53.191
    e.mx.mail.yahoo.com internet address = 216.39.53.1
    f.mx.mail.yahoo.com internet address = 98.137.54.237
    ns1.yahoo.com internet address = 68.180.131.16
    ns2.yahoo.com internet address = 68.142.255.16
    ns3.yahoo.com internet address = 121.101.152.99
    ns4.yahoo.com internet address = 68.142.196.63
    ns5.yahoo.com internet address = 119.160.247.124
    >

    2) Your mailserver needs to be able to contact any host (outgoing and incoming access rule to permit port 25, unless you want to use another smtp relay server)
    So do:
    root@mailserver:# telnet 98.137.54.237 25
    You should see a prompt and then maybe the Yahoo email server prompt like:

    220 mta141.mail.sp2.yahoo.com ESMTP YSmtp service ready


    Once these two requirement are met, you should be able to send external emails, but if not post your observations.

    Cheers

  6. #6
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    You also need to have a valid rDNS entry for your Zimbra server. And if your Zimbra server is on a DHCP address then Y!, Gmail etc will probably reject your email.

    To validate your setup please post the following
    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig yourdomain mx
    dig yourdomain any
    host `hostname` <- note backticks and not single quotes (copy 'n' paste)

  7. #7
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    6

    Default reply post

    Quote Originally Posted by emmaylots View Post
    Hi hi,

    Let me run you through some basic requirements for sending external email, so you can check if you've met them.

    1) Your server needs access to your ISP or your internal DNS configured as a forwarder. To send emails, your server needs to be able to query the recipient domains MX records. So you can test this entering these commnads in this sequence:
    a) nslookup
    b) set type=mx
    c) yahoo.com

    If everything is okay you get:
    Default Server: yourinternaldns.yourdomain.com
    Address: yourdnserverip

    > set type=mx
    > yahoo.com
    Server: yourinternaldns.yourdomain.com
    Address: yourdnserverip

    Non-authoritative answer:
    yahoo.com MX preference = 1, mail exchanger = a.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = b.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = c.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = d.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = e.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = f.mx.mail.yahoo.c
    yahoo.com MX preference = 1, mail exchanger = g.mx.mail.yahoo.c

    yahoo.com nameserver = ns2.yahoo.com
    yahoo.com nameserver = ns3.yahoo.com
    yahoo.com nameserver = ns4.yahoo.com
    yahoo.com nameserver = ns5.yahoo.com
    yahoo.com nameserver = ns6.yahoo.com
    yahoo.com nameserver = ns8.yahoo.com
    yahoo.com nameserver = ns1.yahoo.com
    b.mx.mail.yahoo.com internet address = 66.196.82.7
    b.mx.mail.yahoo.com internet address = 66.196.97.250
    c.mx.mail.yahoo.com internet address = 216.39.53.2
    c.mx.mail.yahoo.com internet address = 216.39.53.3
    d.mx.mail.yahoo.com internet address = 209.191.88.247
    d.mx.mail.yahoo.com internet address = 68.142.202.247
    e.mx.mail.yahoo.com internet address = 206.190.53.191
    e.mx.mail.yahoo.com internet address = 216.39.53.1
    f.mx.mail.yahoo.com internet address = 98.137.54.237
    ns1.yahoo.com internet address = 68.180.131.16
    ns2.yahoo.com internet address = 68.142.255.16
    ns3.yahoo.com internet address = 121.101.152.99
    ns4.yahoo.com internet address = 68.142.196.63
    ns5.yahoo.com internet address = 119.160.247.124
    >

    2) Your mailserver needs to be able to contact any host (outgoing and incoming access rule to permit port 25, unless you want to use another smtp relay server)
    So do:
    root@mailserver:# telnet 98.137.54.237 25
    You should see a prompt and then maybe the Yahoo email server prompt like:

    220 mta141.mail.sp2.yahoo.com ESMTP YSmtp service ready


    Once these two requirement are met, you should be able to send external emails, but if not post your observations.

    Cheers
    [zimbra@mail ~]$ nslookup
    > settype=mx
    ;; Got SERVFAIL reply from 127.0.0.1, trying next server
    Server: ::1
    Address: ::1#53

    ** server can't find settype=mx: REFUSED
    > yahoo.com
    ;; Got SERVFAIL reply from 127.0.0.1, trying next server
    ;; Got SERVFAIL reply from 127.0.0.1, trying next server
    Server: ::1
    Address: ::1#53

    ** server can't find yahoo.com: REFUSED

  8. #8
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    6

    Red face reply post

    Quote Originally Posted by uxbod View Post
    You also need to have a valid rDNS entry for your Zimbra server. And if your Zimbra server is on a DHCP address then Y!, Gmail etc will probably reject your email.

    To validate your setup please post the following
    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig yourdomain mx
    dig yourdomain any
    host `hostname` <- note backticks and not single quotes (copy 'n' paste)
    [zimbra@mail ~]$ cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost
    192.168.0.202 mail.macet.com mail mail

    [zimbra@mail ~]$ cat /etc/resolv.conf
    # Generated by NetworkManager


    # No nameservers found; try putting DNS servers into your
    # ifcfg files in /etc/sysconfig/network-scripts like so:
    #
    DNS1=218.248.240.208
    DNS2=218.248.240.79
    DNS3=192.168.0.202
    # DOMAIN=lab.foo.com bar.foo.com
    [zimbra@mail ~]$ dig macet.com

    ; <<>> DiG 9.6.1b1-RedHat-9.6.1-0.3.b1.fc11 <<>> macet.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25342
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;macet.com. IN A

    ;; ANSWER SECTION:
    macet.com. 86400 IN A 192.168.0.202

    ;; AUTHORITY SECTION:
    macet.com. 86400 IN NS mail.macet.com.

    ;; ADDITIONAL SECTION:
    mail.macet.com. 86400 IN A 192.168.0.202

    ;; Query time: 3 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Oct 19 09:46:26 2009
    ;; MSG SIZE rcvd: 78

    [zimbra@mail ~]$ dig macet.com any

    ; <<>> DiG 9.6.1b1-RedHat-9.6.1-0.3.b1.fc11 <<>> macet.com any
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28679
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

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

    ;; ANSWER SECTION:
    macet.com. 86400 IN SOA macet.com. mail.macet.com. 42 10800 900 604800 86400
    macet.com. 86400 IN NS mail.macet.com.
    macet.com. 86400 IN MX 10 mail.macet.com.
    macet.com. 86400 IN A 192.168.0.202

    ;; ADDITIONAL SECTION:
    mail.macet.com. 86400 IN A 192.168.0.202

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Oct 19 09:46:35 2009
    ;; MSG SIZE rcvd: 130

    [zimbra@mail ~]$ host "mail.macet.com"
    mail.macet.com has address 192.168.0.202

  9. #9
    Join Date
    Oct 2009
    Posts
    7
    Rep Power
    6

    Default

    this is my named.conf file. please check whether i have configured correctly or should i hav to change anything else in this

    //
    // named.conf
    //
    // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
    // server as a caching only nameserver (as a localhost DNS resolver only).
    //
    // See /usr/share/doc/bind*/sample/ for example named configuration files.
    //

    options {
    listen-on port 53 { 127.0.0.1; 192.168.0.202; };
    listen-on-v6 port 53 { ::1; };
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    memstatistics-file "/var/named/data/named_mem_stats.txt";
    allow-query { 192.168.0.0/24; 127.0.0.1;};
    allow-recursion { 192.168.0.0/24; 127.0.0.1;};
    recursion yes;
    dnssec-enable yes;
    dnssec-validation yes;
    dnssec-lookaside . trust-anchor dlv.isc.org.;
    };

    logging {
    channel default_debug {
    file "data/named.run";
    severity dynamic;
    };
    };

    zone "." IN {
    type hint;
    file "named.ca";
    };


    zone "macet.com" {
    type master;
    file "/var/named/macet.com.db";
    };

    include "/etc/named.rfc1912.zones";

    include "/etc/named.dnssec.keys";
    include "/etc/pki/dnssec-keys/dlv/dlv.isc.org.conf";
    -------------------------------------------------------------------

    ; Zone File for macet.com
    $TTL 86400
    @ IN SOA @ mail.macet.com. (
    42 ; serial (d.adams)
    3H ; refresh
    15M ; retry
    1W ; expiry
    1D
    )

    @ IN NS mail.macet.com.
    IN MX 10 mail.macet.com.
    IN A 192.168.0.202
    mail IN A 192.168.0.202
    www IN A 192.168.0.202

  10. #10
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Code:
    host `hostname` <- copy 'n' paste
    As you are behind a FW/Router on a private IP then you would be better to use your upstream ISP's SMTP relay server instead of attempting to send direct.

    Secondly, it would appear you have no external MX record for your domain!

Similar Threads

  1. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 08:56 PM
  2. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  3. zmtlsctl give LDAP error
    By sourcehound in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 03:48 PM
  4. Replies: 8
    Last Post: 02-27-2007, 03:10 AM
  5. Zimbra server crashed
    By goetzi in forum Administrators
    Replies: 6
    Last Post: 03-25-2006, 12:00 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
  •