[ home --> uucp --> maintenance --> links ] |
Well, first of all UUCP saves money. I read loads of mail and news, and being online is quite expensive (our PTT is way too happy with me as it is).
UUCP exchanges news articles in compressed form ('batches'), and these batches are prepared while I'm offline. This saves a lot of time, normally spent online.
Second, UUCP is a very convenient way to automate my news and email supply. I have full control over my email and news. This is the good part. The downside is, of course, that you need to invest some time in the configuration and maintenance of your UUCP link.
This document should describe the entire process of configuring your machine for UUCP under Linux. I use Slackware Linux, v2.0.29 with Taylor UUCP (v1.06.1). This is the standard UUCP as distributed with my Slackware setup (off the Infomagic LDR, dec. 1996)
I have completed the configuration of UUCP in several steps:
Limit your hostname to 7 characters or less (I'll use 'myhost' as an example hostname). Your machine will identify itself to IAEhv as 'Umyhost'. This is the special UUCP accountname that you need to get from IAEhv (account@iaehv.nl will gladly help you set up a UUCP account).
Once you have decided on a hostname (and applied for the UUCP account), you will need to modify (or create) the following system configuration files:
Other interesting configuration files are:
Warning: sendmail.cf hacking can be dangerous to your mental health ;)
Fortunately, 'm4' comes to the rescue. I use the m4 macro processor to generate a suitable /etc/sendmail.cf from the following definitions (note the 'iaehv' smarthost entry):
include(/usr/src/sendmail/cf/m4/cf.m4) VERSIONID(setup for linux with uucp)dnl OSTYPE(linux) FEATURE(nodns)dnl FEATURE(always_add_domain)dnl FEATURE(nocanonify) MAILER(local)dnl MAILER(smtp)dnl MAILER(uucp) define(SMART_HOST, uucp-dom:iaehv)The "nocanonify" feature is absolutely necessary: sendmail should not try to resolve email addresses using DNS. If you leave out this feature, sendmail will happily try to resolve addresses every couple of minutes (bringing up your auto-dialing PPP link), resulting in unpleasantly huge bills from your phone company ;)
The command:
m4 sendmail.mc > sendmail.cf
will now produce your sendmail configuration file.
Over time, I have made a couple of small modifications to the generated /etc/sendmail.cf: Around line 159, I activated the maximum message size check:
O MaxMessageSize=1000000Around line 204, I disabled MIME-type error messages:
O SendMimeErrors=FalseFinally, I changed the loglevel around line 225:
O LogLevel=8
Taylor UUCP allows two types of configuration: the Taylor-configuration and the "HoneyDanBer" (or 'HDB') configuration.
# Automatic Call Unit, /dev/ttyS1, 38400 baud, hayes dialer. Ed ACU ttyS1 - 38400 hayesThis defines a modem (or ACU) on /dev/ttyS1. The type of ACU is 'hayes' (the name itself does not imply anything).
# EDVK 960420 Changed AT into reset, AT&F1 for USR Sportster. # Probably the modem is still in fax-mode (mgetty receives faxes) # EDVK 960420 Removed \E echo check hayes =,-, "" \dAT&F1\r\c OK\r ATDT\T\r\c CONNECTThis defines the behaviour of a 'hayes' modem. The stuff you see in that file is actually some form of chat-script.
MACHINE=iaehv \ MYNAME=myhost \ COMMANDS=rmail:rnews:uucp:uuxThis allows 'iaehv' to execute rmail, rnews, uucp and uux on 'myhost'.
Make sure to replace 'myhost' by your chosen hostname!
iaehv Any;1 ACU 38400 0402439436 "" \r\c ogin:--ogin: Umyhost word: mypasswordThis allows 'myhost' to call 'iaehv' anytime on the specified phone number. The rest of the line is, again, a chat-script.
Make sure to replace 'myhost' and 'mypassword' with your UUCP hostname and password!
The UUCP mail queue can be viewed using
uustat -a
Now, try to send the email (do this as user 'uucp'):
/usr/lib/uucp/uucico -r1 -siaehv
Your modem should start dialing (uucico is the UUCP program that talks to the modem). Check the logfiles in /var/spool/uucp/.Log/uucico/ for details.
# Check UUCP requests every 15 minutes 0,15,30,45 * * * * /usr/lib/uucp/uusched # Poll every morning at 07:15 15 07 * * * /usr/lib/uucp/uucico -r1 -siaehv
Be warned that the above configuration will dial out every 15 minutes if mail or news are waiting! I usually run uusched only a couple of times a day, for example late at night.
Due to the excessive amount of spam/UCE that I receive, I unfortunately have to recommend using a fake email address in your news software. CNews, if properly instructed, will do this for you (hint: take a look at /var/lib/news/mailname).
You might have to download C-News from ftp://ftp.cs.toronto.edu/pub/c-news/ if it was not included with your distribution.
top | $Id: index.m4,v 1.2 1999/04/26 12:24:02 ed Exp $ |