                   P I N E   M A I L E R   F O R   V M S
                   =====================================

			University of Washington

                          Version 3.91-A for VMS
                             Final Release

                     Quick binary installation guide

                           Claudio Allocchio


0. FOREWORD
===========

PINE is a screen based mail and news program. Originally written for unix
systems, by the University of Washington, it has been ported to a number of
others. This implementation is for the Digital Equipment Corporation's OpenVMS
operating system. 

1. OVERVIEW
===========


1.1 Introduction

This binary kit contains all you need to build a working PINE mailer, also a 
POP3 server and an IMAP server, for OpenVMS.

This is a quick installation guide for installation from the binary kit. The
complete documentation is included into AAAREADME.TXT and other relevant files
contained into [.DOC]


1.3 Pre-requisites

1.3.1 Hardware

PINE utility for OpenVMS runs both on VAX and AXP processors. The binary kit
contains elements to build PINE on both of them. PINE, as any other MIME
conformant User Interfaces, requires some memory to process easily large
multimedia messages. A minimun of 12 MB of memory is suggested for good
performance.

The binary installation kit is a "fat" kit, both for VAX and AXP processors,
supporting NETLIB, MULTINET and a null TCP/IP stacks. As such it requires
disk space at installation time, but produces them small executable for
production:

	Installation:	80000 blocks
	Production:	 5000 blocks

If you start from the "ZIP" kit, the the installation disk space is reduced to
45000 blocks.

1.3.2 Software

Before building and installing PINE and the various supporting utilities, you
will need the following software:

  *  A C run-time library.  This is usually included into the OpenVMS operating
     system by default.

     IMPORTANT NOTE:  Due to a change in the contents of the DEC C RTL and
     STARLET under certain combinations of DEC C and OpenVMS, you find that the
     link fails due to missing definitions of the symbols SYS_NERR and
     SYS_ERRLIST. Digital have provided a patch for this called ALPACRTxx_vvv or
     VAXACRTxx_vvv where 'xx' is the version of the path and 'vvv' is your VMS
     version number. Contact DEC support for details.

  *  A TCP/IP network stack.  The recommended interface is NETLIB (version 2.0
     or above) which provides a stack independent interface to all of the
     popular OpenVMS TCP/IP stacks, such as UCX, MULTINET, CMU, Pathway etc.
     NETLIB is available as freeware from:

	ftp://ftp.madgoat.com/madgoat/netlib020.zip

     and should be installed first.

If you have a version of NETLIB that is supplied as part of another Madgoat
product, such as MX, you may find that a required header file "NETLIBDEF.H" is
missing. If it is not there, please obtain the separate NETLIB product, noted
above, and ensure that this file is present before starting to build the
software.

In the absence of NETLIB, there is direct support for MULTINET. If you have no
TCP stacks at all, then there is a null stack available which restricts PINE to
local mailboxes only and prevents any of the network servers from functioning.

If your underlying stack is MULTINET 3.5A or 3.5B then you should possibly
upgrade to MULTINET 4.0B (or later). 


1.3.3 Essential documentation to read first

You should read certain documentation files and command procedures before
attempting to build or install. At the very least, these are essential:

          * 00BINARIES.TXT      (this file) the quick guide for binary 
				installation
	  * AAAREADME.TXT	for complete build/install/config instructions

Additional details can be found into:

	  * PINE_SETUP.COM	for the logicals/directory structure of PINE
	  * IMAPD_SETUP.COM	for the logicals/directory structure of IMAPD
	  * IPOP3D_SETUP.COM	for the logicals/directory structure of IPOP3D
	  * CCLIENT_SETUP.COM	for the logicals to configure C-CLIENT library

Other files, giving technical info on PINE etc. can be found in the [.DOC]
subdirectory. May be useful for setting up PINE.CONF files and gaining an
understanding of PINE and IMAP concepts.

If you will be using the IMAP or POP servers, then be sure to read the notes on
setting up the underlying stack. See AAAREADME.TXT


