Craig_Everhart@TRANSARC.COM (12/04/90)
As I think I explained in at least a mail message, you still need to run sendmail as your SMTP listener, and get it to pass mail destined for local recipients to /etc/queuemail. The sendmail.cf that's generated from {andrew}/overhead/pobbconf/sendmail.cf.pobb will do this, but it's specialized to the Internet mail case (e.g. no UUCP). (Warning to the easily-revolted: raw sendmail code follows.) In outline, you do this. In sendmail.cf ruleset 0, you shoud replace all the lines that resolve to the mailer named ``local'' with lines that resolve to a mailer named something else; I'll use the name ``Xlocal''. Thus, for example, you'd replace the line R$+ $#local$:$1 local names with R$+ $#Xlocal$:$1 local names Replace all the uses of ``local'', or at least all where you expect to receive mail. Now, you have to define this mailer, too. I use the definition: MXlocal, P=/etc/queuemail, F=nlmuFD, S=10, R=20, A=queuemail -r $g -i -s -T -A 0;transarc.com;Network-Mail -a $u (all on one line). Thus, instead of sending local mail to the ``local'' mailer, you'll be sending it to the ``Xlocal'' mailer, which delivers it by piping it to an invocation of /etc/queuemail with the given arguments. (The ``-A 0;transarc.com;Network-Mail'' option says that this mail is unauthenticated according to AMDS, no matter who actually delivers it; you might wish to change the domain name transarc.com to your favorite local domain name.) Why do this, and not simply change the ``local'' mailer to run /etc/queuemail instead of /bin/mail? It's like this: sendmail recognizes the mailer called ``local'' and performs services for it that AMDS doesn't want, such as lookup/recognition of local user names, or substitution of /usr/lib/aliases names. Does that answer your questions? Craig
kw20swk0@TWNITRI1.BITNET (Wai-kong, Sung) (12/04/90)
Now I 've configure two daemons, a outgoing daemon and a delivery daemon which use /etc/oldsendmail to deliver Internet mail. But how can I received mails form Internet? We used to use /usr/lib/sendmail -bd to listen to the SMTP port for incoming mail from other hosts. How can I get the same listenning function in AMSD? Wai-kong Sung, CCL, ITRI
Craig_Everhart@TRANSARC.COM (12/04/90)
This has now gotten to the point of sendmail lore. (a) You must leave the local mailer alone. Sendmail insists on its being there. (b) You must define a new mailer (in addition to the old ``local'' mailer) that uses /etc/queuemail to deliver mail. (c) You must change ruleset 0 in sendmail.cf to pass local mail to the new (e.g. ``Xlocal'') mailer rather than to the old ``local'' mailer. It would appear that you didn't do step (c). You might also not have done step (a); I don't know. You didn't send me (not the list, please) your sendmail.cf. I've only used AMDS in an environment where host names are fully-qualified. I guess you'll find out how it does when they're not. Craig
kw20swk0@TWNITRI1.BITNET (Wai-kong, Sung) (12/05/90)
>(Warning to the easily-revolted: raw sendmail code follows.) >In outline, you do this. In sendmail.cf ruleset 0, you shoud replace >all the lines that resolve to the mailer named ``local'' with lines that >resolve to a mailer named something else; I'll use the name ``Xlocal''. >Thus, for example, you'd replace the line > R$+ $#local$:$1 local names >with > R$+ $#Xlocal$:$1 local names >Replace all the uses of ``local'', or at least all where you expect to >receive mail. > >Now, you have to define this mailer, too. I use the definition: > >MXlocal, P=/etc/queuemail, F=nlmuFD, S=10, R=20, A=queuemail -r $g -i -s -T > -A 0;transarc.com;Network-Mail -a $u Before your message come, I 've tried to change the local mailer to /etc/queuemail liked this Mlocal, P=/etc/queuemail, F=nlmuFD, S=10, R=20, A=queuemail -r $g -i -s -T -A 0;transarc.com;Network-Mail -a $u and then I tried to change mailer to Xlocal according to your message. But they all resulted the same; two files, dfAAXXXXX and qfAAXXXXX queued in the directory /usr/spool/mqueue for each outside mail. I enclosed a sample of these files. Is there still anything needed to be modified in the sendmail.cf? Can I make queuemail to output some logfiles for debuggging whenever it is invoked by /usr/lib/sendmail? :::::::::::::: dfAA01307 :::::::::::::: REPLY!! :::::::::::::: qfAA01307 :::::::::::::: P1302 T660300188 DdfAA01307 MDeferred S<sung@next> H?P?return-path: <sung@next> Hreceived: from next (next) by w2sun2. (4.0/SMI-4.0) id AA01307; Tue, 4 Dec 90 16:43:08 CST H?x?full-name: Hreceived: by next (NeXT-1.0 (From Sendmail 5.52)/NeXT-1.0) id AA04763; Tue, 4 Dec 90 16:44:58 GMT+0800 Hdate: Tue, 4 Dec 90 16:44:58 GMT+0800 HFrom: sung@next (sung) Hmessage-id: <9012040844.AA04763@ next > HTo: sung+@w2sun2 Hsubject: Re: test to NeXT R<sung+@w2sun2>