Results 1 to 8 of 8

Thread: Mail sent to wrong ip address internally

  1. #1
    SkyHiRider is offline Active Member
    Join Date
    Sep 2011
    Posts
    27
    Rep Power
    3

    Default Mail sent to wrong ip address internally

    I can send mail and partially receive it (my server receives the mail, but instead of sending it to my machine it want's to resend it to an external ip).
    Code:
    Sep  3 16:35:52 ns postfix/lmtp[25560]: connect to ns.testsite.eu[123.456.7.89]:7025: Connection refused
    I KNOW it's a DNS problem - ns.testsite.eu points to the wrong ip address and that server naturally refuses the connection. But I've already corrected my dns settings and it's still using the old external ip address.

    Will Zimbra pick up the dns change automatically or do I need to reinstall?

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

    Default

    Go to the Split DNS and run all the commands in the 'Verify...' section and post the output here.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    SkyHiRider is offline Active Member
    Join Date
    Sep 2011
    Posts
    27
    Rep Power
    3

    Default

    I've fixed the issue by using Dnsmasq instead of Bind. (gave up on Bind after a few hours of trying, couldn't properly configure it)

    Will dnsmasq work if I add another domain to Zimbra? Or will the new domain get the same error as I used to get now?

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

    Default

    Quote Originally Posted by SkyHiRider View Post
    I've fixed the issue by using Dnsmasq instead of Bind. (gave up on Bind after a few hours of trying, couldn't properly configure it)

    Will dnsmasq work if I add another domain to Zimbra? Or will the new domain get the same error as I used to get now?
    You need to post the output I asked for earlier.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    SkyHiRider is offline Active Member
    Join Date
    Sep 2011
    Posts
    27
    Rep Power
    3

    Default

    Here's the output:

    Code:
    root@ns:/home/andrej# dig andreansky.eu
    
    ; <<>> DiG 9.7.0-P1 <<>> andreansky.eu
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18873
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;andreansky.eu.			IN	A
    
    ;; AUTHORITY SECTION:
    andreansky.eu.		3600	IN	SOA	ns.andreansky.eu. marek.andreansky.eu. 2010091601 7200 1800 604800 3600
    
    ;; Query time: 12 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Sep  5 14:56:54 2011
    ;; MSG SIZE  rcvd: 76
    
    root@ns:/home/andrej# dig andreansky.eu any
    
    ; <<>> DiG 9.7.0-P1 <<>> andreansky.eu any
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11789
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 3
    
    ;; QUESTION SECTION:
    ;andreansky.eu.			IN	ANY
    
    ;; ANSWER SECTION:
    andreansky.eu.		36000	IN	MX	10 ns.andreansky.eu.
    andreansky.eu.		36000	IN	SOA	ns.andreansky.eu. marek.andreansky.eu. 2010091601 7200 1800 604800 3600
    andreansky.eu.		36000	IN	NS	194.1.130.117.andreansky.eu.
    andreansky.eu.		36000	IN	NS	lemon.napri.sk.
    andreansky.eu.		36000	IN	NS	ns.erixline.sk.
    
    ;; ADDITIONAL SECTION:
    ns.andreansky.eu.	36000	IN	A	194.1.130.117
    ns.erixline.sk.		36000	IN	A	194.1.130.38
    lemon.napri.sk.		26090	IN	A	194.1.128.5
    
    ;; Query time: 17 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Sep  5 14:57:23 2011
    ;; MSG SIZE  rcvd: 222
    
    root@ns:/home/andrej# host $(hostname)
    ns.andreansky.eu has address 192.168.77.87
    ns.andreansky.eu mail is handled by 1 mail.andreansky.eu.
    As I said, it's working using Dnsmasq but Bind is a no go. But so far it seems I can run multiple mail domains on Zimbra while only using Dnsmasq with one domain configured, so all is well (so far).

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

    Default

    You're missing the output from some of the commands that I asked for. Is that output from BIND or DNSMASQ? Whatever it's from, the output is totally wrong.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    SkyHiRider is offline Active Member
    Join Date
    Sep 2011
    Posts
    27
    Rep Power
    3

    Default

    Sorry, missed the last two commands. Here they are:

    Code:
    root@ns:/home/andrej# cat /etc/resolv.conf
    search andreansky.eu
    nameserver 127.0.0.1 
    nameserver 192.168.77.1
    nameserver 2001:7b8:3:4f:202:b3ff:fe46:bec
    nameserver 2001:b18:0:1000:2e0:81ff:fe61:ae 
    root@ns:/home/andrej# cat /etc/hosts
    127.0.0.1	localhost #ns.andreansky.eu
    194.1.130.117	#	ns mail.andreansky.eu mail
    192.168.77.87 ns.andreansky.eu www.branyadvere.sk www.dvereabrany.sk www.andreansky.eu
    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    This output is with Dnsmasq running, I've disabled Bind.

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

    Default

    Quote Originally Posted by SkyHiRider View Post
    Sorry, missed the last two commands. Here they are:

    Code:
    root@ns:/home/andrej# cat /etc/resolv.conf
    search andreansky.eu
    nameserver 127.0.0.1 
    nameserver 192.168.77.1
    nameserver 2001:7b8:3:4f:202:b3ff:fe46:bec
    nameserver 2001:b18:0:1000:2e0:81ff:fe61:ae
    Code:
    root@ns:/home/andrej# cat /etc/hosts
    127.0.0.1	localhost #ns.andreansky.eu
    194.1.130.117	#	ns mail.andreansky.eu mail
    192.168.77.87 ns.andreansky.eu www.branyadvere.sk www.dvereabrany.sk www.andreansky.eu
    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    This output is with Dnsmasq running, I've disabled Bind.
    Your hosts file is incorrect and there are too many entries in the resolv.conf - you need to follow the instruction in the Split DNS article for the contents of this file. You should also give your mail server a unique FQDN (and a separate A record) and not use the one for your nameserver records.
    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. smtp auth failing 'auth_zimbra: not initialized'
    By kkg039 in forum Administrators
    Replies: 7
    Last Post: 09-05-2013, 11:10 AM
  2. [SOLVED] Wrong Mail From address
    By netsyspro in forum Administrators
    Replies: 1
    Last Post: 06-22-2011, 03:42 AM
  3. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  4. Issues...
    By timothyalangorman in forum Administrators
    Replies: 3
    Last Post: 11-19-2007, 10:43 AM
  5. Replies: 1
    Last Post: 04-13-2006, 04:47 PM

Tags for this Thread

Posting Permissions

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