1MAIL.LOCAL(8) MAIL.LOCAL(8) 2 3 4 5[1mNAME[0m 6 mail.local - store mail in a mailbox 7 8[1mSYNOPSIS[0m 9 [1mmail.local [22m[[1m-7[22m] [[1m-b[22m] [[1m-d[22m] [[1m-D [4m[22mmbdb[24m] [[1m-l[22m] [[1m-f [4m[22mfrom[24m|[1m-r [4m[22mfrom[24m] [[1m-h [4m[22mfilename[0m 10 ] [4muser[24m [4m...[0m 11 12[1mDESCRIPTION[0m 13 [1mMail.local [22mreads the standard input up to an end-of-file and appends it 14 to each [4muser's[24m [1mmail [22mfile. The [4muser[24m must be a valid user name. 15 16 The options are as follows: 17 18 [1m-7 [22mDo not advertise 8BITMIME support in LMTP mode. 19 20 [1m-b [22mReturn a permanent error instead of a temporary error if a 21 mailbox exceeds quota. 22 23 [1m-d [22mSpecify this is a delivery (for backward compatibility). 24 This option has no effect. 25 26 [1m-D [4m[22mmbdb[24m Specify the name of the mailbox database which is used to 27 look up local recipient names. This option defaults to "pw", 28 which means use getpwnam(). 29 30 [1m-f [4m[22mfrom[24m Specify the sender's name. 31 32 [1m-l [22mTurn on LMTP mode. 33 34 [1m-r [4m[22mfrom[24m Specify the sender's name (for backward compatibility). Same 35 as -f. 36 37 [1m-h [4m[22mfilename[0m 38 Store incoming mail in [4mfilename[24m in the user's home directory 39 instead of a system mail spool directory. 40 41 The next options are only available if [1mmail.local [22mhas been compiled 42 with -DHASHSPOOL. 43 44 [1m-H [4m[22mhashtypehashdepth[0m 45 Select hashed mail directories. Valid hash types are [1mu [22mfor user 46 name and [1mm [22mfor MD5 (requires compilation with -DHASHSPOOLMD5). 47 Example: [1m-H [4m[22mu2[24m selects user name hashing with a hash depth of 2. 48 Note: there must be no space between the hash type and the 49 depth. 50 51 [1m-p [4m[22mpath[0m 52 Specify an alternate mail spool path. 53 54 [1m-n [22mSpecify that the domain part of recipient addresses in LMTP mode 55 should not be stripped. 56 57 Individual mail messages in the mailbox are delimited by an empty line 58 followed by a line beginning with the string ``From ''. A line con- 59 taining the string ``From '', the sender's name and a time stamp is 60 prepended to each delivered mail message. A blank line is appended to 61 each message. A greater-than character (``>'') is prepended to any 62 line in the message which could be mistaken for a ``From '' delimiter 63 line (that is, a line beginning with the five characters ``From '' fol- 64 lowing a blank line). 65 66 The mail files are exclusively locked with flock(2) while mail is 67 appended, and a [1muser.lock [22mfile also is created while the mailbox is 68 locked for compatibility with older MUAs. 69 70 If the ``biff'' service is returned by getservbyname(3), the biff 71 server is notified of delivered mail. 72 73 The [1mmail.local [22mutility exits 0 on success, and >0 if an error occurs. 74 75[1mENVIRONMENT[0m 76 TZ Used to set the appropriate time zone on the timestamp. 77 78[1mFILES[0m 79 /tmp/local.XXXXXX temporary files 80 /var/mail/user user's default mailbox directory 81 /var/mail/user.lock lock file for a user's default mailbox 82 83[1mSEE ALSO[0m 84 mail(1), xsend(1), flock(2), getservbyname(3), comsat(8), sendmail(8) 85 86[1mWARNING[0m 87 [1mmail.local [22mescapes only "^From " lines that follow an empty line. If 88 all lines starting with "From " should be escaped, use the 'E' flag for 89 the local mailer in the sendmail.cf file. 90 91[1mHISTORY[0m 92 A superset of [1mmail.local [22m(handling mailbox reading as well as mail 93 delivery) appeared in Version 7 AT&T UNIX as the program [1mmail[22m. 94 95 96 97 $Date: 2013-11-22 20:51:51 $ MAIL.LOCAL(8) 98