PMDF User's Guide
UNIX Edition


Previous Contents Index

2.1 The .forward File

PMDF normally looks for your .forward file in your home directory. However, your PMDF system manager may have chosen to configure PMDF to look in a different location for user .forward files; check with your PMDF system manager if you have any question about where your .forward file should reside.

The format for a .forward file is one or more lines, each line containing one or more comma-separated recipient entries. A recipient entry may take the following forms.

Lines beginning with an exclamation point character, !, are considered to be comment lines.

Note that when executing certain actions of your .forward file, PMDF becomes you. In particular, any scripts executed by your .forward file will be executed as you, with your access and privileges.

Example 2-1 shows a sample .forward file for a user jdoe who wants one copy of his messages delivered normally, one copy sent to another of his accounts, one copy sent to his pager, one copy filed in the file thismonthsmailarchive, and also wants to pipe the message through the procmail utility.

Example 2-1 Sample .forward file for user John.Doe

\jdoe, John.Doe@system2.example.com, John.Doe@pager.example.com 
/usr/users/jdoe/thismonthsmailarchive 
"|/usr/bin/procmail jdoe" 

2.2 The PMDF User Profile Database

If your system manager has configured PMDF user profile database options, then you can select among those options for delivering your mail. Note that your system manager may have selected a delivery option for you or a default delivery option for all users on your system, so you may even have a user profile option set without realizing it.

To see what options, if any, your system manager has configured for your site, issue the command


% pmdf profile show method -all
If your system manager has configured any options, they will be listed in the output. For instance, if your system manager has configured two options, regular BSD mailbox delivery and delivery to a MailWorks mailbox, you might see output such as:


% pmdf profile show method -all
Method BSD is defined as: /var/spool/mail/%s 
Method DMW is defined as: |/usr/bin/inetgrecv %s 

To see what your own delivery method is set to, if it is set at all, issue the command


% pmdf profile show delivery

To set your delivery method, issue the command


% pmdf profile set delivery method-name
where method-name is the name of a method defined by the system manager, listed in the output of a pmdf profile show method -all command. For instance,


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

See Section 5.2 for additional discussion of using the pmdf profile utility.


Previous Next Contents Index