1.4 Building from binaries

   1.   Create a directory for the binaries and unpack to create a directory 
        tree into it, preserving the directory structure.

        - If you received an OpenVMS BACKUP save set then unpack with:

     $ backup/log/new_version PINEVMSBIN0391A.BCK/SAVE yourdisk:[yourdir...]*.*

           example, where the selected directory is DKA300:[MB$.PINE]

     $ backup/log/new_version PINEVMSBIN0391A.BCK/SAVE DKA300:[MB$...]*.*
     $ rename/nolog/noconf DKA300:[MB$]PINE391A.DIR;1 DKA300:[MB$]PINE.DIR;1

        - If you received a ZIP save set then set default to the selected 
          directory and unpack with:

     $ set default yourdisk:[yourdir]
     $ unzip PINEVMSBIN0391A.ZIP

           example, where the selected directory is DKA300:[MB$.PINE]

     $ set default DKA300:[MB$.PINE]
     $ unzip PINEVMSBIN0391A.ZIP

   2.   From the top level of this tree (DKA300:[MB$.PINE] in our example),
	execute the PINEINSTALL.COM procedure with zero or more parameters 
	to select the build options. With no build options supplied, the 
	procedure will autoconfigure itself for the appropriate network stack
	but will build PINE with the /TRACEBACK option. Remember that if you
        need to install PINE as a privileged image, then the NOTRACEBACK
        qualifier is needed. Later, you can tailor the build by supplying a 
	list of options; the table below describes the options available. 

        Important options are:
          * Choice of network support:  NETLIB (recommended) or MULTINET.
            or NOTCP. NETLIB will support all of the major VMS TCP/IP stacks.

          * Choice of /TRACEBACK (default) or /NOTRACEBACK linker option.

        The default suggested installation command for the first time is:

           $ @PINEINSTALL NOTRACEBACK

   3.   Execute the post installation tasks to complete installation.


1.4.1 Common PINEINSTALL Options

These are the parameters for the PINEINSTALL procedure. They must
be specified in full (no abbreviations) and a comma-separated list is allowed.
Misspelled options are ignored without comment.

-------------------------------------------------------------------------------
Parameter       Effect                                  Default
-------------------------------------------------------------------------------

NETLIB          Select the NETLIB TCP interface    )    Auto-detect [note 1]
MULTINET        Select the MULTINET TCP interface  )    ... or use null stack
NOTCP           Select no TCP/IP interface

NOTRACEBACK     Link executable with /NOTRACEBAK        Link with /TRACEBACK
                                                        [Note 2]

-------------------------------------------------------------------------------

NOTE 1:
  If neither NETLIB or MULTINET is supplied as a parameter, the procedure will
  auto-detect the stack and use whichever is found. If both exist,  NETLIB is
  used in preference. If neither are found, a null network stack is used. This
  prevents any of the servers functioning but allows manipulation of local
  mailboxes through PINE; sending of mail through is only possible via the
  foreign mail interface.

NOTE 2:
  In some cases the produced images must be installed with the INSTALL utility
  (some privileges are required to access certain queues or just to have the
  software run more efficiently on the system). As images can be installed
  only if linked with /NOTRACEBACK qualifier, this VMSBUILD option is needed
  to produce appropriate executable images.

Examples:

  @PINEINSTALL
        Build with all defaults; autodetect stack

  @PINEINSTALL NOTRACEBACK
        Build an installable image; autodetect stack

  @PINEINSTALL MULTINET,NOTRACEBACK
        Build using the direct MULTINET support (even if NETLIB installed),
        and an installable image.


1.5 Post-Installation

Once the software has been built, producing a number of executables, a small
number of actions remains to have it in production.

1.5.1 Configuration

There are two possible methods: guided configuration using PINE_CONFIG.COM
procedure or manual configuration, editing manually the relevant files.

The suggested method (expecially for the first time) is guided configuration.

1.5.1.1 Guided Configuration with PINE_CONFIG.COM

The PINE_CONFIG.COM procedure can be executed whenever you need to change
the main PINE configuration parameters. If you did not already executed it
at the end of the PINEINSTALL.COM procedure, you can recall it now with

	$ @PINE_CONFIG

The procedure produces as output the following configuration files:

	PINE_ROOT:[000000]PINE_SETUP.COM,
        IMAPD_ROOT:[000000]IMAPD_SETUP.COM,
	IPOP3D_ROOT:[000000]IPOP3D_SETUP.COM,
	IMAPD_ROOT:[000000]CCLIENT_SETUP.COM
	PINE_CONF_DIR:PINE.CONF-FIXED
	PINE_CONF_DIR:PINE.CONF
	IMAPD_CONF_DIR:IMAPD.CONF

 *** WARNING *** The procedure tries to propose existing settings as default
 values and saves eventual previous configuration files. However if you created
 special configuration values, or added new settings into the configuration
 files, you them must re-align the newly created configuration files, applying
 your old modifications to them.

The procedure asks you some questions, proposing the suggested default
answers for you site. Below is the list of questions and their meaning.

