|
NAMEezmlm-reject - reject messages unsuitable for distributionSYNOPSISezmlm-reject [ -bBcChFfHqQsStT ][ dir ]DESCRIPTIONezmlm-reject reads a mail message from its standard input. It rejects the message if it sees something it doesn't like.If the message has either a ``Precedence: junk'' or a ``Precedence: bulk'' header, ezmlm-reject exits 99 causing the message to be ignored. This causes replies from (some) vacation programs to be ignored. If dir is specified, ezmlm-reject reads dir/msgsize for a maximum:minimum message body size in bytes. Either number will be ignored if 0 or omitted. ezmlm-reject will also look for dir/mimereject and either dir/mimekeep or dir/mimeremove. If dir/mimereject exists, Messages of the Content-Types specified or with MIME parts of these types will be rejected. If dir/mimekeep exists, ezmlm-reject will reject messages of Content-Types other than what is specified. Otherwise if dir/mimeremove exists, ezmlm-reject 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 ezmlm-send(1). ezmlm-reject will exit 100 (permanent error) for rejections. If the list address is not in the message ``To:'' or ``Cc:'' headers and the -t switch is active, the exit code is 100 or 99, depending on the -q 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 recipient can take appropriate action. ezmlm-reject reads dir/copylines to determine how many lines of the original message to copy into the outgoing message. If this file is empty or not present, a value of 0 is presumed, meaning that only the header is copied. If dir/qmqpservers exists, ezmlm-reject will use qmail-qmqp(1) to send messages. OPTIONS
BUGSezmlm-reject 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.Since the MIME parser doesn't decode inner MIME layers of a multipart/* message, mimeremove and mimereject will be applied to the outer MIME layer only. SEE ALSOezmlm-send(1), qmail-command(8) Visit the GSP FreeBSD Man Page Interface. |