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 p13.flokiste.fido.de
# (see smail(5) man page for details and other options)
#
-smtp_debug
hostname=p13.flokiste.fido.de
# more_hostnames defines other adresses, which smail should accept
#   for this site.
#   flokiste.fido.de 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 p13.flokiste.fido.de in 
#   /usr/local/lib/fidogate/hosts auf p13.flokiste.fido.de oder
more_hostnames=flokiste.fido.de:spinnaker:spi:p13
-visible_name
-smart_path
-uucp_name
error_copy_postmaster
postmaster=postmaster

If you have a direct UUCP-access to the Internet then you have to add the following lines
smart_path=rhein
smart_transport=uux
uucp_name=spinnaker.rhein.de

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 p13.flokiste.fido.de

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

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

smart_host:
        transport=fido, 
        driver=smarthost;
        path=p0.f4.n5000.z242.fido.de

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 fido.de-Internet-gate.

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


smart_host:
        driver=smarthost,
        transport=uux

paths.ftn looks like this:


 # /etc/smail/paths.ftn 
 #
 .fido.sub.de   p0.f111.n2450.z2.fido.sub.de!%s
 .z2            p0.f111.n2450.z2.fido.sub.de!%s
 .fido.de       p0.f111.n2450.z2.fido.sub.de!%s
 .maus.de       p0.f111.n2450.z2.fido.sub.de!%s
 #
 .ger.sub.de    f64.n100.z21.ger.sub.de!%s
 #
 .z242.fido.de  p0.f4.n5000.z242.fido.de!%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}", 
        pipe_as_sender

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