Section: User Commands (1)Index
qmail-autoresponder - Produce automatic responses with qmail
] [-O NAME
]] [-n NUM
] [-s STR
] [-t TIME
sends an automatically-generated message in response to an incomingmessage. By default, it limits the number of responses it sends to amaximum of one message per hour per sender. It will not respond toany known mailing list, nor will it respond to either bounces orloops.TheMESSAGE-FILE
is used as the response message, and must contain a complete mailmessage includingFrom:
argument is not present, it defaults tomessage.txt
.All occurrences of%S
in the message file are replaced with the original message's subject.To put a percent sign in the message, write it as%%
limits the rate at which it sends responses to each recipient toprevent mail flooding or denial-of-service attacks.For each response it sends, it creates a file inDIRECTORY
.The name of that file consists of the process ID ofqmail-autoresponder
,a period, the current UNIX time number, and the envelope senderaddress (with any/
characters replaced with:
to prevent creation of files outside ofDIRECTORY
).When it receives a message, it scansDIRECTORY
.Any files that are older than the time interval (see below) aredeleted and ignored. If the number of remaining files with the samesender address is greater than or equal to the maximum number ofreplies, no response is generated.
supports options specified on the command line and as files in theDIRECTORY
named on the command line. Option files in the directory overrideoptions set on the command line.
- Equivalent to-O copymsg=1
- Create new files (instead of making links) for each recipient file.This uses more inodes, but may be required for filesystems (such asCoda) that don't handle links properly.
- Write the generated response to standard output instead of sending it.
- -n NUM
- Equivalent to-O msglimit=NUM
- -O NAME[=VALUE]
- Sets named optionNAMEtoVALUE.IfVALUE is omitted, a value of1is used. See below for all the named options.
- Quiet. Don't show error messages.
- -s STR
- Equivalent to-O subject_prefix=STR
- Do not add aTo: <SENDER>line to the response.
- -t TIME
- Equivalent to-O timelimit=TIME
- copymsg (boolean)
- Copy the original message into the response.
- headerkeep (string)
- If this option is given, only the headers listed in the value are copiedfrom the message into the response. Separate header names with a colon.If neither this norheaderstripare used, all headers are copied.
- headerstrip (string)
- If this option is given andheaderkeepis not, the headers listed in the value are omitted when copying fromthe message into the response. Separate header names with a colon.Header names are treated as patterns, and so may contain*to match any string. For example, the patternx-*will match the headersX-DomainKeys:andX-SpamLevel:.
- msglimit (integer)
- Set the maximum number of replies pertimelimit(defaults to 1).
- no_inreplyto (boolean)
- Do not add anIn-Reply-To:header to the outgoing message. Normally, if aMessage-Id:header is found in the original message,qmail-autoresponderwill add the contents of that header to the outgoing message. Thisallows some email programs to group responses more intelligently.
- numlines (integer)
- Limits the maximum number of lines copied from the original message bodyinto the response. This option is only relevant if thecopymsgoption is also used. If not given, all the lines in the originalmessage body are copied. This limit does not impact how many lines ofthe header are copied.
- subject_prefix (string)
- Add a subject line to the response message composed of the prefixSTRfollowed by the original subject. This can also be accomplished byputting the following line at the start of the message file:
Subject: STR %S
- timelimit (integer)
- Set the interval during which responses are counted (in seconds)(defaults to 1 hour).
Exits zero if there were no problems, otherwise exits 111.
- qmail-autorespondersearches for this line (generated by qmail-local) in the input andbounces the message if it is present (which indicates a mail loop).It then adds the line to the output.
- This contains the envelope sender address and is used as the addressto send the reply to.
- COMMAND LINE
- NAMED OPTIONS
- RETURN VALUE
This document was created byman2html,using the manual pages.