Subject: imap without username/password

From: [email-masked] (Barry D)
Date: 20 Apr 1995 11:26:38 -0400

I'm trying to install pine on a network of sun machines, and want to use 
our server machine for imap (currently we NFS mount the mail spool 
directories). However, I don't want our users to have to enter their 
username and password when they start pine. Reading the Pine Technical 
Notes (under installing imapd), it looks like I should be able to do this 
using the standard rsh mechanism.

Doesn't appear to work however, since I'm always prompted for username 
and password. Although the documentation only mentions creating a link to 
rimapd, I have also changed the inetd.conf file. 

In all honesty, I haven't dug through the code to figure this out - kinda 
hoping someone can save me that trouble. Any suggestions?

-----
Barry D. Hassler                                    [email-masked]
Executive Vice President,
Principle Communications Consultant

Hassler Communication Systems Technology, Inc       OFFICE: +1 513-390-7486
5329 Ridgewood Road West                                    (VOICE AND FAX)
Springfield, Ohio 45503-5631

---

From: Barry Cornelius <[email-masked]>
Date: Thu, 20 Apr 1995 17:24:37 +0100 (BST)

> rimapd, I have also changed the inetd.conf file. 

We use the mechanism that you describe, and no-one has to quote their 
password.  There are a number of reasons why it might be happening each 
time that you use Pine.  It may because of one or more of the following: 

(1) Your .cshrc file does output to the screen, e.g., it uses the
    echo command.  You will need to remove the appropriate command(s) 
    from the .cshrc file.

(2) Your .cshrc file contains one or more of the Unix commands biff, 
    mesg, stty.  Probably the command can be moved to your .login file.

(3) None of the above, in which case over to someone else.
--
Barry Cornelius                      Telephone: (0191 or +44 191) 374 4717
Academic Support Group, IT Service,            IT Service Office: 374 2892   
Science Site, University of Durham,                          Fax: 374 3741
Durham, DH1 3LE, UK                   E-mail: [email-masked]

---

From: Dan Schlitt <[email-masked]>
Date: Thu, 20 Apr 1995 13:15:44 -0400 (EDT)

Whether or not it solves this specific problem, it is a good idea to have 
something like 

#         skip remaining setup if not an interactive shell

if ($?USER == 0 || $?prompt == 0) exit

#          settings  for interactive shells

in the .cshrc file toseparatethose things that you always want from those 
things that you only want for an interactive shell.

/dan

-- 

Dan Schlitt                           School of Engineering Computer Systems
[email-masked]        City College of New York
(212)650-6760                         New York, NY 10031

---

From: Mike Brudenell <[email-masked]>
Date: Fri, 21 Apr 1995 09:24:32 +0100 (BST)

[Apologies if you have already tried/done these... :-]

*  The standard way of testing such things is to try giving the 
equivalent rsh command from a client machine "by hand":

	rsh serverhost /etc/rimapd

This may then give you some useful information.  In particular, something 
like "access denied" implies that the server host doesn't trust your 
client for the rsh mechanism.

*  For the "rsh xxx /etc/rimapd" to work the server machine must "trust" 
the client.  This can be done on a per-user basis by having a suitably 
set up ".rhosts" file in each users' home directory (Be *careful* when 
setting these up!).  Alternatively a "global" file can be set up in the 
form of "hosts.equiv".

Mike Brudenell                                               <[email-masked]>
------------------------------------------------------------------------------
The Computing Service, University of York, Heslington, York, YO1 5DD, UK
Phone: +44-(0)1904-433811  FAX: +44-(0)1904-433740

---

From: [email-masked] (Trey Harris)
Date: 21 Apr 1995 20:19:24 GMT

>using the standard rsh mechanism.

This is how I do all my mail access.  In fact, I am planning to set it in 
the pine.conf.fixed so that all my 20,000 users are forced to use Pine 
in this manner (so that I can remove the NFS link to /var/spool/mail 
which we currently use and operate our mail fileserver as a sealed IMAP 
server).  I have noticed no difference in mail usage in the past six 
months I have been operating in this manner (except for the problem 
when Pine gets suspended and doesn't send NOOPs and the connection 
closes).  I don't think my users will even notice when I make the 
change (except that those users that use non-IMAP MUAs will be forced 
to switch to Pine).

>rimapd, I have also changed the inetd.conf file. 

Are you able to do other rsh commands from the login machine without a 
password?  Can you do "rsh imap-machine-name /etc/rimapd" without a 
password?  If not, you need to set the /etc/hosts.equiv or .rhosts file 
or the permissions on /etc/rimapd or on imapd such that you can.
-- 
Trey Harris                              http://sunsite.unc.edu/harris
  System Administrator, Project Isis, Office of Information Technology
                       The University of North Carolina at Chapel Hill