Path: utzoo!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cs.dal.ca!iisat!kevin From: kevin@iisat.uucp (Kevin Davies) Newsgroups: comp.mail.uucp Subject: Re: Xenix Mail Summary: Xenix mail & Smail (2.5) Keywords: Xenix, Mail, Tandy Message-ID: <1990Jun26.231126.14710@iisat.uucp> Date: 26 Jun 90 23:11:26 GMT References: <102@rwing.UUCP> Organization: International Information Service, Dart., NS. Lines: 45 In article , peter@ficc.ferranti.com (Peter da Silva) writes: > > /usr/bin/mail > calls /usr/lib/mail/execmail > which calls /usr/lib/mail/mail.local > > The calling sequences of the guys in /usr/lib/mail are undocumented. > > I'm doing the same thing. What I've done so far is stick smail and svbinmail > in /usr/bin, and made execmail a script to call smail. Problem is, lmail > now calls back to execmail. I guess that replacing lmail with mail.local > in smail (LMAIL(...)) is the thing to do, but what's the calling sequence? NOTE : this experience is based on Tandy Xenix/286. The mailing system under the T6000 3.2 seems to be the same as that under the Tandy Xenix for '286 machines. I just scraped /usr/bin/mail although I suppose I need not have. But, anyway, this is how I incorporated smail into the mail system while preserving local & micnet mailing. Configure Smail (in this case, 2.5) as you need, and make the local mailer (LMAIL) /usr/lib/mail/execmail with the options required as : execmail -f from_user to_user There are other options available, but I did not go into them. Providing an incorrect option will produce bounced mail back to you with proper execution syntax : ============ Transcript follows ============ usage: execmail [-mnr] [-f from] [-h hopcount] user ... ============== Message follows ============= To keep the current /usr/bin/mail (assuming its the dumb mailer, not xmail or mailx), you could move execmail to a different name, and move smail into its place. Then for local mail, have smail call the _real_ execmail by its new name. -- Kevin Davies International Information Service (IIS) UUCP: {uunet,utai,watmath}!dalcs!iisat!kevin Bitnet/Uucp: kevin@iisat.uucp Arpanet: kevin%iisat.uucp@uunet.uu.net