[comp.mail.sendmail] beginner questions about sendmail configuration

canoaf@ntvax.uucp (Augustine Cano) (10/23/89)

Hello net.land,

I am struggling with my first sendmail configuration.  The hardware setup
I'm using is 2 Unix pc's hard-wired through /dev/tty000.  I have compiled
and manually installed everything I could think of.  I have run sendmail -bi
and sendmail -bz to take care of the aliases and to freeze the configuration.
I started with uucppproto.cf, since I am going to be connected only through
uucp, even when I finally get connected to the outside world.

The first thing I tried to do is set up a few aliases.  This worked fine
using smail.  I switched to sendmail because I wanted some features that
smail could not provide.  The /usr/lib/aliases file contains the following
sendmail aliases:

MAILER-DAEMON: postmaster
postmaster: root

I also included the following where xxx, yyy, zzz, ttt are real login names
and aaa is not (ie: just like postmaster, there is no user called aaa in
/etc/passwd).

aaa:	xxx
root:	xxx
yyy:	xxx
zzz:	xxx
ttt:	xxx

When I send mail to aaa, it bounces with a message that contains the
stderr output of uucp.  Does the correct handling of aliases depend on more
than just setting up the aliases in the /usr/lib/aliases file?  what am I
doing wrong?

The second question (and the reason I had to go with sendmail as opposed to
smail) is this: I want outgoing mail written from any of xxx, yyy, zzz, ttt,
and root to have the From line like this: "From: aaa@hostname.domain".  I
gather that login names xxx, yyy, zzz, ttt and root have to be trusted
users and they are set up like that.  What else do I have to do? (ie: what
kind of rewrite rule for the From: line do I have to include?).

Also related to this, I'm in the process of registering in the US domain,
what do I include in the cf file to specify domain-related behavior?
When I finally connect to the outside world, I'll probably want to start the
easy way, by having a minimum of routing information locally, passing most
unknown addresses to my uucp link or, at most to a major hub 2 hops down.
How do I set this up in the cf file?

Finally, what should the sendmail.cw file contain?  I have just created an
empty file and cannot find any reference to it in the documentation I have.
I only know that if it is not present, sendmail complains about it.
Of course, any reference to any documentation that might help would be welcome.

Please save me from banging my head against cf expressions...

Augustine Cano		canoaf@dept.csci.unt.edu