
After finally settling down and properly reading TFM (the Bat Book, to be precise) i have solved the Caramilk secret! The steps below have been tested with the binary supplied by RedHat. Perhaps i should send this tip to the maintainer of the Sendmail FAQ too since there is absolutely no mention of UUCP interworking with sendmail there.
You can also find help on the following newsgroups:
comp.mail.sendmail
comp.mail.uucp
comp.os.linux.networking
IRC channels
#linux, #unix
------------------------
| |
| Internet |
| |
-----------------------
|
| PPP/dedicated line running TCP-IP
|
-------------
| |
|mysmarthost | Authoritative name server for
| | *.me.com, *.down.com, *.system1.org
| |
--------------
|
| UUCP via a phone line receive for
| system1.org, *.system1.org,*.down.com, down.com
| as well as me.com and *.me.com
------------
| * ***** * |
------------ | * me.com * | ------
| * * | |
| | * ***** * | |
| ------------ |
|UUCP via phone line | uucp via TCP/IP
| |
----------- -----------
| | | |
|system1.org| | down.com |-------
| | | | |
---------- ------------ |
| |
| |
| | LAN: smtp to nodes
| UUCP phone line
| |
----------- -------------
| | | |
|system1's| | down's |
|subnodes | | LAN |
| | ------------
----------
a) Refer to my solution for this based on the m4 file described (my favorite). Try to use this option unless you really insist on b) or c) below OR
b)If you talk to me i could supply you with a non-BIND compiled version (8.8.5). Perhaps RedHat should consider supplying two sendmail binaries (like slakware) One with BIND and the other with no BIND. OR
c) The quickest solution to get sendmail with no bind is to edit src/conf.h lines below to read as i have shown:
# ifndef NAMED_BIND conf.h:# define NAMED_BIND 0 /* use Berkeley Internet Domain Server */
PART II:
Sendmail would however normally insist on doing name look ups to resolve the host part using gethostbyaddr() for each email it sends (even if you tell it not to canonify names).
a) use an RFC1597 IP address (10.0.0.0-10.255.255.255, 172.16.0.0-172.31.255.255, 192.168.0.0-192.168.255.255)
Edit /etc/hosts and add the following as a sample for the host myhost
10.0.0.1 myhost.me.com myhost or
b) If you use NIS (and NIS is compiled into sendmail as seems to be the case in Redhat. ) make sure the /etc/nsswitch.conf file contains:
hosts: files dns and in /etc/hosts and add the following as a sample for the host myhost [again using RFC1597 IP addressing scheme]
10.0.0.1 myhost.me.com myhost
NOTE: ---- In both a) and b) above it is critical that you list the long (fully qualified) in the /etc/hosts file used. i.e the line should read 10.0.0.1 myhost.me.com myhost and NOT 10.0.0.1 myhost you will also need to define the sendmail $w macro to hold myhost.me.com
add the Following line to your /etc/sendmail.cf after it is generated Djmyhost.me.com (or you can use MASQUAREADE_AS(myhost.me.com) in the .mc below)
NOTE!!!!! myhost as a domain name is given as an example; you dont have to use it as is. Pick your own hostname if you dont have one already.
2) Ensure that you have makemap and it is capable of supporting hash and or the more common dbm format or even btree format (The Redhat version does not support dbm). Makemap is normaly distributed with sendmail.
a) No DNS -- standalone
Let's dissect this:
b) DNS on
a) create/edit the file /etc/mailertable
sample /etc/mailertable
system1.org uucp-dom:system1
.system1.org uucp-dom:system1
down.com uucp-dom:down
up.down.com error: Host is unknown at me.com
.down.com uucp-dom:down
.me.com error: Host unknown at me.com
This says anything that is addressed to system1.org or to *.system1.org that we receive will be sent using the uucp-dom mailer and be delivered to system1 (defined in the the uucp sys file) in other words we are doing the mail routing for *.system1.org ; similar for down.com and its subnodes except for the additional filtering; we bounce back any mail for down's subnode up.down.com using sendmail's built-in error mailer with the message "Host is unknown at me.com"; This is because we have been asked to do this by the admin at down.com. To bounce unknown subdomains to us we use the last line in the mailertable (which is what all unknown nodes default to).
b) create the database with makemap
if you use hash:
makemap hash /etc/mailertable < /etc/mailertable
if you use dbm:
makemap dbm /etc/mailertable </etc/mailertable
if you use btree:
makemap btree /etc/mailertable </etc/mailertable
do this every time you change the file.
You are set!
1) Add info on setting up system down.com (so as to show how to
take care of those smtp nodes)
2) Add info on how to setup news to be delivered via UUCP
(preferably INN). This might require changing the title of the doc.