Postfix Refuses to listen to Local Round-Robin DNS

From: Etienne Pretorius (no email)
Date: Tue Sep 13 2005 - 09:51:35 EDT

  • Next message: Andreas Winkelmann: "Re: SMTP Authentication using Postfix with SASL and PostgreSQL?"

    Hello everyone,

    I have the following Relay setup.
    relayhost = vpn-relay

    [Mail GW]+ ------->VPN-link1[192.168.10.6]---->DSL[dynamic ip]
    [192.168.10.1] ------->VPN-link2[192.168.10.1]---->DSL[dynamic ip]

    I have bind9 running on local host and for over two months everything
    was working fine.

    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by
    resolvconf(8)
    # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 127.0.0.1

    ; <<>> DiG 9.3.1 <<>> vpn-relay ANY
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32478
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 3

    ;; QUESTION SECTION:
    ;vpn-relay. IN ANY

    ;; ANSWER SECTION:
    vpn-relay. 604800 IN SOA localhost.
    root.localhost. 2005082200 604800 86400 2419200 604800
    vpn-relay. 604800 IN NS localhost.
    vpn-relay. 604800 IN MX 10 relay1.vpn-relay.
    vpn-relay. 604800 IN MX 10 relay2.vpn-relay.

    ;; ADDITIONAL SECTION:
    localhost. 604800 IN A 127.0.0.1
    relay1.vpn-relay. 604800 IN A 192.168.10.6
    relay2.vpn-relay. 604800 IN A 192.168.10.10

    ;; Query time: 1 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Tue Sep 13 15:40:03 2005
    ;; MSG SIZE rcvd: 185

    TCPDUMP when dig is done from command line:

    [root at adeona /etc/bind]# tcpdump -i lo port 53 -vv
    tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 96 bytes
    15:49:22.196716 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto:
    UDP (17), length: 55) localhost.localdomain.32794 >
    localhost.localdomain.domain: [udp sum ok] 62941+ A? vpn-relay. (27)
    15:49:22.196914 IP (tos 0x0, ttl 64, id 29, offset 0, flags [DF],
    proto: UDP (17), length: 105) localhost.localdomain.domain >
    localhost.localdomain.32794: 62941* q: A? vpn-relay. 0/1/0 ns:
    vpn-relay. SOA[|domain]

    TCPDUMP when postfix is trying to send mail:

    [root at adeona /etc/bind]# tcpdump -i lo port 53 -vv
    tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 96 bytes
    15:42:17.509238 IP (tos 0x0, ttl 64, id 32320, offset 0, flags [DF],
    proto: UDP (17), length: 70) localhost.localdomain.32791 >
    localhost.localdomain.domain: [udp sum ok] 62038+ A?
    vpn-relay.kingsley.co.za. (42)

    But when postfix is trying to send mail using the Round-Robin it failes
    while doing the DNS lookup...

    What seems strange is that postfix seems to be adding the domain to the
    query while the domain vpn-relay only exists on localhost.
    So my question is how would I work around this issue still having the
    functionallity of round-robbin relayhosts....

    BTW: Using Debian Sarge with postfix 2.2.4-1 installed.

    -- 
    Kind Regards
    Etienne
    

  • Next message: Andreas Winkelmann: "Re: SMTP Authentication using Postfix with SASL and PostgreSQL?"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD