[comp.os.minix] UUCP for Minix

andyb@hasvcr.UUCP (Andy Babinszki) (07/30/89)

I have recently brought up a MINIX system ( v 1.2 ) on an IBM AT, and would
like to tie it into usenet for news and mail.  MINIX does not come with uucp
however.  I would like to know if uucp is available for MINIX or if the source
is available so that it can be ported to MINIX.

Thankyou in advance,

Andy Babinszki

-------------------------------------------------------------------------------
  Have I lost my mind??  Yes as a matter of fact I have, thankyou for asking.
Andy Babinszki
andyb@hasvcr.wimsey.bc.ca

phi@insearch.cam.org (Phi) (07/12/90)

>From: Fred van Kempen <waltje%MINIXUG.HOBBY.NL@VM1.NoDak.EDU>
>Subject:      My U-MAIL, W-MAIL and UUCP packages: the status !!

>The new W-MAIL has the following extras:

>1.  .......
>2.  Very much improved (really mailx-style) multi-page summary.
>    Wim van Dorst rewrote the entire summary() code.  It looks great!

	It is very helpful if the summary also gives size of each message

>3.  Mail Editor and Tilde Escapes.
>    When inputting a message from stdin, you can now use the mailx-style
>    "tilde" escapes (like ~e, ~v, ~r, ~mN, ...) for editing messages.
>    This also works when (r)eplying to a message; you can now insert the
                           ^^^^^^^^^^^^^^^^^^^^^^
>    message to which you are replying (prefixed by "> "s).

	Can W-MAIL reply mail coming from remote sites. Presently it 
	assumes all replies are for local mail only ( or I don't know 
	how to use it at its full strength ?)

I am sending this mail with the UUCP package that Fred is discussing,
it runs under Minix v1.5 inside an XT clone which is devoted for mail
and UUCP. 
I started to receive minix-l from vm1.nodak.edu yesterday.
	
		THANK YOU ALL WHO MADE THIS POSSIBLE.

Special thanks to Marc Boucher@CAM.ORG, Peter Housel, Fred Van Kempen 
and Glen Overby (in alphabetical order :-)



Now, to some technical points:


1/-	Everything is OK when I used uutry to invoke uucico manually. 
	When I put uupoll in crontab, uucico.log showed that uucico was 
	receiving files OK but lmail could not diliver the mail (permission
	problem) and it just cleans up /usr/spool/uucp.
	(Please see the relevant information at the end of this message.)

	I removed uupoll from crontab and am receiving mail manually with 
	uutry.

2/-	I have to issue 2 or more "modem -o tty1" to put uugetty in pause
	state.

3/-	Also, kermit is stuck at 300 baud. To overcome this I put

		"! stty 2400 < /dev/tty1" 

	in .kermrc ( on top of "stty 2400 < /dev/tty1" in /etc/rc).

4/-	When I save a message erroneously with "s 2 group", the current 
	message instead of message #2 as intended, is saved as "2 group"
	which I could never access ( it's ls'ed though .)

5/-	dead.letter has mode 600 and owner root.daemon so a regular user
	can't read his own dead.letter.


	Topic now changed to " How to manage UUCP and USENET".
	
1/-	How can I put Postmaster to work. What would be the proper
	entries in /etc/passwd and /etc/group for daemon, mail, uucp,
	Postmaster .... (all the entries for UUCP and mail.)

2/-	Does anyone know if CNEWS can be compiled with the infamous current
	PC ACK-C compiler.

***************** Following is the relevant information.  ******************
	(That might have caused the problem with uupoll in /usr/lib/crontab)

/usr/spool
drwxrwxrwx  2 daemon daemon      32 Jan  1    70 locks
drwxrwxrwx  2 daemon daemon      80 Jul  9  9:29 mail
drwxrwxr-x  2   uucp   uucp     336 Jul  9  9:28 uucp
drwxrwxrwx  2   uucp   uucp      80 Jan  1    70 uucppublic

/tmp
drwxrwxrwx  2    bin    bin     176 Jul  9  9:36 /tmp

/usr/spool/mail
-rw-rw----  1    phi daemon    1440 Jul  9  9:29 phi
-rw-rw----  1   root daemon    3028 Jul  9  9:29 root

