#ident "@(#)README	1.16 05/07/98 SMI"
#
#
# Copyright 05/07/98 Sun Microsystems, Inc. All Rights Reserved
#
		Solstice X.400 Remote Access Libraries V1.0

			  Using the XMA Examples
			  ----------------------

Configure your local RAL database
---------------------------------

Using xapiatool (see the Solstice X.400 RAL Administrator's Guide),
do the following:

   1. 	Add a remote message server (an MTA providing P3 access).
	It the message server is a Solstice X400 9.0 MTA, use x400tool
	to find out its OSI Selectors and network address, remembering
	to enter a transport selector of P3.

   2.	Add a message client with the following parameters:

		Name:		user1
		Country:	US
		ADMD:		attmail
		PRMD:		sun
		Organization:	user1
		Remote Server:	The server you added in step 1.

   3.	Add another message client with the following parameters:

		Name:		user2
		Country:	US
		ADMD:		attmail
		PRMD:		sun
		Organization:	user2
		Remote Server:	The server you added in step 1.


Configure the remote MTA
------------------------

On the machine hosting the remote MTA, use x400tool (see the Solstice X.400
MHS Administrator's Guide) to do the following:

   4.	Add two new user agents, user1 and user2. Set the User Agent type to 
	Remote.

   5.	Modify the routing for user1 and user2. Set the routings so that
	the parameters are the same as those you set in steps 2 and 3.


Run the test
------------

   6.	Add "/opt/SUNWconn/mhs/lib" to your LD_LIBRARY_PATH.

   7.	Submit a message by typing:

		hostname% bin-sparc/ex_MAs user1

	or on an Intel machine:

		hostname% bin-i386/ex_MAs user1

	This program binds to the remote MTA as user1 and submits a message
	to user2. When prompted, type a message subject and the name of a file 
	to send.

   8.	Receive the message by typing:

		hostname% bin-sparc/ex_MAd user2

	or on an Intel machine:

		hostname% bin-i386/ex_MAd user2

	This program binds to the remote MTA as user2 and retrieves the message
	you sent in step 7.

Use x400tool to monitor the status of messages. You will see that user1 has
1 message submitted to the MTA by the user agent and user2 has 1 message 
delivered to the user agent by the MTA. You can use raltrace (see the Solstice 
X.400 RAL Administrator's Guide) to give you additional information.


For a more complex test, you can connect the user agents to two different MTAs. 
To do this, add both remote message servers to your RAL database, and connect
a message client (user1 and user2) to each one. Additionally, use x400tool
to define the route between the two MTAs.
