Before you can use the mail system, you must select a user-agent program such as one of the following:
A user-agent program provides facilities for creating, receiving, sending, and filing mail. In addition, you need a transport-agent program, sendmail, which distributes incoming mail from other systems or packages and distributes each outgoing mail item and then transmits it to a similar program in one or more remote systems.
Note: mail and mh are incompatible in the way they store mail; you must choose one mail handler or the other.
The mail program provides you with a user interface to handle mail to and from both a local network user and a remote system user.
A mail message can be text, entered using an editor, or an ASCII file. In addition to a typed message or a file, you can send:
|Informs users the system has been updated. A system message is similar to a broadcast message, but is sent on the local network only.
|Used to send classified information. A secret mail message is encrypted. The recipient must enter a password to read it.
|Informs users you are on vacation. When your system receives mail in your absence, it sends a message back to the origin. The message states you are on vacation. Any mail you receive while on vacation can also be forwarded.
When you receive mail using the mail subcommands, you can:
The installation of sendmail is automatic.
For more information about the mail program, refer to "Mail Overview".
mh is a collection of commands that enables you to perform each mail processing function directly from the command line. These commands provide a broader range of function than the subcommands of mail, and, since they can be issued at any time the command prompt is displayed, you gain power and flexibility in creating mail and in processing received mail. For example, you can read a mail message, search a file or run a program to find a particular solution, and answer the message, all within the same shell.
The mh program enables you to create, distribute, receive, view, process, and store messages using the following commands:
|Lists mail aliases and their addresses.
|Parses and reformats addresses.
|Explodes digests into messages.
|Starts an editor for creating or modifying a message.
|Redistributes a message to additional addresses.
|Parses and reformats dates.
|Selects and lists folders and messages.
|Lists all folders and messages in the mail directory.
|Incorporates new mail into a folder.
|Creates, modifies, and displays message sequences.
|Produces a formatted listing of messages.
|Sends or receives mail.
|Prints full path names of messages and folders.
|Checks for messages.
|Creates a mail handler (MH) shell.
|Shows the next message.
|Compresses the contents of a folder into a file.
|Selects messages by content and creates and modifies sequences.
|Shows the previous message.
|Moves files between folders.
|Replies to a message.
|Removes folders and the messages they contain.
|Removes messages from active status.
|Produces a one-line-per-message scannable listing.
|Sends a message.
|Starts a visual interface for use with mh commands.
|Starts a prompting interface for draft disposition.
|Manipulates MH addresses.
For more information on mh commands, refer to the AIX Version 4.3 Commands Reference.
bellmail is the original AT&T UNIX mail command, which handles mail for users on the same system and also for users on remote systems that can be accessed by means of Basic Network Utilities (BNU), sometimes known as the UNIX-to-UNIX Copy Program (UUCP). These programs support only networks of systems connected by dial-up or leased point-to-point communication lines. The command opens a shell whose subcommands allow you to:
However, you must have some skill as a UNIX user before you can make full use of this mail handler. For more information, refer to the bellmail command in the AIX Version 4 Commands Reference.