Whenever PINE_CONFIG procedure can determine a suitable default, then this
value is suggested; However, at least the first time, you should be careful
in answering correctly to all answers.

  - RFC822 local default domain? [elettra.trieste.it]:

    This is the local domain name which will be attached to all local
    addresses in outgoing messages.

  - RFC822 address of Mail-11 (DECnet) gateway? [elettra.trieste.it]:

    This is the RFC822 address of an host which runs an SMTP/Mail-11
    gateway and can handle correctly RFC1405 style ("node::user"@domain)
    addresses. Usually hosts with MULTINET installed are suitable for
    this purpouse. If you have a local trusted mailer, check with the
    mailer administrator if it can handle correctly Mail-11 addresses
    before inserting here its host name.

  - RFC822 address of X.400 gateway?  [synw06.elettra.trieste.it]:

    This is the RFC822 address of an host which runs a MIXER (SMTP/X.400)
    gateway. If you do not have one available, the cosine-gw.infn.it
    gateway can be defined as such.

  - RFC822 address of SMTP Server?  [LOCAL]:

    If you configure PINE to send out messages via a remote SMTP trusted
    mailer (like your local domain mailer), then insert here its host name.

    If you have available on the local host where you are installing PINE
    a VMS-Sendmail (including cluster installation) or a MULTINET SMTP, then
    it is suggested to answer LOCAL, and then select a local queue at the next
    question.

  - Local SMTP queue for outgoing messages?  [GV2$SMTP_SYNW06]:

    This is the name of the local VMS-Sendmail or MULTINET SMTP queue to be
    used for outgoing messages submission. This question is skipped if you
    define a remote SMTP mailer as outgoing server.

  - VMSmail SMTP interface prefix?  [smtp]:

    Usually SMTP to Mail-11 (VMSmail) interfaces prefix incoming messages
    in RFC822 format with "smtp%" or similar strings. Insert here the
    appropriate string.

  - Use Standard (RFC1405) encoding for Mail-11 addresses?  [YES]:

    Mail-11 addresses are encoded by default using RFC1405 standard syntax.
    If you want to disable this feature, and encode Mail-11 addresses using
    an old style unreplyable mapping, answer NO to this question.

  - Default incoming messages folder?  [NEWMAIL]:

    Incoming messages are usually delivered by OpenVMS mail utilities into
    NEWMAIL folder. However, if your local utility delivers incoming messages
    into a different folder, then you can select here a different folder name.
    PINE will open the folder defined here as its standard INBOX folder.

  - Move messages out of NEWMAIL after reading?  [NO]:

    VMSmail, by default, moves read messages out of NEWMAIL (or equivalent)
    folder into "MAIL" folder. If you wish to have PINE to behave in the same
    way, then you need to answer "YES" to this question, and define the
    folder name where messages are moved answering to the next question.

    However most of the IMAPD servers actually do NOT move read messages out
    of INBOX (NEWMAIL) folder automatically. For a wider compatibility it is
    suggested to answer NO to this question, leaveing read messages into 
    INBOX folder.

  - Default folder for read messages?  [MAIL]

    If you answer YES to the previous question, the the procedure ask you then
    name of the default folder where messages read from INBOX folder will be 
    moved after reading. If you answer NO to the previous question, then this
    question is skipped.

  - Purge deleted messages from folders?  [YES]:

    PINE usually deletes messages "marked for delete" when closing a single
    folder (PINE does NOT use WASTEBASKET folder like VMSmail). If you want
    not to delete these messages when exiting a folder, then answer NO.

  - Default folder for copies of sent messages?  [SENT-MESSAGES]:

    PINE store a copy of sent messages into a default folder. While VMSmail
    uses NEWMAIL for this function, within PINE you can explicitly choose
    a specific folder name.

  - IMAPD Log level (0=no log)?  [0]:

    The IMAPD server of PINE can log its activity, at different levels. If you
    choose level 0, then no log file is created. Maximum log level is 10.
    The eventual log file is named 

            imapd_root:[logs]imapd-'node'.log

    where 'node' is the decnet node name of local node where you are installing
    PINE and its IMAPD server.

  - IMAPD Server timeout (seconds)?  [1800]:

    This is the timeout aftwer wich inactive IMAPD sessions are dropped by
    the IMAPD server. If you answer 0, then there is NO timeout.

  - IMAPD Max Login attempts?  [3]:

    This is the maximum number of failed login attempt (via user's password) 
    after which the IMAPD server disconnects.

  - External Image Viewer Utility?  [xv]:

    PINE can automatically call an external image viewer utilty to display
    GIF and JPG attachments. If the xv utility is installed, then it will
    try to use it. Any other utility which can handle a command like

        $ utilityname imagefile.ext

    can also be configured successfully.


Now go to section 1.5.1.3 for final system installation.


1.5.1.2 Manual Configuration editing configuration files

If you do not use PINE_CONFIG.COM or you wish more advanced options, then
you can proceed with the following points.

  1.    Edit and configure for your local installation the PINE_SETUP.COM,
        IMAPD_SETUP.COM, IPOP3D_SETUP.COM and CCLIENT_SETUP.COM procedures.
        They contain logical names which should be adapted to your local 
        environment.

  2.    Set up the configuration files for PINE and the IMAPD server. There are
        several configuration files that should be set, all should be world
        readable:
           * IMAPD_CONF_DIR:IMAPD.CONF
                The configuration file for the IMAPD server

           * PINE_CONF_DIR:PINE.CONF-FIXED
                The fixed configuration file for PINE. Configuration values in
                this file may not be overridden by the user and should be used
                to define things that are constant, such as system name, smtp
                servers etc.

           * PINE_CONF_DIR:PINE.CONF
                The system default configuration for PINE. Configuration
                settings in this file are default values that may be overriden
                by settings in a user's personal .PINERC configuration file.

        The general PINE documentation describes the content of these files but
        please take note of some specific points detailed below.

1.5.1.3 System Installation

  1.    Execute at system startup (SYSTARTUP_V5.COM or SYSTARTUP_VMS.COM or
        wherever appropriate) the IMAPD_SETUP.COM, IPOP3D_SETUP.COM,
        CCLIENT_SETUP.COM and PINE_SETUP.COM in order to define properly the 
        PINE environment; for example:

                $ @dev:[directory]IMAPD_SETUP.COM
                $ @dev:[directory]IPOP3D_SETUP.COM
                $ @dev:[directory]CCLIENT_SETUP.COM
                $ @dev:[directory]PINE_SETUP.COM

        Add the installation command into the system startup, too:

                $ INSTALL:==$SYS$SYSTEM:INSTALL/COMMAND_MODE
                $ INSTALL ADD PINE_EXE -
                          /PRIV=(OPER,SYSPRV,CMKRNL) -
                          /SHARED/OPEN/HEADER_RESIDENT


  2.    Install also the IMAPD (and eventually the optional POP3) server(s):
	refer to section 2 for specific setup needed.

  3.    Finally, arrange for the users to be given access to the PINE
        executable by some means, by defining a symbol into the system
        wide login file:

                $ PINE :== $pine_exe


1.5.2 Users First Time run of PINE

For each single user, PINE will create at first run the default .PINERC
personal configuration file in SYS$LOGIN. It will also propose the user
to receive a simple tutorial document, and apparently create some default
empty folders like "mail" in the folders list.

For these reasons, each user should run PINE a first time for personal
configuration only, then quit and start using PINE for production again.

1.5.3 Compatibility with old message formats

PINE for OpenVMS is compatible with the following message formats:

  - RFC822 (via any interface existing on OpenVMS)
  - MIME (via any interface existing on OpenVMS)
  - Mail-11 (DECnet Mail)
  - X.400 (via DEC MRGATE and MRX interfaces, and via GIVEME2 gateway)
  - NBS (via DEC MRGATE and MESSAGE ROUTER interfaces)

However older message formats like those coming via obsolete RFC987
(like GIVEME) gateways are likely to be incompatible with PINE, producing
unexpected results, including PINE crash. If users have in their mailboxes
or folders such old messages it is reccommended to move these old messages 
into a different mailbox or folder collection. A good quick method is 
selection by date within VMSmail utility:

  $ MAIL
  MAIL> select/before=dd-mmm-yyyy foldername
  MAIL> copy/all
  _Folder: newfoldername
  _File: OLDMAIL.MAI

2. MAIL SERVERS AND THE NETWORK CONFIGURATION

PINE, in conjunction with remote IMAP and POP3 servers, can access mailboxes on
any remote system.  A POP3 server and an IMAP server are provided with the PINE
distribution

This section contains details of how to set up your network software to run the 
network servers. Unless otherwise stated, all examples show the IMAPD server
but apply equally to all servers. Specific details for each server are given
later.


2.1 General Considerations

Before setting up a network server, you should consider the following:

   * Under what username should the server run? SYSTEM is the default in most
     cases but may be inappropriate in some high security installations,
     although there are no known security holes in the server.

   * What privileges should the username have? At least TMPMBX, NETMBX and
     SYSPRV are needed to access the network and the mail files. Some stacks
     may require additional privilege for network access.

   * What quotas are needed by the username?  The most important is PGFLQUO as
     this determines the maximum size of mailbox that can be handled. The
     server will crash if it runs out of virtual memory when pulling the whole
     mailbox into memory, so a user with a large mailbox may require that a
     large PGFLQUO is set.

   * What sysgen parameters should be changed?  The CMU stack requires the
     MAXBUF parameter to be set to at least the size of the constant BUFLEN in
     the TCP_VMS.H module (currently 8192). If PGFLQUO's are set high, then
     the VIRTUALPAGECNT parameter may need to be adjusted upwards.



2.2 TCP Stack-Specific Setup

A number of procedures are provided to perform much of the initial stack and
system set up for you. See:

    USER_SETUP.COM	[Optional]	Create a user under which to run
					servers. If you want to run as SYSTEM,
					you do not need to run this.

    SERVICE_SETUP.COM	[mandatory]	Create a configuration for a network
					service (EG IMAP or POP server).

The work can be done manually if required and the following descriptions define
what needs to be done.


2.2.1 NETLIB

NETLIB is a freeware stack independent network interface that allows a single
image to be run over any of the popular stacks available for VMS. This is
useful in clusters where different nodes run different TCP/IP stacks as only
one image is required.

   *  Make sure that NETLIB 2.0 or greater is installed before building the
      product. NETLIB 1.x is not suitable. NETLIB is freeware and is available
      from ftp://ftp.madgoat.com/madgoat/netlibNNN.zip [NNN=highest available
      version number]

   *  NETLIB requires a supported TCP/IP stack; please refer to the stack
      specific setup information below.



