15.4 Hub Accepts Mail for ClientRecall that mail to your machine will be delivered to the hub, because of the MX record that you just created. Unless you change the configuration of the hub, that mail will bounce, because the hub doesn't yet know that it should accept it. Again, you may lack permission to make the required changes. But for the sake of illustration we'll assume that you can.
You need to modify the hub's configuration file so
that the hub thinks mail to your local machine is instead mail
to itself. The first step is to edit the hub's configuration
file and search for the rule that allows it to recognize
itself. Because every machine needs to recognize itself under the
name
# We always want localhost to be considered local. Cwlocalhost
This example shows part of a typical configuration file that
declares
We searched for
# Other name for our machine CO localhost printserver faxhost
If your hub's configuration file is like this, use the letter Now that you have the name (letter) of the class of other names, you need to add the local workstation's name to that list. This can be done in either of two ways. If the local machine is the only one that will be using the client.cf file, you can add its name to the existing class definition:
# Other name for our machine CO localhost printserver faxhost On the other hand, if yours is just the first of many machines that will be using the client.cf file, you should create an external file now, so that the hub's configuration file only needs to be edited once:
# Other name for our machine CO localhost printserver faxhost If you use the external file approach, make certain to create that file and add the local machine's name to it before continuing. After modifying the hub's sendmail.cf file, you should test it. Run sendmail in rule-testing mode and give it the local machine's name as part of each address:
% This example shows that the hub is running an old version of sendmail , [4] one that always calls rule set 3 first. Bear that in mind as you feed it addresses.
To test whether or not the hub's
sendmail
recognizes the
local machine as local to the hub, you need to see whether rule set
0 selects the
>
Success! The output that is produced will vary depending
on your hub's configuration file and version of
sendmail
,
but the result you are seeking will be the same. The last
line of output (what rule set 0 returns) should show that
the Now perform the same test, but this time include your domain as part of the hostname:
>
If all tests well, you need to kill and restart the
sendmail
daemon on the hub. Review
Chapter 4,
How to Run sendmail
,
if you've forgotten how to do this.
Beware of any frozen configuration file that might exist if the
hub is running a pre-V8 version of
sendmail
. If one exists, you will
have to refreeze it. (See the discussion of the |
|