![]() |
![]()
| ![]() |
![]()
NAMEqmail-autoresponder - Produce automatic responses with qmail SYNOPSISqmail-autoresponder [ -cLNqT ] [ -O NAME[=VALUE] ] [ -n NUM ] [ -s STR ] [ -t TIME ] [ MESSAGE-FILE ] DIRECTORY DESCRIPTIONqmail-autoresponder sends an automatically-generated message in response to an incoming message. It also tracks the number of responses it sends to each sender in order to limit the rate at which it sends responses, to prevent mail flooding or denial of service attacks. By default, it limits the number of responses it sends to a maximum of one message per hour per sender. It will not respond to any known mailing list, nor will it respond to either bounces or loops. The MESSAGE-FILE is used as the response message, and must contain a complete mail message including From: and Subject: headers. If the MESSAGE-FILE argument is not present, it defaults to message.txt. All occurrences of %S in the message file are replaced with the original message's subject, %s with the original message's sender (to which the response will be sent), and %r with the original message's recipient. To put a percent sign in the message, write it as %%. RESPONSE COUNTINGFor each response qmail-autoresponder sends, it creates a file in DIRECTORY. The name of that file consists of the current UNIX time number, a period, the process ID of qmail-autoresponder, a period, and the envelope sender address (with any / characters replaced with : to prevent creation of files outside of DIRECTORY). When it receives a message, it scans DIRECTORY. Any files that are older than the time interval (see below) are deleted and ignored. If the number of remaining files with the same sender address is greater than or equal to the maximum number of replies, no response is generated. LOGGINGIf DIRECTORY contains a writeable file named log.txt, then a line is added to this file each time a sender is processed. The format of these lines are as follows: TIMESTAMP +SENDER TIMESTAMP -SENDER OPTIONSqmail-autoresponder supports options specified on the command line, in a file named config.txt, and as individual files in DIRECTORY. If config.txt is present, any individual config files are ignored. Option files in the directory (either config.txt or individual files) override options set on the command line. The config.txt file contains one setting per line, with the option name separated from the value by a =. The value extends from the first character after the = to the end of the line. Lines starting with # are ignored. The message may also be placed in this configuration file. It is separated from the settings by a single blank line. If present, message.txt is not read for the response message. For example: copymsg=1 # Keep all the X-* headers along with the subject. headerkeep=subject:x-* bcc=sendmeacopy@example.com starttime=2018-03-14 15:59:00 subject=This is a very long response subject that does not include the original From: Automatic Responder <recipient@example.com> Subject: Vacation response (%S) This is an automated response to your email... COMMAND LINE
NAMED OPTIONS
RETURN VALUEExits zero if there were no problems, otherwise exits 111. ENVIRONMENT
|