Date: Mon, 21 Apr 1997 22:42:14 +0800 From: "xu" <xu@pub.casc.cn.net> To: <questions@freebsd.org> Subject: questions: sendmail, dns and dial-in smtp host Message-ID: <199704211344.WAA01064@pub>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_01BC4EA5.42093000 Content-Type: text/plain; charset=HZ-GB-2312 Content-Transfer-Encoding: 7bit Dear Sir, I'm told to post following problem to your site for an answer: I made sendmail 8.6x running on Solaris 2.4 as a mail host (pub), a dial-in NT server running Exchange (bbs) as a SMTP gateway. Everything is OK except the inbound mail to bbs. Would you advise me ? ------=_NextPart_000_01BC4EA5.42093000 Content-Type: application/octet-stream; name="Re According to your FAQ 9.17 - mail loops back to myself.eml" Content-Transfer-Encoding: 7bit Content-Description: Re According to your FAQ 9.17 - mail loops back to myself (Internet E-Mail Message) Content-Disposition: attachment; filename="Re According to your FAQ 9.17 - mail loops back to myself.eml" From: "xu" <xu@pub.casc.cn.net> To: "Doug White" <dwhite@resnet.uoregon.edu> Subject: Re: According to your FAQ 9.17 - mail loops back to myself Date: Sat, 19 Apr 1997 08:06:07 +0800 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Mr. Xu Weimin Information Center, CASC Tel:68371797 P.O.Box 842 Beijing 100037 P.R.China ---------- > From: Doug White <dwhite@gdi.uoregon.edu> > To: xu <xu@pub.casc.cn.net> > Cc: pds@freebsd.org > Subject: Re: According to your FAQ 9.17 - mail loops back to myself > Date: 1997Äê4ÔÂ19ÈÕ 1:42 > > On Thu, 17 Apr 1997, xu wrote: > > > I made the changes on sendmail.cf. It now accepts mail, but only for the > > account it recogonized, otherwise it will return the mail with "550 User > > unknown". In fact, I need to to make the sendmail as a relay machine which > > can hold the mail for a destination machine which is not show up. As long > > as the destination machine shows up, sendmail should dequeue the mail in > > the queue to the destination using SMTP. So can you tell me what else can I > > do with the sendmail.cf? > > As far as I know, no further configuration is necessary to get sendmail to > do relaying. In fact, you do _not_ want to have the destination machine > listed in the Cw capability, otherwise the machine will attempt to deliver > the message locally, which will fail. > > If you are getting loopback problems, check your nameserver MX entry. > > Doug White | University of Oregon > Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant > http://gladstone.uoregon.edu/~dwhite | Computer Science Major I checked already and try another time, but failed again. The return message as follows: The original message was received at Fri, 18 Apr 1997 16:43:00 +0900 from [202.96.27.32] ----- The following addresses had delivery problems ----- <xu@bbs.casc.cn.net> (unrecoverable error) ----- Transcript of session follows ----- 553 pub config error: mail loops back to myself 554 <xu@bbs.casc.cn.net>... Local configuration error ----- Original message follows ----- Return-Path: <xu@pub.casc.cn.net> Received: from xu by pub (SMI-8.6/SMI-SVR4) id QAA07299; Fri, 18 Apr 1997 16:43:00 +0900 Message-Id: <199704180743.QAA07299@pub> From: "xu" <xu@pub.casc.cn.net> To: <xu@bbs.casc.cn.net> Subject: test Date: Fri, 18 Apr 1997 16:40:44 +0800 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=HZ-GB-2312 Content-Transfer-Encoding: 7bit content-length: 9 tttttttt My DNS related records are as follows: bbs IN A 202.96.27.16 bbs IN MX 10 bbs.casc.cn.net IN MX 20 pub.casc.cn.net where bbs is a scheduled dial-in host, pub is the sendmail machine. In sendmail.cf, Cw is as follows: Cwpub ------=_NextPart_000_01BC4EA5.42093000 Content-Type: application/octet-stream; name="Re According to your FAQ 9.17 - mail loops back to myself (1).eml" Content-Transfer-Encoding: quoted-printable Content-Description: Re According to your FAQ 9.17 - mail loops back to myself (1) (Internet E-Mail Message) Content-Disposition: attachment; filename="Re According to your FAQ 9.17 - mail loops back to myself (1).eml" From: "xu" <xu@pub.casc.cn.net> To: "Doug White" <dwhite@resnet.uoregon.edu> Subject: Re: According to your FAQ 9.17 - mail loops back to myself Date: Sun, 20 Apr 1997 22:00:49 +0800 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=3DISO-8859-1 Content-Transfer-Encoding: 8bit ---------- > From: Doug White <dwhite@gdi.uoregon.edu> > To: xu <xu@pub.casc.cn.net> > Subject: Re: According to your FAQ 9.17 - mail loops back to myself > Date: 1997=C4=EA4=D4=C220=C8=D5 17:15 >=20 > On Sat, 19 Apr 1997, xu wrote: >=20 > > > If you are getting loopback problems, check your nameserver MX = entry. > >=20 > > I checked already and try another time, but failed again. > >=20 > > The return message as follows: > >=20 > > The original message was received at Fri, 18 Apr 1997 16:43:00 +0900 > > from [202.96.27.32] > >=20 > > ----- The following addresses had delivery problems ----- > > <xu@bbs.casc.cn.net> (unrecoverable error) > >=20 > > ----- Transcript of session follows ----- > > 553 pub config error: mail loops back to myself > > 554 <xu@bbs.casc.cn.net>... Local configuration error >=20 > "pub" is the one with the identity problem, not "bbs". Add 'pub' to pub's > Cw entry. Pub is finding that sending mail to bbs causes the mail to > bounce right back because of the MX entry pointing from bbs to pub. = The > Cw entry will teach pub to deliver the mail locally instead. =20 >=20 > > X-Mailer: Microsoft Internet Mail 4.70.1155 >=20 > Ugly. :( ??? >=20 > > My DNS related records are as follows: > >=20 > > bbs IN A 202.96.27.16 > > bbs IN MX 10 bbs.casc.cn.net > > IN MX 20 pub.casc.cn.net > >=20 > >=20 > > where bbs is a scheduled dial-in host, pub is the sendmail machine. > >=20 > > In sendmail.cf, Cw is as follows: > >=20 > > Cwpub >=20 > This is bbs or pub? >=20 Sory for puzzling, pub is a sendmail host, bbs is a MS Exchange gateway. I add on some other thing to both the /etc/hosts and DNS files, = especially the reverse look-up record (PTR) for both bbs and pub. It seems working now. Anyway thanks for giving me so much help, it will be great plessure = to keep touch with you. Thanks again. Best Regards. ------=_NextPart_000_01BC4EA5.42093000 Content-Type: application/octet-stream; name="sendmail fails again.eml" Content-Transfer-Encoding: quoted-printable Content-Description: sendmail fails again (Internet E-Mail Message) Content-Disposition: attachment; filename="sendmail fails again.eml" From: "jingma" <jingma@public3.bta.net.cn> To: <dwhite@gdi.uoregon.edu> Subject: sendmail fails again Date: Sun, 20 Apr 1997 22:45:03 +0800 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: multipart/mixed; = boundary=3D"----=3D_NextPart_000_01BC4DDC.7C426080" Content-Transfer-Encoding: 7bit This is a multi-part message in MIME format. ------=3D_NextPart_000_01BC4DDC.7C426080 Content-Type: text/plain; charset=3DHZ-GB-2312 Content-Transfer-Encoding: 7bit Sorry for trouble you again. I just sent you about that sendmail works. But it only works partly. = That means the sendmail queued the mail for bbs very shortly (about 3 = minuts). If the bbs gateway can dail-in within this period, bbs can receive the mail, (it hardly happens, because bbs dial-in every 4 hours) otherwise, = pub will return the mail to the sender with the error: The original message was received at Sun, 20 Apr 1997 22:18:01 +0900 from public3.bta.net.cn [202.96.0.193] ----- The following addresses had delivery problems ----- <xwm@bbs.casc.cn.net> (unrecoverable error) ----- Transcript of session follows ----- 553 pub config error: mail loops back to myself 554 <xwm@bbs.casc.cn.net>... Local configuration error ----- Original message follows ----- Return-Path: <jingma@public3.bta.net.cn> Received: from public3.bta.net.cn by pub (SMI-8.6/SMI-SVR4) id WAA10037; Sun, 20 Apr 1997 22:18:01 +0900 Received: from xu ([202.96.27.33]) by public3.bta.net.cn (8.7.3/8.7.3) = with ESMTP id WAA18596 for <xwm@bbs.casc.cn.net>; Sun, 20 Apr 1997 22:14:44 +0800 (CST) Message-Id: <199704201414.WAA18596@public3.bta.net.cn> From: "jingma" <jingma@public3.bta.net.cn> To: <xwm@bbs.casc.cn.net> Subject: Internet Mail to Exchange Date: Sun, 20 Apr 1997 22:14:24 +0800 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=3DHZ-GB-2312 Content-Transfer-Encoding: 7bit content-length: 109 I can see the mail queued in the pub the mail queue by /usr/lib/sendmail -bp. The problem is after several minuts, the queue is empty and the = sender got the return error. For your convience, attached the pub's = sendmail.cf. You can see that the mail in queue should be kept for 3 days, but ... ------=3D_NextPart_000_01BC4DDC.7C426080 Content-Type: application/octet-stream; name=3D"sendmail.cf" Content-Transfer-Encoding: quoted-printable Content-Description: sendmail.cf (CF =CE=C4=BC=FE) Content-Disposition: attachment; filename=3D"sendmail.cf" ############################################################=3D0A=3D #=3D0A=3D # Sendmail configuration file for "MAIN MACHINES"=3D0A=3D #=3D0A=3D # You should install this file as /etc/sendmail.cf=3D0A=3D # if your machine is the main (or only) mail-relaying=3D0A=3D # machine in your domain. Then edit the file to=3D0A=3D # customize it for your network configuration.=3D0A=3D #=3D0A=3D # See the manual "System and Network Administration for the Sun=3D0A=3D # Workstation". Look at "Setting Up The Mail Routing System" in=3D0A=3D # the chapter on Communications. The Sendmail reference in the=3D0A=3D # back of the manual is also useful.=3D0A=3D #=3D0A=3D # @(#)main.mc 1.17 90/01/04 SMI=3D0A=3D #=3D0A=3D =3D0A=3D ### local info=3D0A=3D =3D0A=3D # delete the following if you have no sendmailvars table=3D0A=3D Lmmaildomain=3D0A=3D =3D0A=3D # my official hostname=3D0A=3D # You have two choices here. If you want the gateway machine to =3D identify=3D0A=3D # itself as the DOMAIN, use this line:=3D0A=3D #Dj$m=3D0A=3D # If you want the gateway machine to appear to be INSIDE the domain, =3D use:=3D0A=3D #Dj$w.$m=3D0A=3D # if you are using sendmail.mx (or have a fully-qualified hostname), =3D use:=3D0A=3D Dj$w=3D0A=3D =3D0A=3D # major relay mailer - typical choice is "ddn" if you are on the=3D0A=3D # Defense Data Network (e.g. Arpanet or Milnet)=3D0A=3D DMddn=3D0A=3D =3D0A=3D # major relay host: use the $M mailer to send mail to other = domains=3D0A=3D #DRbbs=3D0A=3D #CRbbs=3D0A=3D =3D0A=3D # If you want to pre-load the "mailhosts" then use a line like=3D0A=3D # FS /usr/lib/mailhosts=3D0A=3D # and then change all the occurences of $%y to be $=3D3DS = instead.=3D0A=3D # Otherwise, the default is to use the hosts.byname map if NIS=3D0A=3D # is running (or else the /etc/hosts file if no NIS).=3D0A=3D =3D0A=3D # valid top-level domains (default passes ALL unknown domains = up)=3D0A=3D CT arpa bitnet com edu gov mil net org =3D0A=3D CT cn us de fr jp kr nz il uk no au fi nl se ca ch my dk ar=3D0A=3D =3D0A=3D # options that you probably want on a mailhost:=3D0A=3D =3D0A=3D # The $w CLASS can be used to define "nicknames" for the local = host.=3D0A=3D # These are alternate names that other systems may use to direct = mail=3D0A=3D # to the local host. If this feature is used, the class should =3D contain=3D0A=3D # the set of all names by which this host is known by. This feature =3D might=3D0A=3D # normally be used when the local host name is revised but it is not =3D feasable=3D0A=3D # to notify all other hosts of the new name. Additionally, it may be =3D that=3D0A=3D # the local host is known by one name on the internet and another name = =3D on=3D0A=3D # additional networks to which this host is connected.=3D0A=3D #=3D0A=3D #=3D0A=3D #CwMyUnqualifiedHostName AnAlternateName NameUsedOnOtherNetwork = =3D0A=3D Cwpub=3D0A=3D =3D0A=3D # checkpoint the queue after this many receipients=3D0A=3D OC10=3D0A=3D =3D0A=3D # refuse to send tiny messages to more than these recipients=3D0A=3D Ob10=3D0A=3D =3D0A=3D #################################################=3D0A=3D #=3D0A=3D # General configuration information=3D0A=3D =3D0A=3D # local domain names=3D0A=3D #=3D0A=3D # These can now be determined from the domainname system call.=3D0A=3D # The first component of the NIS domain name is stripped off = unless=3D0A=3D # it begins with a dot or a plus sign.=3D0A=3D # If your NIS domain is not inside the domain name you would like to =3D have=3D0A=3D # appear in your mail headers, add a "Dm" line to define your domain =3D name.=3D0A=3D # The Dm value is what is used in outgoing mail. The Cm values = are=3D0A=3D # accepted in incoming mail. By default Cm is set from Dm, but you =3D might=3D0A=3D # want to have more than one Cm line to recognize more than one domain = =3D =3D0A=3D # name on incoming mail during a transition.=3D0A=3D # Example:=3D0A=3D # DmCS.Podunk.EDU=3D0A=3D # Cm cs cs.Podunk.EDU=3D0A=3D Dmcasc.cn.net=3D0A=3D Cm casc.cn.net=3D0A=3D #=3D0A=3D # known hosts in this domain are obtained from gethostbyname() = call=3D0A=3D =3D0A=3D # Version number of configuration file=3D0A=3D #ident "@(#)version.m4 1.17 92/07/14 SMI" /* SunOS 4.1 */=3D0A=3D #=3D0A=3D #=3D0A=3D # Copyright Notice =3D0A=3D #=3D0A=3D #Notice of copyright on this source code product does not indicate = =3D0A=3D #publication.=3D0A=3D #=3D0A=3D # (c) 1986,1987,1988,1989 Sun Microsystems, Inc=3D0A=3D # All rights reserved.=3D0A=3D =3D0A=3D DVSMI-SVR4=3D0A=3D =3D0A=3D =3D0A=3D ### Standard macros=3D0A=3D =3D0A=3D # name used for error messages=3D0A=3D DnMailer-Daemon=3D0A=3D # specail user=3D0A=3D CDMailer-Daemon root daemon uucp=3D0A=3D # UNIX header format=3D0A=3D DlFrom $g $d=3D0A=3D # delimiter (operator) characters=3D0A=3D Do.:%@!^=3D3D/[]=3D0A=3D # format of a total name=3D0A=3D Dq$g$?x ($x)$.=3D0A=3D # SMTP login message=3D0A=3D De$j Sendmail $v/$V ready at $b=3D0A=3D =3D0A=3D ### Options=3D0A=3D =3D0A=3D # Remote mode - send through server if mailbox directory is = mounted=3D0A=3D OR=3D0A=3D # location of alias file=3D0A=3D OA/etc/mail/aliases=3D0A=3D # default delivery mode (deliver in background)=3D0A=3D Odbackground=3D0A=3D # rebuild the alias file automagically=3D0A=3D OD=3D0A=3D # temporary file mode -- 0600 for secure mail, 0644 for = permissive=3D0A=3D OF0600=3D0A=3D # default GID=3D0A=3D Og1=3D0A=3D # location of help file=3D0A=3D OH/etc/mail/sendmail.hf=3D0A=3D # log level=3D0A=3D OL9=3D0A=3D # default messages to old style=3D0A=3D Oo=3D0A=3D # Cc my postmaster on error replies I generate=3D0A=3D OPPostmaster=3D0A=3D # queue directory=3D0A=3D OQ/var/spool/mqueue=3D0A=3D # read timeout for SMTP protocols=3D0A=3D Or15m=3D0A=3D # status file -- none=3D0A=3D OS/etc/mail/sendmail.st=3D0A=3D # queue up everything before starting transmission, for safety=3D0A=3D Os=3D0A=3D # return queued mail after this long=3D0A=3D OT3d=3D0A=3D # default UID=3D0A=3D Ou1=3D0A=3D =3D0A=3D ### Message precedences=3D0A=3D Pfirst-class=3D3D0=3D0A=3D Pspecial-delivery=3D3D100=3D0A=3D Pjunk=3D3D-100=3D0A=3D =3D0A=3D ### Trusted users=3D0A=3D T root daemon uucp=3D0A=3D =3D0A=3D ### Format of headers =3D0A=3D H?P?Return-Path: <$g>=3D0A=3D HReceived: $?sfrom $s $.by $j ($v/$V)=3D0A=3D id $i; $b=3D0A=3D H?D?Resent-Date: $a=3D0A=3D H?D?Date: $a=3D0A=3D H?F?Resent-From: $q=3D0A=3D H?F?From: $q=3D0A=3D H?x?Full-Name: $x=3D0A=3D HSubject:=3D0A=3D H?M?Resent-Message-Id: <$t.$i@$j>=3D0A=3D H?M?Message-Id: <$t.$i@$j>=3D0A=3D HErrors-To:=3D0A=3D =3D0A=3D ###########################=3D0A=3D ### Rewriting rules ###=3D0A=3D ###########################=3D0A=3D #DB cunyvm.cuny.edu=3D0A=3D DBcuvmb.cc.columbia.edu=3D0A=3D =3D0A=3D S0=3D0A=3D #R$*<@$*.$+>$* $#ddn $@ $2.$3 $:$1<@$2.$3>$4 user@any.domain=3D0A=3D R$*<@$*.bitnet> $1%$2.bitnet<@$B> user@node.bitnet@B=3D0A=3D =3D0A=3D # Sender Field Pre-rewriting=3D0A=3D S1=3D0A=3D # None needed.=3D0A=3D =3D0A=3D # Recipient Field Pre-rewriting=3D0A=3D S2=3D0A=3D # None needed.=3D0A=3D =3D0A=3D # Name Canonicalization=3D0A=3D =3D0A=3D # Internal format of names within the rewriting rules is:=3D0A=3D # anything<@host.domain.domain...>anything=3D0A=3D # We try to get every kind of name into this format, except for = local=3D0A=3D # names, which have no host part. The reason for the "<>" stuff = is=3D0A=3D # that the relevant host name could be on the front of the name = (for=3D0A=3D # source routing), or on the back (normal form). We enclose the one =3D that=3D0A=3D # we want to route on in the <>'s to make it easy to find.=3D0A=3D # =3D0A=3D S3=3D0A=3D =3D0A=3D # handle "from:<>" special case=3D0A=3D R$*<>$* $@@ turn into magic token=3D0A=3D =3D0A=3D # basic textual canonicalization=3D0A=3D R$*<$+>$* $2 basic RFC822 parsing=3D0A=3D =3D0A=3D # make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone = later=3D0A=3D R@$+,$+:$+ @$1:$2:$3 change all "," to ":"=3D0A=3D R@$+:$+ $@$>6<@$1>:$2 src route canonical=3D0A=3D =3D0A=3D R$+:$*;@$+ $@$1:$2;@$3 list syntax=3D0A=3D R$+@$+ $:$1<@$2> focus on domain=3D0A=3D R$+<$+@$+> $1$2<@$3> move gaze right=3D0A=3D R$+<@$+> $@$>6$1<@$2> already canonical=3D0A=3D =3D0A=3D # convert old-style names to domain-based names=3D0A=3D # All old-style names parse from left to right, without = precedence.=3D0A=3D R$-!$+ $@$>6$2<@$1.uucp> uucphost!user=3D0A=3D R$-.$+!$+ $@$>6$3<@$1.$2> host.domain!user=3D0A=3D R$+%$+ $@$>3$1@$2 user%host=3D0A=3D =3D0A=3D # Final Output Post-rewriting =3D0A=3D S4=3D0A=3D R$+<@$+.uucp> $2!$1 u@h.uucp =3D3D> h!u=3D0A=3D R$+ $: $>9 $1 Clean up addr=3D0A=3D R$*<$+>$* $1$2$3 defocus=3D0A=3D =3D0A=3D =3D0A=3D # Clean up an name for passing to a mailer=3D0A=3D # (but leave it focused)=3D0A=3D S9=3D0A=3D R$=3D3Dw!@ $@$w!$n =3D0A=3D R@ $@$n handle <> error addr=3D0A=3D R$*<$*LOCAL>$* $1<$2$m>$3 change local info=3D0A=3D R<@$+>$*:$+:$+ <@$1>$2,$3:$4 <route-addr> canonical=3D0A=3D =3D0A=3D =3D0A=3D #######################=3D0A=3D # Rewriting rules=3D0A=3D =3D0A=3D # special local conversions=3D0A=3D S6=3D0A=3D R$*<@$*$=3D3Dm>$* $1<@$2LOCAL>$4 convert local domain=3D0A=3D =3D0A=3D # Local and Program Mailer specification=3D0A=3D =3D0A=3D Mlocal, P=3D3D/bin/mail, F=3D3DflsSDFMmnP, S=3D3D10, R=3D3D20, = A=3D3Dmail -d $u=3D0A=3D Mprog, P=3D3D/bin/sh, F=3D3DlsDFMeuP, S=3D3D10, R=3D3D20, A=3D3Dsh -c = $u=3D0A=3D =3D0A=3D S10=3D0A=3D # None needed.=3D0A=3D =3D0A=3D S20=3D0A=3D # None needed.=3D0A=3D =3D0A=3D #ident "@(#)etherm.m4 1.15 93/04/05 SMI" /* SunOS 4.1 */=3D0A=3D #=3D0A=3D # Copyright Notice =3D0A=3D #=3D0A=3D #Notice of copyright on this source code product does not indicate = =3D0A=3D #publication.=3D0A=3D #=3D0A=3D # (c) 1986,1987,1988,1989 Sun Microsystems, Inc=3D0A=3D # All rights reserved.=3D0A=3D =3D0A=3D ############################################################=3D0A=3D #####=3D0A=3D ##### Ethernet Mailer specification=3D0A=3D #####=3D0A=3D ##### Messages processed by this configuration are assumed to = remain=3D0A=3D ##### in the same domain. This really has nothing particular to = do=3D0A=3D ##### with Ethernet - the name is historical.=3D0A=3D =3D0A=3D Mether, P=3D3D[TCP], F=3D3DmsDFMuCX, S=3D3D11, R=3D3D21, A=3D3DTCP = $h=3D0A=3D S11=3D0A=3D R$*<@$+>$* $@$1<@$2>$3 already ok=3D0A=3D R$=3D3DD $@$1<@$w> tack on my hostname=3D0A=3D R$+ $@$1<@$k> tack on my mbox hostname=3D0A=3D =3D0A=3D S21=3D0A=3D R$*<@$+>$* $@$1<@$2>$3 already ok=3D0A=3D R$+ $@$1<@$k> tack on my mbox hostname=3D0A=3D =3D0A=3D =3D0A=3D =3D0A=3D =3D0A=3D ##########################################################=3D0A=3D # General code to convert back to old style UUCP names=3D0A=3D S5=3D0A=3D R$+<@LOCAL> $@ $w!$1 name@LOCAL =3D3D> sun!name=3D0A=3D R$+<@$-.LOCAL> $@ $2!$1 u@h.LOCAL =3D3D> h!u=3D0A=3D R$+<@$+.uucp> $@ $2!$1 u@h.uucp =3D3D> h!u=3D0A=3D R$+<@$*> $@ $2!$1 u@h =3D3D> h!u=3D0A=3D # Route-addrs do not work here. Punt til uucp-mail comes up with =3D something.=3D0A=3D R<@$+>$* $@ @$1$2 just defocus and punt=3D0A=3D R$*<$*>$* $@ $1$2$3 Defocus strange stuff=3D0A=3D =3D0A=3D # UUCP Mailer specification=3D0A=3D =3D0A=3D Muucp, P=3D3D/usr/bin/uux, F=3D3DmsDFMhuU, S=3D3D13, R=3D3D23,=3D0A=3D A=3D3Duux - -r -a$f $h!rmail ($u)=3D0A=3D =3D0A=3D # Convert uucp sender (From) field=3D0A=3D S13=3D0A=3D R$+ $:$>5$1 convert to old style=3D0A=3D R$=3D3Dw!$+ $2 strip local name=3D0A=3D R$+ $:$w!$1 stick on real host name=3D0A=3D =3D0A=3D # Convert uucp recipient (To, Cc) fields=3D0A=3D S23=3D0A=3D R$+ $:$>5$1 convert to old style=3D0A=3D =3D0A=3D =3D0A=3D #ident "@(#)ddnm.m4 1.8 93/06/30 SMI" /* SunOS 4.1 */=3D0A=3D #=3D0A=3D #=3D0A=3D # Copyright Notice =3D0A=3D #=3D0A=3D #Notice of copyright on this source code product does not indicate = =3D0A=3D #publication.=3D0A=3D #=3D0A=3D # (c) 1986,1987,1988,1989 Sun Microsystems, Inc=3D0A=3D # All rights reserved.=3D0A=3D =3D0A=3D ############################################################=3D0A=3D #=3D0A=3D # DDN Mailer specification=3D0A=3D #=3D0A=3D # Send mail on the Defense Data Network=3D0A=3D # (such as Arpanet or Milnet)=3D0A=3D =3D0A=3D Mddn, P=3D3D[TCP], F=3D3DmsDFMuCX, S=3D3D22, R=3D3D22, A=3D3DTCP $h, = E=3D3D\r\n=3D0A=3D =3D0A=3D # map containing the inverse of mail.aliases=3D0A=3D # Note that there is a special case mail.byaddr will cause = reverse=3D0A=3D # lookups in both Nis+ and NIS.=3D0A=3D # If you want to use ONLY Nis+ for alias inversion comment out the next = =3D line=3D0A=3D # and uncomment the line after that=3D0A=3D DZmail.byaddr=3D0A=3D #DZREVERSE.mail_aliases.org_dir=3D0A=3D =3D0A=3D S22=3D0A=3D R$*<@LOCAL>$* $:$1=3D0A=3D R$-<@$-> $:$>3${Z$1@$2$} invert aliases=3D0A=3D R$*<@$+.$*>$* $@$1<@$2.$3>$4 already ok=3D0A=3D R$+<@$+>$* $@$1<@$2.$m>$3 tack on our domain=3D0A=3D R$+ $@$1<@$w.$m> tack on our full name =3D0A=3D =3D0A=3D =3D0A=3D # "Smart" UUCP mailer: Uses UUCP transport but domain-style = naming=3D0A=3D Msmartuucp, P=3D3D/usr/bin/uux, F=3D3DCmsDFMhuU, S=3D3D22, R=3D3D22, = =3D0A=3D A=3D3Duux - -r $h!rmail ($u)=3D0A=3D =3D0A=3D =3D0A=3D ############################################################=3D0A=3D #=3D0A=3D # RULESET ZERO=3D0A=3D #=3D0A=3D # This is the ruleset that determines which mailer a name goes = to.=3D0A=3D =3D0A=3D # Ruleset 30 just calls rulesets 3 then 0.=3D0A=3D S30=3D0A=3D R$* $: $>3 $1 First canonicalize=3D0A=3D R$* $@ $>0 $1 Then rerun ruleset 0=3D0A=3D =3D0A=3D S0=3D0A=3D # On entry, the address has been canonicalized and focused by ruleset = =3D 3.=3D0A=3D # Handle special cases.....=3D0A=3D R@ $#local $:$n handle <> form=3D0A=3D =3D0A=3D # resolve the local hostname to "LOCAL".=3D0A=3D R$*<$*$=3D3Dw.LOCAL>$* $1<$2LOCAL>$4 thishost.LOCAL=3D0A=3D R$*<$*$=3D3Dw.uucp>$* $1<$2LOCAL>$4 thishost.uucp=3D0A=3D R$*<$*$=3D3Dw>$* $1<$2LOCAL>$4 thishost=3D0A=3D =3D0A=3D # Mail addressed explicitly to the domain gateway (us)=3D0A=3D R$*<@LOCAL> $@$>30$1 strip our name, retry=3D0A=3D R<@LOCAL>:$+ $@$>30$1 retry after route strip=3D0A=3D =3D0A=3D # For numeric spec, you can't pass spec on to receiver, since old =3D rcvr's=3D0A=3D # are not smart enough to know that [x.y.z.a] is their own name.=3D0A=3D R<@[$+]>:$* $:$>9 <@[$1]>:$2 Clean it up, then...=3D0A=3D R<@[$+]>:$* $#ether $@[$1] $:$2 numeric internet spec=3D0A=3D R<@[$+]>,$* $#ether $@[$1] $:$2 numeric internet spec=3D0A=3D R$*<@[$+]> $#ether $@[$2] $:$1 numeric internet spec=3D0A=3D =3D0A=3D # deliver to known ethernet hosts explicitly specified in our = domain=3D0A=3D R$*<@$%y.LOCAL>$* $#ether $@$2 $:$1<@$2>$3 user@host.sun.com=3D0A=3D # deliver to hosts in our domain that have a MX recod=3D0A=3D R$*<@$%x.LOCAL>$* $#ether $@$2 $:$1<@$2>$3 user@host.sun.com=3D0A=3D =3D0A=3D # etherhost.uucp is treated as etherhost.$m for now.=3D0A=3D # This allows them to be addressed from uucp as =3D foo!sun!etherhost!user.=3D0A=3D R$*<@$%y.uucp>$* $#ether $@$2 $:$1<@$2>$3 user@etherhost.uucp=3D0A=3D =3D0A=3D # Explicitly specified names in our domain -- that we've never heard =3D of=3D0A=3D R$*<@$*.LOCAL>$* $#error $:Never heard of host $2 in domain $m=3D0A=3D =3D0A=3D # Clean up addresses for external use -- kills LOCAL, route-addr = ,=3D3D>: =3D =3D0A=3D R$* $:$>9 $1 Then continue...=3D0A=3D =3D0A=3D # resolve UUCP-style names=3D0A=3D R<@$-.uucp>:$+ $#uucp $@$1 $:$2 @host.uucp:...=3D0A=3D R$+<@$-.uucp> $#uucp $@$2 $:$1 user@host.uucp=3D0A=3D =3D0A=3D # Pass other valid names up the ladder to our forwarder=3D0A=3D #R$*<@$*.$=3D3DT>$* $#$M $@$R $:$1<@$2.$3>$4 = user@domain.known=3D0A=3D =3D0A=3D # Replace following with above to only forward "known" top-level =3D domains=3D0A=3D #R$*<@$*.$+>$* $#$M $@$R $:$1<@$2.$3>$4 user@any.domain=3D0A=3D =3D0A=3D # if you are on the DDN, then comment-out both of the the lines = above=3D0A=3D # and use the following instead:=3D0A=3D R$*<@$*.$+>$* $#ddn $@ $2.$3 $:$1<@$2.$3>$4 user@any.domain=3D0A=3D =3D0A=3D # All addresses in the rules ABOVE are absolute (fully qualified =3D domains).=3D0A=3D # Addresses BELOW can be partially qualified.=3D0A=3D =3D0A=3D # deliver to known ethernet hosts=3D0A=3D R$*<@$%y>$* $#ether $@$2 $:$1<@$2>$3 user@etherhost=3D0A=3D # deliver to known ethernet hosts that has MX record=3D0A=3D R$*<@$%x>$* $#ether $@$2 $:$1<@$2>$3 user@etherhost=3D0A=3D =3D0A=3D # other non-local names have nowhere to go; return them to = sender.=3D0A=3D R$*<@$+.$->$* $#error $:Unknown domain $3=3D0A=3D R$*<@$+>$* $#error $:Never heard of $2 in domain $m=3D0A=3D R$*@$* $#error $:I don't understand $1@$2=3D0A=3D =3D0A=3D # Local names with % are really not local!=3D0A=3D R$+%$+ $@$>30$1@$2 turn % =3D3D> @, retry=3D0A=3D =3D0A=3D # everything else is a local name=3D0A=3D R$+ $#local $:$1 local names=3D0A=3D ------=3D_NextPart_000_01BC4DDC.7C426080-- ------=_NextPart_000_01BC4EA5.42093000 Content-Type: application/octet-stream; name="Re sendmail fails again.eml" Content-Transfer-Encoding: quoted-printable Content-Description: Re sendmail fails again (Internet E-Mail Message) Content-Disposition: attachment; filename="Re sendmail fails again.eml" Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by = public3.bta.net.cn (8.7.3/8.7.3) with ESMTP id MAA22804 for = <jingma@public3.bta.net.cn>; Mon, 21 Apr 1997 12:44:29 +0800 (CST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu = (8.8.5/8.6.12) with SMTP id VAA21302 for <jingma@public3.bta.net.cn>; = Sun, 20 Apr 1997 21:46:00 -0700 (PDT) Date: Sun, 20 Apr 1997 21:46:00 -0700 (PDT) From: Doug White <dwhite@gdi.uoregon.edu> X-Sender: dwhite@localhost Reply-To: Doug White <dwhite@resnet.uoregon.edu> To: jingma <jingma@public3.bta.net.cn> Subject: Re: sendmail fails again In-Reply-To: <199704201445.WAA19941@public3.bta.net.cn> Message-ID: <Pine.BSF.3.96.970420214512.21269A-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=3DUS-ASCII X-UIDL: c37a26662b53b55d847bcc6d67df1cb2 On Sun, 20 Apr 1997, jingma wrote: > Sorry for trouble you again. >=20 > I just sent you about that sendmail works. But it only works partly. = That > means the sendmail queued the mail for bbs very shortly (about 3 = minuts). > If the bbs gateway can dail-in within this period, bbs can receive the > mail, (it hardly happens, because bbs dial-in every 4 hours) = otherwise, pub > will return the mail to the sender with the error: You are attempting to set up a mail queue for a dialin host. You need = to tell sendmail this; I don't know how. =20 Please repost to questions@freebsd.org, you're in over my head. Sorry. Doug White | University of Oregon =20 Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major ------=_NextPart_000_01BC4EA5.42093000--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704211344.WAA01064>