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>
index | next in thread | raw e-mail
[-- Attachment #1 --] 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 ? [-- Attachment #2 --] 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 [-- Attachment #3 --] 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=ISO-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年4月20日 17:15 > > On Sat, 19 Apr 1997, xu wrote: > > > > If you are getting loopback problems, check your nameserver MX entry. > > > > 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 > > "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. > > > X-Mailer: Microsoft Internet Mail 4.70.1155 > > Ugly. :( ??? > > > 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 > > This is bbs or pub? > 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. [-- Attachment #4 --] 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="----=_NextPart_000_01BC4DDC.7C426080" Content-Transfer-Encoding: 7bit This is a multi-part message in MIME format. ------=_NextPart_000_01BC4DDC.7C426080 Content-Type: text/plain; charset=HZ-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=HZ-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 ... ------=_NextPart_000_01BC4DDC.7C426080 Content-Type: application/octet-stream; name="sendmail.cf" Content-Transfer-Encoding: quoted-printable Content-Description: sendmail.cf (CF 文件) Content-Disposition: attachment; filename="sendmail.cf" ############################################################=0A= #=0A= # Sendmail configuration file for "MAIN MACHINES"=0A= #=0A= # You should install this file as /etc/sendmail.cf=0A= # if your machine is the main (or only) mail-relaying=0A= # machine in your domain. Then edit the file to=0A= # customize it for your network configuration.=0A= #=0A= # See the manual "System and Network Administration for the Sun=0A= # Workstation". Look at "Setting Up The Mail Routing System" in=0A= # the chapter on Communications. The Sendmail reference in the=0A= # back of the manual is also useful.=0A= #=0A= # @(#)main.mc 1.17 90/01/04 SMI=0A= #=0A= =0A= ### local info=0A= =0A= # delete the following if you have no sendmailvars table=0A= Lmmaildomain=0A= =0A= # my official hostname=0A= # You have two choices here. If you want the gateway machine to = identify=0A= # itself as the DOMAIN, use this line:=0A= #Dj$m=0A= # If you want the gateway machine to appear to be INSIDE the domain, = use:=0A= #Dj$w.$m=0A= # if you are using sendmail.mx (or have a fully-qualified hostname), = use:=0A= Dj$w=0A= =0A= # major relay mailer - typical choice is "ddn" if you are on the=0A= # Defense Data Network (e.g. Arpanet or Milnet)=0A= DMddn=0A= =0A= # major relay host: use the $M mailer to send mail to other domains=0A= #DRbbs=0A= #CRbbs=0A= =0A= # If you want to pre-load the "mailhosts" then use a line like=0A= # FS /usr/lib/mailhosts=0A= # and then change all the occurences of $%y to be $=3DS instead.=0A= # Otherwise, the default is to use the hosts.byname map if NIS=0A= # is running (or else the /etc/hosts file if no NIS).=0A= =0A= # valid top-level domains (default passes ALL unknown domains up)=0A= CT arpa bitnet com edu gov mil net org =0A= CT cn us de fr jp kr nz il uk no au fi nl se ca ch my dk ar=0A= =0A= # options that you probably want on a mailhost:=0A= =0A= # The $w CLASS can be used to define "nicknames" for the local host.=0A= # These are alternate names that other systems may use to direct mail=0A= # to the local host. If this feature is used, the class should = contain=0A= # the set of all names by which this host is known by. This feature = might=0A= # normally be used when the local host name is revised but it is not = feasable=0A= # to notify all other hosts of the new name. Additionally, it may be = that=0A= # the local host is known by one name on the internet and another name = on=0A= # additional networks to which this host is connected.=0A= #=0A= #=0A= #CwMyUnqualifiedHostName AnAlternateName NameUsedOnOtherNetwork =0A= Cwpub=0A= =0A= # checkpoint the queue after this many receipients=0A= OC10=0A= =0A= # refuse to send tiny messages to more than these recipients=0A= Ob10=0A= =0A= #################################################=0A= #=0A= # General configuration information=0A= =0A= # local domain names=0A= #=0A= # These can now be determined from the domainname system call.=0A= # The first component of the NIS domain name is stripped off unless=0A= # it begins with a dot or a plus sign.=0A= # If your NIS domain is not inside the domain name you would like to = have=0A= # appear in your mail headers, add a "Dm" line to define your domain = name.=0A= # The Dm value is what is used in outgoing mail. The Cm values are=0A= # accepted in incoming mail. By default Cm is set from Dm, but you = might=0A= # want to have more than one Cm line to recognize more than one domain = =0A= # name on incoming mail during a transition.=0A= # Example:=0A= # DmCS.Podunk.EDU=0A= # Cm cs cs.Podunk.EDU=0A= Dmcasc.cn.net=0A= Cm casc.cn.net=0A= #=0A= # known hosts in this domain are obtained from gethostbyname() call=0A= =0A= # Version number of configuration file=0A= #ident "@(#)version.m4 1.17 92/07/14 SMI" /* SunOS 4.1 */=0A= #=0A= #=0A= # Copyright Notice =0A= #=0A= #Notice of copyright on this source code product does not indicate =0A= #publication.=0A= #=0A= # (c) 1986,1987,1988,1989 Sun Microsystems, Inc=0A= # All rights reserved.=0A= =0A= DVSMI-SVR4=0A= =0A= =0A= ### Standard macros=0A= =0A= # name used for error messages=0A= DnMailer-Daemon=0A= # specail user=0A= CDMailer-Daemon root daemon uucp=0A= # UNIX header format=0A= DlFrom $g $d=0A= # delimiter (operator) characters=0A= Do.:%@!^=3D/[]=0A= # format of a total name=0A= Dq$g$?x ($x)$.=0A= # SMTP login message=0A= De$j Sendmail $v/$V ready at $b=0A= =0A= ### Options=0A= =0A= # Remote mode - send through server if mailbox directory is mounted=0A= OR=0A= # location of alias file=0A= OA/etc/mail/aliases=0A= # default delivery mode (deliver in background)=0A= Odbackground=0A= # rebuild the alias file automagically=0A= OD=0A= # temporary file mode -- 0600 for secure mail, 0644 for permissive=0A= OF0600=0A= # default GID=0A= Og1=0A= # location of help file=0A= OH/etc/mail/sendmail.hf=0A= # log level=0A= OL9=0A= # default messages to old style=0A= Oo=0A= # Cc my postmaster on error replies I generate=0A= OPPostmaster=0A= # queue directory=0A= OQ/var/spool/mqueue=0A= # read timeout for SMTP protocols=0A= Or15m=0A= # status file -- none=0A= OS/etc/mail/sendmail.st=0A= # queue up everything before starting transmission, for safety=0A= Os=0A= # return queued mail after this long=0A= OT3d=0A= # default UID=0A= Ou1=0A= =0A= ### Message precedences=0A= Pfirst-class=3D0=0A= Pspecial-delivery=3D100=0A= Pjunk=3D-100=0A= =0A= ### Trusted users=0A= T root daemon uucp=0A= =0A= ### Format of headers =0A= H?P?Return-Path: <$g>=0A= HReceived: $?sfrom $s $.by $j ($v/$V)=0A= id $i; $b=0A= H?D?Resent-Date: $a=0A= H?D?Date: $a=0A= H?F?Resent-From: $q=0A= H?F?From: $q=0A= H?x?Full-Name: $x=0A= HSubject:=0A= H?M?Resent-Message-Id: <$t.$i@$j>=0A= H?M?Message-Id: <$t.$i@$j>=0A= HErrors-To:=0A= =0A= ###########################=0A= ### Rewriting rules ###=0A= ###########################=0A= #DB cunyvm.cuny.edu=0A= DBcuvmb.cc.columbia.edu=0A= =0A= S0=0A= #R$*<@$*.$+>$* $#ddn $@ $2.$3 $:$1<@$2.$3>$4 user@any.domain=0A= R$*<@$*.bitnet> $1%$2.bitnet<@$B> user@node.bitnet@B=0A= =0A= # Sender Field Pre-rewriting=0A= S1=0A= # None needed.=0A= =0A= # Recipient Field Pre-rewriting=0A= S2=0A= # None needed.=0A= =0A= # Name Canonicalization=0A= =0A= # Internal format of names within the rewriting rules is:=0A= # anything<@host.domain.domain...>anything=0A= # We try to get every kind of name into this format, except for local=0A= # names, which have no host part. The reason for the "<>" stuff is=0A= # that the relevant host name could be on the front of the name (for=0A= # source routing), or on the back (normal form). We enclose the one = that=0A= # we want to route on in the <>'s to make it easy to find.=0A= # =0A= S3=0A= =0A= # handle "from:<>" special case=0A= R$*<>$* $@@ turn into magic token=0A= =0A= # basic textual canonicalization=0A= R$*<$+>$* $2 basic RFC822 parsing=0A= =0A= # make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later=0A= R@$+,$+:$+ @$1:$2:$3 change all "," to ":"=0A= R@$+:$+ $@$>6<@$1>:$2 src route canonical=0A= =0A= R$+:$*;@$+ $@$1:$2;@$3 list syntax=0A= R$+@$+ $:$1<@$2> focus on domain=0A= R$+<$+@$+> $1$2<@$3> move gaze right=0A= R$+<@$+> $@$>6$1<@$2> already canonical=0A= =0A= # convert old-style names to domain-based names=0A= # All old-style names parse from left to right, without precedence.=0A= R$-!$+ $@$>6$2<@$1.uucp> uucphost!user=0A= R$-.$+!$+ $@$>6$3<@$1.$2> host.domain!user=0A= R$+%$+ $@$>3$1@$2 user%host=0A= =0A= # Final Output Post-rewriting =0A= S4=0A= R$+<@$+.uucp> $2!$1 u@h.uucp =3D> h!u=0A= R$+ $: $>9 $1 Clean up addr=0A= R$*<$+>$* $1$2$3 defocus=0A= =0A= =0A= # Clean up an name for passing to a mailer=0A= # (but leave it focused)=0A= S9=0A= R$=3Dw!@ $@$w!$n =0A= R@ $@$n handle <> error addr=0A= R$*<$*LOCAL>$* $1<$2$m>$3 change local info=0A= R<@$+>$*:$+:$+ <@$1>$2,$3:$4 <route-addr> canonical=0A= =0A= =0A= #######################=0A= # Rewriting rules=0A= =0A= # special local conversions=0A= S6=0A= R$*<@$*$=3Dm>$* $1<@$2LOCAL>$4 convert local domain=0A= =0A= # Local and Program Mailer specification=0A= =0A= Mlocal, P=3D/bin/mail, F=3DflsSDFMmnP, S=3D10, R=3D20, A=3Dmail -d $u=0A= Mprog, P=3D/bin/sh, F=3DlsDFMeuP, S=3D10, R=3D20, A=3Dsh -c $u=0A= =0A= S10=0A= # None needed.=0A= =0A= S20=0A= # None needed.=0A= =0A= #ident "@(#)etherm.m4 1.15 93/04/05 SMI" /* SunOS 4.1 */=0A= #=0A= # Copyright Notice =0A= #=0A= #Notice of copyright on this source code product does not indicate =0A= #publication.=0A= #=0A= # (c) 1986,1987,1988,1989 Sun Microsystems, Inc=0A= # All rights reserved.=0A= =0A= ############################################################=0A= #####=0A= ##### Ethernet Mailer specification=0A= #####=0A= ##### Messages processed by this configuration are assumed to remain=0A= ##### in the same domain. This really has nothing particular to do=0A= ##### with Ethernet - the name is historical.=0A= =0A= Mether, P=3D[TCP], F=3DmsDFMuCX, S=3D11, R=3D21, A=3DTCP $h=0A= S11=0A= R$*<@$+>$* $@$1<@$2>$3 already ok=0A= R$=3DD $@$1<@$w> tack on my hostname=0A= R$+ $@$1<@$k> tack on my mbox hostname=0A= =0A= S21=0A= R$*<@$+>$* $@$1<@$2>$3 already ok=0A= R$+ $@$1<@$k> tack on my mbox hostname=0A= =0A= =0A= =0A= =0A= ##########################################################=0A= # General code to convert back to old style UUCP names=0A= S5=0A= R$+<@LOCAL> $@ $w!$1 name@LOCAL =3D> sun!name=0A= R$+<@$-.LOCAL> $@ $2!$1 u@h.LOCAL =3D> h!u=0A= R$+<@$+.uucp> $@ $2!$1 u@h.uucp =3D> h!u=0A= R$+<@$*> $@ $2!$1 u@h =3D> h!u=0A= # Route-addrs do not work here. Punt til uucp-mail comes up with = something.=0A= R<@$+>$* $@ @$1$2 just defocus and punt=0A= R$*<$*>$* $@ $1$2$3 Defocus strange stuff=0A= =0A= # UUCP Mailer specification=0A= =0A= Muucp, P=3D/usr/bin/uux, F=3DmsDFMhuU, S=3D13, R=3D23,=0A= A=3Duux - -r -a$f $h!rmail ($u)=0A= =0A= # Convert uucp sender (From) field=0A= S13=0A= R$+ $:$>5$1 convert to old style=0A= R$=3Dw!$+ $2 strip local name=0A= R$+ $:$w!$1 stick on real host name=0A= =0A= # Convert uucp recipient (To, Cc) fields=0A= S23=0A= R$+ $:$>5$1 convert to old style=0A= =0A= =0A= #ident "@(#)ddnm.m4 1.8 93/06/30 SMI" /* SunOS 4.1 */=0A= #=0A= #=0A= # Copyright Notice =0A= #=0A= #Notice of copyright on this source code product does not indicate =0A= #publication.=0A= #=0A= # (c) 1986,1987,1988,1989 Sun Microsystems, Inc=0A= # All rights reserved.=0A= =0A= ############################################################=0A= #=0A= # DDN Mailer specification=0A= #=0A= # Send mail on the Defense Data Network=0A= # (such as Arpanet or Milnet)=0A= =0A= Mddn, P=3D[TCP], F=3DmsDFMuCX, S=3D22, R=3D22, A=3DTCP $h, E=3D\r\n=0A= =0A= # map containing the inverse of mail.aliases=0A= # Note that there is a special case mail.byaddr will cause reverse=0A= # lookups in both Nis+ and NIS.=0A= # If you want to use ONLY Nis+ for alias inversion comment out the next = line=0A= # and uncomment the line after that=0A= DZmail.byaddr=0A= #DZREVERSE.mail_aliases.org_dir=0A= =0A= S22=0A= R$*<@LOCAL>$* $:$1=0A= R$-<@$-> $:$>3${Z$1@$2$} invert aliases=0A= R$*<@$+.$*>$* $@$1<@$2.$3>$4 already ok=0A= R$+<@$+>$* $@$1<@$2.$m>$3 tack on our domain=0A= R$+ $@$1<@$w.$m> tack on our full name =0A= =0A= =0A= # "Smart" UUCP mailer: Uses UUCP transport but domain-style naming=0A= Msmartuucp, P=3D/usr/bin/uux, F=3DCmsDFMhuU, S=3D22, R=3D22, =0A= A=3Duux - -r $h!rmail ($u)=0A= =0A= =0A= ############################################################=0A= #=0A= # RULESET ZERO=0A= #=0A= # This is the ruleset that determines which mailer a name goes to.=0A= =0A= # Ruleset 30 just calls rulesets 3 then 0.=0A= S30=0A= R$* $: $>3 $1 First canonicalize=0A= R$* $@ $>0 $1 Then rerun ruleset 0=0A= =0A= S0=0A= # On entry, the address has been canonicalized and focused by ruleset = 3.=0A= # Handle special cases.....=0A= R@ $#local $:$n handle <> form=0A= =0A= # resolve the local hostname to "LOCAL".=0A= R$*<$*$=3Dw.LOCAL>$* $1<$2LOCAL>$4 thishost.LOCAL=0A= R$*<$*$=3Dw.uucp>$* $1<$2LOCAL>$4 thishost.uucp=0A= R$*<$*$=3Dw>$* $1<$2LOCAL>$4 thishost=0A= =0A= # Mail addressed explicitly to the domain gateway (us)=0A= R$*<@LOCAL> $@$>30$1 strip our name, retry=0A= R<@LOCAL>:$+ $@$>30$1 retry after route strip=0A= =0A= # For numeric spec, you can't pass spec on to receiver, since old = rcvr's=0A= # are not smart enough to know that [x.y.z.a] is their own name.=0A= R<@[$+]>:$* $:$>9 <@[$1]>:$2 Clean it up, then...=0A= R<@[$+]>:$* $#ether $@[$1] $:$2 numeric internet spec=0A= R<@[$+]>,$* $#ether $@[$1] $:$2 numeric internet spec=0A= R$*<@[$+]> $#ether $@[$2] $:$1 numeric internet spec=0A= =0A= # deliver to known ethernet hosts explicitly specified in our domain=0A= R$*<@$%y.LOCAL>$* $#ether $@$2 $:$1<@$2>$3 user@host.sun.com=0A= # deliver to hosts in our domain that have a MX recod=0A= R$*<@$%x.LOCAL>$* $#ether $@$2 $:$1<@$2>$3 user@host.sun.com=0A= =0A= # etherhost.uucp is treated as etherhost.$m for now.=0A= # This allows them to be addressed from uucp as = foo!sun!etherhost!user.=0A= R$*<@$%y.uucp>$* $#ether $@$2 $:$1<@$2>$3 user@etherhost.uucp=0A= =0A= # Explicitly specified names in our domain -- that we've never heard = of=0A= R$*<@$*.LOCAL>$* $#error $:Never heard of host $2 in domain $m=0A= =0A= # Clean up addresses for external use -- kills LOCAL, route-addr ,=3D>: = =0A= R$* $:$>9 $1 Then continue...=0A= =0A= # resolve UUCP-style names=0A= R<@$-.uucp>:$+ $#uucp $@$1 $:$2 @host.uucp:...=0A= R$+<@$-.uucp> $#uucp $@$2 $:$1 user@host.uucp=0A= =0A= # Pass other valid names up the ladder to our forwarder=0A= #R$*<@$*.$=3DT>$* $#$M $@$R $:$1<@$2.$3>$4 user@domain.known=0A= =0A= # Replace following with above to only forward "known" top-level = domains=0A= #R$*<@$*.$+>$* $#$M $@$R $:$1<@$2.$3>$4 user@any.domain=0A= =0A= # if you are on the DDN, then comment-out both of the the lines above=0A= # and use the following instead:=0A= R$*<@$*.$+>$* $#ddn $@ $2.$3 $:$1<@$2.$3>$4 user@any.domain=0A= =0A= # All addresses in the rules ABOVE are absolute (fully qualified = domains).=0A= # Addresses BELOW can be partially qualified.=0A= =0A= # deliver to known ethernet hosts=0A= R$*<@$%y>$* $#ether $@$2 $:$1<@$2>$3 user@etherhost=0A= # deliver to known ethernet hosts that has MX record=0A= R$*<@$%x>$* $#ether $@$2 $:$1<@$2>$3 user@etherhost=0A= =0A= # other non-local names have nowhere to go; return them to sender.=0A= R$*<@$+.$->$* $#error $:Unknown domain $3=0A= R$*<@$+>$* $#error $:Never heard of $2 in domain $m=0A= R$*@$* $#error $:I don't understand $1@$2=0A= =0A= # Local names with % are really not local!=0A= R$+%$+ $@$>30$1@$2 turn % =3D> @, retry=0A= =0A= # everything else is a local name=0A= R$+ $#local $:$1 local names=0A= ------=_NextPart_000_01BC4DDC.7C426080-- [-- Attachment #5 --] 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=US-ASCII X-UIDL: c37a26662b53b55d847bcc6d67df1cb2 On Sun, 20 Apr 1997, jingma wrote: > 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: You are attempting to set up a mail queue for a dialin host. You need to tell sendmail this; I don't know how. Please repost to questions@freebsd.org, you're in over my head. Sorry. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Majorhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704211344.WAA01064>
