PMDF System Manager's Guide


Previous Contents Index

17.3.2 The PMDF User Profile Database

The PMDF user profile database mechanism provides a way for PMDF system managers to provide default .forward file functionality for users; for instance, to specify that local users' messages should be delivered, in lieu of more specific instructions in users' own .forward files, to DEC MailWorks. It also provides a convenient way for users to make their own selection of any delivery format choices authorized by the PMDF system manager.

The PMDF system manager defines PMDF user profile database methods, as described below in Section 17.3.2.1, corresponding to .forward file style entries. Then a user can modify his or her own PMDF user profile database entry, selecting a delivery format by keyword, rather than having to correctly add an actual, possibly complicated, delivery mechanism command to his or her .forward file.

When executing a delivery command corresponding to a user's entry in the PMDF user profile database, PMDF becomes that user.

17.3.2.1 Configuring the PMDF User Profile Database Methods

The PMDF system manager defines delivery methods in the user profile database by first creating a PMDF profile database using a command such as


# su pmdf -c "pmdf crdb /dev/null PMDF_USER_PROFILE_DATABASE"
and then using the pmdf profile utility's set method command. The username of the user on whose behalf the command is executed will be substituted where the string %s is located. The substitution strings %+, meaning the username plus subaddress (portion after a plus character), and %d, meaning the user's default directory, are also available.

For example:


# pmdf profile
profile> set method BSD "/var/spool/mail/%s"
profile> set method DMW "|/usr/bin/inetgrecv %s"
profile> set method MIME "+/var/spool/mail/%s"
profile> show method -all
Method BSD is defined as: /var/spool/mail/%s 
Method DMW is defined as: |/usr/bin/inetgrecv %s 
Method MIME is defined as: +/var/spool/mail/%s 
profile> exit

More details on the pmdf profile utility can be found in Section 30.2.1.

17.3.2.2 Adding User Entries to the PMDF User Profile Database

Once delivery methods have been defined, the PMDF system manager (user root or pmdf) can use the pmdf profile utility's set delivery command to set a particular user's delivery format to be one of the defined methods with the privileged -user qualifier, or set a default delivery format for users who do not set their own delivery format with the privileged -default qualifier.

For example, if the PMDF system manager has configured methods BSD and DMW, then the commands:


# pmdf profile set delivery BSD -user=root
# pmdf profile set delivery DMW -default
would direct that messages to root be delivered in normal UNIX mailbox format, but that all other messages delivered by the local channel be delivered by default using the DMW method.

Users can also set their own delivery format to be one of the methods defined by the PMDF system manager. For example, a user who wants to receive their messages in DEC MailWorks and whose PMDF system manager has configured DMW as the name of such a delivery method could use the command:


% pmdf profile set delivery DMW


Previous Next Contents Index