NetBSD/usr.sbin/sendmail/FAQ

231 lines
9.9 KiB
Plaintext
Raw Normal View History

Sendmail Version 8
Frequently Asked Questions
VERY EARLY DRAFT
1993-11-05 10:50:58 +03:00
Last Update: October 30, 1993
This FAQ is specific to Version 8 of sendmail.
----------------------------------------------------------------------
* What are the differences between Version 8 and other versions?
See CHANGES-R5-R8 in the anonymous FTP directory.
----------------------------------------------------------------------
* What happened to sendmail 6.x and 7.x?
When I released a new version of sendmail, I changed it to
Release 6. Development continued in that tree until 4.4BSD
was released, when everything on the 4.4 tape was set to be
version 8.1. Version 7.x never existed.
----------------------------------------------------------------------
* Where can I get Version 8?
Via anonymous FTP from FTP.CS.Berkeley.EDU in /ucb/sendmail.
----------------------------------------------------------------------
* Version 8 requires a new version of "make". Where can I get this?
Actually, Version 8 does not require a new version of "make".
It includes a collection of Makefiles for different architectures,
only one or two of which require the new "make". If you are
porting to a new architecture, start with Makefile.dist.
If you really do want the new make, it is available on any of
the BSD Net2 distribution sites. These include:
ftp.uu.net /systems/unix/bsd-sources
gatekeeper.dec.com /.0/BSD/net2
ucquais.cba.uc.edu /pub/net2
ftp.luth.se /pub/unix/4.3bsd/net2
1993-11-05 10:50:58 +03:00
Diffs and instructions for building this version of make under
SunOS 4.1.x are available on ftp.css.itd.umich.edu in
/pub/systems/sun/Net2-make.sun4.diff.Z.
----------------------------------------------------------------------
* What macro package do I use to format the V8 man pages?
The BSD group switched over the the ``mandoc'' macros for
the 4.4 release. These include more hooks designed for
hypertext handling. However, new man pages won't format
under the old man macros. Fortunately, old man pages will
format under the new mandoc macros.
Get the new macros with the BSD Net2 release.
1993-11-05 10:50:58 +03:00
This macro set is also available with newer versions of groff.
----------------------------------------------------------------------
* What books are available describing sendmail?
There are currently no books available devoted to sendmail.
However, there are several books that have sendmail chapters.
Nemeth, Snyder, and Seebass, _Unix System Administration
Handbook_. Prentice-Hall.
Carl-Mitchell and Quarterman, _Practical Internetworking with
TCP/IP and UNIX_. Addison-Wesley.
Hunt, _TCP/IP Network Administration_. O'Reilly & Associates.
1993-11-05 10:50:58 +03:00
At least two books are due out "soon":
Costales, Allman, and Rickert, _Sendmail_. O'Reilly &
1993-11-05 10:50:58 +03:00
| Associates (to appear November 1, 1993).
Avolio & Vixie, _Sendmail Theory and Practice_. Digital
1993-11-05 10:50:58 +03:00
Press (release date unknown).
----------------------------------------------------------------------
* How do I make all my addresses appear to be from a single host?
Using the V8 configuration macros, use:
MASQUERADE_AS(my.dom.ain)
This will cause all addresses to be sent out as being from
the indicated domain.
----------------------------------------------------------------------
* How do I rewrite my From: lines to read ``First_Last@My.Domain''?
There are a couple of ways of doing this. This describes using
the "user database" code. This is still experimental, and was
intended for a different purpose -- however, it does work
with a bit of care. It does require that you have the Berkeley
"db" package installed (it won't work with DBM).
First, create your input file. This should have lines like:
loginname:mailname First_Last
First_Last:maildrop loginname
Install it in (say) /etc/userdb. Create the database:
makemap btree /etc/userdb.db < /etc/userdb
You can then create a config file that uses this. You will
have to include the following in your .mc file:
define(confUSERDB_SPEC, /etc/userdb.db)
FEATURE(notsticky)
----------------------------------------------------------------------
* So what was the user database feature intended for?
The intent was to have all information for a given user (where
the user is the unique login name, not an inherently non-unique
full name) in one place. This would include phone numbers,
addresses, and so forth. The "maildrop" feature is because
Berkeley does not use a centralized mail server (there are a
number of reasons for this that are mostly historic), and so
we need to know where each user gets his or her mail delivered --
i.e., the mail drop.
We are in the process of setting up our environment so that
mail sent to an unqualified "name" goes to that person's
preferred maildrop; mail sent to "name@host" goes to that
host. The purpose of "FEATURE(notsticky)" is to cause
"name@host" to be looked up in the user database for delivery
to the maildrop.
----------------------------------------------------------------------
* Why are you so hostile to using full names for e-mail addresses?
Because full names are not unique. For example, the computer
community has two Andy Tannenbaums and two Peter Deutsches.
At one time, Bell Labs had two Stephen R. Bournes with offices
a few doors apart. You can create alternative addresses
(e.g., Stephen_R_Bourne_2), but that's even worse -- which
one of them has to have their name desecrated in this way?
And you can bet that they will get most of the other person's
email.
So called "full names" are just longer versions of unique
names. Rather that lulling people into a sense of security,
I'd rather that it be clear that these handles are arbitrary.
People should use good user agents that have alias mappings
so that they can attach arbitrary names for their personal
use to those with whom they correspond.
Even worse is fuzzy matching in e-mail -- this can make good
addresses turn bad. For example, I'm currently (to the best
of my knowledge) the only ``Allman'' at Berkeley, so mail
sent to "Allman@Berkeley.EDU" should get to me. But if
another Allman ever appears, this address could suddenly
become ambiguous. I've been the only Allman at Berkeley for
over fifteen years -- to suddenly have this "good address"
bounce mail because it is ambiguous would be a heinous wrong.
Finger services should be as fuzzy as possible. Mail services
should be unique.
----------------------------------------------------------------------
* When I use sendmail V8 with a Sun config file I get lines like:
/etc/sendmail.cf: line 273: replacement $3 out of bounds
the line in question reads:
R$*<@$%y>$* $1<@$2.LOCAL>$3 user@ether
what does this mean? How do I fix it?
V8 doesn't recognize the Sun "$%y" syntax, so as far as it
is concerned, there is only a $1 and a $2 (but no $3) in this
line. Read Rick McCarty's paper on "Converting Standard Sun
Config Files to Sendmail Version 8", in the contrib directory
(file "converting.sun.configs") on the sendmail distribution
for a full discussion of how to do this.
----------------------------------------------------------------------
* Should I use a wildcard MX for my domain?
If at all possible, no.
Wildcard MX records have lots of semantic "gotcha"s. For
example, they will match a host "unknown.your.domain" -- if
you don't explicitly test for unknown hosts in your domain,
you will get "config error: mail loops back to myself"
errors.
----------------------------------------------------------------------
* I'm connected to the network via a SLIP link. Sometimes my sendmail
process hangs (although it looks like part of the message has been
transfered). Everything else works. What's wrong?
Most likely, the problem isn't sendmail at all, but the low
level network connection. It's important that the MTU (Maximum
Transfer Unit) for the SLIP connection be set properly at both
ends. If they disagree, large packets will be trashed and
the connection will hang.
----------------------------------------------------------------------
1993-11-05 10:50:58 +03:00
+ * I just upgraded to 8.x and suddenly I'm getting messages in my
+ syslog of the form "collect: I/O error on connection". What is
+ going wrong?
+
1993-11-05 10:50:58 +03:00
+ Nothing. This is just a diagnosis of a condition that had
+ not been diagnosed before. If you are getting a lot of these
+ from a single host, there is probably some incompatibility
+ between 8.x and that host. If you get a lot of them in general,
+ you may have network problems that are causing connections to
+ get reset.
----------------------------------------------------------------------
* How can I get sendmail to deliver local mail to $HOME/.mail
instead of into /usr/spool/mail (or /usr/mail)?
This is a local mailer issue, not a sendmail issue. Either
modify your local mailer (source code will be required) or
change the program called in the "local" mailer configuration
description to be a new program that does this local delivery.
I understand that "procmail" works well, although I haven't
used it myself.
----------------------------------------------------------------------
* Under V8, the "From " header gets mysteriously munged when I send
to an alias.
``It's not a bug, it's a feature.'' This happens when you have
a "owner-list" alias and you send to "list". V8 propogates the
owner information into the envelope sender field (which appears
as the "From " header on UNIX mail or as the Return-Path: header)
so that downstream errors are properly returned to the mailing
list owner instead of to the sender. In order to make this
appear as sensible as possible to end users, I recommend making
the owner point to a "request" address -- for example:
list: :include:/path/name/list.list
owner-list: list-request
list-request: eric
This will make message sent to "list" come out as being
"From list-request" instead of "From eric".
----------------------------------------------------------------------