User Commands ezmlm-reject(1) NNNNAAAAMMMMEEEE ezmlm-reject - reject messages unsuitable for distribution SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS eeeezzzzmmmmllllmmmm----rrrreeeejjjjeeeecccctttt [ -bbbbBBBBccccCCCChhhhHHHHqqqqQQQQssssSSSSttttTTTT ][ _d_i_r ] DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN eeeezzzzmmmmllllmmmm----rrrreeeejjjjeeeecccctttt reads a mail message from its standard input. It rejects the message if it sees something it doesn't like. If the message has a ``Precedence: junk'' header, eeeezzzzmmmmllllmmmm---- rrrreeeejjjjeeeecccctttt exits 99 causing the message to be ignored. This causes replies from (some) vacation programs to be ignored. If _d_i_r is specified, eeeezzzzmmmmllllmmmm----rrrreeeejjjjeeeecccctttt reads _d_i_r////mmmmssssggggssssiiiizzzzeeee for a maximum:minimum message body size in bytes. Either number will be ignored if 0 or omitted. eeeezzzzmmmmllllmmmm----rrrreeeejjjjeeeecccctttt will also look for _d_i_r////mmmmiiiimmmmeeeerrrreeeejjjjeeeecccctttt and _d_i_r////mmmmiiiimmmmeeeerrrreeeemmmmoooovvvveeee. if _d_i_r////mmmmiiiimmmmeeeerrrreeeejjjjeeeecccctttt exists, Messages of the Content-Types speci- fied or with MIME parts of these types will be rejected. If _d_i_r////mmmmiiiimmmmeeeerrrreeeemmmmoooovvvveeee exists, eeeezzzzmmmmllllmmmm----rrrreeeejjjjeeeecccctttt will reject messages of the Content-Types specified. These content-types will be accepted as parts of a composite MIME message. They will be stripped out later by eeeezzzzmmmmllllmmmm----sssseeeennnndddd((((1111)))). eeeezzzzmmmmllllmmmm----rrrreeeejjjjeeeecccctttt will exit 100 (permanent error) for rejections. If the list address is not in the message ``To:'' or ``Cc:'' headers and the -tttt switch is active, the exit code is 100 or 99, depending on the -qqqq switch (see below). If you would like to forward messages instead of rejecting them, you can into the appropriate .qmail file put: |condredirect newaddress except /path/ezmlm-reject DIR Now rejected posts will go to this address, and the reci- pient can take appropriate action. OOOOPPPPTTTTIIIIOOOONNNNSSSS -bbbb Reject the message if the message body starts ``sub- scribe'' or ``unsubscribe''. If the -cccc switch is speci- fied, messages will also be rejected if the subject starts with these words. -BBBB (Default.) Do not reject messages starting ``subscribe'' or ``unsubscribe''. -cccc (Default.) Commands are not permitted in the Subject line. A Subject line consisting solely of HELP, REMOVE, SUBSCRIBE, or UNSUBSCRIBE is rejected. -CCCC Commands are permitted in the subject line. -hhhh Reject message if any of the headers in _d_i_r////hhhheeeeaaaaddddeeeerrrrrrrreeeejjjjeeeecccctttt occur in the header. Mailing-List SunOS 5.11 Last change: 1 User Commands ezmlm-reject(1) headers of other mailing list managers can be put into this file, one per line, to prevent processing of mes- sages from other mailing lists. _d_i_r must be specified. A reasonable set of headers would be: ``Mailing-List'', ``X-ml-name'', ``ml-name'',``X-loop'',``X- listprocessor-version'',``X-mailing-list''. Case is not important. -HHHH (Default.) Ignore _d_i_r////hhhheeeeaaaaddddeeeerrrrrrrreeeejjjjeeeecccctttt. -qqqq Quiet. If the message due to the lack of the list address (see -tttt) is not accepted, this is logged but no error message is sent to the sender. -qqqq Quiet. If a message due to the lack of the list address (see -tttt) is not accepted, the message is silently ignored. -QQQQ (Default.) Not quiet. If a message due to the lack of the list address (see -tttt) is not accepted, the sender is notified by an error message. -ssss (Default.) A nonempty Subject line is required. -SSSS A Subject line is not required. -tttt (Default.) Reject messages that do not have the list address in the ``To:'' or ``Cc:'' header(s). eeeezzzzmmmmllllmmmm---- rrrreeeejjjjeeeecccctttt needs access to _d_i_r////oooouuuutttthhhhoooosssstttt and _d_i_r////oooouuuuttttllllooooccccaaaallll to check this. This check is silently omitted if _d_i_r is not specified, to assure backwards compatibility with existing ezmlm lists. -TTTT Do not require the list address in the ``To:'' or ``Cc:'' header(s). BBBBUUUUGGGGSSSS eeeezzzzmmmmllllmmmm----rrrreeeejjjjeeeecccctttt does not handle rfc822 comments in ``Content- Type:'' lines if present before the type or boundary. This could be used to defeat the MIME rejection function. OTOH, this function is intended to reduce garbage, not guarantee its elimination. SSSSEEEEEEEE AAAALLLLSSSSOOOO ezmlm-send(1), qmail-command(8) SunOS 5.11 Last change: 2