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
smart_path=rhein smart_transport=uux uucp_name=spinnaker.rhein.de
-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
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
# /etc/smail/transports # fido: driver = pipe; group = uucp, cmd = "/usr/local/lib/fidogate/rfc2ftn -w Normal ${strip:user}", pipe_as_sender
/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
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.