• sendmail won't use relay

    From The Derfer@110:300/1.1 to All on Tue Nov 10 03:53:30 2009
    A RHEL5 client set up properly to send to another host as
    a relay doesn't do it. Yes, the "DS" field is set up in sendmail.cf,
    sendmail daemon restarted a million times, etc etc.
    Everything looks fine, it just doesn't work.
    Why does it try to send the mail itself? Shouldn't even attempt
    a DNS lookup. The mailhost (relay) can do that but here, the
    client tries to do it itself for some reason. Please advise.
    I try sending a test
    to see if this is working and here's what I get:

    root@e1198pdb3 ~# sendmail -v -d8.99 -d38.99 the...@gmail.com
    openmap() dequote:dequote NULL: valid
    openmap() host:host NULL: valid
    getcanonname(gmail.com), trying dns
    dns_getcanonname(gmail.com, trymx=1)
    dns_getcanonname: trying gmail.com. (AAAA)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (A)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (MX)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (AAAA)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (A)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (MX)
    NO: errno=111, h_errno=2
    getcanonname(gmail.com), trying files
    text_getcanonname(gmail.com)
    getcanonname(gmail.com), failed, status=68
    gmail.com: Name server timeout
    derf...@gmail.com... Transient parse error -- message queued for
    future delivery
    closemaps: closing host (NULL)
    closemaps: closing dequote (NULL)

    --- MBSE BBS v0.95.5 (GNU/Linux-x86_64)
    * Origin: http://groups.google.com (110:300/1.1@linuxnet)
  • From The Derfer@110:300/1.1 to All on Tue Nov 10 05:31:15 2009
    A RHEL5 client set up properly to send to another host as
    a relay doesn't do it. Yes, the "DS" field is set up in sendmail.cf,
    sendmail daemon restarted a million times, etc etc.
    Everything looks fine, it just doesn't work.
    Why does it try to send the mail itself? Shouldn't even attempt
    a DNS lookup. The mailhost (relay) can do that but here, the
    client tries to do it itself for some reason. Please advise.
    I try sending a test
    to see if this is working and here's what I get:

    root@e1198pdb3 ~# sendmail -v -d8.99 -d38.99 the...@gmail.com
    openmap() dequote:dequote NULL: valid
    openmap() host:host NULL: valid
    getcanonname(gmail.com), trying dns
    dns_getcanonname(gmail.com, trymx=1)
    dns_getcanonname: trying gmail.com. (AAAA)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (A)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (MX)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (AAAA)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (A)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (MX)
    NO: errno=111, h_errno=2
    getcanonname(gmail.com), trying files
    text_getcanonname(gmail.com)
    getcanonname(gmail.com), failed, status=68
    gmail.com: Name server timeout
    derf...@gmail.com... Transient parse error -- message queued for
    future delivery
    closemaps: closing host (NULL)
    closemaps: closing dequote (NULL)

    --- MBSE BBS v0.95.5 (GNU/Linux-x86_64)
    * Origin: http://groups.google.com (110:300/1.1@linuxnet)
  • From Maxwell Lol@1:0/0 to All on Tue Nov 10 13:24:29 2009
    The Derfer <derf109@gmail.com> writes:

    A RHEL5 client set up properly to send to another host as
    a relay doesn't do it. Yes, the "DS" field is set up in sendmail.cf,
    sendmail daemon restarted a million times, etc etc.
    Everything looks fine, it just doesn't work.
    Why does it try to send the mail itself? Shouldn't even attempt
    a DNS lookup.



    Sure. And that is what is happening. It's trying.

    root@e1198pdb3 ~# sendmail -v -d8.99 -d38.99 the...@gmail.com
    openmap() dequote:dequote NULL: valid
    openmap() host:host NULL: valid
    getcanonname(gmail.com), trying dns
    dns_getcanonname(gmail.com, trymx=1)
    dns_getcanonname: trying gmail.com. (AAAA)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (A)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (MX)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (AAAA)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (A)
    NO: errno=111, h_errno=2
    dns_getcanonname: trying gmail.com. (MX)
    NO: errno=111, h_errno=2
    getcanonname(gmail.com), trying files
    text_getcanonname(gmail.com)
    getcanonname(gmail.com), failed, status=68
    gmail.com: Name server timeout


    Name server timeout.

    It looks like sendmail was unable to get an A or MX record for gmail.com

    Try using dig of nslookup to get an MX record for gmail.

    % dig mx gmail.com

    [snip]

    ;; ANSWER SECTION:
    gmail.com. 2924 IN MX 40 alt4.gmail-smtp-in.l.google.com.
    gmail.com. 2924 IN MX 5 gmail-smtp-in.l.google.com. gmail.com. 2924 IN MX 10 alt1.gmail-smtp-in.l.google.com.
    gmail.com. 2924 IN MX 20 alt2.gmail-smtp-in.l.google.com.
    gmail.com. 2924 IN MX 30 alt3.gmail-smtp-in.l.google.com.


    --- MBSE BBS v0.95.5 (GNU/Linux-x86_64)
    * Origin: Glorb Internet Services, http://www.glorb.com