2.2.2 MULTINET

MULTINET is a commercial TCP/IP stack available from Cisco.

    * Information required:
	- Service name
	- Port number
	- Service type (TCP/UDP)
        - Image Name (or logical name)
	- Username under which to run the server
	- Page file quota to be allocated to the server

   *  The master server should be configured to start up the server image on
      the specified port. The following sequence of commands illustrates this
      for the IMAPD server on port 143:
         $ MULTINET CONFIGURE/SERVER
         SERVER-CONFIG> add imapd
         Protocol [TCP]: tcp
         TCP Port Number: 143
         Program to run: imapd_exe
         SERVER-CONFIG> save
         SERVER-CONFIG> restart

   *  By default, this will start up the server under the SYSTEM username,
      which has all privileges. While this should not cause a problem (the
      server is careful not to allow access to another user's mailbox), some
      sites may want to start up the server under a different username that
      has a restricted set of privileges. After ensuring that the user account
      exists, the following sequence of commands may be used:
         $ MULTINET CONFIGURE/SERVER
         SERVER-CONFIG> select imapd
         SERVER-CONFIG> set username xyz
         SERVER-CONFIG> save
         SERVER-CONFIG> restart

      "xyz" is the desired username.

      The selected username must have at least SYSPRV, NETMBX and TMPMBX
      privilege in order to access the SYSUAF file and an arbitrary user's
      mailbox.
         
    *  You may need to increase the virtual memory allocation of the detached
       process if users have particularly large messages or mailboxes, in
       order to prevent malloc calls from failing and causing a server crash.
       You can use the commands:
          $ MULTINET CONFIGURE/SERVER
          SERVER-CONFIG> select imapd
          SERVER-CONFIG> set pql-pgflquota xxxxx
          SERVER-CONFIG> save
          SERVER-CONFIG> restart
    
       The exact value of 'xxxxx' will be dependent on the users and their
       messages.

    * Much of the setup may be performed automatically by using the
      SERVICE_SETUP.COM procedure found in the top level directory:
          $ @service_setup MULTINET IMAPD 143


2.2.3 UCX

UCX, or Digital TCP/IP services for OpenVMS, is a commercial TCP/IP stack from
Digital Equipment Corporation.

    * Information required:
	- Service name
	- Port number
        - Image Name (or logical name)
	- Name of procedure to be started by master server
	- Username under which to run the server
	- Process name to be given to server
	- Maximum number of simultaneous sessions
	- Name of startup log file to be created

    *  The master server must be configured to start up a command procedure
       that runs the server image, when an incoming call is received on the
       specified port. The following sequence of commands will configure this
       for the IMAPD server:
           $ UCX set service IMAPD /process=IMAPD /port=143 /user=UCX_IMAPD -
               /file=IMAPD_ROOT:[000000]UCX_IMAPD.COM -
               /limit=20 -
               /log=(FILE=IMAPD_LOG:IMAPD_STARTUP.LOG,ALL)

           $ UCX set config enable service IMAPD

           $ UCX enable service IMAPD


    *  The file UCX_IMAPD.COM should contain a line like:
           $ RUN IMAPD_EXE

    *  The example above runs the procedure as the user "UCX_IMAPD", which
       must exist with at least the following attributes:
	       /network
               /priv=(netmbx,tmpmbx,sysprv)
               /defpriv=(netmbx,tmpmbx,sysprv)

    *  The quotas on the "UCX_IMAPD" account, particularly PGFLQUO, should be
       adjusted as appropriate to handle the largest mailbox likely to be kept
       in memory by the server.
               /pgflquo=xxxx

    *  For security purposes, if the account is dedicated to server use, it is
       probably wise to also have these attributes on the account:
               /flag=(disctly,defcli,restricted)
               /nobatch /nolocal /nodialup /noremote
          

    *  The mail delivery agent must be configured to place the RFC822 mail
       headers at the top of the message, rather than at the bottom of the
       message. The servers will not recognize them otherwise. You can use
       the command:
             $ UCX SET CONFIGURATION SMTP /OPTIONS=TOP_HEADERS

       Then restart the SMTP server.


    * Much of the setup may be performed automatically by using the
      SERVICE_SETUP.COM procedure found in the top level directory:
          $ @service_setup UCX IMAPD 143


2.2.4 CMU

CMU is a public domain TCP/IP stack available free of charge. It is for VAX
only and is available through DECUS or from various archives on the network.

    * Information required:
	- service name
	- port number
        - Image name (or logical name)
        - Privileges allocated to server

    *  The configuration file INET$CONFIG should be updated to add a definition
       for the server. Here's a typical entry for the IMAPD server:

           WKS:143:IMAPD:IMAPD_EXE:NETWRK:NETMBX,TMPMBX,PHY_IO,SYSPRV:::::4:5

       IMAPD_EXE is the logical name that points to the IMAPD executable image.
       Note that CMU applications require PHY_IO to access privileged ports.

    *  CMU is sensitive to the value of the SYSGEN parameter MAXBUF as this
       determines the maximum size of a message that can be sent in a single
       network write operation. It MUST be set to a value at least as large as
       that of the constant BUFLEN in the TCP_VMS.H module (currently 8192).
       The recommended minimum for CMU generally is 8300.

       MAXBUF is a dynamic parameter so it can be changed on the fly using
       this sequence:

       $ MC SYSMAN
       SYSMAN> PARAM USE ACTIVE
       SYSMAN> PARAM SET MAXBUF 8300
       SYSMAN> PARAM WRITE ACTIVE

       For permanent changes, use the AUTOGEN facility.


    *  Following the above change, the CMU IPACP process must be shutdown and
       restarted (which will interrupt network activity and close existing
       network connections) using the following commands:
          $ IPNCP NETEXIT
          $ IPNCP STARTUP/IPACP

    * Much of the setup may be performed automatically by using the
      SERVICE_SETUP.COM procedure found in the top level directory:
          $ @service_setup CMU IMAPD 143



2.2.5 TCPWARE

TCPWARE is a commercial TCP/IP network interface available from Process
Software.

    * Information required:
	- service name
	- port number
	- service type (TCP/UDP)
        - Image Name (or logical name)
	- UIC under which to run the server
	- Pagefile quota to allocate to the server

    * The services configuration file TCPWARE:SERVICES. should be updated to
      add a definition for the service. Here is a typical record describing the
      IMAPD service:
          IMAPD   143/TCP

    * The following commands may be used to add a definition for the server:
          $ NETCU
          NETCU> add service 143 tcp IMAPD_EXE /uic=[1,3] /page_file=60000

      Adjust the values of the parameters as required.


    * Much of the setup may be performed automatically by using the
      SERVICE_SETUP.COM procedure found in the top level directory:
          @SERVICE_SETUP TCPWARE IMAPD 143


2.2.6 Other stacks

    *  No information currently available.


3. COMPLETE INSTALLATION EXAMPLE

Here is a complete installation example (starting from the BACKUP form kit):

$ backup/log/new_version PINEVMSBIN0391A.BCK/SAVE DKA300:[MB$...]*.*

(... files list omitted ...)

$ rename DKA300:[MB$]PINE391A.DIR DKA300:[MB$]PINE.DIR
$
$ set def DKA300:[MB$.PINE]
$
$ @PINEINSTALL NOTRACEBACK

                    PINE OpenVMS Installation procedure

  This procedure will perform the installation of PINE OpenVMS utility
on your system using NETLIB TCP/IP support. The PINE, POP3 and IMAP
root directories will be set to

                     DKA300:[MB$.PINE]

If you intend to install PINE on a different root directory, then exit
this procedure now, and move this directory and its complete subtree
to the appropriate location.

Again, if you are in a mixed VAX and AXP cluster environment, and you intend
to install PINE on both architectures, then it is suggested to select an
installation directory accessible from both VAX and AXP hosts. If the
current roor is not appropriate for this scope, then exit this procedure now,
and move this directory and its complete subtree to the appropriate location.

If you intend to install PINE with a different TCP/IP network support, then
exit this procedure now, and respecify the appropriate network support
when re-entering.

  Are you ready to go?  [NO]: YES

  Do you want to purge files replaced by this installation? [YES]:

  After this installation is complete, and if you are in a mixed VAX
  and AXP environment with NETLIB TCP/IP support on both platforms
  and you selected a root directory for PINE accessible from both VAX
  and AXP, then you can easily complete the installation on also on a AXP:
  just answer YES to the following question, then log in on the AXP host,
  set default to DKA300:[MB$.PINE] and execute again
  @PINEINSTALL NOTRACEBACK

  Will you install PINE also on AXP afterwards ? [NO]:

Preparing objects for installation...

Preparing libraries for installation...
... Creating C-Client library (VAX)
... Creating PICO library (VAX)
... Creating PINE library (VAX)
                                  
Setting up directories for installation...
%CREATE-I-CREATED, DKA300:[MB$.PINE.BIN_VAX] created
%CREATE-I-CREATED, DKA300:[MB$.PINE.BIN_ALPHA] created
%CREATE-I-CREATED, DKA300:[MB$.PINE.CONFIG] created
%CREATE-I-CREATED, DKA300:[MB$.PINE.LOGS] created
 
%VMSBUILD-I-BEGIN, Begin build for VAX architecture
%VMSBUILD-I-CHKCOMPILER, checking for used compiler
%ANALYZE-I-ERRORS, DKA300:[MB$.PINE.OBJ_VAX.PICO]PICO.OBJ;1                0 err
ors
%SEARCH-I-NOMATCHES, no strings matched
%VMSBUILD-I-COMPILER, source was compiled with DEC C
%VMSBUILD-I-LINK, Linking stand-alone PICO editor utility
%VMSBUILD-I-CHKCOMPILER, checking for used compiler
%ANALYZE-I-ERRORS, DKA300:[MB$.PINE.OBJ_VAX.C-CLIENT]VMS_MAIL.OBJ;1        0 err
ors
%SEARCH-I-NOMATCHES, no strings matched
%VMSBUILD-I-COMPILER, source was compiled with DEC C
%VMSBUILD-I-LINK, Linking stand-alone MTEST utility with NETLIB TCP support
%VMSBUILD-I-LINK, Linking stand-alone IMAPD server with NETLIB TCP support
%VMSBUILD-I-LINK, Linking stand-alone POP3 server with NETLIB TCP support
%VMSBUILD-I-CHKCOMPILER, checking for used compiler
%ANALYZE-I-ERRORS, DKA300:[MB$.PINE.OBJ_VAX]PINE.OBJ;1                     0 err
ors
%SEARCH-I-NOMATCHES, no strings matched
%VMSBUILD-I-COMPILER, source was compiled with DEC C
%VMSBUILD-I-LINK,  Linking PINE with NETLIB TCP support
 
Setting up environment and moving files to final destination...
%INSTALL-I-BEGIN, installing executables for VAX architecture
%INSTALL-I-COPYING, Copying PINE to PINE_EXE
%INSTALL-I-COPYING, Copying PICO to PINE_PICO_EXE
%INSTALL-I-COPYING, Copying IMAPD to IMAPD_EXE
%INSTALL-I-COPYING, Copying IPOP3D to IPOP3D_EXE
%INSTALL-I-COPYING, Copying MTEST to PINE_DIR
%INSTALL-I-COPIED, All files copied OK

                PINE for OpenVMS installation ended successfully.

  Do you want to configure PINE now? [YES]: YES

%COPY-S-COPIED, PINE_ROOT:[000000]PINE_SETUP.COM;3 copied to PINE_ROOT:[000000]P
INE_SETUP.COM_9708261033;1 (6 blocks)
%COPY-S-COPIED, IMAPD_ROOT:[000000]IMAPD_SETUP.COM;4 copied to IMAPD_ROOT:[00000
0]IMAPD_SETUP.COM_9708261033;1 (6 blocks)
%COPY-S-COPIED, IPOP3D_ROOT:[000000]IPOP3D_SETUP.COM;2 copied to IPOP3D_ROOT:[00
0000]IPOP3D_SETUP.COM_9708261033;1 (3 blocks)
%COPY-S-COPIED, IMAPD_ROOT:[000000]CCLIENT_SETUP.COM;7 copied to IMAPD_ROOT:[000
000]CCLIENT_SETUP.COM_9708261033;1 (15 blocks)

Creating PINE_SETUP.TEMPLATE...
%CREATE-I-CREATED, PINE_ROOT:[000000]PINE_SETUP.TEMPLATE;1 created

Creating IMAPD_SETUP.TEMPLATE...
%CREATE-I-CREATED, IMAPD_ROOT:[000000]IMAPD_SETUP.TEMPLATE;1 created

Creating IPOP3D_SETUP.TEMPLATE...
%CREATE-I-CREATED, IPOP3D_ROOT:[000000]IPOP3D_SETUP.TEMPLATE;1 created

Creating CCLIENT_SETUP.TEMPLATE...
%CREATE-I-CREATED, IMAPD_ROOT:[000000]CCLIENT_SETUP.TEMPLATE;1 created

Creating PINE.CONF-FIXED-TEMPLATE...
%CREATE-I-CREATED, PINE_ROOT:[CONFIG]PINE.CONF-FIXED-TEMPLATE;1 created

Creating PINE.CONF-TEMPLATE...
%CREATE-I-CREATED, PINE_ROOT:[CONFIG]PINE.CONF-TEMPLATE;1 created

Creating IMAPD.CONF-TEMPLATE...
%CREATE-I-CREATED, IMAPD_ROOT:[CONFIG]IMAPD.CONF-TEMPLATE;1 created

                  *** Configuring PINE OpenVMS now ***


RFC822 local default domain? [elettra.trieste.it]:

RFC822 address of Mail-11 (DECnet) gateway? [SYN014.elettra.trieste.it]:

RFC822 address of X.400 gateway?  [cosine-gw.infn.it]: SYNW06.elettra.trieste.it


 PINE User Agent is a client which uses an SMTP server to send out its mails.
 The server can be:

 - a local VMS-Sendmail installed on the host/cluster where you are installing
   PINE for OpenVMS;

 - a local MULTINET SMTP installed on the host where you are installing PINE
   for OpenVMS;

 - any remote SMTP mail server which you have the right to use as a mail relay
   for your outgoing messages (for example your standalone domain mailer).

  Enter LOCAL to use a local VMS-Sendmail or MULTINET SMTP;
  Enter the RFC822 address of an SMTP server to use a remote SMTP server;

RFC822 address of SMTP Server?  [LOCAL]:

 PINE will use a local VMS-Sendmail or MULTINET SMTP. Now enter the name of
 the local SMTP queue where outgoing messages will be submitted for delivery.
Local SMTP queue for outgoing messages?  [MULTINET_SMTP]:

VMSmail SMTP interface prefix?  [MX]: smtp

Use Standard (RFC1405) encoding for Mail-11 addresses?  [YES]:

Default incoming messages folder?  [NEWMAIL]:

Move messages out of NEWMAIL after reading?  [NO]:

Purge deleted messages from folders?  [NO]: YES

Default folder for copies of sent messages?  [SENT-MESSAGES]:

IMAPD Log level (0=no log)?  [0]:

IMAPD Server timeout (seconds)?  [1800]:
 
IMAPD Max Login attempts?  [3]:

External Image Viewer Utility?  [NONE]: xv

 Local RFC822 Domain:       elettra.trieste.it
 Mail-11 Gateway Address:   SYN014.elettra.trieste.it
 X.400 Gateway Address:     SYNW06.ELETTRA.TRIESTE.IT
 SMTP Server:               LOCAL
 Local SMTP Queue:          MULTINET_SMTP
 VMSmail SMTP Prefix:       SMTP
 Standard Mail-11 Encoding: YES
 Default INBOX Folder:      NEWMAIL
 Automove Read Messages:    NO
 Purge Deleted Messages:    YES
 Self-Copy Folder:          SENT-MESSAGES
 IMAPD Log Level:           0
 IMAPD Timeout:             1800
 IMAPD Max Login Attempts:  3
 External Image Viewer:     XV

  Are the above data correct? [YES]: YES
PINE_ROOT:[000000]PINE_SETUP.COM Created...
IMAPD_ROOT:[000000]IMAPD_SETUP.COM Created...
IPOP3_ROOT:[000000]IPOP3D_SETUP.COM Created...
IMAPD_ROOT:[000000]CCLIENT_SETUP.COM Created...
PINE_CONF_DIR:PINE.CONF-FIXED Created...
PINE_CONF_DIR:PINE.CONF Created...
IMAPD_CONF_DIR:IMAPD.CONF Created...
 

Activating new PINE configuration...

%DCL-I-SUPERSEDE, previous value of PINE_ROOT has been superseded
%DCL-I-SUPERSEDE, previous value of PINE_CONF_DIR has been superseded
%DCL-I-SUPERSEDE, previous value of PINE_DIR has been superseded
%DCL-I-SUPERSEDE, previous value of PINE_EXE has been superseded
%DCL-I-SUPERSEDE, previous value of PINE_PICO_EXE has been superseded
%DCL-I-SUPERSEDE, previous value of PINE_MAIL_PROTOCOL has been superseded
%DCL-I-SUPERSEDE, previous value of IMAPD_ROOT has been superseded
%DCL-I-SUPERSEDE, previous value of IMAPD_CONF_DIR has been superseded
%DCL-I-SUPERSEDE, previous value of IMAPD_DIR has been superseded
%DCL-I-SUPERSEDE, previous value of IMAPD_EXE has been superseded
%DCL-I-SUPERSEDE, previous value of IMAPD_ALERTFILE has been superseded
%DCL-I-SUPERSEDE, previous value of IMAPD_TIMEOUT has been superseded
%DCL-I-SUPERSEDE, previous value of IMAPD_LOGTRY has been superseded
%DCL-I-SUPERSEDE, previous value of IPOP3D_ROOT has been superseded
%DCL-I-SUPERSEDE, previous value of IPOP3D_CONF_DIR has been superseded
%DCL-I-SUPERSEDE, previous value of IPOP3D_DIR has been superseded
%DCL-I-SUPERSEDE, previous value of IPOP3D_EXE has been superseded
%DCL-I-SUPERSEDE, previous value of CCLIENT_MAILPROTOTYPE has been superseded

            PINE OpenVMS configuration successfully completed


        PINE installation completed. Now remember to complete
        your installation as in the "Post-Installation" paragraph
        of AAAREADME.TXT

$ 

NOTE: the post installation section is the same in 00BINARIES.TXT

