To configure MMDF authorization on a per-user basis, you must first set up the authorization level on the channels that you want to restrict and create appropriate channel tables, as described in ``Specifying host-based authorization''.
To set up authorizations for specific users:
For example, if the name of file containing the user authorization table is auth.user:
MTBL auth, file="auth.user", show "Per-user authorization"You must call the per-user authorization table auth; MMDF treats any table called auth as the per-user authorization table.
The username can be a local or remote user name, keyword describes the actions that you can authorize users to perform, and channel is the channel name on which the authorizations apply. The keywords are:
MMDF treats any other keyword as expire, except that MMDF sends the text of the action instead of ``expire'' to the user in error mail.
Include one line in the table for each user to whom you want to grant mail access. Any users not listed are not authorized to use any channel except the channels set to the free, inlog, or outlog authorization levels (see ``Specifying channel authorization levels'').
To set up access authorizations for a local user, specify the unqualified user name. For example, the local user andrei can both send and receive mail on the SMTP and UUCP channels:
andrei: both smtp,uucpHowever, if you set up host-based authorization to restrict access to one of these channels, for example UUCP, andrei might not be authorized to send or receive mail on that channel.
Because mail on the local channel is not restricted, andrei can pass mail through this channel even though the user authorization list does not include ``local'' in the list of channels.
To set up access authorization for a remote user, specify the fully qualified address of that user. For example, to allow melissa on the machine silly.org to send mail through TCP/IP (the SMTP channel) on this host, add a line like this to the authorization table:
email@example.com: send smtpIf mail arrives for melissa through UUCP, or if she tries to send mail through the UUCP channel, MMDF rejects the mail.
To expire a particular user's access and tell MMDF to send an error message, add the message to the user authorization table line for that user. For example, to expire firstname.lastname@example.org's access and send the text ``No more mail for you!'', include a line like this one:
aaron@thames.COM: "No more mail for you!" uucp