I cannot get the default OpenBSD 4.5 sendmail to forward an email
sent to root to a remote mailbox on a system configured as a
firewall (multi-homed).  This is easy from my other OpenBSD
systems, but this one system just refuses to work.  All of my
OpenBSD systems are very vanilla.  Take note in the facts below
that the bad system recognizes [email protected] as a local user
even though it isn't.

The facts:
1. There are no changes to /etc/mail.rc, /etc/mailer.conf, or
   /etc/mail/* on either good or bad systems.  The systems
   are running on identical hardware and were installed with
   the same sets.  The only big difference is that the bad
   server is using both network cards for NAT and fire walling
   and the good server is only using one card.

2. I am using /root/.forward to redirect the mail.  This file
   contains one line: [email protected]

3. I can connect normally to the remote mail server via: telnet
   mail.aha-net.org 25

4. The results of testing address resolution on the bad server:
# sendmail -d0.1
Version 8.14.3
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
                NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING
SCANF
                SOCKETMAP STARTTLS TCPWRAPPERS USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = bad
  (canonical domain name) $j = bad.aha-net.org
         (subdomain name) $m = aha-net.org
              (node name) $k = bad.aha-net.org
========================================================

# sendmail -bv -d13.20 [email protected]

===== SENDALL: mode v, id n5D62jCT024492, e_from 0x3c024e10=root:
        mailer 3 (local), host `'
        user `root', ruser `<null>'
        state=SENDER, next=0x0, alias 0x0, uid 0, gid 0
        flags=181<QGOODUID,QPINGONFAILURE,QPINGONDELAY>
        owner=(none), home="/root", fullname="(none)"
        orcpt="(none)", statmta=(none), status=(none)
        finalrcpt="(none)"
        rstatus="(none)"
        statdate=(none)
        e_flags = 4001<OLDSTYLE,METOO>
sendqueue:
[email protected]:
        mailer 3 (local), host `'
        user `root', ruser `root'
        state=OK, next=0x0, alias 0x0, uid 0, gid 0

flags=80000183<QGOODUID,QPRIMARY,QPINGONFAILURE,QPINGONDELAY,QRCPTOK>
        owner=(none), home="/root", fullname="Charlie Root"
        orcpt="(none)", statmta=(none), status=(none)
        finalrcpt="RFC822; [email protected]"
        rstatus="(none)"
        statdate=(none)
sendall: final mode = v
sendenvelope(n5D62jCT024492) e_flags=0x4001
[email protected]... deliverable: mailer local, user root

# sendmail -bv -d13.20 [email protected]
[email protected]... User unknown

===== SENDALL: mode v, id n5D6KdMX003369, e_from 0x3c024e10=root:
        mailer 3 (local), host `'
        user `root', ruser `<null>'
        state=SENDER, next=0x0, alias 0x0, uid 0, gid 0
        flags=181<QGOODUID,QPINGONFAILURE,QPINGONDELAY>
        owner=(none), home="/root", fullname="(none)"
        orcpt="(none)", statmta=(none), status=(none)
        finalrcpt="(none)"
        rstatus="(none)"
        statdate=(none)
        e_flags = 4001<OLDSTYLE,METOO>
sendqueue:
[email protected]:
        mailer 3 (local), host `'
        user `admin', ruser `<null>'
        state=BADADDR, next=0x0, alias 0x0, uid 0, gid 0
        flags=80000182<QPRIMARY,QPINGONFAILURE,QPINGONDELAY,QRCPTOK>
        owner=(none), home="(none)", fullname="(none)"
        orcpt="(none)", statmta=(none), status=5.1.1
        finalrcpt="RFC822; [email protected]"
        rstatus="550 5.1.1 User unknown"
        statdate=(none)
sendall: final mode = v
sendenvelope(n5D6KdMX003369) e_flags=0x4001

5. The results of testing address resolution on a good server:
# sendmail -d0.1
Version 8.14.3
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
                NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING
SCANF
                SOCKETMAP STARTTLS TCPWRAPPERS USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = good
  (canonical domain name) $j = good.aha-net.org
         (subdomain name) $m = aha-net.org
              (node name) $k = good.aha-net.org
========================================================

# sendmail -bv -d13.20 [email protected]

===== SENDALL: mode v, id n5D65uUL020606, e_from 0x3c024e10=root:
        mailer 3 (local), host `'
        user `root', ruser `<null>'
        state=SENDER, next=0x0, alias 0x0, uid 0, gid 0
        flags=181<QGOODUID,QPINGONFAILURE,QPINGONDELAY>
        owner=(none), home="/root", fullname="(none)"
        orcpt="(none)", statmta=(none), status=(none)
        finalrcpt="(none)"
        rstatus="(none)"
        statdate=(none)
        e_flags = 4001<OLDSTYLE,METOO>
sendqueue:
[email protected]:
        mailer 5 (esmtp), host `aha-net.org.'
        user `[email protected]', ruser `<null>'
        state=OK, next=0x0, alias 0x0, uid 0, gid 0
        flags=80000182<QPRIMARY,QPINGONFAILURE,QPINGONDELAY,QRCPTOK>
        owner=(none), home="(none)", fullname="(none)"
        orcpt="(none)", statmta=(none), status=(none)
        finalrcpt="RFC822; [email protected]"
        rstatus="(none)"
        statdate=(none)
sendall: final mode = v
sendenvelope(n5D65uUL020606) e_flags=0x4001
[email protected]... deliverable: mailer esmtp, host aha-net.org., user
[email protected]

# sendmail -bv -d13.20 [email protected]

===== SENDALL: mode v, id n5D6L4id030023, e_from 0x3c024e10=root:
        mailer 3 (local), host `'
        user `root', ruser `<null>'
        state=SENDER, next=0x0, alias 0x0, uid 0, gid 0
        flags=181<QGOODUID,QPINGONFAILURE,QPINGONDELAY>
        owner=(none), home="/root", fullname="(none)"
        orcpt="(none)", statmta=(none), status=(none)
        finalrcpt="(none)"
        rstatus="(none)"
        statdate=(none)
        e_flags = 4001<OLDSTYLE,METOO>
sendqueue:
[email protected]:
        mailer 5 (esmtp), host `aha-net.org.'
        user `[email protected]', ruser `<null>'
        state=OK, next=0x0, alias 0x0, uid 0, gid 0
        flags=80000182<QPRIMARY,QPINGONFAILURE,QPINGONDELAY,QRCPTOK>
        owner=(none), home="(none)", fullname="(none)"
        orcpt="(none)", statmta=(none), status=(none)
        finalrcpt="RFC822; [email protected]"
        rstatus="(none)"
        statdate=(none)
sendall: final mode = v
sendenvelope(n5D6L4id030023) e_flags=0x4001
[email protected]... deliverable: mailer esmtp, host aha-net.org., user
[email protected]

Reply via email to