|
|
MMDF provides authorization checks on the next ``hop'' host in the address route. If someone specifies a route through your host, MMDF on your host can authorize the next hop in that route. In other words, MMDF does not perform authorization based on the final destination unless the final destination is the next hop.
Configuring host-based authorization can help control unsolicited email, or ``spam''. In particular, it prevents your system from being used as a third-party mail relay, an intermediate site between a sender and a recipient.
To control authorization on a per-host basis:
This example declares the table world-auth:
MTBL "world-auth", file="authinfo/world"The file parameter specifies that world-auth is stored in /usr/mmdf/table/authinfo/world. You will create the actual table later in this procedure.
For example, define a channel (called localnet in this example) for all hosts on the local network:
MCHN localnet, auth=free, show="LOCALNET Delivery", ap=822, mod=immThe ``auth=free'' authorization setting is the default; you do not have to specify it explicitly as in this example. See ``Specifying channel authorization levels''.
Define a channel (called world in this example) for all the hosts not in the localnet network:
MCHN world, auth=inblock, indest="world-auth", show="WORLD Delivery", ap=822, mod=immIn this case, anyone can send mail out on the world channel, but MMDF checks the world-auth table to authorize the destination of mail arriving on this channel.
world: local: localnet: moocow.uucpThe entries on the left side of the authorization table specify that if the destination host for a message is on either the world or local channels, MMDF authorizes anyone using the world channel as an input channel to send mail.
The entry on the right side of the localnet channel entry specifies the hosts and channels that are authorized to send outgoing mail using the localnet channel. In this case, moocow.uucp is the only machine allowed to pass mail into the localnet network.