1MAILBOT(1) Double Precision, Inc. MAILBOT(1)
2
3
4
6 mailbot - A MIME-aware autoresponder utility
7
9 mailbot [options] {program} [arg...]
10
11 In .mailfilter:
12
13 if (/^Subject: *info/)
14 {
15 cc "| mailbot -t /usr/share/autoresponse/info -d autoresponsedb \
16 -A 'From: info@domain.com' /usr/bin/sendmail -f ''"
17 }
18
20 mailbot reads an E-mail message on standard input and creates an E-mail
21 message replying to the original message's sender. A program is
22 specified as an argument to mailbot after all of mailbot options.
23 program is expected to read the created autoreply on its standard
24 input, and mail it. If program is not specified, mailbot runs 'sendmail
25 -f ""'.
26
27 mailbot has several options for suppressing duplicate autoresponse
28 messages. If mailbot chooses not to send an autoresponse, it quietly
29 terminates without running program. The autoresponse is optionally
30 formatted as a MIME delivery status notification.
31
32 The text of the autoresponse is specified by the -t or the -m argument.
33 Either one is required. Everything else is optional. The default
34 behavior is to send an autoresponse unless the original message has the
35 "Precedence: junk" or the "Precedence: bulk" header, or the
36 "Precedence: list" header, or the "List-ID:" header, or if its MIME
37 content type is "multipart/report" (this is the MIME content type for
38 delivery status notifications). The -M option formats the the
39 autoresponse itself as a MIME delivery status notification.
40
42 -faddress
43 Address the autoresponse to address, which must be an RFC 2822[1]
44 address. By default mailbot takes the autoresponse address from the
45 From: (or the Reply-To:) header in the original message. -f, if
46 present, overrides and explicitly sets the autoresponse address.
47 "address" must immediately follow the -f option without an
48 intervening space (it's a single command line argument). An -f
49 option without an address takes the address from the SENDER
50 environment variable.
51
52 -t filename
53 Read text autoresponse from filename, which should contain a plain
54 text message.
55
56 -c charset
57 Set the autoresponse's MIME character set to charset. Run mailbot
58 without any arguments to see the default character set.
59
60 -m filename
61 Read a MIME autoresponse from filename. This is similar to the -t
62 option, except that filename contains MIME headers, followed by a
63 blank line, and the corresponding MIME content. The contents of
64 filename are inserted in the autoresponse without further
65 processing.
66
67 -M address
68 Format the autoresponse as a delivery status notification (RFC
69 1894[2]). address is an RFC 2822[1] E-mail address that generates
70 the DSN. Note that the -A option should be used in ddition to -M in
71 order to set the From: header on the autoresponse.
72
73 -r addrlist
74
75 addrlist is a comma-separated list of RFC 2822[1] E-mail addresses.
76 mailbot sends an autoresponse only if the original message has at
77 least one of the specified addresses in any To: or Cc: header.
78
79 -d filename
80 Create a small database, filename, that keeps track of sender's
81 E-mail addresses, and prevent duplicate autoresponses going to the
82 same address (suppress autoresponses going back to the same
83 senders, for subsequent received messages). The -d option is only
84 available if maildrop has GDBM/DB extensions enabled.
85
86 -D x
87 Do not send duplicate autoresponses (see the -d option) for at
88 least x days (default: 1 day). The -d option creates a database of
89 E-mail addresses and the times an autoresponse was last mailed to
90 them. Another autoresponse to the same address will not be mailed
91 until at least the amount of time specified by the -D option has
92 elapsed.
93
94 -s "subject"
95 Set the Subject: header on the autoresponse to subject.
96
97 -A "header: value"
98 Add an arbitrary header to the autoresponse. Multiple -A options
99 are allowed.
100
102 maildrop(1)[3], reformail(1)[4], reformime(1)[5].
103
105 1. RFC 2822
106 http://www.rfc-editor.org/rfc/rfc2822.txt
107
108 2. RFC 1894
109 http://www.rfc-editor.org/rfc/rfc1894.txt
110
111 3. maildrop(1)
112 maildrop.html
113
114 4. reformail(1)
115 reformail.html
116
117 5. reformime(1)
118 reformime.html
119
120
121
122Double Precision, Inc. 04/22/2007 MAILBOT(1)