spost [ -noalias | -alias File ...] [ -format | -noformat] [ -filter File | -nofilter] [ -width Number] [ -watch | -nowatch] [ -remove | -noremove] [ -backup | -nobackup] [ -verbose | -noverbose]File
The spost command routes messages to the correct destinations. The spost command is not started by the user. The spost command is called by other programs only.
The spost command searches all components of a message that specify a recipient's address and parses each address to check for proper format. The spost command then puts addresses in the standard format and starts the sendmail command. The spost command performs a function similar to the post command, but it does less address formatting than the post command.
The spost command is the default (over the post command). Change the default by setting the postproc variable in your .mh_profile. For example:
postproc: /usr/lib/mh/post
The File parameter is the name of the file to be posted.
-alias File | Searches the specified mail alias file for addresses. You can repeat this flag to specify multiple mail alias files. The spost command automatically searches the /etc/mh/MailAliases file. |
-backup | Renames the message file by placing a , (comma) before the file name after the spost command successfully posts the message. |
-filter File | Uses the header components in the specified file to copy messages sent to the Bcc: field recipients. |
-format | Puts all recipient addresses in a standard format for the delivery transport system. This flag is the default. |
-help | Lists the command syntax, available switches (toggles), and version
information.
Note: For Message Handler (MH), the name of this flag must be fully spelled out. |
-noalias | Does not use any alias files for delivering the message. |
-nobackup | Does not rename the message after posting the file. This flag is the default. |
-nofilter | Strips the Bcc: field header from the message and sends it to recipients specified in the Bcc: component. This flag is the default. |
-noformat | Does not alter the format of the recipient addresses. |
-noremove | Does not remove the temporary message file after posting the message. |
-noverbose | Does not display information during the delivery of the message to the sendmail command. This flag is the default. |
-nowatch | Does not display information during delivery by the sendmail command. This flag is the default. |
-remove | Removes the temporary message file after the message has been successfully posted. This flag is the default. |
-verbose | Displays information during the delivery of the message to the sendmail command. This information allows you to monitor the steps involved. |
-watch | Displays information during the delivery of the message by the sendmail command. This information allows you to monitor the steps involved. |
-width Number | Sets the width of components that contain addresses. The default is 72 columns. |
$HOME/.mh_profile | Contains the Message Handler (MH) user profile. |
/tmp/pstNumber | Contains the temporary message file. |
/etc/mh/MailAliases | Contains the default mail aliases. |
/usr/lib/mh/.mh_profile | Contains the Message Handler (MH) user profile. |
The ali command, conflict command, mhmail command, post command, send command, sendmail command, and whom command.
The .mh_alias file format.
Mail Overview in AIX 5L Version 5.1 System User's Guide: Communications and Networks.