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

Thread: Mail not delivered at all

  1. #1
    pjmelvin is offline Member
    Join Date
    May 2008
    Posts
    14
    Rep Power
    7

    Default Mail not delivered at all

    hi,

    I have done a basic setup on ubuntu 8.04 and am having a problem with mail not getting delivered.

    It seems to be a DNS problem, because if i look in the queue it tells me that it has tried to connect to itself and has been refused the connection.

    The address it is trying to connect to is the external addreess and the origin host/ip is 127.0.0.1/localhost.localdomain.

    i assume i just need to tell the server that it is itself so the dns lookup succeeds.

    Please can you tell me where to configure this.

    thanks

    paul

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

    Default

    Please read the Documentation especially the Quick Start Installation Guide then read this wiki article, Do search the forusm, you'll find plenty of information telling you how to set-up DNS and how to check if it's correctly set-up.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    pjmelvin is offline Member
    Join Date
    May 2008
    Posts
    14
    Rep Power
    7

    Default

    hi Bill,

    Thanks i did look at the quick config guide before and when i setup zimbra earlier this year i did do a load of DNS stuff but as this wasn't obvious from this guide i didn't bother.

    I will redo the server sorting out DNS first, hopefully

    thanks

    paul

  4. #4
    pjmelvin is offline Member
    Join Date
    May 2008
    Posts
    14
    Rep Power
    7

    Default Unfortunately still not working

    hi Bill,

    i followed the DNS guide but it is still not working any suggestions would be helpful.

    I have included the commands i ran:

    Code:
    sudo vi /etc/hosts
    
    127.0.0.1       localhost.localdomain   localhost
    s
    Code:
    udo apt-get install bind9
    
    sudo vi /etc/bind/named.conf.options
    
    uncomment and change to reflect your own upstream DNS servers, i.e. remove //.
    
    forwarders { 
    212.139.132.70; 212.139.132.102; 
    };
    
    sudo vi /etc/resolv.conf
    
    nameserver 192.168.0.200
    
    sudo /etc/init.d/bind9 restart
    
    sudo vi /etc/bind/named.local
    
    zone "mydomain.co.uk"  {
                    type master;
                    file "/etc/bind/db.mydomain.co.uk";
            };
    Code:
    sudo touch /etc/bind/db.mydomain.co.uk
    
    sudo vi /etc/bind/db.mydomain.co.uk
    
    ;
    ; BIND data file for mydomain.co.uk
    ;
    $TTL    604800
    @       IN      SOA     mail.mydomain.co.uk. admin.mydomain.co.uk. (
                             191108         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
    @       IN      NS      mail
            IN      MX      10 mail
            IN      A       192.168.0.200
    mail    IN      A       192.168.0.200
    and then when i do a nslookup or dig i still get my public address

    thanks

    paul
    Last edited by phoenix; 11-19-2008 at 09:05 AM.

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

    Default

    Please post
    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig yourdomainname mx
    dig yourdomainname any
    host `hostname` <- note backticks and not single quotes

  6. #6
    pjmelvin is offline Member
    Join Date
    May 2008
    Posts
    14
    Rep Power
    7

    Default

    hi Uxbod,

    I have attached the outputs requested, however please note that i am trying to actually host two domains here assured-networks and melvicas and so i did all the DNS stuff for both (seperate db files etc)

    Would this make any difference?

    /etc/hosts

    127.0.0.1 localhost.localdomain localhost
    192.168.0.200 mail.mydomain.com 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


    /etc/resolv.conf

    search mydomain.com
    nameserver 192.168.0.200

    paul@mail:~$ dig mydomain.com mx

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

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

    ;; ANSWER SECTION:
    mydomain.com. 86400 IN MX 50 mta1.iomartmail.com.
    mydomain.com. 86400 IN MX 50 mta2.iomartmail.com.
    mydomain.com. 86400 IN MX 50 mta3.iomartmail.com.
    mydomain.com. 86400 IN MX 50 mta4.iomartmail.com.
    mydomain.com. 86400 IN MX 10 smtp-in.iomartmail.com.

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

    ;; Query time: 38 msec
    ;; SERVER: 192.168.0.200#53(192.168.0.200)
    ;; WHEN: Wed Nov 19 16:18:42 2008
    ;; MSG SIZE rcvd: 373

    paul@mail:~$ dig mydomain.com any

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

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

    ;; ANSWER SECTION:
    mydomain.com. 86397 IN MX 10 smtp-in.iomartmail.com.
    mydomain.com. 86397 IN MX 50 mta1.iomartmail.com.
    mydomain.com. 86397 IN MX 50 mta2.iomartmail.com.
    mydomain.com. 86397 IN MX 50 mta3.iomartmail.com.
    mydomain.com. 86397 IN MX 50 mta4.iomartmail.com.
    mydomain.com. 84444 IN A 84.22.184.70

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

    ;; Query time: 0 msec
    ;; SERVER: 192.168.0.200#53(192.168.0.200)
    ;; WHEN: Wed Nov 19 16:18:45 2008
    ;; MSG SIZE rcvd: 389


    host `hostname`
    mail.mydomain.com has address 84.45.143.129

    my external addres is x.x.x.x and i was hoping to use the mel.com as a test domain before moving the assured over

    thanks paul
    Last edited by pjmelvin; 11-21-2008 at 03:19 AM.

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

    This is incorrect:
    Code:
    melvicas.com. 82253 IN A 81.86.100.253
    it should point to the internal IP of your server. The hosts file is also incorrect, you need to remove the following line:

    Code:
    192.168.0.200 mail.assured-networks.co.uk mail
    .

    When you post detail on the forums please highlight each section (or command output) of code and hit the 'code' symbol - it's the # sign above the edit box - it makes the text easier to read. Take a look at the post earlier that I've edited.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    pjmelvin is offline Member
    Join Date
    May 2008
    Posts
    14
    Rep Power
    7

    Default

    hi Bill,

    I need both domains to be registered to this ip, which i though shouldn't be a problem.

    I am unsure hoever how to correctly configure the DNS to allow this, i simply added the melvicas.com line to the hosts file as i thought it would make no difference at all.

    My primary domain is to be assured-networks but is hosted at another address, my secondary domain which is melvicas.com is correctly pointing to my external address except i haven't set up the email server yet

    Please can you tell me if doubling up on all the config is correct, i.e. one for assured and one for melvicas, or not.

    And point taken about the code - apologies

    regards

    paul

  9. #9
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

    Why do you need both names in the hosts file?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  10. #10
    pjmelvin is offline Member
    Join Date
    May 2008
    Posts
    14
    Rep Power
    7

    Default

    hi Bill,

    I am not sure that i do, and i will take out the melvicas.com then

    thanks

    paul

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. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. [SOLVED] Mailserver down when send file attach of 50Mb
    By ZMilton in forum Administrators
    Replies: 20
    Last Post: 04-10-2008, 11:44 AM
  4. [SOLVED] Upgraded to 5.0 OSS - Sendmail Problem
    By Chewie71 in forum Installation
    Replies: 11
    Last Post: 12-28-2007, 07:07 PM
  5. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 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
  •