To get this release running you currently have to do a little manual
configuration.  There are basically two ways of running a mail
server such as smail: As a standalone daemon or invoked by the super
daemon inetd.

Runnning as a `standalone' daemon means that smail is permanently running
in the background.  To do this add the following lines to one of your
startup scripts (typically /etc/rc.net), in any case after you have
started your syslog daemon:

if test -x /usr/sbin/smail
  echo "Starting smail ..."
  /usr/sbin/smail -bd -q1h
fi

In this mode smail will permanently wait for incoming connections on
the smtp port.  Unless you have a lot of mail traffic and you are
permanently connected to the internet this is probably a waste of
memory and resources.  You should rather let inetd invoke smail.
In this mode the daemon inetd will wait for incoming connections
on all ports and invoke whatever program is responsible for that port.
Please insert the following line in /etc/inetd.conf:

smtp 	stream	tcp	nowait	root	/usr/sbin/tcpd	/usr/sbin/smtpd

If the file /usr/sbin/tcpd does not exist, the tcp daemon probably still
resides in /usr/etc.  Check that out and change the above line accordingly.
Note that you should invoke smail here as /usr/sbin/smtpd.  This is
actually just a symbolic link to /usr/sbin/smail but smail will
slightly change its behavior depending on the name it is invoked with.
In our case (invoked by inetd->tcpd) `smtpd' is better than `smail'.

You have to reboot your computer in order to get the change into 
effect.  Ooops, no, this is not Windoze.  Run the ps command to
see what process id the inetd process has.  Send the signal 
`SIGHUP' to the process:

	kill -HUP 27

Replace 27 with whatever process id (PID) your inetd happens to
have.  This will cause inetd to reread its configuration file.

Uhm, before you do that, you probably have to configure smail
to your needs.  First have a look at /usr/lib/smail/config. 
My comments in that file will probably already give you an
idea of what to do.  If things don't work edit also
/usr/lib/smail/routers.  For the typical installation, a standalone
machine connected to the internet via PPP you should comment
out all lines there except for:

smart_host:
	driver=smarthost,
	transport=smtp;

Don't forget to remove existing installations of smail (an old
installation probably doesn't hurt but it wastes space).  Remainders
of old smails are probably the files:

	/usr/bin/smail
	/etc/smail/*
	/usr/etc/smail
	/usr/etc/smtpd
	...

You should run the command 

	rpm -ql smail | grep /usr/sbin

The new binaries get installed in /usr/sbin.  If binaries of the same
name exist in /usr/etc you have to remove them from there.  You
also have to remove /usr/bin/rmail, but ATTENTION:  If the directories
/bin and /usr/bin are the same (i. e. symlinks) then you shouldn't
remove it because it is the one that you have installed via rpm.

Simpler: /bin/rmail should be a symbolic link to /usr/sbin/smail,
the file /usr/bin/rmail should not exist (unless it is the same
as /bin/rmail).

Good luck!

Guido Flohr <gufl0000@stud.uni-sb.de>



