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

Thread: Cannot Send Email to External Domains

  1. #1
    seansat is offline Junior Member
    Join Date
    May 2008
    Posts
    6
    Rep Power
    7

    Default Cannot Send Email to External Domains

    I have the embedded PostFix configured to make DNS look-ups and I am using my hosting companies DNS Servers (there is no BIND on the system).

    I checked zimbra.log and I see the the DNS info being resolved and it even goes as far as to connect to the corresponding mail server of the recipient. I even get an "OK- Message Sent" message but the actual mail does not end up in the external mailbox.

    On the other hand, I have noticed that if I try to send an email to a domain hosted on another machine of my Hosting company's network, the message ends up going to the user's inbox on the other machine. Is the MTA set to relay by default and the external mail servers are not allowing the relay, and if so, why am I getting the OK Message?

    I do not have a MTA relay set. Any help that can be provided would be greatly appreciated!

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

    Default

    Where are the messages ending up, are they in the deferred queue? The logs will give you a clue to what's happening. In all likelihood, you've got a DNS problem. If you are behind a NAT router you will need a Split DNS set-up.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    seansat is offline Junior Member
    Join Date
    May 2008
    Posts
    6
    Rep Power
    7

    Default

    What exactly is a NAT Router, I am new to Linux from Windows?

    The messages are not going to the deferred queue, when I did not have DNS look-ups set, prior to, they were going to the deferred queue.
    Last edited by seansat; 05-14-2008 at 11:03 PM.

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,504
    Rep Power
    57

    Default

    Quote Originally Posted by seansat View Post
    What exactly is a NAT Router, I am new to Linux from Windows?
    A NAT router is the same device whether you're a linux of Windows user, it's a piece of hardware that sits on your public IP and connects a private LAN subnet to the internet i.e. your server will be sitting on a private IP such as 192.168.x.x

    Quote Originally Posted by seansat View Post
    The messages are not going to the deferred queue, when I did not have DNS look-ups set, prior to, they were going to the deferred queue.
    If they are not going to the deferred queue and they aren't arriving at their destination then where are they? You'll need to lok in the logs to determine where the messages are going and what's happening to them if they aren't being delivered.

    Run the following commands on the Zimbra server:

    Code:
    host `hostname`  <-- type as-is and use backticks not single quotes
    dig yourdomain.com any
    dig yourdomain.com mx
    cat /etc/hosts
    and post the output here.

    Which operating system are you using? Is the Network Edition or Open Source edition of Zimbra? Are you running Zimbra in a VM?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    seansat is offline Junior Member
    Join Date
    May 2008
    Posts
    6
    Rep Power
    7

    Default

    I am using Red Hat EL 5.1 with the Open source edition of Zimbra installed. Not sure what VM but I have a dedicated server (in case you are referring to virtualization).

    Here is the requested output:
    Code:
    [root@147736-2 ~]# host `hostname`
    147736-2.147736.com has address 38.97.225.135
    Code:
    [root@147736-2 ~]# dig meduo.org any
    ; <<>> DiG 9.3.3rc2 <<>> meduo.org any
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61024
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 3
    
    ;; QUESTION SECTION:
    ;meduo.org.			IN	ANY
    
    ;; ANSWER SECTION:
    meduo.org.		86270	IN	NS	ns1.lnhi.net.
    meduo.org.		86270	IN	NS	ns2.lnhi.net.
    meduo.org.		86270	IN	NS	ns3.lnhi.net.
    
    ;; ADDITIONAL SECTION:
    ns1.lnhi.net.		172790	IN	A	209.41.184.100
    ns2.lnhi.net.		172790	IN	A	65.36.160.56
    ns3.lnhi.net.		172790	IN	A	65.36.160.18
    
    ;; Query time: 1 msec
    ;; SERVER: 76.12.32.110#53(76.12.32.110)
    ;; WHEN: Thu May 15 02:33:31 2008
    ;; MSG SIZE  rcvd: 137
    Code:
    [root@147736-2 ~]# dig meduo.org mx
    
    ; <<>> DiG 9.3.3rc2 <<>> meduo.org mx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53938
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;meduo.org.			IN	MX
    
    ;; AUTHORITY SECTION:
    meduo.org.		3495	IN	SOA	ns1.lnhi.net. administrator.lnhi.net. 2008042808 900 600 86400 3600
    
    ;; Query time: 1 msec
    ;; SERVER: 76.12.32.110#53(76.12.32.110)
    ;; WHEN: Thu May 15 02:33:54 2008
    ;; MSG SIZE  rcvd: 89
    Code:
    [root@147736-2 ~]# cat /etc/hosts
    127.0.0.1   localhost.localdomain localhost
    76.12.110.125  redhatbox.meduo.org redhatbox[root@147736-2 ~]#
    I will now refer to your previous post to see if I can track down the messages in the logs but the zimbra.log seems ok:
    Code:
    May 15 00:39:45 147736-2 postfix/smtpd[11554]: connect from redhatbox.meduo.org[76.12.110.125]
    May 15 00:39:45 147736-2 postfix/smtpd[11554]: D773621790D: client=redhatbox.meduo.org[76.12.110.125]
    May 15 00:39:45 147736-2 postfix/cleanup[11557]: D773621790D: message-id=<26566100.211210826385803.JavaMail.root@147736-2.147736.com>
    May 15 00:39:45 147736-2 postfix/qmgr[25591]: D773621790D: from=<admin@redhatbox.meduo.org>, size=630, nrcpt=1 (queue active)
    May 15 00:39:45 147736-2 postfix/smtpd[11554]: disconnect from redhatbox.meduo.org[76.12.110.125]
    May 15 00:39:45 147736-2 amavis[4154]: (04154-01) ESMTP::10024 /opt/zimbra/data/amavisd/tmp/amavis-20080515T003945-04154: <admin@redhatbox.meduo.org> -> <webdeveloper@sympatico.ca> SIZE=630 Received: from redhatbox.meduo.org ([127.0.0.1]) by localhost (redhatbox.meduo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <webdeveloper@sympatico.ca>; Thu, 15 May 2008 00:39:45 -0400 (EDT)
    May 15 00:39:45 147736-2 amavis[4154]: (04154-01) Checking: 1WHmbjOZCZTZ [76.12.110.125] <admin@redhatbox.meduo.org> -> <webdeveloper@sympatico.ca>
    May 15 00:39:45 147736-2 clamd[4239]: SelfCheck: Database status OK. 
    May 15 00:39:46 147736-2 postfix/smtpd[11561]: connect from localhost.localdomain[127.0.0.1]
    May 15 00:39:46 147736-2 postfix/smtpd[11561]: 2AF36217912: client=localhost.localdomain[127.0.0.1]
    May 15 00:39:46 147736-2 postfix/cleanup[11557]: 2AF36217912: message-id=<26566100.211210826385803.JavaMail.root@147736-2.147736.com>
    May 15 00:39:46 147736-2 postfix/qmgr[25591]: 2AF36217912: from=<admin@redhatbox.meduo.org>, size=1306, nrcpt=1 (queue active)
    May 15 00:39:46 147736-2 postfix/smtpd[11561]: disconnect from localhost.localdomain[127.0.0.1]
    May 15 00:39:46 147736-2 amavis[4154]: (04154-01) FWD via SMTP: <admin@redhatbox.meduo.org> -> <webdeveloper@sympatico.ca>,BODY=7BIT 250 2.6.0 Ok, id=04154-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2AF36217912
    May 15 00:39:46 147736-2 amavis[4154]: (04154-01) Passed CLEAN, [76.12.110.125] [76.12.110.125] <admin@redhatbox.meduo.org> -> <webdeveloper@sympatico.ca>, Message-ID: <26566100.211210826385803.JavaMail.root@147736-2.147736.com>, mail_id: 1WHmbjOZCZTZ, Hits: 1.333, size: 630, queued_as: 2AF36217912, 283 ms
    May 15 00:39:46 147736-2 postfix/smtp[11558]: D773621790D: to=<webdeveloper@sympatico.ca>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.32, delays=0.03/0.01/0.01/0.28, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 2AF36217912)
    May 15 00:39:46 147736-2 postfix/qmgr[25591]: D773621790D: removed
    May 15 00:39:46 147736-2 amavis[4154]: (04154-01) extra modules loaded: /opt/zimbra/zimbramon/lib/i386-linux-thread-multi/auto/Net/SSLeay/autosplit.ix, /opt/zimbra/zimbramon/lib/i386-linux-thread-multi/auto/Net/SSLeay/randomize.al, IO/Socket/SSL.pm, Net/LDAP/Extension.pm, Net/SSLeay.pm
    May 15 00:39:46 147736-2 postfix/smtp[11562]: 2AF36217912: to=<webdeveloper@sympatico.ca>, relay=mxmta.sympatico.ca[67.69.240.17]:25, delay=0.62, delays=0.01/0.01/0.45/0.15, dsn=2.0.0, status=sent (250 ok:  Message 1444634992 accepted)
    Last edited by phoenix; 05-15-2008 at 03:12 AM.

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

    Default

    According to the first line you posted your system believes your hostname is called 147736-2.147736.com on IP 38.97.225.135. Yet in your hosts file you have named the system redhatbox.meduo.org with IP 76.12.110.125. The dig for you MX and A records show nothing aswell.

    Is your system sat behind a firewall and on a private LAN ? Do you use DHCP to connect to the Internet ? What does
    Code:
    netstat -rn
    show as that will give us a clue to what network you are actually on.

  7. #7
    seansat is offline Junior Member
    Join Date
    May 2008
    Posts
    6
    Rep Power
    7

    Default

    [root@147736-2 ~]# netstat -rn
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    76.12.110.120 0.0.0.0 255.255.255.248 U 0 0 0 eth0
    169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
    0.0.0.0 76.12.110.121 0.0.0.0 UG 0 0 0 eth0

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

    Default

    Okay, so your route matches the IP address in your hosts file with respect to the network.

    So, the question is why is your system being called 147736-2.147736.com on IP 38.97.225.135, I guess you must have a DHCP client running ? Does the IP address look familiar to any of the information that has been supplied to you by your ISP ?

    Do you use Cogent communications as your ISP ? Reason for asking is that they are authoritative for the 38.98.225.X network address range by the looks of things.

    Also, meduo.org has no external MX defined so mail will not route to you.

    Have you recently changed ISP by any chance ?

  9. #9
    seansat is offline Junior Member
    Join Date
    May 2008
    Posts
    6
    Rep Power
    7

    Default

    I believe that 147736-2.147736.com is the default name of the system as entered by the ISP but I have never seen that IP before.

    The ISP is HostMySite.com and I have a dedicated machine.

    I am able to receive mail perfectly fine, I just cannot send mail to any external domains and I have not recently changed ISPs.

    Did you see the zimbra log that said the Message transfer was ok?

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

    Default

    Message transfer was only okay to the Amavis daemon
    Code:
    May 15 00:39:46 147736-2 postfix/qmgr[25591]: 2AF36217912: from=<admin@redhatbox.meduo.org>, size=1306, nrcpt=1 (queue active)
    May 15 00:39:46 147736-2 postfix/smtpd[11561]: disconnect from localhost.localdomain[127.0.0.1]
    May 15 00:39:46 147736-2 amavis[4154]: (04154-01) FWD via SMTP: <admin@redhatbox.meduo.org> -> <webdeveloper@sympatico.ca>,BODY=7BIT 250 2.6.0 Ok, id=04154-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2AF36217912
    May 15 00:39:46 147736-2 amavis[4154]: (04154-01) Passed CLEAN, [76.12.110.125] [76.12.110.125] <admin@redhatbox.meduo.org> -> <webdeveloper@sympatico.ca>, Message-ID: <26566100.211210826385803.JavaMail.root@147736-2.147736.com>, mail_id: 1WHmbjOZCZTZ, Hits: 1.333, size: 630, queued_as: 2AF36217912, 283 ms
    May 15 00:39:46 147736-2 postfix/smtp[11558]: D773621790D: to=<webdeveloper@sympatico.ca>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.32, delays=0.03/0.01/0.01/0.28, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 2AF36217912)
    as you can see the remote SMTP server for sympatico.ca has not received it yet. You need to speak to your hosting company about aligning your IP addresses so that everything responds to 76.12.110.125.

    What does /etc/resolv.conf contain ?

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] unable to send mail to external domains
    By gtdaqua in forum Administrators
    Replies: 8
    Last Post: 01-08-2008, 04:41 AM
  2. Replies: 5
    Last Post: 09-26-2007, 02:22 PM
  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
  •