		**********************************
		***	   MySMTPPost.doc      ***
		**********************************

			( BETA RELEASE )

		   (c) 1994-95 Rafreider Andrea
			All rights reserved.

Please read MailDeliver.doc first!

MySMTPPost is a small hack for people using Elm on their amiga systems with
AmiTCP,InetUtils1.3 and MultiUser installed (you still need SMTPPost in 
AmiTCP:bin/).

Just copy MySMTPPost (MailDeliver uses it when forwarding the incoming mail 
to the new address specified in your $HOME/.forward if it is present) to
AmiTCP:bin/ or inet:bin/ (or everywhere in your path).

Put the following line on your .elmrc :

	SendMail MySMTPPost <$MSG

instead of

	SendMail SMTPPost <$MSG

MySMTPPost checks the destination address in the "To:" header and if the
destination address belongs to our amiga-system (you have to define the
environment variables NODENAME,DOMAINNAME,HOSTNAME) it delivers the mail
with a call to MailDeliver, else if the destination address belongs to
an outside system, it sends the mail with a call to SMTPPost.

Suppose you want to mail to a local user named "pippo" with Elm.
MySMTPPost recognizes as belonging to your amiga-system the following
destination addresses:

To: pippo
To: pippo@nodename
To: pippo@nodename.domainname

where nodename is specified in the variable $NODENAME and domainname
is specified in the environment variable $DOMAINNAME.

WARNING!

Elm usually changes multi-user protection bits so to call it in a safe way
you should call it from a script like this:

; StartElm script

	assign >NIL: UUMAIL: $HOME/MAIL/
	userid >RAM:ENV/USER ; if you have not defined it
	userid NAME >RAM:ENV/REALNAME ; if you have not defined it
	elm
	setowner $HOME/MAIL/#? $USER >NIL:
	mprotect $HOME/MAIL/#? rwed >NIL:

; End of script
