Problem
I want to configure sendmail to deliver mail exclusively through UUCP and not use SMTP.
Solution
The following information assumes that you have Sendmail 8.8.5
(SLS OSS443A) or greater installed, but will work with Sendmail 8.7.x
or greater. If you are using a version of Sendmail prior to 8.7.x,
see Technical Article 107616, "How do I configure Sendmail to send
mail over UUCP and not SMTP?". It is recommended that you use the
latest version of Sendmail available. You must run "mkdev cf" after
installing Sendmail 8.8.5 if you want to generate a new sendmail.cf
file designed specifically to run with sendmail 8.8.5. If you do this,
any modifications you've made to your current sendmail.cf file will
be overwritten.Please take the following steps:1. Log in as root. 2. Using your favorite text editor, edit the file:
/usr/lib/sendmail.cf (in Unixware: /etc/sendmail.cf).In this example, we will use the domain name "domain.com", and
the UUCP name "uucpname" for the local system name, and "remote"
for the remote UUCP system name. You should replace these names
with those pertinent to your own configuration.3. Enter the domain name in the section of the cf file that looks similar to the following:
##################
# local info #
################### Our local (e.g. LAN) domain name
DDdomain.com4. Verify that the name of the host and the fully qualified domain
name are correct for the Cw macro and the DU definition. For our
example, they will look similar to the following:# all the names this host is known by
Cwuucpname.domain.com uucpname# Our uucp name
DUuucpname5. Verify that there is a DG definition and a CU macro for the remote
system. If they do not exist, add them below the DU entry you
just made. For our example, they will look similar to the
following:# the uucp gateway class to which we route uucp mail from leaf nodes
DGremote# the list of uucp hosts that we speak to (same rules as Cw, use the
# output of the "uuname" command; also, when you add or delete a host
# from /usr/lib/uucp/Systems, don't forget to add or delete it here)
CUremoteFU/usr/lib/uucp/Systems %[^ \#]6. We now need to configure ruleset 0 to send all mail out using UUCP
as the mailer. Searching for "S0" will bring you to ruleset 0.- Look for the text string "# handle numeric address spec". - Edit the following line, changing the mailer from smtp to uucp-dom.
R$* < @ [ $+ ] > $* $#smtp $@ [$2] $: $1 < @ [$2] > $3The line should end up looking similar to the following:
# handle numeric address spec
R$* < @ [ $+ ] > $* $: $>98 $1 < @ [ $2 ] > $3
R$* < @ [ $+ ] > $* $#uucp-dom $@ [$2] $: $1 < @ [$2] > $37. Look for the text string "# deal with other remote names" and
change the mailer from smtp to uucp-dom. The line will initially
look like this:R$* < @$* > $* $#smtp $@ $2 $: $1 < @ $2 > $3And finally, look similar to the following:
R$* < @$* > $* $#uucp-dom $@ $2 $: $1 < @ $2 > $38. Edit the UUCP mailer specification. Search for the string
"specification" until you find an entry that looks similar to
the following:#####################################
### UUCP Mailer specification ###
#####################################We are primarily interested in the domain-ized UUCP mailer. Make the following changes to the domain-ized UUCP mailer:
Add the -D flag to rmail to allow the specification of a
non-standard transport domain. The entry should look similar to
the following:# domain-ized uucp mailer
Muucp-dom, P=/usr/bin/uux, F=mDFMhu, S=52/31, R=21, M=100000,
A=uux - -r -a$f -gC $h!rmail -D ($u)We must now hardcode the name of the remote UUCP system to the
rmail command. The final entry should look similar to the
following:Muucp-dom, P=/usr/bin/uux, F=mDFMhu, S=52/31, R=21, M=100000,
A=uux - -r -a$f -gC remote!rmail -D domain.com ($u)9. Finally, you must restart the sendmail daemon in order for these
changes to take effect. You can do this by typing the following
at the command line:kill `head -1 /etc/sendmail.pid` See also
sendmail.cf(SFF); sendmail(ADMN); UUCP(C); rmail(ADMN)