/usr/bin
-rwsr-sr-x  4   root daemon   24536 Jul  6 15:31 /usr/bin/lmail
-rwsr-sr-x  4   root daemon   24536 Jul  6 15:31 /usr/bin/mail
-rwsr-sr-x  2   root daemon   23648 Jul  6 15:46 /usr/bin/rmail

/bin
-rwxr-xr-x  1 daemon daemon   10246 Jan  1    70 /bin/cron

/usr/lib/uucp
-r-sr-s---  1   uucp   uucp     127 Jul  7 16:55 /usr/lib/uucp/uutry
-r-sr-s---  1   uucp   uucp     554 Jul  7 16:55 /usr/lib/uucp/uupoll

/etc/passwd
root:U/ot|Jg{1X0G3:0:0::/root:
uucp:*:40:40:Unix-Unix Copy:/usr/spool/uucp:/usr/lib/uucp/uucico
daemon:*:1:1::/etc:
bin:*:2:2::/bin:
phi:jj000KW07SW00:3:0:Phi:/usr/phi:

/etc/group
root::0:root
other::1:
bin::2:root,bin,daemon,uucp
sys::3:root,bin,sys,adm
adm::4:root,adm,daemon
uucp::40:uucp
mail::7:root
daemon::12:root,daemon
cron::16:
lp::18:lp
mem::20:
sysadmin::23:sysadmin
group::50:

waltje@minixug.hobby.nl (Fred van Kempen) (07/18/90)

From article <24365@nigel.udel.EDU>, by phi@insearch.cam.org (Phi):
> 	It is very helpful if the summary also gives size of each message
It does:

	W-MAIL 3.59/MINIX (07/09/90).  Type ? for Help.
	"/usr/spool/mail/waltje": 5 message(s)
	>  1 News Administrato   8 Jul 14:58   35/1218   Re: (none)
	   2 juts!cccmvs!craig   8 Jul 14:58   28/1179   Ken Stailey's symbolic link ki
	   3 Ernie L. Ellenber   8 Jul 14:58   24/984    Re: minix symbolic links
	   4 Theresa Krofta      9 Jul 12:52   31/934    <none>
	   5 Matthias Pfaller   10 Jul 14:28   32/1188   Re: (none)
	W-MAIL [1]& 

The command help:
		   ** W-MAIL Commands **
	
	?	This help
	!	Shell Command Escape
	-	Previous letter
	+	Next letter
	<ENTER>	Take next letter, and show it
	d	Delete current letter
	f	Forward a letter
	F	Forward a letter (quoted)
	h	Display a summary of letters
	p	Print a letter again
	q	Quit, update mailbox
	r	Reply to the current letter
	s	Save current letter
	t	Type a letter, no paging
	w	Save letter without header
	x	Exit, do not update mailbox
	z	Display next page of summary

The editor help:

		*** W-MAIL Editor Help ***
	
	~?		This Help Screen
	~!		Escape into Shell
	~A		Force .signature to be appended to message
	~a		Append .signature to message if not autosig
	~e		Invoke line editor on current message
	~m msgno	Insert message from the current mailbox
	~q		Quit (with save) sending this message
	~r filename	Insert file into current message
	~R filename	Insert quoted file into current message
	~v		Invoke visual editor on current message
	~x		Exit (abort) sending this message

The $HOME/.mailrc:

	#
	# This is the MicroWalt W-MAIL ".mailrc" file.
	#

	# Boolean variables:
	set autosig
	set askcc

	# Ordinairy variables:
	set Eeditor	= /bin/ed
	set Veditor	= /usr/bin/vi
	set Prompt	= W-MAIL [%d]& 
	set folder	= mail
	set record	= /user/waltje/mail/out_going

	# Alias lists:
	alias andy	ast@cs.vu.nl
	alias wayne	loft386.uucp!ledgepc!wayne
	alias kevin	SA44@liverpool.ac.uk
	alias youki	youki@mercury.ics.osaka-u.ac.jp
	alias mike	rdc30med@nmrdc1.nmrdc.nnmc.navy.mil
	alias minix	info-minix@udel.edu
	alias beta	beta-minix@plains.nodak.edu
	alias refs	minix-refs@plains.nodak.edu

	# Group lists:
	group mugnet	root root@jpny root@wiesje root@hot root@uwalt

Now, this looks well, doesn't it?

> 	Can W-MAIL reply mail coming from remote sites. Presently it 
> 	assumes all replies are for local mail only ( or I don't know 
> 	how to use it at its full strength ?)
I am afraid it is the latter case.  I _always_ reply ....
However, the return address determination has been improved a lot.

> I am sending this mail with the UUCP package that Fred is discussing,
> it runs under Minix v1.5 inside an XT clone which is devoted for mail
> and UUCP. 
Hurray!

> Special thanks to Marc Boucher@CAM.ORG, Peter Housel, Fred Van Kempen 
> and Glen Overby (in alphabetical order :-)
From me: you're welcome.  Just keep improving W-MAIL, U-MAIL and UUCP!

> 
> Now, to some technical points:
> 
> 
> 1/-	Everything is OK when I used uutry to invoke uucico manually. 
> 	When I put uupoll in crontab, uucico.log showed that uucico was 
> 	receiving files OK but lmail could not diliver the mail (permission
> 	problem) and it just cleans up /usr/spool/uucp.
> 	(Please see the relevant information at the end of this message.)
>		 /usr/spool/mail
>		 -rw-rw----  1    phi daemon    1440 Jul  9  9:29 phi
>		 -rw-rw----  1   root daemon    3028 Jul  9  9:29 root
				      ^^^^^^
Aaahhh ----------------------------->	Why?
On minixug, it is:

	-rw-------  1 arthurg  nlmug         553 Jun  9 23:50 arthurg
	-rw-------  1 baron    nlmug          37 Jul 10 02:01 baron
	-rw-------  1 ennofb   nlmug        3935 Jul 10 00:31 ennofb
	-rw-------  1 info     sys          6916 Jul 16 19:45 info
	-rw-------  1 jeroen   nlmug          36 Jul 10 02:00 jeroen
	-rw-------  1 klarenbe nlmug        2200 Jul 10 19:38 klarenbeek
	-rw-------  1 meijers  nlmug        4230 Jul 15 20:15 meijers
	-rw-------  1 uuadmin  uucp         6254 Jul  7 11:47 uuadmin
	-rw-------  1 waltje   user            0 Jul 16 22:57 waltje
	-rw-------  1 welch    nlmug        1134 Jul  8 21:46 welch

> 	I removed uupoll from crontab and am receiving mail manually with 
> 	uutry.
I still am confused.  First off, make sure that all mailboxes are owned
by the addressee (so, "waltje.user" in my case).  Currently, it looks
like your W-MAIL makes it "waltje.daemon" (phi.daemon).

If it still fails, please wait for the new W-MAIL release.

> 2/-	I have to issue 2 or more "modem -o tty1" to put uugetty in pause
> 	state.
Huh?  No problems here!

> 3/-	Also, kermit is stuck at 300 baud. To overcome this I put
> 
> 		"! stty 2400 < /dev/tty1" 
> 
> 	in .kermrc ( on top of "stty 2400 < /dev/tty1" in /etc/rc).
Huh?  Maybe a kermit with the old ioctl() call linked in?

> 4/-	When I save a message erroneously with "s 2 group", the current 
> 	message instead of message #2 as intended, is saved as "2 group"
> 	which I could never access ( it's ls'ed though .)
Try ls -l '2 group'	# note the quotes!

> 5/-	dead.letter has mode 600 and owner root.daemon so a regular user
> 	can't read his own dead.letter.
Correct; has been fixed now.

> 	Topic now changed to " How to manage UUCP and USENET".
> 	
> 1/-	How can I put Postmaster to work. What would be the proper
> 	entries in /etc/passwd and /etc/group for daemon, mail, uucp,
> 	Postmaster .... (all the entries for UUCP and mail.)
On minixug:

> /etc/passwd
uucp:p9Ne43st2OmLE:40:40:UUCP Network Daemon:/usr/spool/uucppublic:/usr/lib/uucp/uucico -x3
nuucp:/AAVJ3UCtfmF.:40:40:UUCP Network Daemon:/usr/spool/uucppublic:
postmaster:*:41:40:Internet Mail Daemon:/usr/spool/uucppublic:
uuadmin:*:42:40:UUCP Administrator:/usr/spool/uucppublic:

UMAIL still assumes that uid and gid of "uucp" are 40 and 40, resp.
This has been fixed now (it now uses getpwnam()).

> 2/-	Does anyone know if CNEWS can be compiled with the infamous current
> 	PC ACK-C compiler.
I use B-News here, and I will post a small news processor of my own soon
(W-NEWS; what else?).  It comes complete with the Vnews reader.

> ***************** Following is the relevant information.  ******************
> 	(That might have caused the problem with uupoll in /usr/lib/crontab)
> 
On minixug:

> /usr/spool
drwxrwx---  3 daemon   daemon         80 May 20 00:12 at
drwxrwxrwx  2 uucp     uucp           64 Jul 16 18:42 locks
drwx------  2 lp       daemon         48 Jul  8 23:18 lpd
drwxrwxrwx  2 uucp     uucp          448 Jul 16 22:57 mail
drwxrwxr-x  4 news     news          128 Jul  4 23:32 news
drwxrwxr-x  2 uucp     uucp         1840 Jul 16 22:57 uucp
drwxrwxrwx  2 uucp     uucp          192 Jul  6 23:05 uucppublic

> /usr/bin
-r-sr-xr-x  5 root     sys         32210 Jul 10 01:27 /usr/bin/Mail
-r-sr-xr-x  1 root     sys         18752 May 20 16:07 /usr/bin/binmail
-r-sr-xr-x  5 root     sys         32210 Jul 10 01:27 /usr/bin/lmail
-r-sr-xr-x  5 root     sys         32210 Jul 10 01:27 /usr/bin/mail
-r-sr-xr-x  5 root     sys         32210 Jul 10 01:27 /usr/bin/mailx
-r-sr-xr-x  2 root     sys         23654 Jul  8 21:04 /usr/bin/rmail
-r-sr-xr-x  1 root     sys         16728 May 20 16:07 /usr/bin/stdmail

("wmail" itself is in /usr/local/bin/wmail; the fifth link)

> /bin
-r-xr-xr-x  1 bin      sys         10198 May 20 16:07 /usr/bin/cron

> /usr/lib/uucp
-rw-rw----  1 uucp     uucp          113 May 24 13:01 L-devices
-rw-rw----  1 uucp     uucp          808 Jul  1 23:58 L.sys
drwxrwx---  2 uucp     uucp          112 May 26 21:30 Log
-rw-rw----  1 uucp     uucp            5 Jul 16 22:57 SPOOLSEQ
-r-sr-xr-x  1 uucp     uucp        11942 May 20 16:07 call
-r-sr-x---  1 uucp     uucp           94 May 20 16:07 cleanlog
-r-sr-sr-x  2 uucp     uucp         3662 May 20 16:07 hostname
-rw-rw----  2 root     sys          3375 Jul 14 15:14 umail.cf
-r-sr-sr-x  1 uucp     uucp        30850 Jun 14 19:10 uucico
-r-sr-s---  1 uucp     uucp           42 May 20 16:07 uuclean
-r-sr-sr-x  2 uucp     uucp        12726 Jun 14 19:39 uucp
-r-sr-sr-x  2 uucp     uucp         3658 May 20 16:07 uuname
-r-sr-s---  1 uucp     uucp          577 Jun 19 13:02 uupoll
-r-sr-s---  1 uucp     uucp          155 Jun  8 15:27 uutry
-r-sr-sr-x  2 uucp     uucp        11904 Jun 14 19:10 uux
-r-sr-sr-x  1 uucp     uucp        11338 Jun 14 19:10 uuxqt

Anyway, hope this helps a bit.
Beta testing seems to be almost done (no complaints from the beta
testers yet...), so the posting of this new version of W_MAIL will
be shortly.

Then, U-MAIL will be "tortured" followed by UUCP.

Regards,
	Fred.
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| MINIX User Group Holland	  UUCP: waltje@minixug.hobby.nl |
| c/o Fred van Kempen,		    or: hp4nl!minixug!waltje    |
| Hoefbladhof  27		                  		|
| 2215 DV  VOORHOUT						|
| The Netherlands	"A good programmer knows his Sources"	|
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+

olet@idt.unit.no (Ole Tr|an) (01/21/91)

Does anybody know where I migth locate the famous uucp-utilities for Minix? 
Right now I have just a free-standing AT-clone running Minix 1.5 (right out of the box). I am going to buy a modem soon, and I would like to see the uucp-package running, using the telephone wire. I know this is a little bit ambutios ... anyway, I like Minix, and adding the uucp-suite seems tasty.
Thanx. :-)