Previous Next Table of Contents

10. The configuration of smail

If you chose Sendmail, you may skip this section.

In my system smail resides in the directory /usr/local/lib/smail and a link on it is in /usr/lib/smail>. The configuration-files are normally in /etc/smail, but some distributions have them in /var/lib/smail. All files described by me should be in this directory. The systemwide alias-file can be found follwoing the FSS (file system standard) in /etc/aliases, in former times in /usr/lib/aliases.

Let's begin with a basic configuration for the use w/o any UUCP-connection to the Internet:

# /etc/smail/config 
#       smail configuration for
# (see smail(5) man page for details and other options)
# more_hostnames defines other adresses, which smail should accept
#   for this site.
# has to be added, becauses there could be mails sent
#   to Roland Rosenfeld 2:2450/111, which are routed to me by the ITrack
#   of my uplink to me.
#   Hostnames with pxxx.fxxx.nxxx.zxxx-Namen are not needed, because 
#   they all are mapped to in 
#   /usr/local/lib/fidogate/hosts auf oder

If you have a direct UUCP-access to the Internet then you have to add the following lines

and to remove thelin -smart_path. In this case rhein is the UUCP-name of my uplink.

Now you have to define what is routed to where:

# /etc/smail/routers
# smail routers for

# See smail(5) for a complete description of the contents of this
# file.

        driver = pathalias,
        transport = fido;
        file = /etc/smail/paths.ftn,
        proto = lsearch


Here everything is routed via Fido, where paths.ftn (l.d.) defines, where which FTN-address will be inserted. Everything that can't be processed based on paths.ftn, will be send to the

For the configuration with UUCP another Smarthost (where everything will be send that wasn't defined before) will be used:


paths.ftn looks like this:

 # /etc/smail/paths.ftn 
 .z2  !%s!%s!%s

Last but not least you have to define who mails will be transported:
# /etc/smail/transports
fido:   driver = pipe;
        group = uucp,
        cmd = "/usr/local/lib/fidogate/rfc2ftn -w Normal ${strip:user}", 

As messages from the Fido-net should be addressed to the realname, it should exist (with an underscore between first and last name) on the system. Therefore you define it in /etc/aliases, thus the mail will be send to the user himself. Here an excerpt of my alias-file, where most of the aliases are defined, so that the mails always should reach me:

# /etc/aliases
# This is used by smail for sendmail compatibility.
# See also the /usr/lib/smail/lists directory for another way
# to make mail lists.
# Note: if your /etc/smail/directors says that the aliases
# director uses proto=dbm, you must use mkaliases to make
# /etc/aliases.pag and /etc/aliases.dir, which are the
# latest files used by smail.
# If you use proto=lsearch, smail will read this file.  (That's
# much slower but it's OK if this file is small.)
support: roland
admin: roland
Roland_Rosenfeld: roland
Roland.Rosenfeld: roland
postmaster: roland
faxadmin: roland
usenet: roland
sysop: roland
rosenfeld: roland
roro: roland
uucp: roland
news: roland

One should test the functionality of the file at first with a local mail as some versions of smail (if they were compiled with unfavorable parameters) seem to detect the file only as a dbm even if one defines lsearch (look at comment in aliases).So it's recommended to run mkaliases after each change in this file, which updates aliases.dir and aliases.pag.

As many error-messages of the news system will be send to usenet, news or uucp, one should route these messages to oneself.

Previous Next Table of Contents