POST(8)

NAME
post - store mail in a virtual users mailbox

SYNOPSIS
post domain [-f from] [-g group] [-u user] user ...

DESCRIPTION
Post reads the standard input up to an end-of-file and appends it to each virtual user's mail file. The user must be a valid user name in the given virtual domain.

The options are as follows:

-u user
    Specify the pop3d user name.

-g group
    Specify the pop3d group name.

-f from
    Specify the sender's name.

Individual mail messages in the mailbox are delimited by an empty line followed by a line beginning with the string ``From ''. Each delivered mail message is prefixed with a line containing the string ``From '', the sender's name and a time stamp. A blank line is appended to each message. Every line in the message that could be mistaken for a ``From '' delimeter line is prefixed with a greater-than character (``>'').

The mail files are exclusively locked with flock(2) while mail is appended.

The post utility exits 0 on success, and >0 if an error occurs.

ENVIRONMENT

TZ  Used to set the appropriate time zone on the timestamp.

FILES
/tmp/local.XXXXXX
    temporary files
/var/spool/virtual/domain
    virtual domain mailbox directory.
/usr/local/etc/virtual/domain/passwd
    virtual domain password file.
/usr/local/etc/virtual/domain/alias
    virtual domain alias file.

SEE ALSO
mail(1), flock(2), vm-pop3d(8), sendmail(8)

HISTORY
Post is derived from the mail.local program.