Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!TRANSARC.COM!Craig_Everhart From: Craig_Everhart@TRANSARC.COM Newsgroups: comp.soft-sys.andrew Subject: Re: How to receive Internet mails in AMDS? Message-ID: Date: 3 Dec 90 17:44:14 GMT References: <901203215531.52c@ersob.itri.org.tw> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 36 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