2 * ========================================================================
3 * Copyright 1988-2007 University of Washington
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
12 * ========================================================================
14 .TH DMAIL 1 "June 18, 2007"
16 dmail \- procmail Mail Delivery Module
20 .I [\-D] [\-f from_name] [-s] [-k keyword_list] [user][+folder]
23 delivers mail to a user's INBOX or a designated folder.
25 may be configured as a drop-in replacement for
28 for use with a mail delivery filter such as
31 Because of security considerations (see below)
33 is not intended to be used for direct delivery by the mailer daemon;
35 is the preferred tool for this purpose. If
37 is used for mailer daemon delivery, the mailer daemon must invoke
41 process' user id set to the recipient's user id.
45 exits, it returns exit status values to enable
47 to determine whether a message was delivered successfully or had a
48 temporary (requeue for later delivery) or permanent (return to sender)
53 name is present, it must be the same as the logged-in user name.
57 extension is included in the user argument (or appears by itself if there
60 will attempt to deliver to the designated folder. If the folder does not
61 exist or the extension is not included, the message is delivered to the
63 If delivery is to INBOX and no INBOX currently exists,
65 will create a new INBOX.
67 recognizes the format of an existing INBOX or folder, and appends the new
68 message in that format.
70 The \fB-D\fR flag specifies debugging; this enables additional message
73 The \fB-f\fR or \fB-r\fR flag is used to specify a Return-Path. The header
75 Return-Path: <\fIfrom_name\fR>
77 is prepended to the message before delivery.
81 flag specifies that the message will be flagged as being "seen".
83 The \fB-k\fR flag is used to specify delivery keywords, which are set on
84 the message at delivery time if and
86 if the keywords are already defined in the mailbox. Multiple keywords can be
87 specified by using a quoted string, e.g.,
89 dmail -k "$Junk Discard" +junkbox
92 Absolute pathnames and
94 specifications are not permitted in
97 .SH SECURITY CONSIDERATIONS
102 to deliver to IMAP4 namespace names via
104 extensions. This means that it is possible to deliver to
108 However, this can also include such namespaces as #shared, #public,
109 and #ftp. In most cases, it is undesirable to allow anybody sending
110 mail to the user to deliver to these namespaces. Consequently, there
111 needs to be a rule in place in the configuration of either
115 to prevent such abuse.
117 Mark Crispin, MRC@CAC.Washington.EDU