1mail.local(1M)          System Administration Commands          mail.local(1M)
2
3
4

NAME

6       mail.local - store mail in a mailbox
7

SYNOPSIS

9       /usr/lib/mail.local [-f sender] [-d] recipient
10
11

DESCRIPTION

13       mail.local reads the standard input up to an end-of-file and appends it
14       to each user's mail file (mailbox). This program is intended to be used
15       by  sendmail(1M)  as  a mail delivery agent for local mail. It is not a
16       user interface agent.
17
18
19       Messages are appended to the user's mail file in the  /var/mail  direc‐
20       tory. The user must be a valid user name.
21
22
23       Each  delivered mail message in the mailbox is preceded by a "Unix From
24       line" with the following format:
25
26
27       From sender_address time_stamp
28
29
30       The sender_address is extracted from the  SMTP  envelope  address  (the
31       envelope address is specified with the -f option).
32
33
34       A trailing blank line is also added to the end of each message.
35
36
37       The mail files are locked with a .lock file while mail is appended.
38
39
40       The  mail  files  are created with mode 660, owner is set to recipient,
41       and group is set to mail. If the ``biff'' service is returned  by  get‐
42       servbyname(3SOCKET),  the  biff  server  is notified of delivered mail.
43       This program also computes the Content-Length:  header  which  will  be
44       used by the mailbox reader to mark the message boundary.
45

OPTIONS

47       The following options are supported:
48
49       -f sender    Specifies the "envelope from address" of the message. This
50                    flag is technically optional,  but should be used.
51
52
53       -d           Specifies the recipient of the message. This flag is  also
54                    optional and is supported here for backward compatibility.
55                    That is, mail.local recipient is the same as mail.local -d
56                    recipient.
57
58
59       -l           Turn on LMTP mode.
60
61
62       -r from      Specify the sender's name (for backward compatibility).
63
64
65       -7           Do not advertise 8BITMIME support in LMTP mode.
66
67
68       -b           Return a permanent error instead of a temporary error if a
69                    mailbox exceeds quota.
70
71

OPERANDS

73       The following operand is supported:
74
75       recipient    The recipient of the mail message.
76
77

ENVIRONMENT VARIABLES

79       TZ    Used to set the appropriate time zone on the timestamp.
80
81

EXIT STATUS

83       The following exit values are returned:
84
85       0     Successful operation.
86
87
88       >0    An error occurred.
89
90

FILES

92       /tmp/local.XXXXXX      temporary files
93
94
95       /tmp/lochd.XXXXXX      temporary files
96
97
98       /var/mail/user_name    user's mail file
99
100

ATTRIBUTES

102       See attributes(5) for descriptions of the following attributes:
103
104
105
106
107       ┌─────────────────────────────┬─────────────────────────────┐
108       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
109       ├─────────────────────────────┼─────────────────────────────┤
110       │Availability                 │SUNWsndmu                    │
111       └─────────────────────────────┴─────────────────────────────┘
112

SEE ALSO

114       mail(1),     comsat(1M),     sendmail(1M),      getservbyname(3SOCKET),
115       attributes(5)
116
117
118
119SunOS 5.11                        11 Apr 1997                   mail.local(1M)
Impressum